diff --git a/www-ssl/admin/room.php b/www-ssl/admin/room.php index 50171986..151d9bca 100755 --- a/www-ssl/admin/room.php +++ b/www-ssl/admin/room.php @@ -183,7 +183,7 @@ case 'delete': if (IsSet($SQL)){ // echo $SQL; // hier muesste das SQL ausgefuehrt werden... - $Erg = mysql_query($SQL, $con); + $Erg = db_query($SQL, "exec SQL"); if ($Erg == 1) echo "Änderung wurde gesichert...
"; else diff --git a/www-ssl/admin/shiftadd.php b/www-ssl/admin/shiftadd.php index c0230748..70391041 100755 --- a/www-ssl/admin/shiftadd.php +++ b/www-ssl/admin/shiftadd.php @@ -291,7 +291,7 @@ function CreateNewEntry() $SQL .= "'". $_DateS. "', '". $_DateE. "', "; $SQL .= "'". $_GET["len"]. "', '". $_GET["RID"]. "', "; $SQL .= "'". $_GET["SchichtName"]. "');"; - $Erg = mysql_query($SQL, $con); + $Erg = db_query($SQL, "create shift"); $SQLFail = "\n\t
[".$SQL. "]"; diff --git a/www-ssl/admin/userDefaultSetting.php b/www-ssl/admin/userDefaultSetting.php index 09c62a15..84d880ad 100755 --- a/www-ssl/admin/userDefaultSetting.php +++ b/www-ssl/admin/userDefaultSetting.php @@ -20,7 +20,7 @@ if( isset( $_GET["Field"]) && isset( $_GET["Default"]) && isset( $_GET["Send"])) case "New": $SQL = "ALTER TABLE `UserCVS` ADD `". $_GET["Field"]. "` ". "CHAR( 1 ) DEFAULT '". $_GET["Default"]. "' NOT NULL"; - $Erg = mysql_query( $SQL, $con); + $Erg = db_query( $SQL, "New user default setting"); if( $Erg == 1) echo "

Create ".$_GET["Field"]. " = ". $_GET["Default"]. " succesfull

\n"; else @@ -38,7 +38,7 @@ if( isset( $_GET["Field"]) && isset( $_GET["Default"]) && isset( $_GET["Send"])) break; case "Del sure": $SQL = "ALTER TABLE `UserCVS` DROP `". $_GET["Field"]. "` "; - $Erg = mysql_query( $SQL, $con); + $Erg = db_query( $SQL, "del user default setting"); if( $Erg == 1) echo "

Delete ".$_GET["Field"]. " succesfull

\n"; else @@ -47,7 +47,7 @@ if( isset( $_GET["Field"]) && isset( $_GET["Default"]) && isset( $_GET["Send"])) break; case "SetForAllUser": $SQL = "UPDATE `UserCVS` SET `". $_GET["Field"]. "`='". $_GET["Default"]. "' WHERE UID>0"; - $Erg = mysql_query( $SQL, $con); + $Erg = db_query( $SQL, "Set new user default setting for all user"); if( $Erg == 1) echo "

UPDATE ".$_GET["Field"]. " = ". $_GET["Default"]. " for all Users succesfull

\n"; else @@ -56,7 +56,7 @@ if( isset( $_GET["Field"]) && isset( $_GET["Default"]) && isset( $_GET["Send"])) case "Save": $SQL = "ALTER TABLE `UserCVS` CHANGE `". $_GET["Field"]. "` ". "`". $_GET["Field"]. "` CHAR( 1 ) NOT NULL DEFAULT '". $_GET["Default"]. "'"; - $Erg = mysql_query( $SQL, $con); + $Erg = db_query( $SQL, "Save user default setting"); if( $Erg == 1) echo "

Write ".$_GET["Field"]. " = ". $_GET["Default"]. " succesfull

\n"; else @@ -69,6 +69,27 @@ if( isset( $_GET["Field"]) && isset( $_GET["Default"]) && isset( $_GET["Send"])) $erg = mysql_query("SHOW COLUMNS FROM `UserCVS`"); echo mysql_error(); +echo "\t\n"; +echo "\t\t
\n"; +echo "\t\t\t\n"; +echo "\t\t\tGroup\n"; +echo "\t\t\t\n"; +echo "\t\t\t\n"; +echo "\t\t\t \n"; +echo "\t\t
\n"; +echo "\t\n"; for( $i=2; $i