Exemplo n.º 1
0
                </div>
            </div>
        </div>
        <div class="form-group">
            <label for="account_timezone" class="col-sm-2 control-label"><?php 
    echo __('account_timezone');
    ?>
: <span class="txt_require">*</span></label>
            <div class="col-sm-5">
                <select name="account_timezone" id="account_timezone" class="form-control chosen-select" required="">
                    <option value=""></option>
                    <?php 
    if (isset($account_timezone)) {
        $tmp_account_timezone = \Extension\Date::getRealTimezoneValue($account_timezone);
    } else {
        $tmp_account_timezone = \Extension\Date::getRealTimezoneValue($default_timezone);
        $account_timezone = $default_timezone;
    }
    foreach ($timezone_list as $tznum => $tzval) {
        echo '<option value="' . $tznum . '"' . (isset($account_timezone) && $account_timezone == $tznum ? ' selected="selected"' : '') . '>' . $tznum . '</option>' . "\n";
        // selected, no more another selected because this list have many duplicate key.
        if (isset($account_timezone) && $account_timezone == $tznum) {
            unset($account_timezone);
        }
    }
    unset($timezone_list, $tznum, $tzval);
    ?>
 
                </select>
                <div class="help-block"><?php 
    echo __('account_current_date_time_example', array('time' => \Extension\Date::gmtDate('%Y-%m-%d %H:%M:%S', (string) time(), $tmp_account_timezone)));