Example #1
0
	public function formInput(&$controller, $tagOptions=array())
	{
		ob_start();
		$inputName = $this->formInputName();
		$inputID = "i_{$inputName}";
		echo CHtml::label($this->label, $inputID);
		echo CHtml::tag('br');
		if($this->isReadonly)
			$tagOptions['disabled'] = true;

		$tagOptions['id'] = $inputID;
		if($this->value)
		{
			$tagOptions['value'] = 1;
			?>
			<div>
				<?php echo Yii::t('AutoAdmin.form', '<span class="warning">Replace</span> password')?> (<?php echo Yii::t('AutoAdmin.form', 'set checkbox on for confirm')?>):
				<br/><label><?php echo CHtml::checkBox("{$inputName}[is_new]", null, $tagOptions)?>&nbsp;<?php echo Yii::t('AutoAdmin.common', 'Yes')?></label>
			</div>
			<?php
			echo CHtml::passwordField("{$inputName}[val]", '******', array('disabled'=>true));
		}
		else
		{
			if(!empty($this->options['pattern']))
				$tagOptions['pattern'] = $this->options['pattern'];
			if(isset($this->options['maxlength']))
				$tagOptions['maxlength'] = $this->options['maxlength'];
			echo CHtml::passwordField("{$inputName}[val]", $this->value, $tagOptions);
		}

		return ob_get_clean();
	}
Example #2
0
 public function newLoginForm()
 {
     $sUserName = '';
     $sPassword = '';
     if (Yii::app()->getConfig("demoMode") === true && Yii::app()->getConfig("demoModePrefill") === true) {
         $sUserName = Yii::app()->getConfig("defaultuser");
         $sPassword = Yii::app()->getConfig("defaultpass");
     }
     $this->getEvent()->getContent($this)->addContent(CHtml::tag('li', array(), "<label for='user'>" . gT("Username") . "</label>" . CHtml::textField('user', $sUserName, array('size' => 40, 'maxlength' => 40))))->addContent(CHtml::tag('li', array(), "<label for='password'>" . gT("Password") . "</label>" . CHtml::passwordField('password', $sPassword, array('size' => 40, 'maxlength' => 40))));
 }
Example #3
0
 /**
  * Generates a password field input.
  * @param string the input name
  * @param string the input value
  * @param array additional HTML attributes. Besides normal HTML attributes, a few special
  * attributes are also recognized (see {@link clientChange} and {@link tag} for more details.)
  * @return string the generated input field
  * @see clientChange
  * @see inputField
  */
 public static function passwordField($name, $value = '', $htmlOptions = array())
 {
     if (isset($htmlOptions['class'])) {
         if (stripos($htmlOptions['class'], 'ui-corner-all') === false) {
             $htmlOptions['class'] .= ' ui-corner-all';
         }
     } else {
         $htmlOptions['class'] = 'ui-corner-all';
     }
     return parent::passwordField($name, $value, $htmlOptions);
 }
 /**
  * Run this widget.
  * This method registers necessary CSS and JS files and renders the needed JS and HTML code.
  */
 public function run()
 {
     list($name, $id) = $this->resolveNameID();
     if (isset($this->htmlOptions['id'])) {
         $id = $this->htmlOptions['id'];
     } else {
         $this->htmlOptions['id'] = $id;
     }
     if (isset($this->htmlOptions['name'])) {
         $name = $this->htmlOptions['name'];
     }
     if ($this->hasModel()) {
         echo CHtml::activePasswordField($this->model, $this->attribute, $this->htmlOptions);
     } else {
         echo CHtml::passwordField($name, $this->value, $this->htmlOptions);
     }
     $this->registerClientScript();
     $this->registerClientScriptFiles();
 }
 /**
  *### .run()
  *
  * Runs the widget.
  */
 public function run()
 {
     list($name, $id) = $this->resolveNameID();
     if ($this->hasModel()) {
         if ($this->form) {
             echo $this->form->passwordField($this->model, $this->attribute, $this->htmlOptions);
         } else {
             echo CHtml::activePasswordField($this->model, $this->attribute, $this->htmlOptions);
         }
     } else {
         echo CHtml::passwordField($name, $this->value, $this->htmlOptions);
     }
     $this->registerClientScript();
     $options = !empty($this->options) ? CJavaScript::encode($this->options) : '';
     ob_start();
     echo "jQuery('#{$id}').passField({$options})";
     foreach ($this->events as $event => $handler) {
         echo ".on('{$event}', " . CJavaScript::encode($handler) . ")";
     }
     Yii::app()->getClientScript()->registerScript(__CLASS__ . '#' . $this->getId(), ob_get_clean() . ';');
 }
