summaryrefslogtreecommitdiff
path: root/www-ssl/nonpublic
diff options
context:
space:
mode:
authorcookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2005-11-21 18:34:30 +0000
committercookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2005-11-21 18:34:30 +0000
commit375d4143d1f5f8ad2c39597160fa1d0282e322ae (patch)
tree3c0e17202fedb7acab6111c21e9c318d1919b6e9 /www-ssl/nonpublic
parent1f312f39c9dd0b87d5a7f6eee68ca357a844fd00 (diff)
auswahl ob menu links oder rechst hinzugefuegt
git-svn-id: svn://svn.cccv.de/engel-system@75 29ba0400-6e00-0410-a75a-ca02368028f8
Diffstat (limited to 'www-ssl/nonpublic')
-rwxr-xr-xwww-ssl/nonpublic/einstellungen.php15
-rwxr-xr-xwww-ssl/nonpublic/index.php1
2 files changed, 13 insertions, 3 deletions
diff --git a/www-ssl/nonpublic/einstellungen.php b/www-ssl/nonpublic/einstellungen.php
index 4c9bd721..64b8d321 100755
--- a/www-ssl/nonpublic/einstellungen.php
+++ b/www-ssl/nonpublic/einstellungen.php
@@ -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':
diff --git a/www-ssl/nonpublic/index.php b/www-ssl/nonpublic/index.php
index d50ba044..5e5b081f 100755
--- a/www-ssl/nonpublic/index.php
+++ b/www-ssl/nonpublic/index.php
@@ -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");