diff --git a/www-ssl/admin/userDefaultSetting.php b/www-ssl/admin/userDefaultSetting.php index 2489ae4a..995b3842 100755 --- a/www-ssl/admin/userDefaultSetting.php +++ b/www-ssl/admin/userDefaultSetting.php @@ -1,52 +1,52 @@ \nhier hast du die Möglichkeit, die Defaulteinstellungen für neue User einzustellen:

\n"; + -/* -echo "

Raeume


"; -funktion_db_list("Raeume"); - -echo "

Schichtbelegung


"; -funktion_db_list("Schichtbelegung"); - -echo "

Schichtplan


Hier findest du alle bisher eingetragenen Schichten:"; -funktion_db_list("Schichtplan"); - -echo "

User


"; -funktion_db_list("User"); - -echo "

News


"; -funktion_db_list("News"); - -echo "

FAQ


"; -funktion_db_list("FAQ"); - -*/ - -echo "Deaktiviert
\n"; +if( isset( $_GET["Field"]) && isset( $_GET["Default"])) +{ + $SQL = "ALTER TABLE `UserCVS` CHANGE `". $_GET["Field"]. "` ". + "`". $_GET["Field"]. "` CHAR( 1 ) NOT NULL DEFAULT '". $_GET["Default"]. "'"; + $erg = mysql_query( $SQL, $con); + if( $erg == 1) + echo "

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

\n"; + else + echo "

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

\n". + "[". mysql_error(). "]

"; +} $erg = mysql_query("SHOW COLUMNS FROM `UserCVS`"); echo mysql_error(); -if (mysql_num_rows($erg) > 0) -{ -/* while ($row = mysql_fetch_assoc($erg)) - { - print_r($erg); - } -*/ -} +echo "\n"; +echo "\t\n"; +echo "\t\t\n\t\t\n\t\t\n"; +echo "\t\n"; for( $i=1; $i"; + echo "\t\n"; + echo "\t\t\n"; + echo "\t\t\t\n"; + echo "\t\t\t\n"; + echo "\t\t\t\n"; + echo "\t\t\t\n"; + echo "\t\t\n"; + echo "\t\n"; } +echo "
PageShow
". mysql_result( $erg, $i, "Field"). ""; + if( mysql_result( $erg, $i, "Default") == "Y") + echo "Y\t". + "\t\t\t\tN"; + else + echo "Y\t". + "\t\t\t\tN"; + echo "
\n"; include ("./inc/footer.php"); ?>