Example #6
0
echo CHtml::textField('email_address', isset($data['email_address']) ? $data['email_address'] : "", array('class' => "uk-form-width-large", 'data-validation' => "required"));
?>
</div>

<?php 
$FunctionsK = new FunctionsK();
$FunctionsK->clientRegistrationCustomFields(true, $data);
?>

<div class="uk-form-row">
  <label class="uk-form-label"><?php 
echo Yii::t("default", "Password");
?>
</label>
  <?php 
echo CHtml::passwordField('password', '', array('class' => "uk-form-width-large"));
?>
</div>

<div class="uk-form-row">
  <label class="uk-form-label"><?php 
echo Yii::t("default", "Street Address");
?>
</label>
  <?php 
echo CHtml::textField('street', isset($data['street']) ? $data['street'] : "", array('class' => "uk-form-width-large", 'data-validation' => "required"));
?>
</div>

<div class="uk-form-row">
  <label class="uk-form-label"><?php 
 public function renderPassword($name, array $metaData, $form = null)
 {
     $out = '';
     $id = $name;
     $value = isset($metaData['current']) ? $metaData['current'] : '';
     if (isset($metaData['label'])) {
         $out .= CHtml::label($metaData['label'], $id, $metaData['labelOptions']);
     }
     $out .= CHtml::passwordField($id, $value, array('id' => $id, 'form' => $form));
     return $out;
 }
            </div>
            <div class="controls">
                <?php 
echo CHtml::passwordField('Member[pr_member_new_password]', '');
?>
                <div class="help-inline error" id="pr_member_password_confirm_error"><?php 
echo $error['confirm'] . $error['eval'];
?>
</div>
            </div>
        </div>
        <div class="control-group ">
            <div>
                <?php 
echo CHtml::label('Xác nhận mật khẩu <span class="required">*</span>', 'pr_member_confirm_password', array('class' => 'control-label required'));
?>
            </div>
            <div class="controls">
                <?php 
echo CHtml::passwordField('Member[pr_member_confirm_password]', '');
?>
                <div class="help-inline error" id="pr_member_password_confirm_error"></div>
            </div>
        </div>
	<div class="form-actions">
            <?php 
$this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'type' => 'primary', 'label' => 'Save', 'ajaxOptions' => array('type' => 'POST')));
?>
	</div>
<?php 
$this->endWidget();
Example #9
0
    ?>
					</div>
				<?php 
}
?>

				<?php 
if (!$success) {
    ?>
					<p>
						<?php 
    echo Yii::t('DefaultTheme', 'To change the email address associated to your account, please enter your current password.');
    ?>
					</p>
					<?php 
    echo CHtml::passwordField('password', isset($_POST['password']) ? $_POST['password'] : '', array('placeholder' => Yii::t('DefaultTheme', 'Your current password')));
    ?>
					<?php 
    $this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'type' => 'success', 'label' => 'Submit', 'htmlOptions' => array('id' => 'submit-comment', 'class' => 'sharebox-submit pull-right', 'style' => 'margin-top: -4px')));
    ?>
	            <?php 
}
?>
			</div>
			
			<?php 
$this->endWidget();
?>
		</div>
	</div>
</div>
Example #10
0
    		
		<div class="row">
			<?php 
echo $form->labelEx($model, 'username');
?>
			<?php 
echo CHtml::textField("txtUsername");
?>
		</div>
	
		<div class="row">
			<?php 
echo $form->labelEx($model, 'password');
?>
			<?php 
echo CHtml::passwordField("txtPassword");
?>
		</div>
		<?php 
