public function datas()
 {
     $this->load->helper('date');
     echo now();
     echo "<br />";
     echo mdate("Year %Y, month %m day %d, hours %h, minutes %m, seconds %s", now());
     echo "<br />";
     echo timezone_menu();
 }
Пример #2
0
echo form_input('company', html_entity_decode($user->company), 'class="form-control"');
?>
                                        <?php 
echo my_form_error('company', '<span class="help-block">', '</span>');
?>
                                </div>
                        </div>

                        <div class="form-group<?php 
echo my_form_error('timezone') != FALSE ? ' has-error' : '';
?>
">
                                <label for="timezone" class="col-md-3 control-label">Timezone:</label>
                                <div class="col-md-8">
                                        <?php 
echo timezone_menu($user->timezone, 'form-control');
?>
                                        <?php 
echo my_form_error('timezone', '<span class="help-block">', '</span>');
?>
                                </div>
                        </div>
                        
                        <div class="form-group<?php 
echo my_form_error('password') != FALSE ? ' has-error' : '';
?>
">
                                <label for="password" class="col-md-3 control-label">Password:</label>
                                <div class="col-md-8">
                                        <?php 
echo form_password('password', null, 'class="form-control"');
Пример #3
0
			</li>
			<?php 
}
?>
			<li>
				<label for="password" class="full">Password</label>
			</li>
			<li>
				<input type="password" autocomplete="off" class="text required full" id="password" name="password" value="" />
			</li>	
			<li>
				<label for="password2" class="full">Repeat Password</label>
			</li>
			<li>
				<input type="password" autocomplete="off" class="text required full" id="password2" name="password2" value="" />
			</li>
			<li>
				<div class="help" style="margin-left:0px">Passwords must be at least 6 characters in length.</div>
			</li>
			<li>
				<label for="timezone">Timezone</label>
				<?php 
echo timezone_menu($gmt_offset);
?>
			</li>
		</ol>
	</fieldset>
	<div class="submit"><input type="submit" class="button" name="continue" id="continue" value="Create Account" /></div>
</form>
<?php 
echo $this->load->view(branded_view('install/footer'));
			
			<?php 
    } elseif ($qrow->type == 'codeigniter_timezone') {
        ?>
			
			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right" for="<?php 
        echo $qrow->key;
        ?>
"><?php 
        echo $qrow->title;
        ?>
</label>
				<div class="col-sm-7">
					<?php 
        echo timezone_menu(${$qrow->key}, 'form-control input-sm', 'gmt_offset');
        ?>
					<?php 
        echo form_error($qrow->key, '<label class="error">', '</label>');
        ?>
				</div>
			</div>
			
			<?php 
    }
    ?>
		<?php 
}
?>
	</div>
</diV>
echo form_open_multipart($form_action, ' name="frm-timezone" class="form-horizontal" data-options=\'{"params" : "ajax", "loader" : "modal"}\'');
?>
<div class="row mb20">
	<div class="col-sm-12">
		We have detected that your timezone is set differently to that of your computer. You're computer is set to <strong><?php 
echo $front_gmt_offset;
?>
</strong> or equivalent. Below you can change your WorkDeskPro settings to match. This may be because your country has entered or left daylight saving.
	</div>
</div>

<div class="form-group">
	<label class="col-sm-3 control-label" for="gmt_offset">Timezone:</label>
	<div class="col-sm-8">
		<?php 
echo timezone_menu($gmt_offset, 'form-control input-sm', 'gmt_offset');
?>
	</div>
</div>

