diff --git a/includes/pages/admin_user.php b/includes/pages/admin_user.php
index 9c13cbd7..5f2bdbe6 100644
--- a/includes/pages/admin_user.php
+++ b/includes/pages/admin_user.php
@@ -281,93 +281,65 @@ function admin_user() {
if (!isset ($_GET["OrderBy"]))
$_GET["OrderBy"] = "Nick";
$SQL = "SELECT * FROM `User` ORDER BY `" . sql_escape($_GET["OrderBy"]) . "` ASC";
- $Erg = sql_query($SQL);
+ $angels = sql_select($SQL);
// anzahl zeilen
- $Zeilen = mysql_num_rows($Erg);
+ $Zeilen = count($angels);
$html .= "Anzahl Engel: $Zeilen
\n";
- $html .= '
- Nick - | -Vorname Name | -DECT | -Alter | -- | - | - | - | Last login | -Edit | -|||
---|---|---|---|---|---|---|---|---|---|---|---|---|
" . mysql_result($Erg, $n, "Nick") . " | \n"; - else - $html .= "\t" . mysql_result($Erg, $n, "Nick") . " | \n"; - $html .= "\t" . mysql_result($Erg, $n, "Vorname") . " " . mysql_result($Erg, $n, "Name") . " | \n"; - $html .= "\t" . mysql_result($Erg, $n, "DECT") . " | \n"; - $html .= "\t" . mysql_result($Erg, $n, "Alter") . " | \n"; - $html .= "\t";
- if (strlen(mysql_result($Erg, $n, "email")) > 0)
- $html .= "" .
- mysql_result($Erg, $n, "email") . "";
- $html .= ' ' . $title . ' ';
- $html .= " | \n";
- $Gekommen += mysql_result($Erg, $n, "Gekommen");
- $html .= "\t" . mysql_result($Erg, $n, "Gekommen") . " | \n"; - $Active += mysql_result($Erg, $n, "Aktiv"); - $html .= "\t" . mysql_result($Erg, $n, "Aktiv") . " | \n"; - $Tshirt += mysql_result($Erg, $n, "Tshirt"); - $html .= "\t" . mysql_result($Erg, $n, "Tshirt") . " | \n"; - $html .= "\t" . mysql_result($Erg, $n, "Size") . " | \n"; - $last_login = mysql_result($Erg, $n, "lastLogIn"); - if($last_login == 0) - $html .= "never | "; - else - $html .= "" . date('d.m.&\n\b\s\p;H:i', $last_login) . " | "; - $html .= "\t" . 'Edit' . - " | \n"; - $html .= "
Summe | " . - " | $Gekommen | $Active | $Tshirt |
' . $column . ' | '; + $html .= '' . $column . ' | '; $html .= '
---|