echo CHtml::hiddenField("login", 1);
?>
		<div class="clb"></div>
		<div class="row submit">
			<?php 
echo CHtml::submitButton('Login');
?>
		</div>
	
	<?php 
$this->endWidget();
?>
Example #11
0
                                                </div>
                                        </div>
                                        <div class="form-group">
                                                <label class="col-lg-2 control-label">Mail username:</label>
                                                <div class="col-lg-4">
                                                        <?php 
echo CHtml::textField('settings[' . Constants::KEY_EMAIL_USERNAME . ']', $settings[Constants::KEY_EMAIL_USERNAME], array('class' => 'form-control'));
?>
                                                        <p class="help-block">e.g noreply@xchnge.co</p>
                                                </div>
                                        </div>
                                        <div class="form-group">
                                                <label class="col-lg-2 control-label">Mail password:</label>
                                                <div class="col-lg-4">
                                                        <?php 
echo CHtml::passwordField('settings[' . Constants::KEY_EMAIL_PASSWORD . ']', $settings[Constants::KEY_EMAIL_PASSWORD], array('class' => 'form-control'));
?>
                                                        <p class="help-block">Password for the username.</p>
                                                </div>
                                        </div>
                                        <div class="form-group">
                                                <label class="col-lg-2 control-label">Mail security:</label>
                                                <div class="col-lg-4">
                                                        <?php 
echo CHtml::dropDownList('settings[' . Constants::KEY_EMAIL_SECURITY . ']', $settings[Constants::KEY_EMAIL_SECURITY], array('' => 'NULL', 'ssl' => 'SSL', 'tls' => 'TLS'), array('class' => 'form-control'));
?>
                                                </div>
                                        </div>
                                </div>
                                <div class="form-group">
                                        <label class="col-lg-2 control-label">Mail Theme:</label>
Example #12
0
 private function renderInputFieldByType($form, $attribute)
 {
     if (array_search($attribute, $this->password) !== FALSE) {
         echo CHtml::passwordField($attribute, $this->model->{$attribute}, array('size' => 45));
         return;
     }
     if (array_search($attribute, $this->images) !== FALSE) {
         echo $form->fileField($this->model, $attribute);
         return;
     }
     if (array_search($attribute, $this->bool) !== FALSE) {
         echo $form->checkBox($this->model, $attribute);
         return;
     }
     if (isset($this->dropDownData[$attribute])) {
         echo $form->dropDownList($this->model, $attribute, $this->dropDownData[$attribute]);
         return;
     }
     if (array_search($attribute, $this->datetime) !== FALSE) {
         $this->widget('core.extensions.yii-backvendor.extensions.timepicker.EJuiDateTimePicker', array('name' => $this->modelName . '[' . $attribute . ']', 'value' => $this->model->{$attribute}, 'options' => array('dateFormat' => 'yy-mm-dd', 'timeFormat' => 'hh:mm:ss'), 'language' => ''));
         return;
     }
     echo $form->textField($this->model, $attribute, array('size' => 45));
     return;
 }
Example #13
0
    ?>

  <h2><?php 
    echo Yii::t("default", "Reset Password");
    ?>
</h2>
  
  <div class="uk-form-row">  
  <?php 
    echo CHtml::passwordField('password', '', array('class' => "uk-form-width-large", 'data-validation' => "required", 'placeholder' => Yii::t("default", "New Password")));
    ?>
  </div>

  <div class="uk-form-row">  
  <?php 
    echo CHtml::passwordField('confirm_password', '', array('class' => "uk-form-width-large", 'data-validation' => "required", 'placeholder' => Yii::t("default", "Confirm Password")));
    ?>
  </div>
  
  <div class="uk-form-row">   
    <input type="submit" value="<?php 
    echo Yii::t("default", "Submit");
    ?>
