bootstrapping
parent
a537f4bf73
commit
e050c0dc7f
@ -1,191 +1,167 @@
|
|||||||
<?php
|
<?php
|
||||||
|
require_once ('../bootstrap.php');
|
||||||
|
|
||||||
$title = "Räume";
|
$title = "Räume";
|
||||||
$header = "Verwaltung der Räume";
|
$header = "Verwaltung der Räume";
|
||||||
include ("../../../camp2011/includes/header.php");
|
include ("includes/header.php");
|
||||||
include("../../../camp2011/includes/funktion_db.php");
|
include ("includes/funktion_db.php");
|
||||||
|
|
||||||
function runSQL( $SQL)
|
function runSQL($SQL) {
|
||||||
{
|
global $con;
|
||||||
global $con;
|
// hier muesste das SQL ausgefuehrt werden...
|
||||||
// hier muesste das SQL ausgefuehrt werden...
|
$Erg = mysql_query($SQL, $con);
|
||||||
$Erg = mysql_query($SQL, $con);
|
if ($Erg) {
|
||||||
if ($Erg)
|
echo "Änderung wurde gesichert...<br />";
|
||||||
{
|
echo "[$SQL]<br />";
|
||||||
echo "Änderung wurde gesichert...<br />";
|
return 1;
|
||||||
echo "[$SQL]<br />";
|
} else {
|
||||||
return 1;
|
echo "Fehler beim speichern... bitte noch ein mal probieren :)";
|
||||||
}
|
echo "<br /><br />" . mysql_error($con) . "<br />";
|
||||||
else
|
echo "[$SQL]<br />";
|
||||||
{
|
return 0;
|
||||||
echo "Fehler beim speichern... bitte noch ein mal probieren :)";
|
}
|
||||||
echo "<br /><br />".mysql_error( $con ). "<br />";
|
|
||||||
echo "[$SQL]<br />";
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function runSQL_log( $SQL, $commed)
|
function runSQL_log($SQL, $commed) {
|
||||||
{
|
global $con;
|
||||||
global $con;
|
// hier muesste das SQL ausgefuehrt werden...
|
||||||
// hier muesste das SQL ausgefuehrt werden...
|
$Erg = db_query($SQL, $commed);
|
||||||
$Erg = db_query($SQL, $commed);
|
if ($Erg) {
|
||||||
if ($Erg)
|
echo "Änderung wurde gesichert...<br />";
|
||||||
{
|
echo "[$SQL]<br />";
|
||||||
echo "Änderung wurde gesichert...<br />";
|
return 1;
|
||||||
echo "[$SQL]<br />";
|
} else {
|
||||||
return 1;
|
echo "Fehler beim speichern... bitte noch ein mal probieren :)";
|
||||||
}
|
echo "<br /><br />" . mysql_error($con) . "<br />";
|
||||||
else
|
echo "[$SQL]<br />";
|
||||||
{
|
return 0;
|
||||||
echo "Fehler beim speichern... bitte noch ein mal probieren :)";
|
}
|
||||||
echo "<br /><br />".mysql_error( $con ). "<br />";
|
|
||||||
echo "[$SQL]<br />";
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$Sql = "SELECT * FROM `EngelType` ORDER BY `NAME`";
|
$Sql = "SELECT * FROM `EngelType` ORDER BY `NAME`";
|
||||||
$Erg = mysql_query($Sql, $con);
|
$Erg = mysql_query($Sql, $con);
|
||||||
|
|
||||||
if( !IsSet($_GET["action"]) )
|
if (!IsSet ($_GET["action"])) {
|
||||||
{
|
echo "Hallo " . $_SESSION['Nick'] .
|
||||||
echo "Hallo ".$_SESSION['Nick'].
|
",<br />\nhier hast du die Möglichkeit, neue Engeltypen für die Schichtpläne einzutragen " .
|
||||||
",<br />\nhier hast du die Möglichkeit, neue Engeltypen für die Schichtpläne einzutragen ".
|
"oder vorhandene abzuändern:<br /><br />\n";
|
||||||
"oder vorhandene abzuändern:<br /><br />\n";
|
|
||||||
|
echo "<a href=\"./EngelType.php?action=new\">- Neuen EngelType eintragen</a><br />\n";
|
||||||
echo "<a href=\"./EngelType.php?action=new\">- Neuen EngelType eintragen</a><br />\n";
|
|
||||||
|
echo "<table width=\"100%\" class=\"border\" cellpadding=\"2\" cellspacing=\"1\">\n";
|
||||||
echo "<table width=\"100%\" class=\"border\" cellpadding=\"2\" cellspacing=\"1\">\n";
|
echo "<tr class=\"contenttopic\">\n";
|
||||||
echo "<tr class=\"contenttopic\">\n";
|
|
||||||
|
for ($i = 1; $i < mysql_num_fields($Erg); $i++) {
|
||||||
for( $i = 1; $i < mysql_num_fields($Erg); $i++ )
|
echo "\t<td>" . mysql_field_name($Erg, $i) . "</td>";
|
||||||
{
|
}
|
||||||
echo "\t<td>". mysql_field_name($Erg, $i). "</td>";
|
echo "\t<td>Ändern</td>";
|
||||||
}
|
echo "</tr>";
|
||||||
echo "\t<td>Ändern</td>";
|
|
||||||
echo "</tr>";
|
for ($t = 0; $t < mysql_num_rows($Erg); $t++) {
|
||||||
|
echo "\t<tr class=\"content\">\n";
|
||||||
for( $t = 0; $t < mysql_num_rows($Erg); $t++ )
|
for ($j = 1; $j < mysql_num_fields($Erg); $j++) {
|
||||||
{
|
echo "\t\t<td>" . mysql_result($Erg, $t, $j) . "</td>\n";
|
||||||
echo "\t<tr class=\"content\">\n";
|
}
|
||||||
for ($j = 1; $j < mysql_num_fields($Erg); $j++)
|
echo "\t\t<td><a href=\"./EngelType.php?action=change&TID=" . mysql_result($Erg, $t, "TID") . "\">###</a></td>\n";
|
||||||
{
|
echo "\t</tr>\n";
|
||||||
echo "\t\t<td>".mysql_result($Erg, $t, $j)."</td>\n";
|
} // ende Auflistung Raeume
|
||||||
}
|
echo "</table>";
|
||||||
echo "\t\t<td><a href=\"./EngelType.php?action=change&TID=".mysql_result($Erg, $t, "TID")."\">###</a></td>\n";
|
} else {
|
||||||
echo "\t</tr>\n";
|
|
||||||
} // ende Auflistung Raeume
|
switch ($_GET["action"]) {
|
||||||
echo "</table>";
|
|
||||||
}
|
case 'new' :
|
||||||
else
|
echo "Neuen EngelType einrichten: <br />";
|
||||||
{
|
echo "<form action=\"./EngelType.php\" method=\"GET\">\n";
|
||||||
|
echo "<table>\n";
|
||||||
switch ($_GET["action"]) {
|
|
||||||
|
for ($Uj = 1; $Uj < mysql_num_fields($Erg); $Uj++) {
|
||||||
case 'new':
|
echo "<td>" . mysql_field_name($Erg, $Uj) . "</td>" .
|
||||||
echo "Neuen EngelType einrichten: <br />";
|
"<td><input type=\"text\" size=\"40\" name=\"" . mysql_field_name($Erg, $Uj) . "\"></td></tr>\n";
|
||||||
echo "<form action=\"./EngelType.php\" method=\"GET\">\n";
|
}
|
||||||
echo "<table>\n";
|
echo "</table>\n";
|
||||||
|
echo "<input type=\"hidden\" name=\"action\" value=\"newsave\">\n";
|
||||||
for( $Uj = 1; $Uj < mysql_num_fields($Erg); $Uj++ )
|
echo "<input type=\"submit\" value=\"sichern...\">\n";
|
||||||
{
|
echo "</form>";
|
||||||
echo "<td>".mysql_field_name($Erg, $Uj)."</td>".
|
break;
|
||||||
"<td><input type=\"text\" size=\"40\" name=\"".mysql_field_name($Erg, $Uj)."\"></td></tr>\n";
|
|
||||||
}
|
case 'newsave' :
|
||||||
echo "</table>\n";
|
$vars = $_GET;
|
||||||
echo "<input type=\"hidden\" name=\"action\" value=\"newsave\">\n";
|
$count = count($vars) - 1;
|
||||||
echo "<input type=\"submit\" value=\"sichern...\">\n";
|
$vars = array_splice($vars, 0, $count);
|
||||||
echo "</form>";
|
$Keys = "";
|
||||||
break;
|
$Values = "";
|
||||||
|
foreach ($vars as $key => $value) {
|
||||||
case 'newsave':
|
$Keys .= ", `$key`";
|
||||||
$vars = $_GET;
|
$Values .= ", '$value'";
|
||||||
$count = count($vars) - 1;
|
}
|
||||||
$vars = array_splice($vars, 0, $count);
|
|
||||||
$Keys="";
|
if (runSQL_log("INSERT INTO `EngelType` (" . substr($Keys, 2) . ") VALUES (" . substr($Values, 2) . ")", "save new EngelType")) {
|
||||||
$Values="";
|
SetHeaderGo2Back();
|
||||||
foreach($vars as $key => $value){
|
|
||||||
$Keys .= ", `$key`";
|
$SQL2 = "SELECT * FROM `EngelType` WHERE `Name`='" . $_GET["Name"] . "'";
|
||||||
$Values .= ", '$value'";
|
$ERG = mysql_query($SQL2, $con);
|
||||||
}
|
|
||||||
|
if (mysql_num_rows($ERG) == 1)
|
||||||
if( runSQL_log( "INSERT INTO `EngelType` (". substr($Keys, 2). ") VALUES (". substr($Values, 2). ")",
|
runSQL_log("ALTER TABLE `Room` ADD `DEFAULT_EID_" . mysql_result($ERG, 0, 0) .
|
||||||
"save new EngelType") )
|
"` INT DEFAULT '0' NOT NULL;", "add new EngelType in Romm Table");
|
||||||
{
|
}
|
||||||
SetHeaderGo2Back();
|
break;
|
||||||
|
|
||||||
$SQL2 = "SELECT * FROM `EngelType` WHERE `Name`='". $_GET["Name"]. "'";
|
case 'change' :
|
||||||
$ERG = mysql_query($SQL2, $con);
|
if (!IsSet ($_GET["TID"]))
|
||||||
|
echo "Fehlerhafter Aufruf!";
|
||||||
if( mysql_num_rows($ERG) == 1)
|
else {
|
||||||
runSQL_log( "ALTER TABLE `Room` ADD `DEFAULT_EID_". mysql_result( $ERG, 0, 0).
|
echo "Raum abändern:\n";
|
||||||
"` INT DEFAULT '0' NOT NULL;",
|
echo "Hier kannst du eintragen, den EngelType ändern.";
|
||||||
"add new EngelType in Romm Table");
|
echo "<form action=\"./EngelType.php\" method=\"GET\">\n";
|
||||||
}
|
echo "<table>\n";
|
||||||
break;
|
|
||||||
|
$SQL2 = "SELECT * FROM `EngelType` WHERE `TID`='" . $_GET["TID"] . "'";
|
||||||
case 'change':
|
$ERG = mysql_query($SQL2, $con);
|
||||||
if (! IsSet($_GET["TID"]))
|
|
||||||
echo "Fehlerhafter Aufruf!";
|
for ($Uj = 1; $Uj < mysql_num_fields($ERG); $Uj++)
|
||||||
else
|
echo "<tr><td>" . mysql_field_name($ERG, $Uj) . "</td>" .
|
||||||
{
|
"<td><input type=\"text\" size=\"40\" name=\"e" . mysql_field_name($ERG, $Uj) . "\" " .
|
||||||
echo "Raum abändern:\n";
|
"value=\"" . mysql_result($ERG, 0, $Uj) . "\"></td></tr>\n";
|
||||||
echo "Hier kannst du eintragen, den EngelType ändern.";
|
|
||||||
echo "<form action=\"./EngelType.php\" method=\"GET\">\n";
|
echo "</table>\n";
|
||||||
echo "<table>\n";
|
echo "<input type=\"hidden\" name=\"eTID\" value=\"" . $_GET["TID"] . "\">\n";
|
||||||
|
echo "<input type=\"hidden\" name=\"action\" value=\"changesave\">\n";
|
||||||
$SQL2 = "SELECT * FROM `EngelType` WHERE `TID`='". $_GET["TID"]. "'";
|
echo "<input type=\"submit\" value=\"sichern...\">\n";
|
||||||
$ERG = mysql_query($SQL2, $con);
|
echo "</form>";
|
||||||
|
echo "<form action=\"./EngelType.php\" method=\"GET\">\n";
|
||||||
for ($Uj = 1; $Uj < mysql_num_fields($ERG); $Uj++)
|
echo "<input type=\"hidden\" name=\"TID\" value=\"" . $_GET["TID"] . "\">\n";
|
||||||
echo "<tr><td>". mysql_field_name($ERG, $Uj). "</td>".
|
echo "<input type=\"hidden\" name=\"action\" value=\"delete\">\n";
|
||||||
"<td><input type=\"text\" size=\"40\" name=\"e". mysql_field_name($ERG, $Uj). "\" ".
|
echo "<input type=\"submit\" value=\"Löschen...\">";
|
||||||
"value=\"". mysql_result($ERG, 0, $Uj). "\"></td></tr>\n";
|
echo "</form>";
|
||||||
|
}
|
||||||
echo "</table>\n";
|
break;
|
||||||
echo "<input type=\"hidden\" name=\"eTID\" value=\"". $_GET["TID"]. "\">\n";
|
|
||||||
echo "<input type=\"hidden\" name=\"action\" value=\"changesave\">\n";
|
case 'changesave' :
|
||||||
echo "<input type=\"submit\" value=\"sichern...\">\n";
|
$vars = $_GET;
|
||||||
echo "</form>";
|
$count = count($vars) - 2;
|
||||||
echo "<form action=\"./EngelType.php\" method=\"GET\">\n";
|
$vars = array_splice($vars, 0, $count);
|
||||||
echo "<input type=\"hidden\" name=\"TID\" value=\"". $_GET["TID"]. "\">\n";
|
$keys = "";
|
||||||
echo "<input type=\"hidden\" name=\"action\" value=\"delete\">\n";
|
$sql = "";
|
||||||
echo "<input type=\"submit\" value=\"Löschen...\">";
|
foreach ($vars as $key => $value) {
|
||||||
echo "</form>";
|
$keys = substr($key, 1);
|
||||||
}
|
$sql .= ", `" . $keys . "`='" . $value . "'";
|
||||||
break;
|
}
|
||||||
|
runSQL_log("UPDATE `EngelType` SET " . substr($sql, 2) . " WHERE `TID`='" . $_GET["eTID"] . "'", "Save Change EngelType");
|
||||||
case 'changesave':
|
SetHeaderGo2Back();
|
||||||
$vars = $_GET;
|
break;
|
||||||
$count = count($vars) - 2;
|
|
||||||
$vars = array_splice($vars, 0, $count);
|
case 'delete' :
|
||||||
$keys="";
|
if (IsSet ($_GET["TID"])) {
|
||||||
$sql="";
|
if (runSQL_log("DELETE FROM `EngelType` WHERE `TID`='" . $_GET["TID"] . "'", "delete EngelType"))
|
||||||
foreach($vars as $key => $value)
|
runSQL_log("ALTER TABLE `Room` DROP `DEFAULT_EID_" . $_GET["TID"] . "`;", "delete EngelType in Room Table");
|
||||||
{
|
} else
|
||||||
$keys = substr( $key, 1);
|
echo "Fehlerhafter Aufruf";
|
||||||
$sql .= ", `". $keys. "`='". $value. "'";
|
SetHeaderGo2Back();
|
||||||
}
|
break;
|
||||||
runSQL_log( "UPDATE `EngelType` SET ". substr($sql, 2). " WHERE `TID`='". $_GET["eTID"]. "'",
|
}
|
||||||
"Save Change EngelType");
|
|
||||||
SetHeaderGo2Back();
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'delete':
|
|
||||||
if (IsSet($_GET["TID"]))
|
|
||||||
{
|
|
||||||
if( runSQL_log( "DELETE FROM `EngelType` WHERE `TID`='". $_GET["TID"]. "'", "delete EngelType"))
|
|
||||||
runSQL_log( "ALTER TABLE `Room` DROP `DEFAULT_EID_". $_GET["TID"]. "`;",
|
|
||||||
"delete EngelType in Room Table");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
echo "Fehlerhafter Aufruf";
|
|
||||||
SetHeaderGo2Back();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
include ("../../../camp2011/includes/footer.php");
|
include ("includes/footer.php");
|
||||||
?>
|
?>
|
||||||
|
@ -1,70 +1,69 @@
|
|||||||
<?php
|
<?php
|
||||||
|
require_once ('../bootstrap.php');
|
||||||
|
|
||||||
$title = "Engelsystem - DECT";
|
$title = "Engelsystem - DECT";
|
||||||
$header = "DECT send call";
|
$header = "DECT send call";
|
||||||
include ("../../../camp2011/includes/header.php");
|
include ("includes/header.php");
|
||||||
|
|
||||||
include ("../../../camp2011/includes/config_IAX.php");
|
include ("config/config_IAX.php");
|
||||||
//include ("../../../camp2011/includes/funktion_modem.php");
|
//include ("../../../camp2011/includes/funktion_modem.php");
|
||||||
include ("../../../camp2011/includes/funktion_cron.php");
|
include ("includes/funktion_cron.php");
|
||||||
|
|
||||||
if( !isset($_GET["dial"])) $_GET["dial"] = "";
|
if (!isset ($_GET["dial"]))
|
||||||
if( !isset($_GET["custum"])) $_GET["custum"] = "";
|
$_GET["dial"] = "";
|
||||||
|
if (!isset ($_GET["custum"]))
|
||||||
|
$_GET["custum"] = "";
|
||||||
|
|
||||||
if( $_GET["dial"]=="dial")
|
if ($_GET["dial"] == "dial") {
|
||||||
{
|
if ($_GET["DECT"] == "")
|
||||||
if( $_GET["DECT"]=="")
|
$Number = $_GET["custum"];
|
||||||
$Number = $_GET["custum"];
|
else
|
||||||
else
|
$Number = $_GET["DECT"];
|
||||||
$Number = $_GET["DECT"];
|
|
||||||
|
|
||||||
if( strlen( $_GET["timeh"])== 1)
|
if (strlen($_GET["timeh"]) == 1)
|
||||||
$_GET["timeh"] = "0". $_GET["timeh"];
|
$_GET["timeh"] = "0" . $_GET["timeh"];
|
||||||
|
|
||||||
if( strlen( $_GET["timem"])== 1)
|
if (strlen($_GET["timem"]) == 1)
|
||||||
$_GET["timem"] = "0". $_GET["timem"];
|
$_GET["timem"] = "0" . $_GET["timem"];
|
||||||
|
|
||||||
// SetWackeup( $Number, $_GET["timeh"], $_GET["timem"]);
|
// SetWackeup( $Number, $_GET["timeh"], $_GET["timem"]);
|
||||||
DialNumberIAX($Number, $_GET["timeh"], $_GET["timem"],0);
|
DialNumberIAX($Number, $_GET["timeh"], $_GET["timem"], 0);
|
||||||
|
|
||||||
$_GET["custum"] = $Number;
|
$_GET["custum"] = $Number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
echo "<form action=\"./dect.php\" method=\"GET\">\n";
|
||||||
|
echo "<table>\n";
|
||||||
|
|
||||||
echo "<form action=\"./dect.php\" method=\"GET\">\n";
|
echo "<tr><th>Number</th><th>h:m</th><th></th></tr>\n";
|
||||||
echo "<table>\n";
|
|
||||||
|
|
||||||
echo "<tr><th>Number</th><th>h:m</th><th></th></tr>\n";
|
echo "<tr><td>\n";
|
||||||
|
// Listet alle Nicks auf
|
||||||
|
echo "<select name=\"DECT\">\n";
|
||||||
|
echo "\t<option value=\"\">costum</option>\n";
|
||||||
|
|
||||||
echo "<tr><td>\n";
|
$usql = "SELECT * FROM `User` WHERE NOT `DECT`='' ORDER BY `Nick`";
|
||||||
// Listet alle Nicks auf
|
$uErg = mysql_query($usql, $con);
|
||||||
echo "<select name=\"DECT\">\n";
|
$urowcount = mysql_num_rows($uErg);
|
||||||
echo "\t<option value=\"\">costum</option>\n";
|
for ($k = 0; $k < $urowcount; $k++) {
|
||||||
|
echo "\t<option value=\"" . mysql_result($uErg, $k, "DECT") . "\">" .
|
||||||
$usql="SELECT * FROM `User` WHERE NOT `DECT`='' ORDER BY `Nick`";
|
mysql_result($uErg, $k, "Nick") .
|
||||||
$uErg = mysql_query($usql, $con);
|
" (" . mysql_result($uErg, $k, "DECT") . ")" .
|
||||||
$urowcount = mysql_num_rows($uErg);
|
"</option>\n";
|
||||||
for ($k=0; $k<$urowcount; $k++)
|
}
|
||||||
{
|
echo "</select>\n";
|
||||||
echo "\t<option value=\"".mysql_result($uErg, $k, "DECT")."\">".
|
|
||||||
mysql_result($uErg, $k, "Nick").
|
|
||||||
" (". mysql_result($uErg, $k, "DECT"). ")".
|
|
||||||
"</option>\n";
|
|
||||||
}
|
|
||||||
echo "</select>\n";
|
|
||||||
|
|
||||||
echo "<input type=\"text\" name=\"custum\" size=\"4\" maxlength=\"4\" value=\"". $_GET["custum"]. "\">\n";
|
|
||||||
echo "</td>\n";
|
|
||||||
|
|
||||||
echo "<td><input type=\"text\" name=\"timeh\" size=\"2\" maxlength=\"2\" value=\"". gmdate("H", time()+90+3600). "\">:";
|
echo "<input type=\"text\" name=\"custum\" size=\"4\" maxlength=\"4\" value=\"" . $_GET["custum"] . "\">\n";
|
||||||
echo "<input type=\"text\" name=\"timem\" size=\"2\" maxlength=\"2\" value=\"". gmdate("i", time()+90+3600). "\"></td>\n";
|
echo "</td>\n";
|
||||||
echo "<td><input type=\"submit\" name=\"dial\" value=\"dial\"></td>\n";
|
|
||||||
echo "</tr>";
|
|
||||||
echo "</table>\n";
|
|
||||||
|
|
||||||
echo "</form>";
|
echo "<td><input type=\"text\" name=\"timeh\" size=\"2\" maxlength=\"2\" value=\"" . gmdate("H", time() + 90 + 3600) . "\">:";
|
||||||
|
echo "<input type=\"text\" name=\"timem\" size=\"2\" maxlength=\"2\" value=\"" . gmdate("i", time() + 90 + 3600) . "\"></td>\n";
|
||||||
|
echo "<td><input type=\"submit\" name=\"dial\" value=\"dial\"></td>\n";
|
||||||
|
echo "</tr>";
|
||||||
|
echo "</table>\n";
|
||||||
|
|
||||||
|
echo "</form>";
|
||||||
|
|
||||||
include ("../../../camp2011/includes/footer.php");
|
include ("includes/footer.php");
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
include ("../../../camp2011/includes/header.php");
|
require_once ('../bootstrap.php');
|
||||||
|
|
||||||
|
include ("includes/header.php");
|
||||||
|
|
||||||
include ("../../../camp2011/includes/footer.php");
|
include ("includes/footer.php");
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
@ -1,49 +1,49 @@
|
|||||||
<?php
|
<?php
|
||||||
|
require_once ('../bootstrap.php');
|
||||||
|
|
||||||
$title = "User-Liste";
|
$title = "User-Liste";
|
||||||
$header = "Editieren der Engelliste";
|
$header = "Editieren der Engelliste";
|
||||||
include ("../../../camp2011/includes/header.php");
|
include ("includes/header.php");
|
||||||
include ("../../../camp2011/includes/funktion_db_list.php");
|
include ("includes/funktion_db_list.php");
|
||||||
|
|
||||||
if (!IsSet($_GET["enterGID"]))
|
if (!IsSet ($_GET["enterGID"])) {
|
||||||
{
|
// Userliste, keine UID uebergeben...
|
||||||
// Userliste, keine UID uebergeben...
|
|
||||||
|
$SQL = "SELECT * FROM `UserGroups` ORDER BY `Name` ASC";
|
||||||
$SQL = "SELECT * FROM `UserGroups` ORDER BY `Name` ASC";
|
$Erg = mysql_query($SQL, $con);
|
||||||
$Erg = mysql_query($SQL, $con);
|
echo mysql_error($con);
|
||||||
echo mysql_error($con);
|
|
||||||
|
// anzahl zeilen
|
||||||
// anzahl zeilen
|
$Zeilen = mysql_num_rows($Erg);
|
||||||
$Zeilen = mysql_num_rows($Erg);
|
|
||||||
|
echo "<table class=\"border\" cellpadding=\"2\" cellspacing=\"1\">\n";
|
||||||
echo "<table class=\"border\" cellpadding=\"2\" cellspacing=\"1\">\n";
|
echo "<tr class=\"contenttopic\">\n";
|
||||||
echo "<tr class=\"contenttopic\">\n";
|
echo "\t<td>Groupname</td>\n";
|
||||||
echo "\t<td>Groupname</td>\n";
|
echo "\t<td>Link</td>\n";
|
||||||
echo "\t<td>Link</td>\n";
|
echo "</tr>\n";
|
||||||
echo "</tr>\n";
|
|
||||||
|
for ($n = 0; $n < $Zeilen; $n++) {
|
||||||
for ($n = 0 ; $n < $Zeilen ; $n++) {
|
echo "<tr class=\"content\">\n";
|
||||||
echo "<tr class=\"content\">\n";
|
echo "\t<td>" . mysql_result($Erg, $n, "Name") . "</td>\n";
|
||||||
echo "\t<td>".mysql_result($Erg, $n, "Name")."</td>\n";
|
|
||||||
|
echo "<td><a href=\"./userChangeSecure.php?enterUID=" .
|
||||||
echo "<td><a href=\"./userChangeSecure.php?enterUID=".
|
mysql_result($Erg, $n, "UID") . "&Type=Secure\">change</a></td>\n";
|
||||||
mysql_result($Erg, $n, "UID")."&Type=Secure\">change</a></td>\n";
|
echo "</tr>\n";
|
||||||
echo "</tr>\n";
|
}
|
||||||
}
|
|
||||||
|
// new form
|
||||||
// new form
|
echo "<tr class=\"content\">\n";
|
||||||
echo "<tr class=\"content\">\n";
|
echo "\t<form action=\"userSaveSecure.php?new=newGroup\" method=\"POST\">\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 name=\"GroupName\" type=\"text\" value=\"--new group--\"></td>\n";
|
echo "\t\t<td><input type=\"submit\" name=\"Send\" value=\"Save\"></td>\n";
|
||||||
echo "\t\t<td><input type=\"submit\" name=\"Send\" value=\"Save\"></td>\n";
|
echo "\t</form>\n";
|
||||||
echo "\t</form>\n";
|
echo "</tr>\n";
|
||||||
echo "</tr>\n";
|
|
||||||
|
echo "\t</table>\n";
|
||||||
echo "\t</table>\n";
|
// Ende Userliste
|
||||||
// Ende Userliste
|
|
||||||
}
|
}
|
||||||
|
|
||||||
include ("../../../camp2011/includes/footer.php");
|
include ("includes/footer.php");
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,199 +1,180 @@
|
|||||||
<?php
|
<?php
|
||||||
|
require_once ('../bootstrap.php');
|
||||||
|
|
||||||
$title = "Räume";
|
$title = "Räume";
|
||||||
$header = "Verwaltung der Räume";
|
$header = "Verwaltung der Räume";
|
||||||
include ("../../../camp2011/includes/header.php");
|
include ("includes/header.php");
|
||||||
include ("../../../camp2011/includes/funktion_schichtplan_aray.php");
|
include ("funktion_schichtplan_aray.php");
|
||||||
|
|
||||||
$Sql = "SELECT * FROM `Room` ORDER BY `Number`, `Name`";
|
$Sql = "SELECT * FROM `Room` ORDER BY `Number`, `Name`";
|
||||||
$Erg = mysql_query($Sql, $con);
|
$Erg = mysql_query($Sql, $con);
|
||||||
|
|
||||||
if( !IsSet($_GET["action"]) )
|
if (!IsSet ($_GET["action"])) {
|
||||||
{
|
echo "Hallo " . $_SESSION['Nick'] .
|
||||||
echo "Hallo ".$_SESSION['Nick'].
|
",<br />\nhier hast du die Möglichkeit, neue Räume für die Schichtpläne einzutragen " .
|
||||||
",<br />\nhier hast du die Möglichkeit, neue Räume für die Schichtpläne einzutragen ".
|
"oder vorhandene abzuändern:<br /><br />\n";
|
||||||
"oder vorhandene abzuändern:<br /><br />\n";
|
|
||||||
|
echo "<a href=\"./room.php?action=new\">- Neuen Raum/Ort eintragen</a><br />\n";
|
||||||
echo "<a href=\"./room.php?action=new\">- Neuen Raum/Ort eintragen</a><br />\n";
|
|
||||||
|
echo "<table width=\"100%\" class=\"border\" cellpadding=\"2\" cellspacing=\"1\">\n";
|
||||||
echo "<table width=\"100%\" class=\"border\" cellpadding=\"2\" cellspacing=\"1\">\n";
|
echo "<tr class=\"contenttopic\">\n";
|
||||||
echo "<tr class=\"contenttopic\">\n";
|
|
||||||
|
for ($i = 1; $i < mysql_num_fields($Erg); $i++) {
|
||||||
for( $i = 1; $i < mysql_num_fields($Erg); $i++ )
|
if (substr(mysql_field_name($Erg, $i), 0, 12) == "DEFAULT_EID_")
|
||||||
{
|
echo "\t<td> Anzahl " . $EngelTypeID[substr(mysql_field_name($Erg, $i), 12)] . "</td>";
|
||||||
if( substr( mysql_field_name($Erg, $i), 0, 12) == "DEFAULT_EID_")
|
else
|
||||||
echo "\t<td> Anzahl ". $EngelTypeID[substr( mysql_field_name($Erg, $i), 12)]. "</td>";
|
echo "\t<td>" . mysql_field_name($Erg, $i) . "</td>";
|
||||||
else
|
}
|
||||||
echo "\t<td>". mysql_field_name($Erg, $i)."</td>";
|
echo "\t<td>Ändern</td>";
|
||||||
}
|
echo "</tr>";
|
||||||
echo "\t<td>Ändern</td>";
|
|
||||||
echo "</tr>";
|
for ($t = 0; $t < mysql_num_rows($Erg); $t++) {
|
||||||
|
echo "\t<tr class=\"content\">\n";
|
||||||
for( $t = 0; $t < mysql_num_rows($Erg); $t++ )
|
for ($j = 1; $j < mysql_num_fields($Erg); $j++) {
|
||||||
{
|
echo "\t\t<td>" . mysql_result($Erg, $t, $j) . "</td>\n";
|
||||||
echo "\t<tr class=\"content\">\n";
|
}
|
||||||
for ($j = 1; $j < mysql_num_fields($Erg); $j++)
|
echo "\t\t<td><a href=\"./room.php?action=change&RID=" . mysql_result($Erg, $t, "RID") . "\">###</a></td>\n";
|
||||||
{
|
echo "\t</tr>\n";
|
||||||
echo "\t\t<td>".mysql_result($Erg, $t, $j)."</td>\n";
|
} // ende Auflistung Raeume
|
||||||
}
|
echo "</table>";
|
||||||
echo "\t\t<td><a href=\"./room.php?action=change&RID=".mysql_result($Erg, $t, "RID")."\">###</a></td>\n";
|
} else {
|
||||||
echo "\t</tr>\n";
|
|
||||||
} // ende Auflistung Raeume
|
UnSet ($SQL);
|
||||||
echo "</table>";
|
|
||||||
}
|
switch ($_GET["action"]) {
|
||||||
else
|
|
||||||
{
|
case 'new' :
|
||||||
|
echo "Neuen Raum einrichten: <br />";
|
||||||
UnSet($SQL);
|
echo "<form action=\"./room.php\" method=\"GET\">\n";
|
||||||
|
echo "<table>\n";
|
||||||
switch ($_GET["action"]) {
|
|
||||||
|
for ($Uj = 1; $Uj < mysql_num_fields($Erg); $Uj++) {
|
||||||
case 'new':
|
if ((mysql_field_name($Erg, $Uj) == "show") || (mysql_field_name($Erg, $Uj) == "FromPentabarf")) {
|
||||||
echo "Neuen Raum einrichten: <br />";
|
echo "<tr><td>" . mysql_field_name($Erg, $Uj) . "</td>" .
|
||||||
echo "<form action=\"./room.php\" method=\"GET\">\n";
|
"<td>" .
|
||||||
echo "<table>\n";
|
"<input type=\"radio\" name=\"" . mysql_field_name($Erg, $Uj) . "\" value=\"Y\">Yes" .
|
||||||
|
"<input type=\"radio\" name=\"" . mysql_field_name($Erg, $Uj) . "\" value=\"N\">No" .
|
||||||
for( $Uj = 1; $Uj < mysql_num_fields($Erg); $Uj++ )
|
"</td></tr>\n";
|
||||||
{
|
} else {
|
||||||
if( (mysql_field_name($Erg, $Uj) == "show") || (mysql_field_name($Erg, $Uj) == "FromPentabarf") )
|
//sonderfall fuer Default Engel
|
||||||
{
|
if (substr(mysql_field_name($Erg, $Uj), 0, 12) == "DEFAULT_EID_")
|
||||||
echo "<tr><td>". mysql_field_name($Erg, $Uj). "</td>".
|
$FeldName = "Anzahl " . $EngelTypeID[substr(mysql_field_name($Erg, $Uj), 12)];
|
||||||
"<td>".
|
else
|
||||||
"<input type=\"radio\" name=\"". mysql_field_name($Erg, $Uj). "\" value=\"Y\">Yes".
|
$FeldName = mysql_field_name($Erg, $Uj);
|
||||||
"<input type=\"radio\" name=\"". mysql_field_name($Erg, $Uj). "\" value=\"N\">No".
|
|
||||||
"</td></tr>\n";
|
echo "<td>$FeldName</td>" .
|
||||||
}
|
"<td><input type=\"text\" size=\"40\" name=\"" . mysql_field_name($Erg, $Uj) . "\">";
|
||||||
else
|
echo "</td></tr>\n";
|
||||||
{
|
}
|
||||||
//sonderfall fuer Default Engel
|
}
|
||||||
if( substr( mysql_field_name($Erg, $Uj), 0, 12) == "DEFAULT_EID_")
|
echo "</table>\n";
|
||||||
$FeldName = "Anzahl ". $EngelTypeID[substr( mysql_field_name($Erg, $Uj), 12)];
|
echo "<input type=\"hidden\" name=\"action\" value=\"newsave\">\n";
|
||||||
else
|
echo "<input type=\"submit\" value=\"sichern...\">\n";
|
||||||
$FeldName = mysql_field_name($Erg, $Uj);
|
echo "</form>";
|
||||||
|
break;
|
||||||
echo "<td>$FeldName</td>".
|
|
||||||
"<td><input type=\"text\" size=\"40\" name=\"".mysql_field_name($Erg, $Uj)."\">";
|
case 'newsave' :
|
||||||
echo "</td></tr>\n";
|
$vars = $_GET;
|
||||||
}
|
$count = count($vars) - 1;
|
||||||
}
|
$vars = array_splice($vars, 0, $count);
|
||||||
echo "</table>\n";
|
$Keys = "";
|
||||||
echo "<input type=\"hidden\" name=\"action\" value=\"newsave\">\n";
|
$Values = "";
|
||||||
echo "<input type=\"submit\" value=\"sichern...\">\n";
|
foreach ($vars as $key => $value) {
|
||||||
echo "</form>";
|
$Keys .= ", `$key`";
|
||||||
break;
|
$Values .= ", '$value'";
|
||||||
|
}
|
||||||
case 'newsave':
|
$SQL = "INSERT INTO `Room` (" . substr($Keys, 2) . ") VALUES (" . substr($Values, 2) . ")";
|
||||||
$vars = $_GET;
|
SetHeaderGo2Back();
|
||||||
$count = count($vars) - 1;
|
break;
|
||||||
$vars = array_splice($vars, 0, $count);
|
|
||||||
$Keys = "";
|
case 'change' :
|
||||||
$Values = "";
|
if (!IsSet ($_GET["RID"]))
|
||||||
foreach($vars as $key => $value)
|
echo "Fehlerhafter Aufruf!";
|
||||||
{
|
else {
|
||||||
$Keys .= ", `$key`";
|
$SQL2 = "SELECT * FROM `Room` WHERE `RID`='" . $_GET["RID"] . "'";
|
||||||
$Values .= ", '$value'";
|
$ERG = mysql_query($SQL2, $con);
|
||||||
}
|
|
||||||
$SQL = "INSERT INTO `Room` (". substr( $Keys, 2). ") VALUES (". substr( $Values, 2). ")";
|
if (mysql_num_rows($ERG) > 0) {
|
||||||
SetHeaderGo2Back();
|
echo "Raum abändern:\n";
|
||||||
break;
|
echo "Hier kannst du eintragen, welche und wieviele Engel für den Raum zur Verf?gung stehen müssen.";
|
||||||
|
echo "<form action=\"./room.php\" method=\"GET\">\n";
|
||||||
case 'change':
|
echo "<table>\n";
|
||||||
if (! IsSet($_GET["RID"]))
|
|
||||||
echo "Fehlerhafter Aufruf!";
|
for ($Uj = 1; $Uj < mysql_num_fields($ERG); $Uj++) {
|
||||||
else
|
if ((mysql_field_name($ERG, $Uj) == "show") || (mysql_field_name($ERG, $Uj) == "FromPentabarf")) {
|
||||||
{
|
echo "<tr><td>" . mysql_field_name($Erg, $Uj) . "</td>" .
|
||||||
$SQL2 = "SELECT * FROM `Room` WHERE `RID`='". $_GET["RID"]. "'";
|
"<td>" .
|
||||||
$ERG = mysql_query($SQL2, $con);
|
"<input type=\"radio\" name=\"e" . mysql_field_name($ERG, $Uj) .
|
||||||
|
"\" value=\"Y\"" . (mysql_result($ERG, 0, $Uj) == 'Y' ? " checked" : "") . ">Yes" .
|
||||||
if( mysql_num_rows( $ERG)>0)
|
"<input type=\"radio\" name=\"e" . mysql_field_name($ERG, $Uj) .
|
||||||
{
|
"\" value=\"N\"" . (mysql_result($ERG, 0, $Uj) == 'N' ? " checked" : "") . ">No" .
|
||||||
echo "Raum abändern:\n";
|
"</td></tr>\n";
|
||||||
echo "Hier kannst du eintragen, welche und wieviele Engel für den Raum zur Verf?gung stehen müssen.";
|
} else {
|
||||||
echo "<form action=\"./room.php\" method=\"GET\">\n";
|
if (substr(mysql_field_name($ERG, $Uj), 0, 12) == "DEFAULT_EID_")
|
||||||
echo "<table>\n";
|
//sonderfall fuer Default Engel
|
||||||
|
$FeldName = "Anzahl " . $EngelTypeID[substr(mysql_field_name($ERG, $Uj), 12)];
|
||||||
for ($Uj = 1; $Uj < mysql_num_fields($ERG); $Uj++)
|
else
|
||||||
{
|
$FeldName = mysql_field_name($ERG, $Uj);
|
||||||
if( (mysql_field_name($ERG, $Uj) == "show") || (mysql_field_name($ERG, $Uj) == "FromPentabarf") )
|
echo "<tr><td>$FeldName</td>" .
|
||||||
{
|
"<td><input type=\"text\" size=\"40\" name=\"e" . mysql_field_name($ERG, $Uj) . "\" " .
|
||||||
echo "<tr><td>". mysql_field_name($Erg, $Uj). "</td>".
|
"value=\"" . mysql_result($ERG, 0, $Uj) . "\">" .
|
||||||
"<td>".
|
"</td></tr>\n";
|
||||||
"<input type=\"radio\" name=\"e". mysql_field_name($ERG, $Uj).
|
}
|
||||||
"\" value=\"Y\"". (mysql_result($ERG, 0, $Uj)=='Y'? " checked":""). ">Yes".
|
}
|
||||||
"<input type=\"radio\" name=\"e". mysql_field_name($ERG, $Uj).
|
echo "</table>\n";
|
||||||
"\" value=\"N\"". (mysql_result($ERG, 0, $Uj)=='N'? " checked":""). ">No".
|
echo "<input type=\"hidden\" name=\"eRID\" value=\"" . $_GET["RID"] . "\">\n";
|
||||||
"</td></tr>\n";
|
echo "<input type=\"hidden\" name=\"action\" value=\"changesave\">\n";
|
||||||
}
|
echo "<input type=\"submit\" value=\"sichern...\">\n";
|
||||||
else
|
echo "</form>";
|
||||||
{
|
echo "<form action=\"./room.php\" method=\"GET\">\n";
|
||||||
if( substr( mysql_field_name($ERG, $Uj), 0, 12) == "DEFAULT_EID_")
|
echo "<input type=\"hidden\" name=\"RID\" value=\"" . $_GET["RID"] . "\">\n";
|
||||||
//sonderfall fuer Default Engel
|
echo "<input type=\"hidden\" name=\"action\" value=\"delete\">\n";
|
||||||
$FeldName = "Anzahl ". $EngelTypeID[substr( mysql_field_name($ERG, $Uj), 12)];
|
echo "<input type=\"submit\" value=\"Löschen...\">";
|
||||||
else
|
echo "</form>";
|
||||||
$FeldName = mysql_field_name($ERG, $Uj);
|
} else
|
||||||
echo "<tr><td>$FeldName</td>".
|
echo "FEHLER: Room ID " . $_GET["RID"] . " nicht gefunden";
|
||||||
"<td><input type=\"text\" size=\"40\" name=\"e".mysql_field_name($ERG, $Uj)."\" ".
|
}
|
||||||
"value=\"".mysql_result($ERG, 0, $Uj)."\">".
|
break;
|
||||||
"</td></tr>\n";
|
|
||||||
}
|
case 'changesave' :
|
||||||
}
|
$sql = "";
|
||||||
echo "</table>\n";
|
$vars = $_GET;
|
||||||
echo "<input type=\"hidden\" name=\"eRID\" value=\"". $_GET["RID"]. "\">\n";
|
$count = count($vars) - 2;
|
||||||
echo "<input type=\"hidden\" name=\"action\" value=\"changesave\">\n";
|
$vars = array_splice($vars, 0, $count);
|
||||||
echo "<input type=\"submit\" value=\"sichern...\">\n";
|
foreach ($vars as $key => $value) {
|
||||||
echo "</form>";
|
$keys = substr($key, 1);
|
||||||
echo "<form action=\"./room.php\" method=\"GET\">\n";
|
$sql .= ", `" . $keys . "`='" . $value . "' ";
|
||||||
echo "<input type=\"hidden\" name=\"RID\" value=\"". $_GET["RID"]. "\">\n";
|
}
|
||||||
echo "<input type=\"hidden\" name=\"action\" value=\"delete\">\n";
|
$SQL = "UPDATE `Room` SET " . substr($sql, 2) . " WHERE `RID`='" . $_GET["eRID"] . "'";
|
||||||
echo "<input type=\"submit\" value=\"Löschen...\">";
|
SetHeaderGo2Back();
|
||||||
echo "</form>";
|
break;
|
||||||
}
|
|
||||||
else
|
case 'delete' :
|
||||||
echo "FEHLER: Room ID ". $_GET["RID"]. " nicht gefunden";
|
if (IsSet ($_GET["RID"])) {
|
||||||
}
|
$SQL = "DELETE FROM `Room` WHERE `RID`='" . $_GET["RID"] . "'";
|
||||||
break;
|
} else {
|
||||||
|
echo "Fehlerhafter Aufruf";
|
||||||
case 'changesave':
|
}
|
||||||
$sql="";
|
SetHeaderGo2Back();
|
||||||
$vars = $_GET;
|
break;
|
||||||
$count = count($vars) - 2;
|
|
||||||
$vars = array_splice($vars, 0, $count);
|
} //switch
|
||||||
foreach($vars as $key => $value)
|
|
||||||
{
|
// Update ???
|
||||||
$keys = substr($key,1);
|
|
||||||
$sql .= ", `".$keys."`='".$value."' ";
|
if (IsSet ($SQL)) {
|
||||||
}
|
// echo $SQL;
|
||||||
$SQL = "UPDATE `Room` SET ". substr($sql, 2). " WHERE `RID`='". $_GET["eRID"]. "'";
|
// hier muesste das SQL ausgefuehrt werden...
|
||||||
SetHeaderGo2Back();
|
$Erg = db_query($SQL, "exec SQL");
|
||||||
break;
|
if ($Erg == 1)
|
||||||
|
echo "Änderung wurde gesichert...<br />";
|
||||||
case 'delete':
|
else {
|
||||||
if (IsSet($_GET["RID"])) {
|
echo "Fehler beim speichern... bitte noch ein mal probieren :)";
|
||||||
$SQL="DELETE FROM `Room` WHERE `RID`='". $_GET["RID"]. "'";
|
echo "<br /><br />" . mysql_error($con) . "<br />($SQL)<br />";
|
||||||
} else {
|
}
|
||||||
echo "Fehlerhafter Aufruf";
|
} // Ende Update
|
||||||
}
|
|
||||||
SetHeaderGo2Back();
|
|
||||||
break;
|
|
||||||
|
|
||||||
} //switch
|
|
||||||
|
|
||||||
|
|
||||||
// Update ???
|
|
||||||
|
|
||||||
if (IsSet($SQL)){
|
|
||||||
// echo $SQL;
|
|
||||||
// hier muesste das SQL ausgefuehrt werden...
|
|
||||||
$Erg = db_query($SQL, "exec SQL");
|
|
||||||
if ($Erg == 1)
|
|
||||||
echo "Änderung wurde gesichert...<br />";
|
|
||||||
else
|
|
||||||
{
|
|
||||||
echo "Fehler beim speichern... bitte noch ein mal probieren :)";
|
|
||||||
echo "<br /><br />".mysql_error( $con ). "<br />($SQL)<br />";
|
|
||||||
}
|
|
||||||
} // Ende Update
|
|
||||||
|
|
||||||
} //IF IsSet($action)
|
} //IF IsSet($action)
|
||||||
|
|
||||||
include ("../../../camp2011/includes/footer.php");
|
include ("includes/footer.php");
|
||||||
?>
|
?>
|
||||||
|
@ -1,122 +1,110 @@
|
|||||||
<?php
|
<?php
|
||||||
|
require_once ('../bootstrap.php');
|
||||||
|
|
||||||
$title = "Sprache";
|
$title = "Sprache";
|
||||||
$header = "Liste der existierenden Sprcheinträge";
|
$header = "Liste der existierenden Sprcheinträge";
|
||||||
include ("../../../camp2011/includes/header.php");
|
include ("includes/header.php");
|
||||||
|
|
||||||
|
if (!isset ($_GET["TextID"])) {
|
||||||
if( !isset( $_GET["TextID"] ) )
|
echo Get_Text("Hello") . $_SESSION['Nick'] . ", <br />\n";
|
||||||
{
|
echo Get_Text("pub_sprache_text1") . "<br /><br />\n";
|
||||||
echo Get_Text("Hello").$_SESSION['Nick'].", <br />\n";
|
|
||||||
echo Get_Text("pub_sprache_text1")."<br /><br />\n";
|
echo "<a href=\"?ShowEntry=y\">" . Get_Text("pub_sprache_ShowEntry") . "</a>";
|
||||||
|
// ausgabe Tabellenueberschift
|
||||||
echo "<a href=\"?ShowEntry=y\">". Get_Text("pub_sprache_ShowEntry"). "</a>";
|
$SQL_Sprachen = "SELECT `Sprache` FROM `Sprache` GROUP BY `Sprache`;";
|
||||||
// ausgabe Tabellenueberschift
|
$erg_Sprachen = mysql_query($SQL_Sprachen, $con);
|
||||||
$SQL_Sprachen = "SELECT `Sprache` FROM `Sprache` GROUP BY `Sprache`;";
|
echo mysql_error($con);
|
||||||
$erg_Sprachen = mysql_query($SQL_Sprachen, $con);
|
|
||||||
echo mysql_error($con);
|
for ($i = 0; $i < mysql_num_rows($erg_Sprachen); $i++)
|
||||||
|
$Sprachen[mysql_result($erg_Sprachen, $i, "Sprache")] = $i;
|
||||||
for( $i=0; $i<mysql_num_rows( $erg_Sprachen ); $i++ )
|
|
||||||
$Sprachen[mysql_result( $erg_Sprachen, $i, "Sprache" )] = $i;
|
echo "\t<table border=\"0\" class=\"border\" cellpadding=\"2\" cellspacing=\"1\">\n\t\t<tr>";
|
||||||
|
echo "\t\t<td class=\"contenttopic\"><b>" . Get_Text("pub_sprache_TextID") . "</b></td>";
|
||||||
echo "\t<table border=\"0\" class=\"border\" cellpadding=\"2\" cellspacing=\"1\">\n\t\t<tr>";
|
foreach ($Sprachen as $Name => $Value)
|
||||||
echo "\t\t<td class=\"contenttopic\"><b>". Get_Text("pub_sprache_TextID"). "</b></td>";
|
echo "<td class=\"contenttopic\"><b>" .
|
||||||
foreach( $Sprachen as $Name => $Value )
|
Get_Text("pub_sprache_Sprache") . " " . $Name .
|
||||||
echo "<td class=\"contenttopic\"><b>".
|
"</b></td>";
|
||||||
Get_Text("pub_sprache_Sprache"). " ". $Name.
|
echo "\t\t<td class=\"contenttopic\"><b>" . Get_Text("pub_sprache_Edit") . "</b></td>";
|
||||||
"</b></td>";
|
echo "\t\t</tr>";
|
||||||
echo "\t\t<td class=\"contenttopic\"><b>". Get_Text("pub_sprache_Edit"). "</b></td>";
|
|
||||||
echo "\t\t</tr>";
|
if (isset ($_GET["ShowEntry"])) {
|
||||||
|
// ausgabe eintraege
|
||||||
|
$SQL = "SELECT * FROM `Sprache` ORDER BY `TextID`;";
|
||||||
if( isset($_GET["ShowEntry"]))
|
$erg = mysql_query($SQL, $con);
|
||||||
{
|
echo mysql_error($con);
|
||||||
// ausgabe eintraege
|
|
||||||
$SQL = "SELECT * FROM `Sprache` ORDER BY `TextID`;";
|
$TextID_Old = mysql_result($erg, 0, "TextID");
|
||||||
$erg = mysql_query($SQL, $con);
|
for ($i = 0; $i < mysql_num_rows($erg); $i++) {
|
||||||
echo mysql_error($con);
|
$TextID_New = mysql_result($erg, $i, "TextID");
|
||||||
|
if ($TextID_Old != $TextID_New) {
|
||||||
$TextID_Old = mysql_result( $erg, 0, "TextID" );
|
echo "<form action=\"sprache.php\">";
|
||||||
for( $i=0; $i<mysql_num_rows( $erg ); $i++ )
|
echo "<tr class=\"content\">\n";
|
||||||
{
|
echo "\t\t<td>$TextID_Old " .
|
||||||
$TextID_New = mysql_result( $erg, $i, "TextID" );
|
"<input name=\"TextID\" type=\"hidden\" value=\"$TextID_Old\"> </td>\n";
|
||||||
if( $TextID_Old != $TextID_New )
|
|
||||||
{
|
foreach ($Sprachen as $Name => $Value) {
|
||||||
echo "<form action=\"sprache.php\">";
|
$Value = html_entity_decode($Value, ENT_QUOTES);
|
||||||
echo "<tr class=\"content\">\n";
|
echo "\t\t<td><textarea name=\"$Name\" cols=\"22\" rows=\"8\">$Value</textarea></td>\n";
|
||||||
echo "\t\t<td>$TextID_Old ".
|
$Sprachen[$Name] = "";
|
||||||
"<input name=\"TextID\" type=\"hidden\" value=\"$TextID_Old\"> </td>\n";
|
}
|
||||||
|
|
||||||
foreach( $Sprachen as $Name => $Value )
|
echo "\t\t<td><input type=\"submit\" value=\"Save\"></td>\n";
|
||||||
{
|
echo "</tr>";
|
||||||
$Value = html_entity_decode( $Value, ENT_QUOTES);
|
echo "</form>\n";
|
||||||
echo "\t\t<td><textarea name=\"$Name\" cols=\"22\" rows=\"8\">$Value</textarea></td>\n";
|
$TextID_Old = $TextID_New;
|
||||||
$Sprachen[ $Name ] = "";
|
}
|
||||||
}
|
$Sprachen[mysql_result($erg, $i, "Sprache")] = mysql_result($erg, $i, "Text");
|
||||||
|
} /*FOR*/
|
||||||
echo "\t\t<td><input type=\"submit\" value=\"Save\"></td>\n";
|
}
|
||||||
echo "</tr>";
|
|
||||||
echo "</form>\n";
|
//fuer neu eintraege
|
||||||
$TextID_Old = $TextID_New;
|
echo "<form action=\"sprache.php\">";
|
||||||
}
|
echo "<tr class=\"content\">\n";
|
||||||
$Sprachen[ mysql_result( $erg, $i, "Sprache" ) ] = mysql_result( $erg, $i, "Text" );
|
echo "\t\t<td><input name=\"TextID\" type=\"text\" size=\"40\" value=\"new\"> </td>\n";
|
||||||
} /*FOR*/
|
|
||||||
}
|
foreach ($Sprachen as $Name => $Value)
|
||||||
|
echo "\t\t<td><textarea name=\"$Name\" cols=\"22\" rows=\"8\">$Name Text</textarea></td>\n";
|
||||||
//fuer neu eintraege
|
|
||||||
echo "<form action=\"sprache.php\">";
|
echo "\t\t<td><input type=\"submit\" value=\"Save\"></td>\n";
|
||||||
echo "<tr class=\"content\">\n";
|
echo "</tr>";
|
||||||
echo "\t\t<td><input name=\"TextID\" type=\"text\" size=\"40\" value=\"new\"> </td>\n";
|
echo "</form>\n";
|
||||||
|
|
||||||
foreach( $Sprachen as $Name => $Value )
|
echo "</table>\n";
|
||||||
echo "\t\t<td><textarea name=\"$Name\" cols=\"22\" rows=\"8\">$Name Text</textarea></td>\n";
|
|
||||||
|
|
||||||
echo "\t\t<td><input type=\"submit\" value=\"Save\"></td>\n";
|
|
||||||
echo "</tr>";
|
|
||||||
echo "</form>\n";
|
|
||||||
|
|
||||||
|
|
||||||
echo "</table>\n";
|
|
||||||
} /*if( !isset( $TextID ) )*/
|
} /*if( !isset( $TextID ) )*/
|
||||||
else
|
else {
|
||||||
{
|
echo "edit: " . $_GET["TextID"] . "<br /><br />";
|
||||||
echo "edit: ". $_GET["TextID"]. "<br /><br />";
|
foreach ($_GET as $k => $v) {
|
||||||
foreach ($_GET as $k => $v) {
|
if ($k != "TextID") {
|
||||||
if( $k != "TextID" )
|
$sql_test = "SELECT * FROM `Sprache` " .
|
||||||
{
|
"WHERE `TextID`='" . $_GET["TextID"] . "' AND `Sprache`='$k'";
|
||||||
$sql_test = "SELECT * FROM `Sprache` ".
|
$erg_test = mysql_query($sql_test, $con);
|
||||||
"WHERE `TextID`='". $_GET["TextID"]. "' AND `Sprache`='$k'";
|
|
||||||
$erg_test = mysql_query($sql_test, $con);
|
if (mysql_num_rows($erg_test) == 0) {
|
||||||
|
$sql_save = "INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) " .
|
||||||
if( mysql_num_rows($erg_test)==0 )
|
"VALUES ('" . $_GET["TextID"] . "', '$k', '$v')";
|
||||||
{
|
echo $sql_save . "<br />";
|
||||||
$sql_save = "INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) ".
|
$Erg = mysql_query($sql_save, $con);
|
||||||
"VALUES ('". $_GET["TextID"]. "', '$k', '$v')";
|
if ($Erg == 1)
|
||||||
echo $sql_save."<br />";
|
echo "\t $k Save: OK<br />\n";
|
||||||
$Erg = mysql_query($sql_save, $con);
|
else
|
||||||
if ($Erg == 1)
|
echo "\t $k Save: KO<br />\n";
|
||||||
echo "\t $k Save: OK<br />\n";
|
} else
|
||||||
else
|
if (mysql_result($erg_test, 0, "Text") != $v) {
|
||||||
echo "\t $k Save: KO<br />\n";
|
$sql_save = "UPDATE `Sprache` SET `Text`='$v' " .
|
||||||
}
|
"WHERE `TextID`='" . $_GET["TextID"] . "' AND `Sprache`='$k' ";
|
||||||
else if( mysql_result($erg_test, 0, "Text")!=$v )
|
echo $sql_save . "<br />";
|
||||||
{
|
$Erg = mysql_query($sql_save, $con);
|
||||||
$sql_save = "UPDATE `Sprache` SET `Text`='$v' ".
|
if ($Erg == 1)
|
||||||
"WHERE `TextID`='". $_GET["TextID"]. "' AND `Sprache`='$k' ";
|
echo "\t $k Update: OK<br />\n";
|
||||||
echo $sql_save."<br />";
|
else
|
||||||
$Erg = mysql_query($sql_save, $con);
|
echo "\t $k Update: KO<br />\n";
|
||||||
if ($Erg == 1)
|
} else
|
||||||
echo "\t $k Update: OK<br />\n";
|
echo "\t $k no changes<br />\n";
|
||||||
else
|
}
|
||||||
echo "\t $k Update: KO<br />\n";
|
}
|
||||||
}
|
|
||||||
else
|
|
||||||
echo "\t $k no changes<br />\n";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
include ("../../../camp2011/includes/footer.php");
|
include ("includes/footer.php");
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
@ -1,137 +1,133 @@
|
|||||||
<?php
|
<?php
|
||||||
|
require_once ('../bootstrap.php');
|
||||||
|
|
||||||
$title = "User-Liste";
|
$title = "User-Liste";
|
||||||
$header = "Editieren der Engelliste";
|
$header = "Editieren der Engelliste";
|
||||||
include ("../../../camp2011/includes/header.php");
|
include ("includes/header.php");
|
||||||
include ("../../../camp2011/includes/funktion_db_list.php");
|
include ("includes/funktion_db_list.php");
|
||||||
|
|
||||||
if (IsSet($_GET["enterUID"]))
|
if (IsSet ($_GET["enterUID"])) {
|
||||||
{
|
// UserID wurde mit uebergeben --> Aendern...
|
||||||
// UserID wurde mit uebergeben --> Aendern...
|
|
||||||
|
echo "Hallo,<br />" .
|
||||||
echo "Hallo,<br />".
|
"hier kannst du den Eintrag ändern. Unter dem Punkt 'Gekommen' " .
|
||||||
"hier kannst du den Eintrag ändern. Unter dem Punkt 'Gekommen' ".
|
"wird der Engel als anwesend markiert, ein Ja bei Aktiv bedeutet, " .
|
||||||
"wird der Engel als anwesend markiert, ein Ja bei Aktiv bedeutet, ".
|
"dass der Engel aktiv war und damit ein Anspruch auf ein T-Shirt hat. " .
|
||||||
"dass der Engel aktiv war und damit ein Anspruch auf ein T-Shirt hat. ".
|
"Wenn T-Shirt ein 'Ja' enthält, bedeutet dies, dass der Engel " .
|
||||||
"Wenn T-Shirt ein 'Ja' enthält, bedeutet dies, dass der Engel ".
|
"bereits sein T-Shirt erhalten hat.<br /><br />\n";
|
||||||
"bereits sein T-Shirt erhalten hat.<br /><br />\n";
|
|
||||||
|
echo "<form action=\"./userSaveNormal.php?action=change\" method=\"POST\">\n";
|
||||||
echo "<form action=\"./userSaveNormal.php?action=change\" method=\"POST\">\n";
|
echo "<table border=\"0\">\n";
|
||||||
echo "<table border=\"0\">\n";
|
echo "<input type=\"hidden\" name=\"Type\" value=\"Normal\">\n";
|
||||||
echo "<input type=\"hidden\" name=\"Type\" value=\"Normal\">\n";
|
|
||||||
|
$SQL = "SELECT * FROM `User` WHERE `UID`='" . $_GET["enterUID"] . "'";
|
||||||
$SQL = "SELECT * FROM `User` WHERE `UID`='". $_GET["enterUID"]. "'";
|
$Erg = mysql_query($SQL, $con);
|
||||||
$Erg = mysql_query($SQL, $con);
|
|
||||||
|
if (mysql_num_rows($Erg) != 1)
|
||||||
if (mysql_num_rows($Erg) != 1)
|
echo "<tr><td>Sorry, der Engel (UID=" . $_GET["enterUID"] .
|
||||||
echo "<tr><td>Sorry, der Engel (UID=". $_GET["enterUID"].
|
") wurde in der Liste nicht gefunden.</td></tr>";
|
||||||
") wurde in der Liste nicht gefunden.</td></tr>";
|
else {
|
||||||
else
|
echo "<tr><td>\n";
|
||||||
{
|
echo "<table>\n";
|
||||||
echo "<tr><td>\n";
|
echo " <tr><td>Nick</td><td>" .
|
||||||
echo "<table>\n";
|
"<input type=\"text\" size=\"40\" name=\"eNick\" value=\"" .
|
||||||
echo " <tr><td>Nick</td><td>".
|
mysql_result($Erg, 0, "Nick") . "\"></td></tr>\n";
|
||||||
"<input type=\"text\" size=\"40\" name=\"eNick\" value=\"".
|
echo " <tr><td>lastLogIn</td><td>" .
|
||||||
mysql_result($Erg, 0, "Nick")."\"></td></tr>\n";
|
"<input type=\"text\" size=\"20\" name=\"elastLogIn\" value=\"" .
|
||||||
echo " <tr><td>lastLogIn</td><td>".
|
mysql_result($Erg, 0, "lastLogIn") . "\" disabled></td></tr>\n";
|
||||||
"<input type=\"text\" size=\"20\" name=\"elastLogIn\" value=\"".
|
echo " <tr><td>Name</td><td>" .
|
||||||
mysql_result($Erg, 0, "lastLogIn"). "\" disabled></td></tr>\n";
|
"<input type=\"text\" size=\"40\" name=\"eName\" value=\"" .
|
||||||
echo " <tr><td>Name</td><td>".
|
mysql_result($Erg, 0, "Name") . "\"></td></tr>\n";
|
||||||
"<input type=\"text\" size=\"40\" name=\"eName\" value=\"".
|
echo " <tr><td>Vorname</td><td>" .
|
||||||
mysql_result($Erg, 0, "Name")."\"></td></tr>\n";
|
"<input type=\"text\" size=\"40\" name=\"eVorname\" value=\"" .
|
||||||
echo " <tr><td>Vorname</td><td>".
|
mysql_result($Erg, 0, "Vorname") . "\"></td></tr>\n";
|
||||||
"<input type=\"text\" size=\"40\" name=\"eVorname\" value=\"".
|
echo " <tr><td>Alter</td><td>" .
|
||||||
mysql_result($Erg, 0, "Vorname")."\"></td></tr>\n";
|
"<input type=\"text\" size=\"5\" name=\"eAlter\" value=\"" .
|
||||||
echo " <tr><td>Alter</td><td>".
|
mysql_result($Erg, 0, "Alter") . "\"></td></tr>\n";
|
||||||
"<input type=\"text\" size=\"5\" name=\"eAlter\" value=\"".
|
echo " <tr><td>Telefon</td><td>" .
|
||||||
mysql_result($Erg, 0, "Alter")."\"></td></tr>\n";
|
"<input type=\"text\" size=\"40\" name=\"eTelefon\" value=\"" .
|
||||||
echo " <tr><td>Telefon</td><td>".
|
mysql_result($Erg, 0, "Telefon") . "\"></td></tr>\n";
|
||||||
"<input type=\"text\" size=\"40\" name=\"eTelefon\" value=\"".
|
echo " <tr><td>Handy</td><td>" .
|
||||||
mysql_result($Erg, 0, "Telefon")."\"></td></tr>\n";
|
"<input type=\"text\" size=\"40\" name=\"eHandy\" value=\"" .
|
||||||
echo " <tr><td>Handy</td><td>".
|
mysql_result($Erg, 0, "Handy") . "\"></td></tr>\n";
|
||||||
"<input type=\"text\" size=\"40\" name=\"eHandy\" value=\"".
|
echo " <tr><td>DECT</td><td>" .
|
||||||
mysql_result($Erg, 0, "Handy")."\"></td></tr>\n";
|
"<input type=\"text\" size=\"4\" name=\"eDECT\" value=\"" .
|
||||||
echo " <tr><td>DECT</td><td>".
|
mysql_result($Erg, 0, "DECT") . "\"></td></tr>\n";
|
||||||
"<input type=\"text\" size=\"4\" name=\"eDECT\" value=\"".
|
echo " <tr><td>email</td><td>" .
|
||||||
mysql_result($Erg, 0, "DECT")."\"></td></tr>\n";
|
"<input type=\"text\" size=\"40\" name=\"eemail\" value=\"" .
|
||||||
echo " <tr><td>email</td><td>".
|
mysql_result($Erg, 0, "email") . "\"></td></tr>\n";
|
||||||
"<input type=\"text\" size=\"40\" name=\"eemail\" value=\"".
|
echo " <tr><td>ICQ</td><td>" .
|
||||||
mysql_result($Erg, 0, "email")."\"></td></tr>\n";
|
"<input type=\"text\" size=\"40\" name=\"eICQ\" value=\"" .
|
||||||
echo " <tr><td>ICQ</td><td>".
|
mysql_result($Erg, 0, "ICQ") . "\"></td></tr>\n";
|
||||||
"<input type=\"text\" size=\"40\" name=\"eICQ\" value=\"".
|
echo " <tr><td>jabber</td><td>" .
|
||||||
mysql_result($Erg, 0, "ICQ")."\"></td></tr>\n";
|
"<input type=\"text\" size=\"40\" name=\"ejabber\" value=\"" .
|
||||||
echo " <tr><td>jabber</td><td>".
|
mysql_result($Erg, 0, "jabber") . "\"></td></tr>\n";
|
||||||
"<input type=\"text\" size=\"40\" name=\"ejabber\" value=\"".
|
echo " <tr><td>Size</td><td>" .
|
||||||
mysql_result($Erg, 0, "jabber")."\"></td></tr>\n";
|
"<input type=\"text\" size=\"5\" name=\"eSize\" value=\"" .
|
||||||
echo " <tr><td>Size</td><td>".
|
mysql_result($Erg, 0, "Size") . "\"></td></tr>\n";
|
||||||
"<input type=\"text\" size=\"5\" name=\"eSize\" value=\"".
|
echo " <tr><td>Passwort</td><td>" .
|
||||||
mysql_result($Erg, 0, "Size")."\"></td></tr>\n";
|
"<a href=\"./userSaveNormal.php?action=newpw&eUID=" .
|
||||||
echo " <tr><td>Passwort</td><td>".
|
mysql_result($Erg, 0, "UID") . "\">neues Kennwort setzen</a></td></tr>\n";
|
||||||
"<a href=\"./userSaveNormal.php?action=newpw&eUID="
|
|
||||||
.mysql_result($Erg, 0, "UID")."\">neues Kennwort setzen</a></td></tr>\n";
|
// Gekommen?
|
||||||
|
echo " <tr><td>Gekommen</td><td>\n";
|
||||||
// Gekommen?
|
echo " <input type=\"radio\" name=\"eGekommen\" value=\"0\"";
|
||||||
echo " <tr><td>Gekommen</td><td>\n";
|
if (mysql_result($Erg, 0, "Gekommen") == '0')
|
||||||
echo " <input type=\"radio\" name=\"eGekommen\" value=\"0\"";
|
echo " checked";
|
||||||
if (mysql_result($Erg, 0, "Gekommen")=='0')
|
echo ">No \n";
|
||||||
echo " checked";
|
echo " <input type=\"radio\" name=\"eGekommen\" value=\"1\"";
|
||||||
echo ">No \n";
|
if (mysql_result($Erg, 0, "Gekommen") == '1')
|
||||||
echo " <input type=\"radio\" name=\"eGekommen\" value=\"1\"";
|
echo " checked";
|
||||||
if (mysql_result($Erg, 0, "Gekommen")=='1')
|
echo ">Yes \n";
|
||||||
echo " checked";
|
echo "</td></tr>\n";
|
||||||
echo ">Yes \n";
|
|
||||||
echo "</td></tr>\n";
|
// Aktiv?
|
||||||
|
echo " <tr><td>Aktiv</td><td>\n";
|
||||||
// Aktiv?
|
echo " <input type=\"radio\" name=\"eAktiv\" value=\"0\"";
|
||||||
echo " <tr><td>Aktiv</td><td>\n";
|
if (mysql_result($Erg, 0, "Aktiv") == '0')
|
||||||
echo " <input type=\"radio\" name=\"eAktiv\" value=\"0\"";
|
echo " checked";
|
||||||
if (mysql_result($Erg, 0, "Aktiv")=='0')
|
echo ">No \n";
|
||||||
echo " checked";
|
echo " <input type=\"radio\" name=\"eAktiv\" value=\"1\"";
|
||||||
echo ">No \n";
|
if (mysql_result($Erg, 0, "Aktiv") == '1')
|
||||||
echo " <input type=\"radio\" name=\"eAktiv\" value=\"1\"";
|
echo " checked";
|
||||||
if (mysql_result($Erg, 0, "Aktiv")=='1')
|
echo ">Yes \n";
|
||||||
echo " checked";
|
echo "</td></tr>\n";
|
||||||
echo ">Yes \n";
|
|
||||||
echo "</td></tr>\n";
|
// T-Shirt bekommen?
|
||||||
|
echo " <tr><td>T-Shirt</td><td>\n";
|
||||||
// T-Shirt bekommen?
|
echo " <input type=\"radio\" name=\"eTshirt\" value=\"0\"";
|
||||||
echo " <tr><td>T-Shirt</td><td>\n";
|
if (mysql_result($Erg, 0, "Tshirt") == '0')
|
||||||
echo " <input type=\"radio\" name=\"eTshirt\" value=\"0\"";
|
echo " checked";
|
||||||
if (mysql_result($Erg, 0, "Tshirt")=='0')
|
echo ">No \n";
|
||||||
echo " checked";
|
echo " <input type=\"radio\" name=\"eTshirt\" value=\"1\"";
|
||||||
echo ">No \n";
|
if (mysql_result($Erg, 0, "Tshirt") == '1')
|
||||||
echo " <input type=\"radio\" name=\"eTshirt\" value=\"1\"";
|
echo " checked";
|
||||||
if (mysql_result($Erg, 0, "Tshirt")=='1')
|
echo ">Yes \n";
|
||||||
echo " checked";
|
echo "</td></tr>\n";
|
||||||
echo ">Yes \n";
|
|
||||||
echo "</td></tr>\n";
|
echo " <tr><td>Hometown</td><td>" .
|
||||||
|
"<input type=\"text\" size=\"40\" name=\"Hometown\" value=\"" .
|
||||||
echo " <tr><td>Hometown</td><td>".
|
mysql_result($Erg, 0, "Hometown") . "\"></td></tr>\n";
|
||||||
"<input type=\"text\" size=\"40\" name=\"Hometown\" value=\"".
|
|
||||||
mysql_result($Erg, 0, "Hometown")."\"></td></tr>\n";
|
echo "</table>\n</td><td valign=\"top\">" . displayavatar($_GET["enterUID"], FALSE) . "</td></tr>";
|
||||||
|
}
|
||||||
echo "</table>\n</td><td valign=\"top\">". displayavatar($_GET["enterUID"], FALSE). "</td></tr>";
|
|
||||||
}
|
echo "</td></tr>\n";
|
||||||
|
echo "</table>\n<br />\n";
|
||||||
echo "</td></tr>\n";
|
echo "<input type=\"hidden\" name=\"enterUID\" value=\"" . $_GET["enterUID"] . "\">\n";
|
||||||
echo "</table>\n<br />\n";
|
echo "<input type=\"submit\" value=\"sichern...\">\n";
|
||||||
echo "<input type=\"hidden\" name=\"enterUID\" value=\"". $_GET["enterUID"]. "\">\n";
|
echo "</form>";
|
||||||
echo "<input type=\"submit\" value=\"sichern...\">\n";
|
|
||||||
echo "</form>";
|
echo "<form action=\"./userSaveNormal.php?action=delete\" method=\"POST\">\n";
|
||||||
|
echo "<input type=\"hidden\" name=\"enterUID\" value=\"" . $_GET["enterUID"] . "\">\n";
|
||||||
echo "<form action=\"./userSaveNormal.php?action=delete\" method=\"POST\">\n";
|
echo "<input type=\"submit\" value=\"löschen...\">\n";
|
||||||
echo "<input type=\"hidden\" name=\"enterUID\" value=\"". $_GET["enterUID"]. "\">\n";
|
echo "</form>";
|
||||||
echo "<input type=\"submit\" value=\"löschen...\">\n";
|
|
||||||
echo "</form>";
|
echo "<hr>";
|
||||||
|
funktion_db_element_list_2row("Freeloader Shifts", "SELECT `Remove_Time`, `Length`, `Comment` FROM `ShiftFreeloader` WHERE UID=" . $_GET["enterUID"]);
|
||||||
|
|
||||||
echo "<hr>";
|
|
||||||
funktion_db_element_list_2row(
|
|
||||||
"Freeloader Shifts",
|
|
||||||
"SELECT `Remove_Time`, `Length`, `Comment` FROM `ShiftFreeloader` WHERE UID=". $_GET["enterUID"]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
include ("../../../camp2011/includes/footer.php");
|
include ("includes/footer.php");
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue