2011-06-01 12:13:39 +02:00
|
|
|
<?php
|
2005-09-10 19:25:43 +02:00
|
|
|
|
|
|
|
$title = "T-Shirt-Ausgabe";
|
|
|
|
$header = "T-Shirt-Ausgabe für aktiven Engel";
|
2011-05-26 00:52:57 +02:00
|
|
|
include ("../../../camp2011/includes/header.php");
|
|
|
|
include ("../../../camp2011/includes/funktion_db_list.php");
|
2005-09-10 19:25:43 +02:00
|
|
|
|
|
|
|
|
2005-11-06 17:39:38 +01:00
|
|
|
If (IsSet($_GET["aktiv"])) {
|
2005-09-10 19:25:43 +02:00
|
|
|
|
2011-06-01 12:13:39 +02:00
|
|
|
$SQL="UPDATE `User` SET `Tshirt`='1' WHERE `UID`='". $_GET["aktiv"]. "' limit 1";
|
|
|
|
$Erg = mysql_query($SQL, $con);
|
2005-09-10 19:25:43 +02:00
|
|
|
if ($Erg == 1) {
|
|
|
|
} else {
|
2011-06-01 12:13:39 +02:00
|
|
|
echo "Fehler beim speichern bei Engel ". UID2Nick($_GET["aktive"]). "<br />";
|
2005-09-10 19:25:43 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
2011-06-01 12:13:39 +02:00
|
|
|
Ü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 />
|
2005-09-10 19:25:43 +02:00
|
|
|
|
|
|
|
Liste aller aktiven Engel:
|
|
|
|
|
2011-06-01 12:13:39 +02:00
|
|
|
<?php
|
2006-12-04 20:54:51 +01:00
|
|
|
$SQL = "SELECT * FROM `User` WHERE (`Aktiv`='1') ORDER BY `Nick` ASC";
|
2005-09-10 19:25:43 +02:00
|
|
|
$Erg = mysql_query($SQL, $con);
|
|
|
|
|
|
|
|
$rowcount = mysql_num_rows($Erg);
|
|
|
|
?>
|
|
|
|
<table width="100%" class="border" cellpadding="2" cellspacing="1">
|
|
|
|
<tr class="contenttopic">
|
2011-06-01 12:13:39 +02:00
|
|
|
<td>Nick</td>
|
|
|
|
<td>Aktiv?</td>
|
|
|
|
<td>Grösse</td>
|
|
|
|
<td>T-Shirt ausgeben:</td>
|
|
|
|
</td>
|
|
|
|
<?php
|
2005-09-10 19:25:43 +02:00
|
|
|
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") {
|
2011-06-01 12:13:39 +02:00
|
|
|
echo "\t\t<td>bereits erhalten</td>";
|
2005-09-10 19:25:43 +02:00
|
|
|
} else {
|
2011-06-01 12:13:39 +02:00
|
|
|
echo "\t\t<td><a href=\"./tshirt.php?aktiv=$eUID\">XXXXXXXX</a></td>";
|
2005-09-10 19:25:43 +02:00
|
|
|
}
|
|
|
|
echo "\t</tr>\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
echo "</table>";
|
|
|
|
|
2011-05-26 00:52:57 +02:00
|
|
|
include ("../../../camp2011/includes/footer.php");
|
2005-09-10 19:25:43 +02:00
|
|
|
?>
|
|
|
|
|