2010-01-19 23:48:43 +01: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");
|
2010-01-19 23:48:43 +01:00
|
|
|
|
|
|
|
if (!IsSet($_GET["enterGID"]))
|
|
|
|
{
|
|
|
|
// Userliste, keine UID uebergeben...
|
|
|
|
|
|
|
|
$SQL = "SELECT * FROM `UserGroups` ORDER BY `Name` ASC";
|
|
|
|
$Erg = mysql_query($SQL, $con);
|
|
|
|
echo mysql_error($con);
|
|
|
|
|
|
|
|
// anzahl zeilen
|
|
|
|
$Zeilen = mysql_num_rows($Erg);
|
|
|
|
|
2010-01-26 22:38:19 +01:00
|
|
|
echo "<table class=\"border\" cellpadding=\"2\" cellspacing=\"1\">\n";
|
2010-01-19 23:48:43 +01:00
|
|
|
echo "<tr class=\"contenttopic\">\n";
|
|
|
|
echo "\t<td>Groupname</td>\n";
|
2010-01-26 22:38:19 +01:00
|
|
|
echo "\t<td>Link</td>\n";
|
2010-01-19 23:48:43 +01:00
|
|
|
echo "</tr>\n";
|
|
|
|
|
|
|
|
for ($n = 0 ; $n < $Zeilen ; $n++) {
|
|
|
|
echo "<tr class=\"content\">\n";
|
|
|
|
echo "\t<td>".mysql_result($Erg, $n, "Name")."</td>\n";
|
|
|
|
|
|
|
|
echo "<td><a href=\"./userChangeSecure.php?enterUID=".
|
|
|
|
mysql_result($Erg, $n, "UID")."&Type=Secure\">change</a></td>\n";
|
|
|
|
echo "</tr>\n";
|
|
|
|
}
|
2010-01-26 22:38:19 +01:00
|
|
|
|
|
|
|
// new form
|
|
|
|
echo "<tr class=\"content\">\n";
|
|
|
|
echo "\t<form action=\"userSaveSecure.php?new=newGroup\" method=\"POST\">\n";
|
|
|
|
echo "\t\t<td><input name=\"GroupName\" type=\"text\" value=\"--new group--\"></td>\n";
|
|
|
|
echo "\t\t<td><input type=\"submit\" name=\"Send\" value=\"Save\"></td>\n";
|
|
|
|
echo "\t</form>\n";
|
|
|
|
echo "</tr>\n";
|
|
|
|
|
2010-01-19 23:48:43 +01:00
|
|
|
echo "\t</table>\n";
|
|
|
|
// Ende Userliste
|
|
|
|
}
|
|
|
|
|
2011-05-26 00:52:57 +02:00
|
|
|
include ("../../../camp2011/includes/footer.php");
|
2010-01-19 23:48:43 +01:00
|
|
|
?>
|
|
|
|
|
|
|
|
|