Changeset 614 for trunk/inc/server.php
- Timestamp:
- Aug 7, 2009, 11:38:12 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/inc/server.php
r611 r614 368 368 else return('-'); 369 369 } 370 371 function RealmSelection($FormNameSufix = '') 372 { 373 global $Config; 374 375 $Output = ''; 376 if(count($Config['Mangos']['RealmList']) > 1) 377 { 378 $Output .= '<div align="center"><form name="RealmSelection'.$FormNameSufix.'" action="" method="post">'. 379 'Svět <select name="RealmIndex" onchange="document.RealmSelection'.$FormNameSufix.'.submit()">'; 380 foreach($Config['Mangos']['RealmList'] as $Index => $Realm) 381 { 382 if($_COOKIE['RealmIndex'] == $Index) $Selected = ' selected="selected"'; 383 else $Selected = ''; 384 $Output .= '<option value="'.$Index.'"'.$Selected.'>'.$Realm['Name'].'</option>'; 385 } 386 $Output .= '</select>'. 387 '</form></div>'; 388 } 389 return($Output); 390 } 370 391 } 371 392
Note:
See TracChangeset
for help on using the changeset viewer.