<div class="row <?php echo text_helper::alternate('odd', 'even'); ?> " id="input_row_user_login_password"> <label for="input_edit_user_login_password"> <?php echo __('password', 'users'); ?> </label> <div class="field"> <?php view::load('system/elements/field/edit', array('prefix' => 'user_login', 'field' => array('keyword' => 'password', 'type' => 'password', 'maxlength' => 128, 'class' => 'input-xlarge'), 'value' => input::demo(0, '', false) && !input::postCount() ? array('password' => 'demo') : '')); ?> </div> </div> <?php if (uri::segment(4) == 'license' && !input::demo(0, '', false)) { ?> <div class="row <?php echo text_helper::alternate('odd', 'even'); ?> " id="input_row_user_login_license">
echo form_helper::select($name, array(1 => __('yes', 'system'), 0 => __('no', 'system')), form_helper::setSelect($name, isset($value[$name]) ? $value[$name] : ''), array('class' => 'select ' . (isset($field['class']) && $field['class'] ? $field['class'] : ''), 'style' => isset($field['style']) && $field['style'] ? $field['style'] : '', 'id' => $id)); ?> <?php break; ?> <?php case 'location': ?> <?php echo form_helper::select($name . '[country]', array('' => __('select', 'system')) + geo_helper::getCountries(), form_helper::setSelect($name . '[country]', isset($value[$name]) ? $value[$name] : ''), array('class' => 'select geo ' . (isset($field['class']) && $field['class'] ? $field['class'] : ''), 'style' => isset($field['style']) && $field['style'] ? $field['style'] : '', 'id' => $id . '_country', 'onchange' => "geo('',this.id,this.value)")); ?> <?php if (!input::postCount()) { ?> <?php if (isset($value[$name]) && $value[$name]) { ?> <?php echo form_helper::select($name . '[state]', array('' => __('select', 'system')) + geo_helper::getStates($value[$name]), form_helper::setSelect($name . '[state]', isset($value[$name . '_state']) ? $value[$name . '_state'] : ''), array('class' => 'select geo ' . (isset($field['class']) && $field['class'] ? $field['class'] : ''), 'style' => isset($field['style']) && $field['style'] ? $field['style'] : '', 'id' => $id . '_country_state', 'onchange' => "geo('',this.id,null,this.value)")); ?> <?php if (isset($value[$name . '_state']) && $value[$name . '_state']) { ?> <?php