1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 14:46:56 +02:00

combined several small menus : siteinfo_menu (compliance, sitebutton, poweredby) and user_menu (userlanguage, usertheme)

This commit is contained in:
lia
2007-03-23 22:42:41 +00:00
parent 9c61b1988a
commit ecf971a32a
13 changed files with 114 additions and 75 deletions

View File

@@ -0,0 +1,47 @@
<?php
/*
+ ----------------------------------------------------------------------------+
| e107 website system
|
| <20>Steve Dunstan 2001-2002
| http://e107.org
| jalist@e107.org
|
| Released under the terms and conditions of the
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/user_menu/userlanguage_menu.php,v $
| $Revision: 1.1 $
| $Date: 2007-03-23 22:42:40 $
| $Author: lisa_ $
+----------------------------------------------------------------------------+
*/
if (!defined('e107_INIT')) { exit; }
require_once(e_HANDLER."file_class.php");
$fl = new e_file;
$lanlist = $fl->get_dirs(e_LANGUAGEDIR);
sort($lanlist);
$action = (e_QUERY && !$_GET['elan']) ? e_SELF."?".e_QUERY : e_SELF;
$text = "<form method='post' action='".$action."'>
<div style='text-align:center'>
<select name='sitelanguage' class='tbox' >";
foreach($lanlist as $langval)
{
$selected ="";
if($langval == USERLAN || ($langval == $pref['sitelanguage'] && USERLAN == ""))
{
$selected = "selected='selected'";
}
$text .= "<option value='".$langval."' $selected>".$langval."</option>\n ";
}
$text .= "</select>";
$text .= "<br /><br /><input class='button' type='submit' name='setlanguage' value='".UTHEME_MENU_L1."' />";
$text .= "</div></form> ";
$ns->tablerender(UTHEME_MENU_L2, $text, 'user_lan');
?>