Changeset 663 for branches/new/inc
- Timestamp:
- Dec 21, 2009, 1:19:51 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new/inc/server.php
r655 r663 2 2 3 3 include_once(dirname(__FILE__).'/module.php'); 4 5 function NullErrorHandler()6 {7 }8 4 9 5 class Server extends Module … … 223 219 } 224 220 225 function RealmSelection($FormNameSufix = '')226 {227 $Output = '';228 if(count($this->Config['Mangos']['RealmList']) > 1)229 {230 if(array_key_exists('page', $_GET)) $Target = '?page='.$_GET['page'];231 else $Target = '';232 $Output .= '<div style="text-align: center;"><form id="RealmSelection'.$FormNameSufix.'" action="'.$Target.'" method="post">'.233 '<div>Výběr světa <select name="RealmIndex" onchange="document.getElementById(\'RealmSelection'.$FormNameSufix.'\').submit()">';234 foreach($this->Config['Mangos']['RealmList'] as $Index => $Realm)235 {236 if($_COOKIE['RealmIndex'] == $Index) $Selected = ' selected="selected"';237 else $Selected = '';238 $Output .= '<option value="'.$Index.'"'.$Selected.'>'.$Realm['Name'].'</option>';239 }240 $Output .= '</select></div>'.241 '</form></div>';242 }243 return($Output);244 }245 221 } 246 222
Note:
See TracChangeset
for help on using the changeset viewer.