-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphalanges.php
More file actions
89 lines (81 loc) · 4.58 KB
/
phalanges.php
File metadata and controls
89 lines (81 loc) · 4.58 KB
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
<?php
/***************************************************************************
* filename : phalanges.php
* desc. : fichier principal du mod
* Author : DeusIrae
* created : 25/08/07
* modified : 12/02/2008
***************************************************************************/
if (!defined('IN_SPYOGAME')) {
die("Hacking attempt");
} ?>
<div id="recy" name="recy">
<form method="POST" action="index.php?action=recycleurs&sub_action=addp">
<table align="center">
<tr>
<td>
<table width="450" style="border:2px #003399 solid;" cellpadding="3">
<td align="center" class="c" colspan="4">Formulaire d'envoi des phalanges</td>
<tr>
<th align="center">Coordonnées :</th>
<th align="center">
<i>Galaxie :</i> <input type="text" name="galaxie" maxlength="1" size="5"><br>
<i>Système :</i> <input type="text" name="systeme" maxlength="3" size="5"><br>
<i>Position :</i> <input type="text" name="position" maxlength="2" size="5"><br>
</th>
<th align="center"></th>
</tr>
<tr>
<th align="center">Niveau de phalange :</th>
<th align="center">
<input type="text" name="niv" maxlength="2" size="20"><br>
</th>
<th align="center" colspan="2">
<input type="submit" value=" Envoi ">
</th>
</tr>
</table>
</td>
</tr>
</table>
</form>
</div>
<div style="text-align: center;">
<table border="2" width="90%">
<tr>
<td width="20%" align="center" class="c"><span style="color: #FFFFFF; font-size: medium; "><b>Coordonnées</b></span></td>
<td width="20%" align="center" class="c"><span style="color: #FFFFFF; font-size: medium; "><b>De</b></span></td>
<td width="20%" align="center" class="c"><span style="color: #FFFFFF; font-size: medium; "><b>A</b></span></td>
<td width="20%" align="center" class="c"><span style="color: #FFFFFF; font-size: medium; "><b>MAJ</b></span></td>
<td width="15%" align="center" class="c"><span style="color: #FFFFFF; font-size: medium; "><b>Noms</b></span></td>
<td width="15%" align="center" class="c"><span style="color: #FFFFFF; font-size: medium; "><b>Options</b></span></td>
</tr>
<?php
for ($i = 1; $i < $nb_galaxies; $i++) {
echo '<tr><b><td colspan="6" style="font-size: large; color: #FFFFFF; text-align: left"><a name=' . $i . '>G' . $i . '</a></td></b></tr>';
$req = "SELECT * FROM " . $table_prefix . "phalanges WHERE galaxie=" . $i . " ORDER BY systeme ASC";
$result = $db->sql_query($req);
while ($rows = $db->sql_fetch_assoc($result)) {
echo '<tr>';
echo '<td width="20%" align="center"><b>' . $rows['galaxie'] . ':' . $rows['systeme'] . ':' . $rows['position'] . '</b></td>';
echo '<td width="20%" align="center"><b>' . $rows['galaxie'] . ':' . $rows['systemep'] . '</b></td>';
echo '<td width="20%" align="center"><b>' . $rows['galaxie'] . ':' . $rows['systemea'] . '</b></td>';
$time = $rows["time"];
$time = date("d M Y", $time);
echo '<td width="20%" align="center"><b>' . $time . '</b></td>';
echo '<td width="20%" align="center"><b>' . $rows['user_name'] . '</b></td>';
if ($rows['user_name'] == $user_data['user_name'] || $user_data["user_admin"] == 1 || $user_data["user_coadmin"] == 1) {
echo '<td width="15%" align="center"><form method="POST" action="index.php?action=recycleurs&sub_action=suppp">
<input type="hidden" name="sub_action" value="suppp">
<input type="hidden" value="suppression" name="suppression">
<input type="hidden" value=' . $rows['id'] . ' name="id">
<input type="submit" value="Supprimer" name="supprimer">
</form>
</td></tr>';
} else {
echo '<td></td></tr>';
}
}
}
echo '</table></div><br><br>';
?>