<?php 
if ($current_user->group_id == 2) {
    ?>

<div class="form-group">
	<label class="col-sm-3 control-label" for="gmt_offset"></label>
	<div class="col-sm-8">
		 <div class="checkbox block"><label><input name="all_resources" type="checkbox" value="1" /> Do you want to update the timezone for all resources</label></div>
	</div>
</div>
Пример #6
0
 /**
  * 회원정보 수정
  * @author KangMin
  * @since  2011.11.09
  */
 public function modify()
 {
     $this->add_language_pack($this->language_pack('user_modify'));
     $assign = NULL;
     $post_success = FALSE;
     //DB insert/update 성공여부
     $assign['result_msg'] = '';
     $assign['avatar_file_fail'] = NULL;
     //로그인 상태가 아니면
     if (IS_USER_LOGIN === FALSE) {
         $this->login_view();
     } else {
         //rules
         //비밀번호 입력했으면 수정, 아니면 통과
         //각 설정 길이들은 수정시에는 다른 항목 수정에서도 걸릴 수 있지만.. 이는 정책으로다가
         if ($this->input->post('password')) {
             $this->form_validation->set_rules('password', lang('password'), 'trim|required|xss_clean|min_length[' . SETTING_user_password_length_minimum . ']|max_length[' . SETTING_user_password_length_maximum . ']');
             $this->form_validation->set_rules('password_confirm', lang('password_confirm'), 'trim|required|xss_clean|matches[password]');
         }
         $this->form_validation->set_rules('name', lang('name'), 'trim|required|xss_clean|min_length[' . SETTING_user_name_length_minimum . ']|max_length[' . SETTING_user_name_length_maximum . ']');
         $this->form_validation->set_rules('nickname', lang('nickname'), 'trim|required|xss_clean|min_length[' . SETTING_user_nickname_length_minimum . ']|max_length[' . SETTING_user_nickname_length_maximum . ']');
         $this->form_validation->set_rules('email', lang('email'), 'trim|required|htmlspecialchars|xss_clean|valid_email|max_length[128]');
         $this->form_validation->set_rules('message_receive_type', lang('message_receive_type'), 'trim|required|xss_clean|is_natural|less_than[3]');
         if (SETTING_avatar_used == 1) {
             $this->form_validation->set_rules('avatar_used', lang('avatar_used'), 'trim|required|xss_clean|is_natural|less_than[2]');
         }
         $this->form_validation->set_rules('timezones', lang('timezone'), 'trim|required|xss_clean');
         $this->form_validation->set_rules('memo', lang('memo'), 'trim|htmlspecialchars|xss_clean');
         //폼검증 성공이면
         if ($this->form_validation->run() == TRUE) {
             //request
             if ($this->input->post('password')) {
                 $req_password = $this->form_validation->set_value('password');
                 $req_password_confirm = $this->form_validation->set_value('password_confirm');
             }
             $req_name = htmlspecialchars($this->form_validation->set_value('name'));
             $req_nickname = htmlspecialchars($this->form_validation->set_value('nickname'));
             $req_email = $this->form_validation->set_value('email');
             $req_message_receive_type = $this->form_validation->set_value('message_receive_type');
             if (SETTING_avatar_used == 1) {
                 $req_avatar_used = $this->form_validation->set_value('avatar_used');
             } else {
                 $req_avatar_used = 0;
                 //설정이 사용중이 아닐때 회원수정하면 그냥 미사용으로하자... 나중에 추가된 설정이라..으.. 귀차니즘..
             }
             $req_timezones = $this->form_validation->set_value('timezones');
             $req_memo = $this->form_validation->set_value('memo');
             $req_avatar_file = $_FILES ? $_FILES['avatar_file']['name'] : NULL;
             $assign['result_msg'] = NULL;
             $modify_fail_msg = array();
             if ($req_avatar_file) {
                 $_FILES['avatar_file']['name'] = strtolower($_FILES['avatar_file']['name']);
                 //아바타 파일 업로드
                 $config['upload_path'] = './avatars/';
                 $config['allowed_types'] = 'gif';
                 $config['overwrite'] = TRUE;
                 $config['file_name'] = USER_INFO_user_id;
                 $config['max_size'] = SETTING_avatar_limit_capacity / 1024;
                 $config['max_width'] = SETTING_avatar_limit_image_size_width;
                 $config['max_height'] = SETTING_avatar_limit_image_size_height;
                 $this->load->library('upload', $config);
                 if (!$this->upload->do_upload('avatar_file')) {
                     $assign['avatar_file_fail'] = $this->upload->display_errors();
                 } else {
                     $avatar_file_data = $this->upload->data();
                     //파일명을 user_id로 올리고 체크하므로 일단 사용할 일이 없음.
                 }
             }
             //닉네임 중복 확인
             $check_nickname = $this->users_model->check('nickname', $req_nickname, ' AND idx <> ' . USER_INFO_idx);
             if ($check_nickname == TRUE) {
                 $modify_fail_msg[] = lang('nickname_duplicate');
             }
             //이메일 중복 확인
             $check_email = $this->users_model->check('email', $req_email, ' AND idx <> ' . USER_INFO_idx);
             if ($check_email == TRUE) {
                 $modify_fail_msg[] = lang('email_duplicate');
             }
             if (count($modify_fail_msg) > 0 or $assign['avatar_file_fail'] !== NULL) {
                 //닉네임, 이메일 중 1개 이상 오류
                 $assign['result_msg'] = join('<br />', $modify_fail_msg);
             } else {
                 if ($this->input->post('password')) {
                     $hash = new PasswordHash(8, FALSE);
                     $super_secured_password = $hash->HashPassword($req_password);
                 }
                 //정상 수정
                 $values = array();
                 $values['password'] = $this->input->post('password') ? $super_secured_password : '';
                 $values['name'] = $req_name;
                 $values['nickname'] = $req_nickname;
                 $values['email'] = $req_email;
                 $values['message_receive_type'] = $req_message_receive_type;
                 $values['avatar_used'] = $req_avatar_used;
                 $values['timezones'] = $req_timezones;
                 $values['memo'] = $req_memo;
                 $result = $this->users_model->modify($values);
                 if ($result == TRUE) {
                     $post_success = TRUE;
                     //최종 성공 여부
                     $assign['message'] = lang('update_success');
                     $assign['redirect'] = '/user/modify';
                     $this->alert($assign);
                 } else {
                     $assign['result_msg'] = lang('modify_fail_msg');
                 }
             }
         }
         if ($post_success == FALSE) {
             for ($i = 0; $i <= 2; $i++) {
                 $assign['message_receive_type'][$i] = array('checked' => '', 'text' => $this->assign['lang']['message_receive_type_' . $i]);
                 if (trim(set_value('message_receive_type')) !== '') {
                     $assign['message_receive_type'][$i]['checked'] = set_radio('message_receive_type', $i);
                 } else {
                     if (USER_INFO_message_receive_type == $i) {
                         $assign['message_receive_type'][$i]['checked'] = 'checked="checked"';
                     } else {
                         $assign['message_receive_type'][$i]['checked'] = '';
                     }
                 }
             }
             $assign['avatar'] = array('file' => '', 'width' => SETTING_avatar_limit_image_size_width, 'height' => SETTING_avatar_limit_image_size_height, 'capacity' => byte_format(SETTING_avatar_limit_capacity), 'used' => array());
             if (file_exists('./avatars/' . USER_INFO_user_id . '.gif') === TRUE) {
                 $assign['avatar']['file'] = BASE_URL . 'avatars/' . USER_INFO_user_id . '.gif';
             }
             for ($i = 0; $i <= 1; $i++) {
                 $assign['avatar']['used'][$i] = array('checked' => '', 'text' => $this->assign['lang']['avatar_used_' . $i]);
                 if (trim(set_value('avatar_used')) !== '') {
                     $assign['avatar']['used'][$i]['checked'] = set_radio('avatar_used', $i);
                 } else {
                     if (USER_INFO_avatar_used == $i) {
                         $assign['avatar']['used'][$i]['checked'] = 'checked="checked"';
                     } else {
                         $assign['avatar']['used'][$i]['checked'] = '';
                     }
                 }
             }
             $assign['timezone_selectbox'] = '';
             if (set_value('timezones')) {
                 $selected_timezone = set_value('timezones');
             } else {
                 $selected_timezone = USER_INFO_timezone;
             }
             $assign['timezone_selectbox'] = timezone_menu($selected_timezone);
             $assign['memo'] = '';
             if (set_value('memo')) {
                 $assign['memo'] = set_value('memo');
             } else {
                 $assign['memo'] = USER_INFO_memo;
             }
             $assign['insert_date'] = time2date(USER_INFO_timestamp_insert);
             $assign['user_id'] = defined('USER_INFO_user_id') === TRUE ? USER_INFO_user_id : '';
             $assign['name'] = set_value('name') !== '' ? set_value('name') : USER_INFO_name;
             $assign['nickname'] = set_value('nickname') !== '' ? set_value('nickname') : USER_INFO_nickname;
             $assign['email'] = set_value('email') !== '' ? set_value('email') : USER_INFO_email;
             $assign['form_null_check'] = "user_id^{$this->assign['lang']['user_id']}|password^{$this->assign['lang']['password']}|password_confirm^{$this->assign['lang']['password_confirm']}|name^{$this->assign['lang']['name']}|nickname^{$this->assign['lang']['nickname']}|email^{$this->assign['lang']['email']}|captcha^CAPTCHA";
             $assign['validation_result'] = validation_errors();
             $assign['validation_message'] = $assign['validation_result'] !== '' ? str_replace("\n", '', $assign['validation_result']) : '';
             $this->scope('contents', 'contents/user/modify', $assign);
             $this->display('layout');
         }
     }
     //로그인,권한 체크 end if
 }
Пример #7
0
    // render the correct input method
    if ($setting['input_type'] == 'input') {
        echo form_input($field_data);
    } elseif ($setting['input_type'] == 'textarea') {
        echo form_textarea($field_data);
    } elseif ($setting['input_type'] == 'radio') {
        echo "<br />";
        foreach ($field_options as $value => $label) {
            echo form_radio(array('name' => $field_data['name'], 'id' => $field_data['id'] . "-" . $value, 'value' => $value, 'checked' => $value == $field_data['value'] ? 'checked' : FALSE));
            echo $label;
        }
    } elseif ($setting['input_type'] == 'dropdown') {
        echo form_dropdown($setting['name'], $field_options, $field_data['value'], 'id="' . $field_data['id'] . '" class="' . $field_data['class'] . '"');
    } elseif ($setting['input_type'] == 'timezones') {
        echo "<br />";
        echo timezone_menu($field_data['value']);
    }
    ?>

                <?php 
    if ($setting['help_text']) {
        ?>
                    <span class="help-block"><?php 
        echo $setting['help_text'];
        ?>
</span>
                <?php 
    }
    ?>
            </div>
        </div>
Пример #8
0
echo br();
?>
				<div class="description">Must be at least 8 characters long</div>
				
				<div class="label required">Re-type Password:</div>
				<?php 
$data = array('name' => 'password_confirmation', 'size' => '30', 'class' => 'input');
echo form_password($data, '');
?>
				<?php 
echo br();
?>
				
				<div class="label required">Default Timezone:</div>
				<?php 
echo timezone_menu(set_value('user_timezone', $this->session->userdata('timezone')), 'select input', 'user_timezone');
?>
				<?php 
echo br();
?>

				<div class="label required">Daylight Savings:</div>
				<?php 
$options = array('2' => 'Automatically Detect', '1' => 'Yes', '0' => 'No');
echo form_dropdown('user_daylight_savings', $options, set_value('daylight_savings'), 'class="select input"');
?>
				<?php 
echo br();
?>
			
				<?php 
Пример #9
0
?>
		</li>
		<li>
			<h3>New password</h3>
			<?php 
echo form_input("newpass");
?>
		</li>
		<li>
			<h3>Group</h3>
			<?php 
echo form_dropdown("group", array(1 => "Admin", 2 => "Member"), $user->group);
?>
		</li>
		<li>
			<h3>Timezone</h3>
			<?php 
echo timezone_menu($user->timezone);
?>
		</li>
		<li>
			<?php 
echo form_submit("", "Edit");
?>
			<?php 
echo anchor("delete/user/" . $user->id, "Delete", array("class" => "delete"));
?>
		</li>
	</ul>
<?php 
echo form_close();
Пример #10
0
                    $data = array('name' => 'setting[' . $setting->setting_id . ']', 'size' => '30', 'class' => 'input');
                    echo form_input($data, set_value('setting[' . $setting->setting_id . ']', $setting->setting_value));
                    ?>
				<?php 
                } elseif ($setting->setting_type == "password") {
                    ?>
					<?php 
                    $data = array('name' => 'setting[' . $setting->setting_id . ']', 'size' => '30', 'class' => 'input');
                    echo form_password($data, set_value('setting[' . $setting->setting_id . ']', $setting->setting_value));
                    ?>
				<?php 
                } elseif ($setting->setting_type == "timezone") {
                    ?>
				
					<?php 
                    echo timezone_menu(set_value('setting[' . $setting->setting_id . ']', $setting->setting_value), 'input select', 'setting[' . $setting->setting_id . ']');
                    ?>
				
				<?php 
                } elseif ($setting->setting_type == "select") {
                    ?>
				
					<?php 
                    echo form_dropdown('setting[' . $setting->setting_id . ']', $setting->options, set_value('setting[' . $setting->setting_id . ']', $setting->setting_value), 'class="input select"');
                    ?>
				
				<?php 
                } elseif ($setting->setting_type == "textarea") {
                    ?>
				
					<?php 
Пример #11
0
	<label for="emailerName">From Name:</label>
	<?php 
    echo @form_input('emailerName', set_value('emailerName', $data['emailerName']), 'id="emailerName" class="formelement"');
    ?>
	<span class="tip">Who do you want to say emails are from (optional)?</span><br class="clear" /><br />

<?php 
}
?>
	
	
	<h2>Site Preferences</h2>	
	
	<label for="headlines">Time Zone:</label>
	<?php 
