2005-09-10 19:25:43 +02:00
|
|
|
<?PHP
|
|
|
|
|
|
|
|
$title = "User-Liste";
|
|
|
|
$header = "Editieren der Engelliste";
|
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:33:22 +01:00
|
|
|
if (!IsSet($_GET["enterUID"]))
|
|
|
|
{
|
2005-09-10 19:25:43 +02:00
|
|
|
// Userliste, keine UID uebergeben...
|
|
|
|
|
2005-10-21 20:29:12 +02:00
|
|
|
echo "<a href=\"../makeuser.php\">Neuen Engel eintragen</a><br><br>\n";
|
2005-11-08 21:04:05 +01:00
|
|
|
|
2005-11-06 17:33:22 +01:00
|
|
|
if( !isset($_GET["OrderBy"]) ) $_GET["OrderBy"] = "Nick";
|
2010-12-26 01:26:04 +01:00
|
|
|
$SQL = "SELECT User.*, UserGroups.Name AS 'Group' FROM `User` ".
|
|
|
|
"LEFT JOIN `UserCVS` ON User.UID = UserCVS.UID ".
|
|
|
|
"LEFT JOIN `UserGroups` ON UserGroups.UID = UserCVS.GroupID ".
|
|
|
|
"ORDER BY `". $_GET["OrderBy"]. "` ASC";
|
2005-09-10 19:25:43 +02:00
|
|
|
$Erg = mysql_query($SQL, $con);
|
|
|
|
echo mysql_error($con);
|
|
|
|
|
|
|
|
// anzahl zeilen
|
|
|
|
$Zeilen = mysql_num_rows($Erg);
|
|
|
|
|
2005-10-21 20:29:12 +02:00
|
|
|
echo "Anzahl Engel: $Zeilen<br><br>\n";
|
2005-09-10 19:25:43 +02:00
|
|
|
|
2005-10-21 20:29:12 +02:00
|
|
|
?><table width="100%" class="border" cellpadding="2" cellspacing="1">
|
|
|
|
<tr class="contenttopic">
|
2006-11-28 11:09:05 +01:00
|
|
|
<td>
|
|
|
|
<a href="<?PHP echo $_SERVER["PHP_SELF"]; ?>?OrderBy=Nick">Nick</a> |
|
|
|
|
<a href="<?PHP echo $_SERVER["PHP_SELF"]; ?>?OrderBy=CreateDate">CreateDate</a>
|
|
|
|
</td>
|
2005-11-30 23:13:38 +01:00
|
|
|
<td><a href="<?PHP echo $_SERVER["PHP_SELF"]; ?>?OrderBy=Name">Name</a></td>
|
|
|
|
<td><a href="<?PHP echo $_SERVER["PHP_SELF"]; ?>?OrderBy=Vorname">Vorname</a></td>
|
2005-12-19 00:18:24 +01:00
|
|
|
<td><a href="<?PHP echo $_SERVER["PHP_SELF"]; ?>?OrderBy=Alter">Alter</a></td>
|
|
|
|
<td>
|
|
|
|
<a href="<?PHP echo $_SERVER["PHP_SELF"]; ?>?OrderBy=email">@</a> |
|
|
|
|
<a href="<?PHP echo $_SERVER["PHP_SELF"]; ?>?OrderBy=DECT">DECT</a> |
|
|
|
|
<a href="<?PHP echo $_SERVER["PHP_SELF"]; ?>?OrderBy=Hometown">Hometown</a> |
|
|
|
|
<a href="<?PHP echo $_SERVER["PHP_SELF"]; ?>?OrderBy=lastLogIn">lastLogIn</a> |
|
2006-08-29 12:21:50 +02:00
|
|
|
<a href="<?PHP echo $_SERVER["PHP_SELF"]; ?>?OrderBy=Art">Type</a> |
|
|
|
|
<a href="<?PHP echo $_SERVER["PHP_SELF"]; ?>?OrderBy=ICQ">ICQ</a> |
|
2010-12-26 01:26:04 +01:00
|
|
|
<a href="<?PHP echo $_SERVER["PHP_SELF"]; ?>?OrderBy=jabber">jabber</a> |
|
|
|
|
<a href="<?PHP echo $_SERVER["PHP_SELF"]; ?>?OrderBy=Group">Group</a>
|
2005-12-19 00:18:24 +01:00
|
|
|
</td>
|
2005-11-30 23:13:38 +01:00
|
|
|
<td><a href="<?PHP echo $_SERVER["PHP_SELF"]; ?>?OrderBy=Size">Größe</a></td>
|
|
|
|
<td><a href="<?PHP echo $_SERVER["PHP_SELF"]; ?>?OrderBy=Gekommen">G</a></td>
|
|
|
|
<td><a href="<?PHP echo $_SERVER["PHP_SELF"]; ?>?OrderBy=Aktiv">A</a></td>
|
|
|
|
<td><a href="<?PHP echo $_SERVER["PHP_SELF"]; ?>?OrderBy=Tshirt">T</a></td>
|
2005-09-10 19:25:43 +02:00
|
|
|
<td>Änd.</td>
|
|
|
|
<td>Secure</td>
|
|
|
|
</tr>
|
2005-10-21 20:29:12 +02:00
|
|
|
|
|
|
|
|
2005-11-30 23:13:38 +01:00
|
|
|
<?PHP
|
2005-09-10 19:25:43 +02:00
|
|
|
$Gekommen = 0;
|
|
|
|
$Active = 0;
|
|
|
|
$Tshirt = 0;
|
|
|
|
|
|
|
|
for ($n = 0 ; $n < $Zeilen ; $n++) {
|
2005-10-21 20:29:12 +02:00
|
|
|
echo "<tr class=\"content\">\n";
|
2006-11-28 11:09:05 +01:00
|
|
|
echo "\t<td>".mysql_result($Erg, $n, "Nick"). "<br>(Create: ". mysql_result($Erg, $n, "CreateDate"). ")</td>\n";
|
2005-10-21 20:29:12 +02:00
|
|
|
echo "\t<td>".mysql_result($Erg, $n, "Name")."</td>\n";
|
|
|
|
echo "\t<td>".mysql_result($Erg, $n, "Vorname")."</td>\n";
|
|
|
|
echo "\t<td>".mysql_result($Erg, $n, "Alter")."</td>\n";
|
|
|
|
echo "\t<td>";
|
|
|
|
if( strlen( mysql_result($Erg, $n, "Telefon"))>0)
|
|
|
|
echo "\n\t\tTel: ". mysql_result($Erg, $n, "Telefon"). "<br>";
|
|
|
|
if( strlen( mysql_result($Erg, $n, "Handy"))>0)
|
|
|
|
echo "\n\t\tHandy: ". mysql_result($Erg, $n, "Handy"). "<br>";
|
|
|
|
if( strlen( mysql_result($Erg, $n, "DECT"))>0)
|
|
|
|
echo "\n\t\tDECT: <a href=\"./dect.php?custum=". mysql_result($Erg, $n, "DECT"). "\">".
|
|
|
|
mysql_result($Erg, $n, "DECT"). "</a><br>";
|
|
|
|
if( strlen( mysql_result($Erg, $n, "email"))>0)
|
|
|
|
echo "\n\t\temail: <a href=\"mailto:".mysql_result($Erg, $n, "email")."\">".
|
2005-11-19 21:19:25 +01:00
|
|
|
mysql_result($Erg, $n, "email")."</a><br>";
|
2005-11-22 21:19:48 +01:00
|
|
|
if( strlen( mysql_result($Erg, $n, "Hometown"))>0)
|
|
|
|
echo "\n\t\tHometown: ". mysql_result($Erg, $n, "Hometown"). "<br>";
|
2005-11-19 21:19:25 +01:00
|
|
|
if( strlen( mysql_result($Erg, $n, "lastLogIn"))>0)
|
|
|
|
echo "\n\t\tlastLogIn: ". mysql_result($Erg, $n, "lastLogIn"). "<br>";
|
2005-12-19 00:18:24 +01:00
|
|
|
if( strlen( mysql_result($Erg, $n, "Art"))>0)
|
|
|
|
echo "\n\t\tType: ". mysql_result($Erg, $n, "Art"). "<br>";
|
2006-08-29 12:21:50 +02:00
|
|
|
if( strlen( mysql_result($Erg, $n, "ICQ"))>0)
|
|
|
|
echo "\n\t\tICQ: ". mysql_result($Erg, $n, "ICQ"). "<br>";
|
|
|
|
if( strlen( mysql_result($Erg, $n, "jabber"))>0)
|
|
|
|
echo "\n\t\tjabber: ". mysql_result($Erg, $n, "jabber"). "<br>";
|
2010-12-26 01:26:04 +01:00
|
|
|
echo "\n\t\tGroup: ". mysql_result($Erg, $n, "Group"). "<br>";
|
2005-10-21 20:29:12 +02:00
|
|
|
echo "</td>\n";
|
|
|
|
echo "\t<td>".mysql_result($Erg, $n, "Size")."</td>\n";
|
2005-09-10 19:25:43 +02:00
|
|
|
$Gekommen += mysql_result($Erg, $n, "Gekommen");
|
2005-10-21 20:29:12 +02:00
|
|
|
echo "\t<td>".mysql_result($Erg, $n, "Gekommen")."</td>\n";
|
2005-09-10 19:25:43 +02:00
|
|
|
$Active += mysql_result($Erg, $n, "Aktiv");
|
2005-10-21 20:29:12 +02:00
|
|
|
echo "\t<td>".mysql_result($Erg, $n, "Aktiv")."</td>\n";
|
2005-09-10 19:25:43 +02:00
|
|
|
$Tshirt += mysql_result($Erg, $n, "Tshirt");
|
2005-10-21 20:29:12 +02:00
|
|
|
echo "\t<td>".mysql_result($Erg, $n, "Tshirt")."</td>\n";
|
2010-11-23 10:28:02 +01:00
|
|
|
echo "\t<td>". funktion_isLinkAllowed_addLink_OrEmpty(
|
|
|
|
"admin/userChangeNormal.php?enterUID=".
|
|
|
|
mysql_result($Erg, $n, "UID")."&Type=Normal",
|
|
|
|
"Änd.").
|
|
|
|
"</td>\n";
|
|
|
|
echo "\t<td>". funktion_isLinkAllowed_addLink_OrEmpty(
|
|
|
|
"admin/userChangeSecure.php?enterUID=".
|
|
|
|
mysql_result($Erg, $n, "UID")."&Type=Secure",
|
|
|
|
"Secure").
|
|
|
|
"</td>\n";
|
2005-10-21 20:29:12 +02:00
|
|
|
echo "</tr>\n";
|
2005-09-10 19:25:43 +02:00
|
|
|
}
|
|
|
|
echo "<tr>".
|
|
|
|
"<td></td><td></td><td></td><td></td><td></td><td></td>".
|
|
|
|
"<td>$Gekommen</td><td>$Active</td><td>$Tshirt</td><td></td></tr>\n";
|
|
|
|
echo "\t</table>\n";
|
|
|
|
// Ende Userliste
|
2010-11-08 23:38:31 +01:00
|
|
|
|
|
|
|
echo "<h1>Statistics</h1>";
|
|
|
|
funktion_db_element_list_2row( "Hometown",
|
|
|
|
"SELECT COUNT(`Hometown`), `Hometown` FROM `User` GROUP BY `Hometown`");
|
|
|
|
|
|
|
|
echo "<br>\n";
|
|
|
|
|
|
|
|
funktion_db_element_list_2row( "Engeltypen",
|
|
|
|
"SELECT COUNT(`Art`), `Art` FROM `User` GROUP BY `Art`");
|
2010-12-26 01:26:04 +01:00
|
|
|
|
|
|
|
echo "<br>\n";
|
|
|
|
|
|
|
|
funktion_db_element_list_2row( "Used Groups",
|
|
|
|
"SELECT UserGroups.Name AS 'GroupName', COUNT(UserGroups.Name) AS Count FROM `UserCVS` ".
|
|
|
|
"LEFT JOIN `UserGroups` ON UserGroups.UID = UserCVS.GroupID ".
|
|
|
|
"WHERE (UserCVS.GroupID!='NULL') ".
|
|
|
|
"GROUP BY `GroupName` ".
|
|
|
|
"");
|
2010-11-07 14:45:28 +01:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
echo "error";
|
2005-09-10 19:25:43 +02:00
|
|
|
}
|
|
|
|
|
2011-05-26 00:52:57 +02:00
|
|
|
include ("../../../camp2011/includes/footer.php");
|
2005-09-10 19:25:43 +02:00
|
|
|
?>
|
|
|
|
|
|
|
|
|