Code

Updated setup to set correct timezones to dropdown menu
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 12 Sep 2007 12:09:59 +0000 (12:09 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 12 Sep 2007 12:09:59 +0000 (12:09 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7283 594d385d-05f5-0310-b6e9-bd551577e9d8

setup/setup_config2.tpl

index 1d14f3d5cea0c49116126ee6a46ce73b3a21c682..80c5cf6aac5666e2d4412c51e4e9e035f6ba5903 100644 (file)
         </div>
         <div class='step4_value'>
             <select name='timezone' title='{t}Please your preferred timezone here{/t}' style="width:100%">
-        {foreach from=$timezones item=val key=key}
-            {if $val.name == $timezone}
-            <option selected value="{$val.name}">{$val.name}</option>
+               {foreach from=$timezones.TIMEZONES item=val key=key}
+            {if $key == $timezone}
+                {if isset($timezones.DST_ZONES.$key)}
+                    <option selected value="{$key}">{$key} (DST)</option>
+                {else}
+                    <option selected value="{$key}">{$key} (GMT)</option>
+                {/if}
             {else}
-            <option value="{$val.name}">{$val.name}</option>
+                {if isset($timezones.DST_ZONES.$key)}
+                    <option value="{$key}">{$key} (DST)</option>
+                {else}
+                    <option value="{$key}">{$key} (GMT)</option>
+                {/if}
             {/if}
         {/foreach}
+
             </select>
         </div>
     </div>