echo timezone_menu($data['timezone'], 'formelement', 'timezone');
?>
	<br class="clear" />
	
	<label for="dateOrder">Date Format:</label>
	<?php 
$values = '';
$values = array('DM' => 'Day/Month', 'MD' => 'Month/Day');
?>
	<?php 
echo @form_dropdown('dateOrder', $values, set_value('dateOrder', $data['dateOrder']), 'id="dateOrder" class="formelement"');
?>
	<span class="tip">Select how you prefer dates to show.</span>
	<br class="clear" />
	
	<label for="paging">Results per Page:</label>
Пример #12
0
	<form action="<?= current_url() ?>" method="post" class="generic">
		
		<label>
			Phone Extension<br/>
			<input type="text" name="pbx_ext" value="<?=set_value('pbx_ext',$profile->meta->pbx_ext)?>" />
		</label>
		
		<label>
			Click-to-call Extension/Number<br/>
			<input type="text" name="pbx_callback" value="<?=set_value('pbx_callback',$profile->meta->pbx_callback)?>" />
		</label>
		
		<label>
			Voicemail Box<br/>
			<input type="text" name="pbx_ext_mbox" value="<?=set_value('pbx_ext_mbox',$profile->meta->pbx_ext_mbox)?>" />
		</label>
		
		<label>
			Local Timezone<br/>
			<?=timezone_menu($profile->meta->time_zone)?>
		</label>

		<label>
			Time Format<br/>
			<?=form_dropdown('time_format',array('12'=>'12-Hour Time ('.date('g:i A').')','24'=>'24-Hour Time ('.date('H:i').')'),set_value('time_format',$profile->meta->time_format))?>
		</label>
		
		<button type="submit">Save Preferences</button>
		
	</form>
