Пример #1
0
detectTimeZone">
    <?php 
echo yes_no_widget('user[autodetect_time_zone]', 'userFormAutoDetectTimezone', user_config_option('autodetect_time_zone', null, $user->getId()), lang('yes'), lang('no'), null, array('onclick' => "og.showSelectTimezone('{$genid}')"));
?>
    </div>
    <div id="<?php 
echo $genid;
?>
selecttzdiv" <?php 
if (user_config_option('autodetect_time_zone', null, $user->getId())) {
    echo 'style="display:none"';
}
?>
>
    <?php 
echo select_timezone_widget('user[timezone]', array_var($user_data, 'timezone'), array('id' => 'userFormTimezone', 'class' => 'long', 'tabindex' => '600'));
?>
    </div>
  
	  <script type="text/javascript">
	  
		og.showSelectTimezone = function(genid)	{
			check = document.getElementById("userFormAutoDetectTimezoneYes");
			div = document.getElementById(genid + "selecttzdiv");
			if (check.checked){
				div.style.display= "none";
			}else{
				div.style.display= "";
			}
			
		  };
Пример #2
0
}
// if
?>
		
	
  <div id="add_company_timezone" style="display:none">
  <fieldset>
    <legend><?php 
echo lang('timezone');
?>
</legend>
    <?php 
echo label_tag(lang('timezone'), 'clientFormTimezone', false);
?>
    <?php 
echo select_timezone_widget('company[timezone]', array_var($company_data, 'timezone'), array('id' => 'clientFormTimezone', 'class' => 'long', 'tabindex' => '190'));
?>
  </fieldset>
  </div>
  
  <?php 
foreach ($categories as $category) {
    ?>
	<div <?php 
    if (!$category['visible']) {
        echo 'style="display:none"';
    }
    ?>
 id="<?php 
    echo $genid . $category['name'];
    ?>
Пример #3
0
  
  <div>
    <?php 
echo label_tag(lang('homepage'), 'profileFormHomepage', false);
?>
    <?php 
echo text_field('user[homepage]', array_var($user_data, 'homepage'), array('id' => 'profileFormHomepage', 'class' => 'long'));
?>
  </div>
  
  <div>
    <?php 
echo label_tag(lang('timezone'), 'profileFormTimezone', true);
?>
    <?php 
echo select_timezone_widget('user[timezone]', array_var($user_data, 'timezone'), array('id' => 'profileFormTimezone', 'class' => 'long'));
?>
  </div>

  <div>
    <?php 
echo label_tag(lang('use gravatar'), 'profileFormUseGravatar', true);
?>
    <?php 
echo yes_no_widget('user[use_gravatar]', 'profileFormUseGravatar', array_var($user_data, 'use_gravatar'), lang('yes'), lang('no'));
?>
  </div>
    
<?php 
if (is_array($im_types) && count($im_types)) {
    ?>
Пример #4
0
      <?php echo radio_field('contact[company][what]', array_var(array_var($contact_data, 'company'), 'what') != 'new', array('value' => 'existing', 'id'=>'contactFormExistingCompany')); ?>
      <?php echo label_tag(lang('existing company'), 'contactFormExistingCompany', false, array('class' => 'checkbox')) ?>
    </div>
    <div id="contactFormExistingCompanyControls">
      <?php echo select_company('contact[company_id]', array_var($contact_data, 'company_id'), array('id' => 'contactFormCompany', 'class' => 'combobox')) ?>
    </div>
  
    <div>
      <?php echo radio_field('contact[company][what]', array_var(array_var($contact_data, 'company'), 'what') == 'new', array('value' => 'new', 'id'=>'contactFormNewCompany')); ?>
      <?php echo label_tag(lang('new company'), 'contactFormNewCompany', false, array('class'=>'checkbox'))?>
    </div>
    <div id="contactFormNewCompanyControls">
      <?php echo label_tag(lang('company name'), 'contactFormNewCompanyName', true) ?>
      <?php echo text_field('contact[company][name]', null, array('id' => 'contactFormNewCompanyName')) ?>
      <?php echo label_tag(lang('timezone'), 'contactFormNewCompanyTimezone', true)?>
      <?php echo select_timezone_widget('contact[company][timezone]', owner_company()->getTimezone(), array('id' => 'contactFormNewCompanyTimezone', 'class' => 'long combobox')) ?>
    </div>
  </fieldset>

<?php } else { ?>
  <div>
    <?php echo label_tag(lang('company name'), 'contactFormCompany', false) ?>
    <span><?php echo $company->getName()." (".lang('administrator').")"; ?></span>
  </div>
<?php } // if ?>
<?php } else { ?>
  <input type="hidden" name="contact[company_id]" value="<?php echo $company->getId()?>" />
<?php } // if ?>
  
  <div>
    <?php echo label_tag(lang('title'), 'contactFormTitle') ?>
