[ Index ] |
|
Code source de e107 0.7.8 |
1 <?php 2 /* 3 + ----------------------------------------------------------------------------+ 4 | e107 website system 5 | 6 | ©Steve Dunstan 2001-2002 7 | http://e107.org 8 | jalist@e107.org 9 | 10 | Released under the terms and conditions of the 11 | GNU General Public License (http://gnu.org). 12 | 13 | $Source: /cvsroot/e107/e107_0.7/e107_plugins/userlanguage_menu/userlanguage_menu.php,v $ 14 | $Revision: 1.11 $ 15 | $Date: 2005/12/14 19:28:52 $ 16 | $Author: sweetas $ 17 +----------------------------------------------------------------------------+ 18 */ 19 20 if (!defined('e107_INIT')) { exit; } 21 22 require_once(e_HANDLER."file_class.php"); 23 $fl = new e_file; 24 $lanlist = $fl->get_dirs(e_LANGUAGEDIR); 25 sort($lanlist); 26 27 $action = (e_QUERY && !$_GET['elan']) ? e_SELF."?".e_QUERY : e_SELF; 28 $text = "<form method='post' action='".$action."'> 29 <div style='text-align:center'> 30 <select name='sitelanguage' class='tbox' >"; 31 foreach($lanlist as $langval) 32 { 33 $selected =""; 34 if($langval == USERLAN || ($langval == $pref['sitelanguage'] && USERLAN == "")) 35 { 36 $selected = "selected='selected'"; 37 } 38 $text .= "<option value='".$langval."' $selected>".$langval."</option>\n "; 39 } 40 41 $text .= "</select>"; 42 $text .= "<br /><br /><input class='button' type='submit' name='setlanguage' value='".UTHEME_MENU_L1."' />"; 43 $text .= "</div></form> "; 44 45 $ns->tablerender(UTHEME_MENU_L2, $text, 'user_lan'); 46 47 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Apr 1 01:23:32 2007 | par Balluche grâce à PHPXref 0.7 |