</div>
Пример #13
0
    echo $profile->work;
} else {
    echo '""';
}
?>
" />
                                        </td>
                                    </tr>	
																																				
                                    <tr>
                                        <td class="label" valign="top"><?php 
echo translate("Time Zone");
?>
</td>
                                        <td> <?php 
echo timezone_menu(get_user_timezone($this->dx_auth->get_user_id()));
?>
  </td>
                                    </tr>-->
                              <!--  <tr>
                                        <td class="label" valign="top"><?php 
echo translate("Languages");
?>
</td>
                                        <td> 
                                        	<div class="none text-muted row-space-1">None</div>
                                        	<?php 
if ($user_language != '') {
    foreach ($user_language as $lang) {
        ?>
												<input type="hidden" value="<?php 
Пример #14
0
 public function date_helper()
 {
     $this->load->helper('date');
     echo now('Australia/Victoria');
     echo "<br>";
     echo now('+8');
     echo "<br>";
     $datestring = 'Year: %Y Month: %m Day: %d - %h:%i %a';
     $time = time();
     echo mdate($datestring, $time);
     //at UTC
     echo "<br>";
     $format = 'DATE_RFC822';
     $time = time();
     echo standard_date($format, $time);
     //Deprecated
     echo "<br>";
     echo date(DATE_RFC822, time());
     echo "<br>";
     echo local_to_gmt(time());
     echo "<br>";
     $timestamp = 1140153693;
     $timezone = 'UM8';
     $daylight_saving = TRUE;
     echo gmt_to_local($timestamp, $timezone, $daylight_saving);
     echo "<br>";
     echo "<br>";
     $unix = mysql_to_unix('20061124092345');
     echo $unix;
     echo "<br>";
     echo "<br>";
     $now = time();
     echo unix_to_human($now);
     // U.S. time, no seconds
     echo "<br>";
     echo unix_to_human($now, TRUE, 'us');
     // U.S. time with seconds
     echo "<br>";
     echo unix_to_human($now, TRUE, 'eu');
     // Euro time with seconds
     echo "<br>";
     echo "<br>";
     $now = time();
     $human = unix_to_human($now);
     $unix = human_to_unix($human);
     echo $human;
     echo "<br>";
     echo $unix;
     echo "<br>";
     echo "<br>";
     echo "<br>";
     $bad_date = '199605';
     // Should Produce: 1996-05-01
     $better_date = nice_date($bad_date, 'Y-m-d');
     echo $bad_date;
     echo "<br>";
     echo $better_date;
     echo "<br>";
     echo "<br>";
     $bad_date = '9-11-2001';
     // Should Produce: 2001-09-11
     $better_date = nice_date($bad_date, 'Y-m-d');
     echo $bad_date;
     echo "<br>";
     echo $better_date;
     echo "<br>";
     echo "<br>";
     $post_date = '1079621429';
     $now = time();
     $units = 2;
     echo timespan($post_date, $now, $units);
     echo "<br>";
     echo "<br>";
     echo days_in_month(06, 2005);
     echo "<br>";
     echo "<br>";
     $range = date_range('2012-01-01', '2012-01-15');
     echo "First 15 days of 2012:";
     foreach ($range as $date) {
         echo $date . "\n";
     }
     echo "<br>";
     echo "<br>";
     echo timezones('UM5');
     echo "<br>";
     echo "<br>";
     echo timezone_menu('UM8');
     echo "<br>";
     echo "<br>";
 }
Пример #15
0
</div>
						
						<?php 
        if ($setting['type'] == "text") {
            ?>
							<?php 
            $data = array('name' => 'setting[' . $setting['slug'] . ']', 'size' => '30', 'class' => 'input');
            echo form_input($data, set_value('setting[' . $setting['slug'] . ']', $setting['value']));
            ?>
					
						<?php 
        } elseif ($setting['type'] == "timezone") {
            ?>
					
							<?php 
            echo timezone_menu(set_value('setting[' . $setting['slug'] . ']', $setting['value']), 'input select', 'setting[' . $setting['slug'] . ']');
            ?>
					
					<?php 
        } elseif ($setting['type'] == "select") {
            ?>
					
						<?php 
            echo form_dropdown('setting[' . $setting['slug'] . ']', $setting['options'], set_value('setting[' . $setting['slug'] . ']', $setting['value']), 'class="input select"');
            ?>
					
					<?php 
        } elseif ($setting['type'] == "textarea") {
            ?>
					
						<?php 
Пример #16
0
		<td><input type="text" name="phone_number" size="40" placeholder="503-111-0001" value="<?php 
echo set_value('phone_number', $phone_number);
?>
"></td>
	</tr>
	<tr>
		<td>Language</td>
		<td><?php 
echo form_dropdown('language', config_item('languages'), $language);
?>
</td>		
	</tr>
	<tr>
		<td>Timezone</td>
		<td><?php 
echo timezone_menu($time_zone, 'time_zone', 'time_zone');
?>
</td>
	</tr>
	<tr>
		<td>Geo</td>
		<td><input type="checkbox" class="nullify" name="geo_enabled" value="<?php 
echo $geo_enabled;
?>
"> Add my location to content & updates</td>
	</tr>		
  	<tr>
  		<td>Privacy</td>
  		<td><input type="checkbox" class="nullify" name="privacy" value="<?php 
echo $privacy;
?>
Пример #17
0
    ?>
						<?php 
    echo anchor('account/profile/' . $this->users->user_slug($this->session->userdata('username')), img(array('src' => ADMINCP_URL . 'images/avatar_none.png', 'title' => $this->session->userdata('username'), 'alt' => $this->session->userdata('username'), 'width' => '57', 'height' => '57')));
    ?>
					<?php 
}
?>
					</div>
				</div>
				<?php 
echo br();
?>
				
				<div class="label required">Timezone</div> 
				<?php 
echo timezone_menu(set_value('timezone', $this->ClanCMS->get_setting('default_timezone'), $user->user_timezone), 'input select', 'timezone');
?>
				<?php 
echo br();
?>
				
				<div class="label required">Daylight Savings</div> 
				<?php 
$options = array('2' => 'Automatically Detect', '1' => 'Yes', '0' => 'No');
echo form_dropdown('daylight_savings', $options, set_value('daylight_savings', $user->user_daylight_savings), 'class="input select"');
?>
				<?php 
echo br();
?>
				
				<div class="label required">IP Address</div>
Пример #18
0
    ?>
		<?php 
}
?>

		<div class="control-group <?php 
echo form_error('timezone') ? 'error' : '';
?>
">
			<label class="control-label required" for="timezones"><?php 
echo lang('bf_timezone');
?>
</label>
			<div class="controls">
				<?php 
echo timezone_menu(set_value('timezones'));
?>
				<?php 
if (form_error('timezones')) {
    echo '<span class="help-inline">' . form_error('timezones') . '</span>';
}
?>
			</div>
		</div>

		<?php 
// Allow modules to render custom fields
Events::trigger('render_user_form');
?>

		<!-- Start of User Meta -->
Пример #19
0
<?php 
    }
}
?>