Пример #5
0
<?php tpl_display(get_template_path('form_errors')) ?>

  <div>
    <?php echo label_tag(lang('username'), 'userFormName', true) ?>
    <?php echo text_field('user[username]', array_var($user_data, 'username'), array('class' => 'medium', 'id' => 'userFormName')) ?>
  </div>
  
  <div>
    <?php echo label_tag(lang('email address'), 'userFormEmail', true) ?>
    <?php echo text_field('user[email]', array_var($user_data, 'email'), array('class' => 'long', 'id' => 'userFormEmail')) ?>
  </div>
  
  <div>
    <?php echo label_tag(lang('timezone'), 'userFormTimezone', true)?>
    <?php echo select_timezone_widget('user[timezone]', array_var($user_data, 'timezone'), array('id' => 'userFormTimezone', 'class' => 'long combobox')) ?>
  </div>
  
<?php if ($user->isNew() || logged_user()->isAdministrator()) { ?>
  <fieldset>
    <legend><?php echo lang('password') ?></legend>
    <div>
      <?php echo radio_field('user[password_generator]', array_var($user_data, 'password_generator') == 'random', array('value' => 'random', 'class' => 'checkbox', 'id' => 'userFormRandomPassword')) ?> <?php echo label_tag(lang('user password generate'), 'userFormRandomPassword', false, array('class' => 'checkbox'), '') ?>
    </div>
    <div>
      <?php echo radio_field('user[password_generator]', array_var($user_data, 'password_generator') == 'specify', array('value' => 'specify', 'class' => 'checkbox', 'id' => 'userFormSpecifyPassword')) ?> <?php echo label_tag(lang('user password specify'), 'userFormSpecifyPassword', false, array('class' => 'checkbox'), '') ?>
    </div>
    <div id="userFormPasswordInputs">
      <div>
        <?php echo label_tag(lang('password'), 'userFormPassword', true) ?>
        <?php echo password_field('user[password]', null, array('id' => 'userFormPassword')) ?>
Пример #6
0
      <div>
        <?php 
    echo label_tag(lang('email address'), 'contactFormUserEmail', true);
    ?>
        <?php 
    echo text_field('contact[user][email]', array_var($user_data, 'email'), array('class' => 'long', 'id' => 'contactFormUserEmail'));
    ?>
      </div>

      <div>
        <?php 
    echo label_tag(lang('timezone'), 'contactFormUserTimezone', true);
    ?>
        <?php 
    echo select_timezone_widget('contact[user][timezone]', array_var($user_data, 'timezone') ? array_var($user_data, 'timezone') : owner_company()->getTimezone(), array('id' => 'contactFormUserTimezone', 'class' => 'long combobox'));
    ?>
      </div>

      <fieldset>
        <legend><?php 
    echo lang('password');
    ?>
</legend>
        <div>
          <?php 
    echo radio_field('contact[user][password_generator]', array_var($user_data, 'password_generator') == 'random', array('value' => 'random', 'class' => 'checkbox', 'id' => 'userFormRandomPassword'));
    ?>
 <?php 
    echo label_tag(lang('user password generate'), 'userFormRandomPassword', false, array('class' => 'checkbox'), '');
    ?>
Пример #7
0
			<div><?php 
echo label_tag(lang('birthday'), $genid . 'profileFormBirthday');
?>
 
			<?php 
//echo pick_date_widget('contact[o_birthday]', array_var($contact_data, 'o_birthday'), 1902, date("Y"))
?>
			<?php 
echo pick_date_widget2('contact[o_birthday_value]', array_var($contact_data, 'o_birthday'), $genid, 265);
?>
			</div>
			<div><?php 
echo label_tag(lang('timezone'), $genid . 'profileFormTimezone');
?>
 <?php 
echo select_timezone_widget('contact[timezone]', array_var($contact_data, 'timezone'), array('id' => $genid . 'profileFormTimezone', 'class' => 'long', 'tabindex' => '270'));
?>
			</div>
			</td>
		</tr>
	</table>
	</fieldset>
	</div>
	
	<div style="display:none" id="<?php 
echo $genid;
?>
add_contact_notes">
	<fieldset><legend><?php 
echo lang('notes');
?>
Пример #8
0
							<div style="float:left; padding-top: 5px; margin: 0 15px 0 0;">
							<?php 
    echo yes_no_widget('contact[autodetect_time_zone]', $genid . 'userFormAutoDetectTimezone', user_config_option('autodetect_time_zone', null, $contact->getId()), lang('yes'), lang('no'), null, array('onclick' => "og.showSelectTimezone('{$genid}');{$on_autodetect_click}"));
    ?>
							</div>
							<div id="<?php 
    echo $genid;
    ?>
selecttzdiv" <?php 
    if (user_config_option('autodetect_time_zone', null, $contact->getId())) {
        echo 'style="float:left; display:none; "';
    }
    ?>
>
								<?php 
    echo select_timezone_widget('contact[timezone]', array_var($contact_data, 'timezone'), array('id' => $genid . 'userFormTimezone', 'class' => 'long'));
    ?>
							</div>
							
						</div>
						<div class="clear"></div>
					</div>
				</div>
				
				<div class="input-container">
					<?php 
    echo label_tag(lang('username'), $genid . 'profileFormUsername');
    ?>
	      			<?php 
    echo text_field('user[username]', array_var($contact_data, 'username'), array('id' => $genid . 'profileFormUsername'));
    ?>