add functions in engelliste

bugfix news


git-svn-id: svn://svn.cccv.de/engel-system@103 29ba0400-6e00-0410-a75a-ca02368028f8
main
cookie 19 years ago
parent b997e99534
commit 31f79eea27

@ -5,7 +5,7 @@ $header = "Datenbank-Auszug";
include ("./inc/header.php"); include ("./inc/header.php");
include ("./inc/funktion_db_list.php"); include ("./inc/funktion_db_list.php");
echo "<h1>Counter</h1> <br>"; echo "<h1>Web Counter</h1>";
funktion_db_list("Counter"); funktion_db_list("Counter");
/* /*
@ -30,6 +30,17 @@ funktion_db_list("FAQ");
echo "Deaktiviert"; echo "Deaktiviert";
*/ */
echo "<h1>Tshirt-Size</h1>";
$SQL="SELECT `Size`, COUNT(`Size`) FROM User GROUP BY `Size`";
$Erg = mysql_query($SQL, $con);
echo mysql_error($con);
$rowcount = mysql_num_rows($Erg);
for ($i=0; $i<$rowcount; $i++)
echo mysql_result($Erg, $i, 1). "x '". mysql_result($Erg, $i, 0). "'<br>\n";
include ("./inc/footer.php"); include ("./inc/footer.php");
?> ?>

@ -15,7 +15,7 @@ if (!IsSet($_GET["enterUID"]))
echo "\n<a href=\"./user.php?enterUID=-1&Type=Secure\">Edit logout User</a><br><br>\n"; echo "\n<a href=\"./user.php?enterUID=-1&Type=Secure\">Edit logout User</a><br><br>\n";
if( !isset($_GET["OrderBy"]) ) $_GET["OrderBy"] = "Nick"; if( !isset($_GET["OrderBy"]) ) $_GET["OrderBy"] = "Nick";
$SQL = "SELECT * FROM User ORDER BY ". $_GET["OrderBy"]. " ASC"; $SQL = "SELECT * FROM User ORDER BY `". $_GET["OrderBy"]. "` ASC";
$Erg = mysql_query($SQL, $con); $Erg = mysql_query($SQL, $con);
echo mysql_error($con); echo mysql_error($con);
@ -29,8 +29,14 @@ if (!IsSet($_GET["enterUID"]))
<td><a href="<?PHP echo $_SERVER["PHP_SELF"]; ?>?OrderBy=Nick">Nick</a></td> <td><a href="<?PHP echo $_SERVER["PHP_SELF"]; ?>?OrderBy=Nick">Nick</a></td>
<td><a href="<?PHP echo $_SERVER["PHP_SELF"]; ?>?OrderBy=Name">Name</a></td> <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> <td><a href="<?PHP echo $_SERVER["PHP_SELF"]; ?>?OrderBy=Vorname">Vorname</a></td>
<td>Alter</td> <td><a href="<?PHP echo $_SERVER["PHP_SELF"]; ?>?OrderBy=Alter">Alter</a></td>
<td>Telefon <a href="<?PHP echo $_SERVER["PHP_SELF"]; ?>?OrderBy=email">@</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> |
<a href="<?PHP echo $_SERVER["PHP_SELF"]; ?>?OrderBy=Art">Type</a>
</td>
<td><a href="<?PHP echo $_SERVER["PHP_SELF"]; ?>?OrderBy=Size">Gr&ouml;&szlig;e</a></td> <td><a href="<?PHP echo $_SERVER["PHP_SELF"]; ?>?OrderBy=Size">Gr&ouml;&szlig;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=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=Aktiv">A</a></td>
@ -66,6 +72,8 @@ if (!IsSet($_GET["enterUID"]))
echo "\n\t\tHometown: ". mysql_result($Erg, $n, "Hometown"). "<br>"; echo "\n\t\tHometown: ". mysql_result($Erg, $n, "Hometown"). "<br>";
if( strlen( mysql_result($Erg, $n, "lastLogIn"))>0) if( strlen( mysql_result($Erg, $n, "lastLogIn"))>0)
echo "\n\t\tlastLogIn: ". mysql_result($Erg, $n, "lastLogIn"). "<br>"; echo "\n\t\tlastLogIn: ". mysql_result($Erg, $n, "lastLogIn"). "<br>";
if( strlen( mysql_result($Erg, $n, "Art"))>0)
echo "\n\t\tType: ". mysql_result($Erg, $n, "Art"). "<br>";
echo "</td>\n"; echo "</td>\n";
echo "\t<td>".mysql_result($Erg, $n, "Size")."</td>\n"; echo "\t<td>".mysql_result($Erg, $n, "Size")."</td>\n";
$Gekommen += mysql_result($Erg, $n, "Gekommen"); $Gekommen += mysql_result($Erg, $n, "Gekommen");

@ -73,7 +73,7 @@ echo "</div>";
<h4><?PHP Print_Text(6); ?></h4> <h4><?PHP Print_Text(6); ?></h4>
<a name="Neu">&nbsp;</a> <a name="Neu">&nbsp;</a>
<form action="<? echo $ENGEL_ROOT ?>nonpublic/news.php" method="post"> <form action="<?PHP echo $ENGEL_ROOT ?>nonpublic/news.php" method="post">
<?PHP <?PHP
// Datum mit uebergeben, um doppelte Eintraege zu verhindern // Datum mit uebergeben, um doppelte Eintraege zu verhindern
// (Reload nach dem Eintragen!) // (Reload nach dem Eintragen!)

Loading…
Cancel
Save