<div ng-show="displayUserInfoSup">

    <br/>

<div class="control-group<?php 
echo iif(form_error('timezone'), $errorClass);
?>
" >
    <label class="control-label required" for="timezones"><?php 
echo lang('bf_timezone');
?>
 </label>
    <div class="form-control">
        <?php 
echo timezone_menu(set_value('timezones', isset($user) ? $user->timezone : $defaultTimezone), $controlClass);
?>
        <span class="help-inline"><?php 
echo form_error('timezones');
?>
</span>
    </div>
</div>

</div><!--  end display user info -->

   
        var parts = phonenum.match(regexObj);
        var phone = "";
        if (parts[1]) { phone += "(" + parts[1] + ") "; }
        phone += parts[2] + "-" + parts[3];
        return phone;
    }
</script>

	
	<h3>Complete Call Log</h3>
	<div style="width: 100%; height: auto; overflow: hidden;">
	<br />
	<form method="POST">
		<label style="display: inline; float: left; margin-right: 20px; font-size: 16px; font-weight: bold; position: relative; top: 6px;">Set Your Timezone</label><?php 
echo timezone_menu(PluginData::get("timezone", 'UM8'));
?>
		<button class="submit-button ui-state-focus" style="margin-left: 4px; display: inline; float: left;" type="submit"><span>Set Timezone</span></button>
		
	</form>
	</div>
	<table>
		<thead>
			<tr>
				<th>Number</th>
				<th>Start Time</th>
				<th>Duration</th>
				<th>Called</th>
				<th>Status</th>
			</tr>
		</thead>
