typo
git-svn-id: svn://svn.cccv.de/engel-system@126 29ba0400-6e00-0410-a75a-ca02368028f8
This commit is contained in:
parent
1b5e823923
commit
a212dca516
|
@ -127,36 +127,33 @@ case 'newsave':
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'change':
|
case 'change':
|
||||||
if (! IsSet($_GET["TID"])) {
|
if (! IsSet($_GET["TID"]))
|
||||||
echo "Fehlerhafter Aufruf!";
|
echo "Fehlerhafter Aufruf!";
|
||||||
} else {
|
else
|
||||||
|
|
||||||
echo "Raum abändern:\n";
|
|
||||||
|
|
||||||
echo "Hier kannst du eintragen, den EngelType ändern.";
|
|
||||||
|
|
||||||
echo "<form action=\"./EngelType.php\" method=\"GET\">\n";
|
|
||||||
echo "<table>\n";
|
|
||||||
|
|
||||||
$SQL2 = "SELECT * FROM `EngelType` WHERE `TID`='". $_GET["TID"]. "'";
|
|
||||||
$ERG = mysql_query($SQL2, $con);
|
|
||||||
|
|
||||||
for ($Uj = 1; $Uj < mysql_num_fields($ERG); $Uj++)
|
|
||||||
{
|
{
|
||||||
echo "<tr><td>". mysql_field_name($ERG, $Uj). "</td>".
|
echo "Raum abändern:\n";
|
||||||
"<td><input type=\"text\" size=\"40\" name=\"e". mysql_field_name($ERG, $Uj). "\" ".
|
echo "Hier kannst du eintragen, den EngelType ändern.";
|
||||||
"value=\"". mysql_result($ERG, 0, $Uj). "\"></td></tr>\n";
|
echo "<form action=\"./EngelType.php\" method=\"GET\">\n";
|
||||||
}
|
echo "<table>\n";
|
||||||
echo "</table>\n";
|
|
||||||
echo "<input type=\"hidden\" name=\"eTID\" value=\"". $_GET["TID"]. "\">\n";
|
$SQL2 = "SELECT * FROM `EngelType` WHERE `TID`='". $_GET["TID"]. "'";
|
||||||
echo "<input type=\"hidden\" name=\"action\" value=\"changesave\">\n";
|
$ERG = mysql_query($SQL2, $con);
|
||||||
echo "<input type=\"submit\" value=\"sichern...\">\n";
|
|
||||||
echo "</form>";
|
for ($Uj = 1; $Uj < mysql_num_fields($ERG); $Uj++)
|
||||||
echo "<form action=\"./EngelType.php\" method=\"GET\">\n";
|
echo "<tr><td>". mysql_field_name($ERG, $Uj). "</td>".
|
||||||
echo "<input type=\"hidden\" name=\"TID\" value=\"". $_GET["TID"]. "\">\n";
|
"<td><input type=\"text\" size=\"40\" name=\"e". mysql_field_name($ERG, $Uj). "\" ".
|
||||||
echo "<input type=\"hidden\" name=\"action\" value=\"delete\">\n";
|
"value=\"". mysql_result($ERG, 0, $Uj). "\"></td></tr>\n";
|
||||||
echo "<input type=\"submit\" value=\"Löschen...\">";
|
|
||||||
echo "</form>";
|
echo "</table>\n";
|
||||||
|
echo "<input type=\"hidden\" name=\"eTID\" value=\"". $_GET["TID"]. "\">\n";
|
||||||
|
echo "<input type=\"hidden\" name=\"action\" value=\"changesave\">\n";
|
||||||
|
echo "<input type=\"submit\" value=\"sichern...\">\n";
|
||||||
|
echo "</form>";
|
||||||
|
echo "<form action=\"./EngelType.php\" method=\"GET\">\n";
|
||||||
|
echo "<input type=\"hidden\" name=\"TID\" value=\"". $_GET["TID"]. "\">\n";
|
||||||
|
echo "<input type=\"hidden\" name=\"action\" value=\"delete\">\n";
|
||||||
|
echo "<input type=\"submit\" value=\"Löschen...\">";
|
||||||
|
echo "</form>";
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -166,9 +163,10 @@ case 'changesave':
|
||||||
$vars = array_splice($vars, 0, $count);
|
$vars = array_splice($vars, 0, $count);
|
||||||
$keys="";
|
$keys="";
|
||||||
$sql="";
|
$sql="";
|
||||||
foreach($vars as $key => $value){
|
foreach($vars as $key => $value)
|
||||||
$keys = substr($key,1);
|
{
|
||||||
$sql .= ", `".$keys."`='".$value."'";
|
$keys = substr( $key, 1);
|
||||||
|
$sql .= ", `". $keys. "`='". $value. "'";
|
||||||
}
|
}
|
||||||
runSQL_log( "UPDATE `EngelType` SET ". substr($sql, 2). " WHERE `TID`='". $_GET["eTID"]. "'",
|
runSQL_log( "UPDATE `EngelType` SET ". substr($sql, 2). " WHERE `TID`='". $_GET["eTID"]. "'",
|
||||||
"Save Change EngelType");
|
"Save Change EngelType");
|
||||||
|
@ -178,11 +176,12 @@ case 'changesave':
|
||||||
case 'delete':
|
case 'delete':
|
||||||
if (IsSet($_GET["TID"]))
|
if (IsSet($_GET["TID"]))
|
||||||
{
|
{
|
||||||
runSQL_log( "DELETE FROM `EngelType` WHERE `TID`='". $_GET["TID"]. "'", "delate EngelType");
|
if( runSQL_log( "DELETE FROM `EngelType` WHERE `TID`='". $_GET["TID"]. "'", "delate EngelType"))
|
||||||
runSQL_log( "ALTER TABLE `Room` DROP `DEFAULT_EID_". $_GET["TID"]. "`;", "delate EngelType in Room Table");
|
runSQL_log( "ALTER TABLE `Room` DROP `DEFAULT_EID_". $_GET["TID"]. "`;",
|
||||||
} else {
|
"delate EngelType in Room Table");
|
||||||
echo "Fehlerhafter Aufruf";
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
echo "Fehlerhafter Aufruf";
|
||||||
SetHeaderGo2Back();
|
SetHeaderGo2Back();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue