You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.6 KiB
PHTML
63 lines
1.6 KiB
PHTML
14 years ago
|
<?php
|
||
14 years ago
|
require_once ('../bootstrap.php');
|
||
20 years ago
|
|
||
|
$title = "T-Shirt-Ausgabe";
|
||
|
$header = "T-Shirt-Ausgabe für aktiven Engel";
|
||
14 years ago
|
include ("includes/header.php");
|
||
|
include ("includes/funktion_db_list.php");
|
||
20 years ago
|
|
||
14 years ago
|
If (IsSet ($_GET["aktiv"])) {
|
||
20 years ago
|
|
||
14 years ago
|
$SQL = "UPDATE `User` SET `Tshirt`='1' WHERE `UID`='" . $_GET["aktiv"] . "' limit 1";
|
||
|
$Erg = mysql_query($SQL, $con);
|
||
|
if ($Erg == 1) {
|
||
|
} else {
|
||
|
echo "Fehler beim speichern bei Engel " . UID2Nick($_GET["aktive"]) . "<br />";
|
||
|
}
|
||
20 years ago
|
}
|
||
|
?>
|
||
|
|
||
14 years ago
|
Über die Suchen-Funktion des Browsers kann diese Liste schnell nach einem Nick abgesucht werden.<br />
|
||
|
Hinter diesem erscheint ein Link, über den man eintragen kann, dass der Engel sein T-Shirt erhalten hat.<br /><br />
|
||
20 years ago
|
|
||
|
Liste aller aktiven Engel:
|
||
|
|
||
14 years ago
|
<?php
|
||
14 years ago
|
|
||
|
|
||
|
$SQL = "SELECT * FROM `User` WHERE (`Aktiv`='1') ORDER BY `Nick` ASC";
|
||
20 years ago
|
$Erg = mysql_query($SQL, $con);
|
||
|
|
||
|
$rowcount = mysql_num_rows($Erg);
|
||
|
?>
|
||
|
<table width="100%" class="border" cellpadding="2" cellspacing="1">
|
||
|
<tr class="contenttopic">
|
||
14 years ago
|
<td>Nick</td>
|
||
|
<td>Aktiv?</td>
|
||
|
<td>Grösse</td>
|
||
|
<td>T-Shirt ausgeben:</td>
|
||
|
</td>
|
||
|
<?php
|
||
14 years ago
|
|
||
|
|
||
|
for ($i = 0; $i < $rowcount; $i++) {
|
||
|
echo "\t<tr class=\"content\">\n";
|
||
|
$eUID = mysql_result($Erg, $i, "UID");
|
||
|
echo "\t\t<td>" . UID2Nick($eUID) . "</td>\n";
|
||
|
echo "\t\t<td>" . mysql_result($Erg, $i, "Aktiv") . "</td>\n";
|
||
|
echo "\t\t<td>" . mysql_result($Erg, $i, "Size") . "</td>\n";
|
||
|
|
||
|
if (mysql_result($Erg, $i, "Tshirt") == "1") {
|
||
|
echo "\t\t<td>bereits erhalten</td>";
|
||
|
} else {
|
||
|
echo "\t\t<td><a href=\"./tshirt.php?aktiv=$eUID\">XXXXXXXX</a></td>";
|
||
|
}
|
||
|
echo "\t</tr>\n";
|
||
20 years ago
|
}
|
||
|
|
||
|
echo "</table>";
|
||
|
|
||
14 years ago
|
include ("includes/footer.php");
|
||
20 years ago
|
?>
|
||
|
|