Пример #21
0
</div>
						
						<?php 
        if ($setting['type'] == "text") {
            ?>
							<?php 
            $data = array('name' => 'setting[' . $setting['slug'] . ']', 'size' => '30', 'class' => 'input');
            echo form_input($data, set_value('setting[' . $setting['slug'] . ']', $widget->settings[$setting['slug']]));
            ?>
					
						<?php 
        } elseif ($setting['type'] == "timezone") {
            ?>
					
							<?php 
            echo timezone_menu(set_value('setting[' . $setting['slug'] . ']', $widget->settings[$setting['slug']]), 'input select', 'setting[' . $setting['slug'] . ']');
            ?>
					
					<?php 
        } elseif ($setting['type'] == "select") {
            ?>
					
						<?php 
            echo form_dropdown('setting[' . $setting['slug'] . ']', $setting['options'], set_value('setting[' . $setting['slug'] . ']', $widget->settings[$setting['slug']]), 'class="input select"');
            ?>
					
					<?php 
        } elseif ($setting['type'] == "textarea") {
            ?>
					
						<?php 
Пример #22
0
        echo '<img src="' . $asset_url . 'images/' . DEFAULT_IMAGE . '" alt="" class="image" style="margin-top:10px;" />';
    }
}
?>
				</div>
				<?php 