" class="change-pass-btn uk-button uk-button-success uk-width-1-4">
  </div>
  </form>
  
  <?php 
} else {
    ?>
  <p class="uk-text-danger"><?php 
Example #14
0
		</div>
        <div
            class="large-<?php 
    echo $layoutColumns['field'];
    ?>
 column<?php 
    if (empty($htmlOptions['append-text']) || empty($layoutColumns['append-text'])) {
        ?>
 end<?php 
    }
    ?>
">
            <?php 
    switch ($htmlOptions['type']) {
        case 'password':
            echo CHtml::passwordField($name, $value, $htmlOptions);
            break;
        case 'number':
            echo CHtml::numberField($name, $value, $htmlOptions);
            break;
        case 'time':
            echo CHtml::timeField($name, $value, $htmlOptions);
            break;
        case 'text':
        default:
            echo CHtml::textField($name, $value, $htmlOptions);
    }
    if (!empty($links)) {
        foreach ($links as $link) {
            echo '<span class="field-info">' . CHtml::link($link['title'], $link['href'], array('id' => $link['id'])) . '</span>';
        }
Example #15
0
if (Yii::app()->user->id == $model->id || Yii::app()->user->checkAccess('admin')) {
    ?>
        <div class="form-group">
            <label class="col-sm-2 control-label">Mật khẩu mới</label>
            <div class="col-sm-4">
                <?php 
    echo CHtml::passwordField('new_pass', '', array('class' => 'form-control', 'placeholder' => 'Cập nhật lại mật khẩu nếu cần thay đổi'));
    ?>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">Mật khẩu xác nhận</label>
            <div class="col-sm-4">
                <?php 
    echo CHtml::passwordField('confirm_pass', '', array('class' => 'form-control', 'placeholder' => 'Xác nhận mật khẩu'));
    ?>
            </div>
        </div>

        <div class="form-group">
            <?php 
    echo $form->labelEx($model, 'hvt', array('class' => 'col-sm-2 control-label'));
    ?>
            <div class="col-sm-2">
                <?php 
    echo $form->telField($model, 'lastname', array('class' => 'form-control', 'size' => 20, 'maxlength' => 20, 'placeholder' => 'Họ của bạn...'));
    ?>
                <?php 
    echo $form->error($model, 'lastname');
    ?>
Example #16
0
<p>Please fill out the following form with your login credentials:</p>

<div class="form">
<?php 
$form = $this->beginWidget('CActiveForm', array('id' => 'login-form', 'enableAjaxValidation' => true));
?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<div class="row">
		<?php 
echo CHtml::label('Pin', 'pin');
?>
		<?php 
echo CHtml::passwordField('pin');
?>
	</div>
	
	<div class="row">
		<?php 
echo $form->labelEx($model, 'username');
?>
		<?php 
echo $form->textField($model, 'username');
?>
		<?php 
echo $form->error($model, 'username');
?>
	</div>
Example #17
0
    public function checkOut()
    {
        ?>
     
	<?php 
        $js_lang = Yii::app()->functions->jsLanguageAdmin();
        ?>
	<?php 
        $js_lang_validator = Yii::app()->functions->jsLanguageValidator();
        ?>
	<script type="text/javascript">
	var js_lang=<?php 
        echo json_encode($js_lang);
        ?>
;
	var jsLanguageValidator=<?php 
        echo json_encode($js_lang_validator);
        ?>
;
	</script>
<script src="<?php 
        echo Yii::app()->request->baseUrl;
        ?>
/assets/vendor/JQV/form-validator/jquery.form-validator.min.js" type="text/javascript"></script>
     	
<div class="page-right-sidebar checkout-page">
  <div class="main">
  <div class="inner">
     <div class="uk-grid">
       <div class="uk-width-1-2">  
          <form id="forms" class="forms uk-panel uk-panel-box uk-form" method="POST" onsubmit="return false;">
             <?php 
        echo CHtml::hiddenField('action', 'clientLogin');
        ?>
             <?php 
        echo CHtml::hiddenField('currentController', 'store');
        ?>
             <?php 
        echo CHtml::hiddenField('redirect', Yii::app()->request->baseUrl . "/store/paymentOption");
        ?>
             <h3><?php 
        echo Yii::t("default", "Log in to your account");
        ?>
</h3>
             <div class="uk-form-row">
               <?php 
        echo CHtml::textField('username', '', array('class' => 'uk-width-1-1', 'placeholder' => Yii::t("default", "Email"), 'data-validation' => "required"));
        ?>
             </div>
             <div class="uk-form-row">
             <?php 
        echo CHtml::passwordField('password', '', array('class' => 'uk-width-1-1', 'placeholder' => Yii::t("default", "Password"), 'data-validation' => "required"));
        ?>
             </div>
             <div class="uk-form-row">
             <input type="submit" value="<?php 
        echo Yii::t("default", "Login");
        ?>
" class="uk-button uk-width-1-1 uk-button-success">
             </div>
             
          </form>
       </div>
       <div class="uk-width-1-2">
          <form id="form-signup" class="form-signup uk-panel uk-panel-box uk-form" method="POST" onsubmit="return false;">
            <?php 
        echo CHtml::hiddenField('action', 'clientRegistration');
        ?>
            <?php 
        echo CHtml::hiddenField('currentController', 'store');
        ?>
            <?php 
        echo CHtml::hiddenField('redirect', Yii::app()->request->baseUrl . "/store/paymentOption");
        ?>
             <h3><?php 
        echo Yii::t("default", "Sign up");
        ?>
</h3>
             <div class="uk-form-row">
              <?php 
        echo CHtml::textField('first_name', '', array('class' => 'uk-width-1-1', 'placeholder' => Yii::t("default", "First Name"), 'data-validation' => "required"));
        ?>
             </div>
             <div class="uk-form-row">
              <?php 
        echo CHtml::textField('last_name', '', array('class' => 'uk-width-1-1', 'placeholder' => Yii::t("default", "Last Name"), 'data-validation' => "required"));
        ?>
             </div>
             
             <div class="uk-form-row">
		      <?php 
        echo CHtml::textField('contact_phone', '', array('class' => 'uk-width-1-1', 'placeholder' => yii::t("default", "Mobile"), 'data-validation' => "required"));
        ?>
		     </div>
             
             <div class="uk-form-row">
              <?php 
        echo CHtml::textField('email_address', '', array('class' => 'uk-width-1-1', 'placeholder' => Yii::t("default", "Email address"), 'data-validation' => "email"));
        ?>
             </div>
             <div class="uk-form-row">
              <?php 
        echo CHtml::passwordField('password', '', array('class' => 'uk-width-1-1', 'placeholder' => Yii::t("default", "Password"), 'data-validation' => "required"));
        ?>
             </div>
             <p class="uk-text-muted" style="text-align: left;">
             <?php 
        echo Yii::t("default", "By creating an account, you agree to receive sms from vendor.");
        ?>
             </p>
             <div class="uk-form-row">
             <input type="submit" value="<?php 
        echo Yii::t("default", "Create Account");
        ?>
" class="uk-button uk-width-1-1 uk-button-primary">
             </div>
          </form>
       </div>
     </div>
     </div>
  </div> <!--main-->
</div> <!--menu-wrapper-->
<script type="text/javascript">
$.validate({ 	
	language : jsLanguageValidator,
    form : '#forms',    
    onError : function() {      
    },
    onSuccess : function() {     
      form_submit();
      return false;
    }  
});
</script>
     	<?php 
        die;
    }
Example #18
0
  <label class="uk-form-label"><?php 
echo Yii::t("default", "Username");
?>
</label>
  <?php 
echo CHtml::textField('username', isset($data['username']) ? $data['username'] : "", array('class' => 'uk-form-width-large'));
?>
</div>

<div class="uk-form-row">
  <label class="uk-form-label"><?php 
echo Yii::t("default", "Password");
?>
</label>
  <?php 
echo CHtml::passwordField('password', "", array('class' => 'uk-form-width-large', 'autocomplete' => "off"));
?>
</div>
</li>

<li>
<?php 
$merchant_id = Yii::app()->functions->getMerchantID();
$merchant_latitude = Yii::app()->functions->getOption("merchant_latitude", $merchant_id);
$merchant_longtitude = Yii::app()->functions->getOption("merchant_longtitude", $merchant_id);
?>
<div class="uk-form-row">
  <label class="uk-form-label"><?php 
echo Yii::t("default", "Latitude");
?>
</label>
Example #19
0
?>
</label>
    <div class="col-sm-3">
        <?php 
echo CHtml::textField('full_name', $aUserData['full_name'], array('class' => "form-control"));
?>
    </div>
</div>
<div class="form-group">
    <label for="password" class="col-sm-2 control-label"><?php 
eT("Password");
?>
</label>
    <div class="col-sm-3">
        <?php 
echo CHtml::passwordField('password', '', array('class' => "form-control", 'placeholder' => html_entity_decode(str_repeat("&#9679;", 10), ENT_COMPAT, 'utf-8')));
?>
        <input type='hidden' name='uid' value="<?php 
echo $aUserData['uid'];
?>
" />
    </div>
</div>

<p>
    <input type='submit' class="hidden" value='<?php 
eT("Save");
?>
' />
    <input type='hidden' name='action' value='moduser' />
</p>
Example #20
0
<dt><?php 
echo CHtml::label(Yii::t('InstallModule.main', $label), $name);
?>
</dt>
<dd>
<?php 
if ($type == 'text') {
    echo CHtml::textField($name, $value, array('id' => $name));
} elseif ($type == 'password') {
    echo CHtml::passwordField($name, $value, array('id' => $name));
    if ($repeat) {
        ?>
</dd>
<dt><?php 
        echo CHtml::label(Yii::t('InstallModule.main', $label) . ' (' . Yii::t('InstallModule.main', 'repeat') . ')', $name . '_repeat');
        ?>
</dt>
<dd>
<?php 
        echo CHtml::passwordField($name . '_repeat', $value, array('id' => $name . '_repeat'));
    }
} elseif ($type == 'checkbox') {
    echo CHtml::checkBox($name, $value, array('id' => $name));
}
?>
</dd>
Example #21
0
    #department{
        display: none;
    }
</style>

	<?php 
echo $form->errorSummary($model);
?>

<?php 
echo $form->textFieldRow($model, 'name', array('class' => 'span3', 'maxlength' => 100));
echo $form->textFieldRow($model, 'login', array('class' => 'span3', 'maxlength' => 100));
?>
<label for="Employee_password">Пароль</label>
<?php 
echo CHtml::passwordField('Employee[password]', '', array('class' => 'span3', 'maxlength' => 100));
echo $form->dropDownListRow($model, 'role', array(0 => 'Повар', 1 => 'Официант', 2 => 'Администратор'), array('class' => 'span3', 'empty' => 'Выберите роль'));
?>
<span id="department">
<?php 
echo $form->dropDownListRow($model, 'depId', CHtml::listData(Department::model()->findAll(), 'department_id', 'name'), array('class' => 'span3', 'empty' => 'Выберите отдел'));
?>
</span>
<?php 
echo $form->checkBoxRow($model, 'check_percent');
?>


<div class="form-actions">
	<?php 
$this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'type' => 'primary', 'label' => $model->isNewRecord ? 'Сохранить' : 'Сохранить'));
  <label class="uk-form-label"><?php 
    echo Yii::t("default", "Username");
    ?>
</label>
  <?php 
    echo CHtml::textField('username', '', array('class' => 'uk-form-width-large', 'data-validation' => "required"));
    ?>
  </div>          
  
  <div class="uk-form-row">
  <label class="uk-form-label"><?php 
    echo Yii::t("default", "Password");
    ?>
</label>
  <?php 
    echo CHtml::passwordField('password', '', array('class' => 'uk-form-width-large', 'data-validation' => "required"));
    ?>
  </div>            
  
  
  <?php 
    if (Yii::app()->functions->getOptionAdmin('website_terms_merchant') == "yes") {
        ?>
  <?php 
        $terms_link = Yii::app()->functions->getOptionAdmin('website_terms_merchant_url');
        $terms_link = Yii::app()->functions->prettyLink($terms_link);
        ?>
  <div class="uk-form-row">
  <label class="uk-form-label"></label>
  <?php 
        echo CHtml::checkBox('terms_n_condition', false, array('value' => 2, 'class' => "", 'data-validation' => "required"));
Example #23
0
?>
	
	<p>
	<?php 
echo CHtml::label('Login', 'LoginForm[username]');
?>
<br />
	<?php 
echo CHtml::textField('LoginForm[username]', '', array('class' => 'small'));
?>
	<br /><br />
	
	<?php 
echo CHtml::label('Password', 'LoginForm[password]');
?>
<br />
	<?php 
echo CHtml::passwordField('LoginForm[password]', '', array('class' => 'small'));
?>
	<br /><br />
	
	<?php 
echo CHtml::checkBox('LoginForm[rememberMe]', true);
?>
 Remember me on this computer
	<br /><br />
	</p>
	
	<?php 
echo CHtml::submitButton('Login', array('class' => 'button'));
echo CHtml::endForm();
Example #24
0
?>
     </div>
     <div class="uk-form-row">
      <?php 
echo CHtml::textField('email_address', '', array('class' => 'uk-width-1-1', 'placeholder' => yii::t("default", "Email address"), 'data-validation' => "email"));
?>
     </div>
     
     <?php 
$FunctionsK = new FunctionsK();
$FunctionsK->clientRegistrationCustomFields();
?>
     
     <div class="uk-form-row">
      <?php 
echo CHtml::passwordField('password', '', array('class' => 'uk-width-1-1', 'placeholder' => Yii::t("default", "Password"), 'data-validation' => "required"));
?>
     </div>
     <p class="uk-text-muted" style="text-align: left;">
        <?php 
echo Yii::t("default", "By creating an account, you agree to receive sms from vendor.");
?>
     </p>
     
     
  <?php 
if (Yii::app()->functions->getOptionAdmin('website_terms_customer') == "yes") {
    ?>
  <?php 
    $terms_link = Yii::app()->functions->getOptionAdmin('website_terms_customer_url');
    $terms_link = Yii::app()->functions->prettyLink($terms_link);
Example #25
0
    ?>
</td>
                                <td>
                                    <?php 
    echo CHtml::passwordField('save_password', $_POST['save_password']);
    ?>
                                </td>
                            </tr>
                            <tr>
                                <td align='right'><?php 
    eT("Confirm password:"******"Email:");
    ?>
</td>
                                <td>
                                    <?php 
    echo CHtml::textField('save_email', $_POST['save_email']);
    ?>
                                </td>
                            </tr>
                            <tr>
Example #26
0
 public function renderPassword($name, array $metaData, $form = null)
 {
     $value = isset($metaData['current']) ? $metaData['current'] : '';
     $htmlOptions = $this->htmlOptions($metaData, $form, array('autocomplete' => 'off', 'size' => 50));
     return CHtml::passwordField($name, $value, $htmlOptions);
 }
Example #27
0
 public function newLoginForm()
 {
     $this->getEvent()->getContent($this)->addContent(CHtml::tag('span', array(), "<label for='user'>" . gT("Username") . "</label>" . CHtml::textField('user', '', array('size' => 40, 'maxlength' => 40, 'class' => "form-control"))))->addContent(CHtml::tag('span', array(), "<label for='password'>" . gT("Password") . "</label>" . CHtml::passwordField('password', '', array('size' => 40, 'maxlength' => 40, 'class' => "form-control"))));
 }
Example #28
0
?>
	<table class="form" width="100%">
		<tr>
			<th width="160">用户名</th>
			<td>
				<?php 
echo CHtml::textField('google_analytics_account[value]', $models['google_analytics_account']['value'], array('size' => 60));
?>
				
			</td>
		</tr>
		<tr>
			<th>密码</th>
			<td>
				<?php 
echo CHtml::passwordField('google_analytics_password[value]', $models['google_analytics_password']['value']);
?>
				
			</td>
		</tr>
		<tr>
			<th>报表ID</th>
			<td>
				<?php 
echo CHtml::textField('google_analytics_report_id[value]', $models['google_analytics_report_id']['value']);
?>
				
			</td>
		</tr>
	</table>
	<?php 
<?php
$this->title = Yum::t('Confirm deletion');

$this->breadcrumbs = array(
	Yum::t('Users') => Users::url('admin'),
	Yum::t('Delete account'));

printf('<h2>%s</h2>', Yum::t('Are you really sure you want to delete your Account?'));

printf('<p>%s</p>', Yum::t('Please enter your password to confirm deletion:'));

echo CHtml::form(array('delete'));
echo CHtml::passwordField('confirmPassword') . "<br />";
echo CHtml::linkButton(Yum::t('Cancel deletion'), array(
			'submit' => array('profile')));
echo CHtml::submitButton(Yum::t('Confirm deletion'));
echo CHtml::endForm();
?>
Example #30
-1
 public function run()
 {
     // here render procedures
     echo CHtml::beginForm($this->action, $this->method, array('id' => $this->id, 'enctype' => $this->enctype, 'target' => $this->target));
     // you better create a function but
     // for the sake of the example...
     foreach ($this->attributes as $attr) {
         // here we can actually say i
         // this is very simple but you get the idea
         echo CHtml::label($attr['label'], $attr['name']);
         if ($attr['type'] == 'text') {
             echo CHtml::textField($this->model_name . '[' . $this->category . ']' . '[' . $attr['name'] . ']', $attr['value'], $attr['htmlOptions']);
         } else {
             if ($attr['type'] == 'textarea') {
                 echo CHtml::textArea($this->model_name . '[' . $this->category . ']' . '[' . $attr['name'] . ']', $attr['value'], $attr['htmlOptions']);
             } else {
                 if ($attr['type'] == 'password') {
                     echo CHtml::passwordField($this->model_name . '[' . $this->category . ']' . '[' . $attr['name'] . ']', $attr['value'], $attr['htmlOptions']);
                 } else {
                     if ($attr['type'] == 'checkbox') {
                         echo CHtml::checkBox($this->model_name . '[' . $this->category . ']' . '[' . $attr['name'] . ']', $attr['items'], $attr['htmlOptions']);
                     } else {
                         if ($attr['type'] == 'checkboxlist') {
                             echo CHtml::checkBoxList($this->model_name . '[' . $this->category . ']' . '[' . $attr['name'] . ']', $attr['value'], $attr['items'], $attr['htmlOptions']);
                         } else {
                             if ($attr['type'] == 'date') {
                                 echo CHtml::dateField($this->model_name . '[' . $this->category . ']' . '[' . $attr['name'] . ']', $attr['value'], $attr['htmlOptions']);
                             } else {
                                 if ($attr['type'] == 'dropdownlist') {
                                     echo CHtml::dropDownList($this->model_name . '[' . $this->category . ']' . '[' . $attr['name'] . ']', $attr['value'], $attr['items'], $attr['htmlOptions']);
                                 } else {
                                     if ($attr['type'] == 'file') {
                                         echo CHtml::fileField($this->model_name . '[' . $this->category . ']' . '[' . $attr['name'] . ']', $attr['value'], $attr['items'], $attr['htmlOptions']);
                                     } else {
                                         if ($attr['type'] == 'hidden') {
                                             echo CHtml::hiddenField($this->model_name . '[' . $this->category . ']' . '[' . $attr['name'] . ']', $attr['value'], $attr['items'], $attr['htmlOptions']);
                                         } else {
                                             if ($attr['type'] == 'radio') {
                                                 echo CHtml::radioButton($this->model_name . '[' . $this->category . ']' . '[' . $attr['name'] . ']', $attr['items'], $attr['htmlOptions']);
                                             } else {
                                                 if ($attr['type'] == 'radiolist') {
                                                     echo CHtml::radioButtonList($this->model_name . '[' . $this->category . ']' . '[' . $attr['name'] . ']', $attr['value'], $attr['items'], $attr['htmlOptions']);
                                                 }
                                             }
                                         }
                                     }
                                 }
                             }
                         }
                     }
                 }
             }
         }
         // do more here
     }
     echo "<br/><br/><div class='row-fluid'>";
     echo CHtml::submitButton($this->submit['label'], $this->submit['options']);
     echo "</div>";
     echo CHtml::endForm();
 }