-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelp.php
94 lines (85 loc) · 3.03 KB
/
help.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?php
include "inc/header.inc.php";
include "inc/artefakt.inc.php";
include "inc/lang/".$sv_server_lang."_help.lang.php";
$db_daten=mysql_query("SELECT restyp01, restyp02, restyp03, restyp04, restyp05, score, sector, system, newtrans FROM de_user_data WHERE user_id='$ums_user_id'",$db);
$row = mysql_fetch_array($db_daten);
$restyp01=$row[0];$restyp02=$row[1];$restyp03=$row[2];$restyp04=$row[3];$restyp05=$row[4];$punkte=$row["score"];
$newtrans=$row["newtrans"];$sector=$row["sector"];$system=$row["system"];
include "functions.php";
?>
<!doctype html>
<html>
<head>
<title><?=$help_lang[title]?></title>
<?php include "cssinclude.php"; ?>
</head>
<body>
<?//stelle die ressourcenleiste dar
include "resline.php";?><br>
<?php
if ($_GET["t"])
{
$t=(int)$t;
$db_daten=mysql_query("SELECT tech_name, des FROM de_tech_data$ums_rasse WHERE tech_id=$t",$db);
$tech_name = mysql_result($db_daten, 0, "tech_name");
$des = mysql_result($db_daten, 0, "des");
echo '
<table border="0" cellpadding="0" cellspacing="0">
<tr align="center">
<td width="13" height="37" class="rol"> </td>
<td width="500" align="center" class="ro"><div class="cellu">'.$tech_name.'</div></td>
<td width="13" class="ror"> </td>
</tr>
<tr>
<td width="13" class="rl"> </td>
<td width="500" align="center"><div class="cell">'.$des.'</div></td>
<td width="13" class="rr"> </td>
</tr>
<tr>
<td width="13" class="rul"> </td>
<td class="ru"> </td>
<td width="13" class="rur"> </td>
</tr>
</table>';
}
if ($_GET["a"])
{
echo '<a href="javascript:history.back();">'.$help_lang[zurueck].'</a><br><br>';
$a=(int)$a;
$artresult = mysql_query("SELECT id, artname, artdesc, color FROM de_artefakt ORDER by id",$db);
while($row = mysql_fetch_array($artresult))
{
$desc=$row["artdesc"];
$desc=str_replace("{WERT1}", number_format($sv_artefakt[$row["id"]-1][0], 2,",",".") ,$desc);
$desc=str_replace("{WERT2}", number_format($sv_artefakt[$row["id"]-1][1], 0,"",".") ,$desc);
$desc=str_replace("{WERT3}", number_format($sv_artefakt[$row["id"]-1][2], 0,"",".") ,$desc);
$desc=str_replace("{WERT4}", number_format($sv_artefakt[$row["id"]-1][3], 0,"",".") ,$desc);
$desc=str_replace("{WERT5}", number_format($sv_artefakt[$row["id"]-1][4], 0,"",".") ,$desc);
$desc=str_replace("{WERT6}", number_format($sv_artefakt[$row["id"]-1][5], 2,",",".") ,$desc);
echo '
<table border="0" cellpadding="0" cellspacing="0">
<tr align="center">
<td width="13" height="37" class="rol"> </td>
<td width="500" align="center" class="ro"><div class="cellu">'.$row["artname"].'</div></td>
<td width="13" class="ror"> </td>
</tr>
<tr>
<td width="13" class="rl"> </td>
<td width="500" align="center"><div class="cell"><font color="#'.$row["color"].'">'.$desc.'</div></td>
<td width="13" class="rr"> </td>
</tr>
<tr>
<td width="13" class="rul"> </td>
<td class="ru"> </td>
<td width="13" class="rur"> </td>
</tr>
</table><br>';
}
}
?>
<div class="cell" style="width: 250px;"><a href="javascript:history.back();"><?=$help_lang[zurueck]?></a>
<br><br>
<?php include "fooban.php"; ?>
</body>
</html>