2011-06-01 12:13:39 +02:00
|
|
|
<?php
|
2011-06-01 15:02:00 +02:00
|
|
|
require_once ('../bootstrap.php');
|
2010-01-12 21:17:37 +01:00
|
|
|
|
|
|
|
$title = "Engel Arrived";
|
|
|
|
$header = "Engel was arrived";
|
2011-06-01 15:02:00 +02:00
|
|
|
include ("includes/header.php");
|
|
|
|
include ("includes/funktion_db_list.php");
|
|
|
|
|
|
|
|
If (IsSet ($_GET["arrived"])) {
|
|
|
|
|
|
|
|
$SQL = "UPDATE `User` SET `Gekommen`='1' WHERE `UID`='" . $_GET["arrived"] . "' limit 1";
|
|
|
|
$Erg = db_query($SQL, "Set User as Gekommen");
|
|
|
|
if ($Erg == 1) {
|
|
|
|
echo "<h2>" . Get_Text("pri_userArrived_WriteOK") . " \"" . UID2Nick($_GET["arrived"]) . "\"</h2>";
|
|
|
|
} else {
|
|
|
|
echo "<h1>" . Get_Text("pri_userArrived_WriteError") . " \"" . UID2Nick($_GET["arrived"]) . "\"</h1>";
|
|
|
|
}
|
2010-01-12 21:17:37 +01:00
|
|
|
}
|
|
|
|
|
2011-06-01 15:02:00 +02:00
|
|
|
echo Get_Text("pri_userArrived_Text1") . "<br />";
|
|
|
|
echo Get_Text("pri_userArrived_Text2") . "<br /><br />";
|
2010-01-12 21:17:37 +01:00
|
|
|
|
|
|
|
echo Get_Text("pri_userArrived_TableToppic");
|
2011-06-01 15:02:00 +02:00
|
|
|
$SQL = "SELECT * FROM `User` ORDER BY `Nick` ASC";
|
2010-01-12 21:17:37 +01:00
|
|
|
$Erg = mysql_query($SQL, $con);
|
|
|
|
|
|
|
|
$rowcount = mysql_num_rows($Erg);
|
|
|
|
|
|
|
|
echo "<table width=\"100%\" class=\"border\" cellpadding=\"2\" cellspacing=\"1\">\n";
|
|
|
|
echo "\t<tr class=\"contenttopic\">\n";
|
2011-06-01 15:02:00 +02:00
|
|
|
echo "\t\t<td>" . Get_Text("pri_userArrived_TableTD_Nick") . "</td>\n";
|
|
|
|
echo "\t\t<td>" . Get_Text("pri_userArrived_TableTD_ArrivedShow") . "</td>\n";
|
|
|
|
echo "\t\t<td>" . Get_Text("pri_userArrived_TableTD_ArrivedSet") . "</td>\n";
|
2010-01-12 21:17:37 +01:00
|
|
|
echo "\t</td>\n";
|
|
|
|
|
2011-06-01 15:02:00 +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, "Gekommen") . "</td>\n";
|
|
|
|
|
|
|
|
if (mysql_result($Erg, $i, "Gekommen") == "1") {
|
|
|
|
echo "\t\t<td>" . Get_Text("pri_userArrived_TableEntry_Arrived") . "</td>";
|
|
|
|
} else {
|
|
|
|
echo "\t\t<td><a href=\"./userArrived.php?arrived=$eUID\">" . Get_Text("pri_userArrived_TableEntry_Set") . "</a></td>";
|
|
|
|
}
|
|
|
|
echo "\t</tr>\n";
|
2010-01-12 21:17:37 +01:00
|
|
|
}
|
|
|
|
echo "</table>";
|
|
|
|
|
2011-06-01 15:02:00 +02:00
|
|
|
include ("includes/footer.php");
|
2010-01-12 21:17:37 +01:00
|
|
|
?>
|
|
|
|
|