2012-04-19 Vanessa Gil <vanessa.gil@artica.es>

* godmode/setup/setup.php: Changed timezone by default.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6033 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
vgilc 2012-04-19 10:23:37 +00:00
parent 624ffa474c
commit 5246c95363
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2012-04-19 Vanessa Gil <vanessa.gil@artica.es>
* godmode/setup/setup.php: Changed timezone by default.
2012-04-19 Vanessa Gil <vanessa.gil@artica.es>
* operation/tree.php: Changes in tab os.

View File

@ -211,8 +211,8 @@ foreach ($zones as $zone) {
$zone_name[$name] = $name;
}
}
$timezones = db_get_all_rows_sql ("SELECT timezone FROM ttimezone WHERE zone='Africa'");
$zone_selected = get_parameter('zone', 'Europe');
$timezones = db_get_all_rows_sql ("SELECT timezone FROM ttimezone WHERE zone='$zone_selected'");
foreach ($timezones as $timezone) {
foreach ($timezone as $key=>$name_tz) {
if ($key == 'timezone')
@ -223,7 +223,7 @@ foreach ($timezones as $timezone) {
$table->data[23][0] = __('Timezone setup');
$table->data[23][1] = html_print_input_text_extended ('timezone_text', $config["timezone"], 'text-timezone_text', '', 25, 25, false, '', 'readonly', true);
$table->data[23][1] .= '<a id="change_timezone">'.html_print_image ('images/pencil.png', true, array ('title' => __('Change timezone'))).'</a>';
$table->data[23][1] .= "&nbsp;&nbsp;". html_print_select($zone_name, 'zone', 'None', 'show_timezone();', '', '', true);
$table->data[23][1] .= "&nbsp;&nbsp;". html_print_select($zone_name, 'zone', $zone_selected, 'show_timezone();', '', '', true);
$table->data[23][1] .= "&nbsp;&nbsp;". html_print_select($timezone_n, 'timezone', $config["timezone"], '', '', '', true);