echo form_error('company_logo', '<label class="error">', '</label>');
?>
			</div>
		</div>

		<div class="form-group">
			<label class="col-sm-3 control-label" for="gmt_offset">Timezone:</label>
			<div class="col-sm-9">
				<?php 
echo timezone_menu($gmt_offset, 'form-control', 'gmt_offset');
?>
				<?php 
echo form_error('gmt_offset', '<label class="error">', '</label>');
?>
			</div>
		</div>

		<div class="form-group">
			<label class="col-sm-3 control-label" for="active">Status: </label>
			<div class="col-sm-8">
				<div class="mt5">
					<label class="radio-inline">
						<input type="radio" id="active_0" name="active" value="1" class="ace" <?php 
if ($active == "1") {
    ?>
Пример #23
0
?>
				<div class="description">Put your clan name here.</div>

				<div class="label required">Site Email:</div>
				<?php 
$data = array('name' => 'site_email', 'size' => '30', 'class' => 'input');
echo form_input($data, set_value('site_email', ''));
?>
				<?php 
echo br();
?>
				<div class="description">The main email used to contact users (noreply@xcelgaming.com)</div>

				<div class="label required">Default Timezone:</div>
				<?php 
echo timezone_menu(set_value('timezone', 'UM5'), 'select input', 'timezone');
?>
				<?php 
echo br();
?>
				<div class="description">Default is set to EST (UTC -5:00)</div>

				<div class="label required">Daylight Savings:</div>
				<?php 
$options = array('1' => 'Yes', '0' => 'No');
echo form_dropdown('daylight_savings', $options, set_value('daylight_savings'), 'class="select input"');
?>
				<?php 
echo br();
?>
			
Пример #24
0
			<input type="text" class="text" name="postal_code" id="postal_code" value="<?php 
echo $form['postal_code'];
?>
" />
		</li>
		<li>
			<label for="phone">Phone</label>
			<input type="text" class="text" id="phone" name="phone" value="<?php 
echo $form['phone'];
?>
" />
		</li>
		<li>
			<label for="timezone">Timezone</label>
			<?php 
echo timezone_menu($form['gmt_offset']);
?>
		</li>
	</ul>
</fieldset>
<fieldset>
	<legend>Access</legend>
	<ul class="form">
		<li>
			<label for="client_type">Client Type</label>
			<select name="client_type" id="client_type">
				<?php 
if ($this->user->Get('client_type_id') == '3') {
    ?>
<option <?php 
    if ($form['client_type'] == '1') {
Пример #25
0
        }
        ?>
        </select>
        <span class="help-inline"><?php 
        echo form_error('language');
        ?>
</span>
    </div>
</div>
<?php 
    }
}
?>
<div class="control-group<?php 
echo form_error('timezone') ? $errorClass : '';
?>
">
    <label class="control-label required" for="timezones"><?php 
echo lang('bf_timezone');
?>
</label>
    <div class="controls">
        <?php 
echo timezone_menu(set_value('timezones', isset($user) ? $user->timezone : $defaultTimezone), $controlClass, 'timezones', array('id' => 'timezones'));
?>
        <span class="help-inline"><?php 
