|
|
|
@ -46,7 +46,7 @@ if( isset( $_GET["Field"]) && isset( $_GET["Default"]) && isset( $_GET["Send"]))
|
|
|
|
|
"[". mysql_error(). "]<br><br>";
|
|
|
|
|
break;
|
|
|
|
|
case "SetForAllUser":
|
|
|
|
|
$SQL = "UPDATE `UserCVS` SET `". $_GET["Field"]. "`='". $_GET["Default"]. "'";
|
|
|
|
|
$SQL = "UPDATE `UserCVS` SET `". $_GET["Field"]. "`='". $_GET["Default"]. "' WHERE UID>0";
|
|
|
|
|
$Erg = mysql_query( $SQL, $con);
|
|
|
|
|
if( $Erg == 1)
|
|
|
|
|
echo "<H2>UPDATE ".$_GET["Field"]. " = ". $_GET["Default"]. " for all Users succesfull</h2>\n";
|
|
|
|
@ -70,20 +70,30 @@ if( isset( $_GET["Field"]) && isset( $_GET["Default"]) && isset( $_GET["Send"]))
|
|
|
|
|
$erg = mysql_query("SHOW COLUMNS FROM `UserCVS`");
|
|
|
|
|
echo mysql_error();
|
|
|
|
|
|
|
|
|
|
for( $i=1; $i<mysql_num_rows($erg); $i++)
|
|
|
|
|
for( $i=2; $i<mysql_num_rows($erg); $i++)
|
|
|
|
|
{
|
|
|
|
|
echo "\t<tr class=\"content\">\n";
|
|
|
|
|
echo "\t\t<form action=\"userDefaultSetting.php\">\n";
|
|
|
|
|
echo "\t\t\t<input name=\"Field\" type=\"hidden\" value=\"". mysql_result( $erg, $i, "Field"). "\">\n";
|
|
|
|
|
echo "\t\t\t<td>". mysql_result( $erg, $i, "Field"). "</td>\n";
|
|
|
|
|
echo "\t\t\t<td>";
|
|
|
|
|
echo "\t\t\t<td>\n";
|
|
|
|
|
|
|
|
|
|
echo "\t\t\t\t<input type=\"radio\" name=\"Default\" value=\"Y\"";
|
|
|
|
|
if( mysql_result( $erg, $i, "Default") == "Y")
|
|
|
|
|
echo "<input type=\"radio\" name=\"Default\" value=\"Y\" checked>Y\n".
|
|
|
|
|
"\t\t\t <input type=\"radio\" name=\"Default\" value=\"N\">N";
|
|
|
|
|
else
|
|
|
|
|
echo "<input type=\"radio\" name=\"Default\" value=\"Y\">Y\n".
|
|
|
|
|
"\t\t\t <input type=\"radio\" name=\"Default\" value=\"N\" checked>N";
|
|
|
|
|
echo "</td>\n";
|
|
|
|
|
echo " checked";
|
|
|
|
|
echo ">allow\n";
|
|
|
|
|
|
|
|
|
|
echo "\t\t\t\t<input type=\"radio\" name=\"Default\" value=\"N\"";
|
|
|
|
|
if( mysql_result( $erg, $i, "Default") == "N")
|
|
|
|
|
echo " checked";
|
|
|
|
|
echo ">denied\n";
|
|
|
|
|
|
|
|
|
|
echo "\t\t\t\t<input type=\"radio\" name=\"Default\" value=\"G\"";
|
|
|
|
|
if( mysql_result( $erg, $i, "Default") == "G")
|
|
|
|
|
echo " checked";
|
|
|
|
|
echo ">group-setting\n";
|
|
|
|
|
|
|
|
|
|
echo "\t\t\t</td>\n";
|
|
|
|
|
echo "\t\t\t<td><input type=\"submit\" name=\"Send\" value=\"Save\">\n";
|
|
|
|
|
echo "\t\t\t <input type=\"submit\" name=\"Send\" value=\"Del\">\n";
|
|
|
|
|
echo "\t\t\t <input type=\"submit\" name=\"Send\" value=\"SetForAllUser\"></td>\n";
|
|
|
|
@ -95,8 +105,11 @@ echo "\t<tr class=\"content\">\n";
|
|
|
|
|
echo "\t\t<form action=\"userDefaultSetting.php\">\n";
|
|
|
|
|
echo "\t\t\t<input name=\"New\" type=\"hidden\" value=\"New\">\n";
|
|
|
|
|
echo "\t\t\t<td><input name=\"Field\" type=\"text\" value=\"new\"></td>\n";
|
|
|
|
|
echo "\t\t\t<td><input type=\"radio\" name=\"Default\" value=\"Y\">Y\t".
|
|
|
|
|
"\t\t\t\t<input type=\"radio\" name=\"Default\" value=\"N\">N</td>\n";
|
|
|
|
|
echo "\t\t\t<td>\n";
|
|
|
|
|
echo "\t\t\t\t<input type=\"radio\" name=\"Default\" value=\"Y\">allow\n";
|
|
|
|
|
echo "\t\t\t\t<input type=\"radio\" name=\"Default\" value=\"N\">denied\n";
|
|
|
|
|
echo "\t\t\t\t<input type=\"radio\" name=\"Default\" value=\"G\" checked>group-setting\n";
|
|
|
|
|
echo "\t\t\t</td>\n";
|
|
|
|
|
echo "\t\t\t<td><input type=\"submit\" name=\"Send\" value=\"New\"></td>\n";
|
|
|
|
|
echo "\t\t</form>\n";
|
|
|
|
|
echo "\t</tr>\n";
|
|
|
|
|