auswahl ob menu links oder rechst hinzugefuegt
git-svn-id: svn://svn.cccv.de/engel-system@75 29ba0400-6e00-0410-a75a-ca02368028f8
This commit is contained in:
parent
1f312f39c9
commit
375d4143d1
|
@ -195,6 +195,18 @@ else
|
|||
echo " checked";
|
||||
echo ">Yes \n";
|
||||
echo "</td></tr>\n";
|
||||
|
||||
// Menu links/rechts
|
||||
echo " <tr><td>Menu</td><td>\n";
|
||||
echo " <input type=\"radio\" name=\"eMenu\" value=\"L\"";
|
||||
if (mysql_result($Erg, 0, "Menu")=='L')
|
||||
echo " checked";
|
||||
echo ">L \n";
|
||||
echo " <input type=\"radio\" name=\"eMenu\" value=\"R\"";
|
||||
if (mysql_result($Erg, 0, "Menu")=='R')
|
||||
echo " checked";
|
||||
echo ">R \n";
|
||||
echo "</td></tr>\n";
|
||||
} //IF TYPE
|
||||
}
|
||||
if( $_GET["Type"] == "Secure" )
|
||||
|
|
|
@ -17,7 +17,7 @@ if (IsSet($_GET["action"]))
|
|||
if ($Erg == 1) {
|
||||
echo "Änderung wurde gesichert...\n";
|
||||
} else {
|
||||
echo "Fehler beim speichern...\n";
|
||||
echo "Fehler beim speichern...\n(". mysql_error($con). ")";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -42,7 +42,8 @@ if (IsSet($_GET["action"]))
|
|||
"`Size` = '". $_POST["eSize"]. "', ".
|
||||
"`Gekommen`= '". $_POST["eGekommen"]. "', ".
|
||||
"`Aktiv`= '". $_POST["eAktiv"]. "', ".
|
||||
"`Tshirt` = '". $_POST["eTshirt"]. "' ".
|
||||
"`Tshirt` = '". $_POST["eTshirt"]. "', ".
|
||||
"`Menu` = '". $_POST["eMenu"]. "' ".
|
||||
"WHERE `UID` = '". $_POST["enterUID"].
|
||||
"' LIMIT 1;";
|
||||
echo "User-";
|
||||
|
|
|
@ -70,6 +70,12 @@ if (!IsSet($_POST["action"]))
|
|||
<option <?php if($_SESSION['color'] == 9) { echo "selected"; } ?> value="9">Test Style 21c3 </option>
|
||||
</select>
|
||||
</td></tr>
|
||||
<tr><td>Menu</td>
|
||||
<td><input type="radio" name="eMenu" value="L"<?
|
||||
if ($_SESSION['Menu']=='L') echo " checked"; ?>>L
|
||||
<input type="radio" name="eMenu" value="R"<?
|
||||
if ($_SESSION['Menu']=='R') echo " checked"; ?>>R
|
||||
</td></tr>
|
||||
</table>
|
||||
<input type="submit" value="<?PHP Print_Text("save"); ?>">
|
||||
</form>
|
||||
|
@ -166,15 +172,19 @@ case 'set':
|
|||
|
||||
case 'colour':
|
||||
|
||||
$chsql="Update User set color= \"". $_POST["colourid"]. "\" where UID = \"".$_SESSION['UID']."\" limit 1";
|
||||
$chsql="Update User set ".
|
||||
"`color` = \"". $_POST["colourid"]. "\", ".
|
||||
"`Menu`= \"". $_POST["eMenu"]. "\" ".
|
||||
"where UID = \"".$_SESSION['UID']."\" limit 1";
|
||||
$Erg = mysql_query($chsql, $con);
|
||||
echo mysql_error($con);
|
||||
$_SESSION['color']=$_POST["colourid"];
|
||||
$_SESSION['Menu']=$_POST["eMenu"];
|
||||
if ($Erg==1) {
|
||||
Print_Text(32);
|
||||
} else {
|
||||
Print_Text(29);
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case 'sprache':
|
||||
|
@ -187,7 +197,6 @@ case 'sprache':
|
|||
} else {
|
||||
Print_Text(29);
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case 'avatar':
|
||||
|
|
|
@ -44,6 +44,7 @@ else
|
|||
$_SESSION['Gekommen'] = mysql_result($userstring, 0, "Gekommen");
|
||||
$_SESSION['Aktiv'] = mysql_result($userstring, 0, "Aktiv");
|
||||
$_SESSION['Tshirt'] = mysql_result($userstring, 0, "Tshirt");
|
||||
$_SESSION['Menu'] = mysql_result($userstring, 0, "Menu");
|
||||
$_SESSION['color'] = mysql_result($userstring, 0, "color");
|
||||
$_SESSION['Avatar'] = mysql_result($userstring, 0, "Avatar");
|
||||
$_SESSION['Sprache'] = mysql_result($userstring, 0, "Sprache");
|
||||
|
|
Loading…
Reference in New Issue