echo form_error('timezones');
?>
</span>
    </div>
</div>
Пример #26
0
		<td><input type="email" name="email" size="40" value="<?php 
echo set_value('email', $email);
?>
"></td>
	</tr>
	<tr>
		<td>Language</td>
		<td><?php 
echo form_dropdown('language', config_item('languages'), $language);
?>
</td>		
	</tr>
	<tr>
		<td>Timezone</td>
		<td><?php 
echo timezone_menu($time_zone);
?>
</td>
	</tr>
	<tr>
		<td>Geo</td>
		<td><input type="checkbox" name="geo_enabled" value="<?php 
echo $geo_enabled;
?>
"> Add my location to content & updates</td>
	</tr>		
  	<tr>
  		<td>Privacy</td>
  		<td><input type="checkbox" name="privacy" value="<?php 
echo $privacy;
?>
Пример #27
0
<?php

echo form_hidden('need_user_activation', 'n');
$this->table->add_row(lang('need_user_activation'), form_checkbox('need_user_activation', 'y', @$need_user_activation == 'y'));
$this->table->add_row("Admin Email", form_input('admin_email', @$admin_email));
$this->table->add_row("Time Zone", timezone_menu(@$timezones));
$this->table->add_row("Cleanses's time gap, hours", form_input('time_gap', @$time_gap));
Пример #28
0
echo "<br />";
echo form_input_date($fy_start);
echo "<br />";
echo "<span class=\"form-help-text\">Warning : Financial Year Start cannot be changed later.<br />Format as per 'Date Foramt' selected abobe.</span>";
echo "</p>";
echo "<p>";
echo form_label('Financial Year End', 'fy_end');
echo "<br />";
echo form_input_date($fy_end);
echo "<br />";
echo "<span class=\"form-help-text\">Warning : Financial Year End cannot be changed later.<br />Format as per 'Date Foramt' selected abobe.</span>";
echo "</p>";
echo "<p>";
echo form_label('Timezone');
echo "<br />";
echo timezone_menu($account_timezone);
echo "</p>";
echo "<p>";
echo form_fieldset('Database Settings', array('class' => "fieldset-auto-width"));
echo "<p>";
echo form_checkbox('create_database', 1, $create_database) . " Create database if it does not exists";
echo "</p>";
echo "<p>";
echo form_label('Database Name', 'database_name');
echo "<br />";
echo form_input($database_name);
echo "</p>";
echo "<p>";
echo form_label('Database Username', 'database_username');
echo "<br />";
echo form_input($database_username);
					<td><?php 
echo lang('language', 'language');
?>
</td>
					<td><?php 
echo form_dropdown('language', $language_options, set_value('language'));
?>
</td>
				</tr>
				<tr class="even">
					<td><?php 
echo lang('timezone', 'timezone');
?>
</td>
					<td><?php 
echo timezone_menu();
?>
</td>
				</tr>
				<tr class="odd">
					<td><?php 
echo lang('time_format', 'time_format');
?>
</td>
					<td><?php 
echo form_dropdown('time_format', array('us' => lang('united_states'), 'eu' => lang('european')), set_value('time_format'));
?>
</td>
				</tr>
				<tr class="even">
					<td><?php 
Пример #30
0
<form method="post" action="/user/preferences" id="preferences_form">
<h3>Timezone</h3>
<input type="hidden" name="preferences_submit" value="yes" />
<p>The timezone you select affects the time your messages are sent, so please choose carefully!</p>
<?php 
echo timezone_menu($preferences['timezone']);
?>
<br />
<h3>Notifications</h3>
<input type="checkbox" name="notify_on_reply" id="notify_on_reply" <?php 
echo $preferences['notify_on_reply'] == 1 ? "Checked" : "";
?>
 /><label for="notify_on_reply">Notify me by email when somebody replies</label><br />
<input type="checkbox" name="use_popup_notifications" id="use_popup_notifications" <?php 
echo $preferences['use_popup_notifications'] == 1 ? "Checked" : "";
?>
 /><label for="use_popup_notifications">Also popup notifications for SMS sent & received when I'm logged in</label>

<h3>Budget cap</h3>
<p>The budget cap is used to help you keep track of your spending each month.<br />
Require password once I've spent $<input type="text" name="budget_cap" id="budget_cap" value="<?php 
echo $preferences['budget_cap'];
?>
" /> in 30 days.</p>

<div class="buttons">
					<a href="#" class="button save-big" onClick="document.forms['preferences_form'].submit();">Save Preferences</a>
				</div>
</form>
<h3 style="clear: both;">Anything else?</h3>
<ul>