summaryrefslogtreecommitdiff
path: root/www-ssl/admin/tshirt.php
diff options
context:
space:
mode:
Diffstat (limited to 'www-ssl/admin/tshirt.php')
-rw-r--r--[-rwxr-xr-x]www-ssl/admin/tshirt.php73
1 files changed, 38 insertions, 35 deletions
diff --git a/www-ssl/admin/tshirt.php b/www-ssl/admin/tshirt.php
index f7406d16..9a8e7010 100755..100644
--- a/www-ssl/admin/tshirt.php
+++ b/www-ssl/admin/tshirt.php
@@ -1,59 +1,62 @@
-<?PHP
+<?php
+require_once ('../bootstrap.php');
$title = "T-Shirt-Ausgabe";
$header = "T-Shirt-Ausgabe f&uuml;r aktiven Engel";
-include ("../../includes/header.php");
-include ("../../includes/funktion_db_list.php");
+include ("includes/header.php");
+include ("includes/funktion_db_list.php");
+If (IsSet ($_GET["aktiv"])) {
-If (IsSet($_GET["aktiv"])) {
-
- $SQL="UPDATE `User` SET `Tshirt`='1' WHERE `UID`='". $_GET["aktiv"]. "' limit 1";
+ $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>";
- }
+ if ($Erg == 1) {
+ } else {
+ echo "Fehler beim speichern bei Engel " . UID2Nick($_GET["aktive"]) . "<br />";
+ }
}
-
?>
-&Uuml;ber die Suchen-Funktion des Browsers kann diese Liste schnell nach einem Nick abgesucht werden.<br>
-Hinter diesem erscheint ein Link, &uuml;ber den man eintragen kann, dass der Engel sein T-Shirt erhalten hat.<br><br>
+&Uuml;ber die Suchen-Funktion des Browsers kann diese Liste schnell nach einem Nick abgesucht werden.<br />
+Hinter diesem erscheint ein Link, &uuml;ber den man eintragen kann, dass der Engel sein T-Shirt erhalten hat.<br /><br />
Liste aller aktiven Engel:
-<?PHP
-$SQL = "SELECT * FROM `User` WHERE (`Aktiv`='1') ORDER BY `Nick` ASC";
+<?php
+
+
+$SQL = "SELECT * FROM `User` WHERE (`Aktiv`='1') ORDER BY `Nick` ASC";
$Erg = mysql_query($SQL, $con);
$rowcount = mysql_num_rows($Erg);
?>
<table width="100%" class="border" cellpadding="2" cellspacing="1">
<tr class="contenttopic">
- <td>Nick</td>
- <td>Aktiv?</td>
- <td>Gr&ouml;sse</td>
- <td>T-Shirt ausgeben:</td>
- </td>
-<?PHP
-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";
+ <td>Nick</td>
+ <td>Aktiv?</td>
+ <td>Gr&ouml;sse</td>
+ <td>T-Shirt ausgeben:</td>
+ </td>
+<?php
+
+
+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";
}
echo "</table>";
-include ("../../includes/footer.php");
+include ("includes/footer.php");
?>