Revision 1012
Added by Matthias over 15 years ago
index.php | ||
---|---|---|
60 | 60 |
// Insert code and name |
61 | 61 |
$template->set_var(array( |
62 | 62 |
'CODE' => $l_codes[$l_name], |
63 |
'NAME' => $l_name |
|
63 |
'NAME' => $l_name, |
|
64 |
'FLAG' => THEME_URL.'/images/flags/'.strtolower($l_codes[$l_name]), |
|
64 | 65 |
)); |
65 | 66 |
// Check if it is selected |
66 | 67 |
if(LANGUAGE == $l_codes[$l_name]) { |
67 |
$template->set_var('SELECTED', ' selected'); |
|
68 |
$template->set_var('SELECTED', ' selected="selected"');
|
|
68 | 69 |
} else { |
69 | 70 |
$template->set_var('SELECTED', ''); |
70 | 71 |
} |
... | ... | |
79 | 80 |
$template->set_var('VALUE', $hour_offset); |
80 | 81 |
$template->set_var('NAME', $title); |
81 | 82 |
if($admin->get_timezone() == $hour_offset*60*60) { |
82 |
$template->set_var('SELECTED', 'selected');
|
|
83 |
$template->set_var('SELECTED', ' selected="selected"');
|
|
83 | 84 |
} else { |
84 | 85 |
$template->set_var('SELECTED', ''); |
85 | 86 |
} |
... | ... | |
99 | 100 |
} |
100 | 101 |
$template->set_var('NAME', $title); |
101 | 102 |
if(DATE_FORMAT == $format AND !isset($_SESSION['USE_DEFAULT_DATE_FORMAT'])) { |
102 |
$template->set_var('SELECTED', 'selected');
|
|
103 |
$template->set_var('SELECTED', ' selected="selected"');
|
|
103 | 104 |
} elseif($format == 'system_default' AND isset($_SESSION['USE_DEFAULT_DATE_FORMAT'])) { |
104 |
$template->set_var('SELECTED', 'selected');
|
|
105 |
$template->set_var('SELECTED', ' selected="selected"');
|
|
105 | 106 |
} else { |
106 | 107 |
$template->set_var('SELECTED', ''); |
107 | 108 |
} |
... | ... | |
120 | 121 |
} |
121 | 122 |
$template->set_var('NAME', $title); |
122 | 123 |
if(TIME_FORMAT == $format AND !isset($_SESSION['USE_DEFAULT_TIME_FORMAT'])) { |
123 |
$template->set_var('SELECTED', 'selected');
|
|
124 |
$template->set_var('SELECTED', ' selected="selected"');
|
|
124 | 125 |
} elseif($format == 'system_default' AND isset($_SESSION['USE_DEFAULT_TIME_FORMAT'])) { |
125 | 126 |
$template->set_var('SELECTED', 'selected'); |
126 | 127 |
} else { |
Also available in: Unified diff
Major fixes on backend to get XHTML valid output (Thanks to Luisehahne)