From a212dca5162644d8071985cdc01c4f938f4c4ff5 Mon Sep 17 00:00:00 2001 From: cookie Date: Wed, 19 Apr 2006 18:48:59 +0000 Subject: [PATCH] typo git-svn-id: svn://svn.cccv.de/engel-system@126 29ba0400-6e00-0410-a75a-ca02368028f8 --- www-ssl/admin/EngelType.php | 67 ++++++++++++++++++------------------- 1 file changed, 33 insertions(+), 34 deletions(-) diff --git a/www-ssl/admin/EngelType.php b/www-ssl/admin/EngelType.php index 4df21cbf..06004df9 100755 --- a/www-ssl/admin/EngelType.php +++ b/www-ssl/admin/EngelType.php @@ -127,36 +127,33 @@ case 'newsave': break; case 'change': - if (! IsSet($_GET["TID"])) { + if (! IsSet($_GET["TID"])) echo "Fehlerhafter Aufruf!"; - } else { - - echo "Raum abändern:\n"; - - echo "Hier kannst du eintragen, den EngelType ändern."; - - echo "
\n"; - echo "\n"; + else + { + echo "Raum abändern:\n"; + echo "Hier kannst du eintragen, den EngelType ändern."; + echo "\n"; + echo "
\n"; - $SQL2 = "SELECT * FROM `EngelType` WHERE `TID`='". $_GET["TID"]. "'"; - $ERG = mysql_query($SQL2, $con); + $SQL2 = "SELECT * FROM `EngelType` WHERE `TID`='". $_GET["TID"]. "'"; + $ERG = mysql_query($SQL2, $con); - for ($Uj = 1; $Uj < mysql_num_fields($ERG); $Uj++) - { - echo "". - "\n"; - } - echo "
". mysql_field_name($ERG, $Uj). "
\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "
"; - echo "
\n"; - echo "\n"; - echo "\n"; - echo ""; - echo "
"; + for ($Uj = 1; $Uj < mysql_num_fields($ERG); $Uj++) + echo "". mysql_field_name($ERG, $Uj). "". + "\n"; + + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo ""; + echo "
\n"; + echo "\n"; + echo "\n"; + echo ""; + echo "
"; } break; @@ -166,9 +163,10 @@ case 'changesave': $vars = array_splice($vars, 0, $count); $keys=""; $sql=""; - foreach($vars as $key => $value){ - $keys = substr($key,1); - $sql .= ", `".$keys."`='".$value."'"; + foreach($vars as $key => $value) + { + $keys = substr( $key, 1); + $sql .= ", `". $keys. "`='". $value. "'"; } runSQL_log( "UPDATE `EngelType` SET ". substr($sql, 2). " WHERE `TID`='". $_GET["eTID"]. "'", "Save Change EngelType"); @@ -178,11 +176,12 @@ case 'changesave': case 'delete': if (IsSet($_GET["TID"])) { - 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"); - } else { - echo "Fehlerhafter Aufruf"; + 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"); } + else + echo "Fehlerhafter Aufruf"; SetHeaderGo2Back(); break; }