Beispiel #1
0
$F->tbNotVal("City");
?>
						<?php 
$F->ddlStates();
?>
						<?php 
$F->tbNotVal("ZipCode");
?>
						<?php 
$F->ddlGeneric("County", "County");
?>
						<?php 
$F->ddlCountries();
?>
						<?php 
$F->submitButton("Create Customer");
?>
						
					</div>
					<div style="clear:both">
					<input type="hidden" value="insertCustomer" name="Action">
					
				</ul>
				</form>
			</div>
			
			<div class="formBoxDialog" id="fBoxSelectExistingCustomer">
				<h1>Select Customer</h1>
				<form id="formFindExisting" method="post" action="">
					<ul class="form">	
						<div style="float:left; width:260px; padding:15px">
   
<?php 
$this->pageTitle = Yii::t('AuthModule.forms', 'Password restore. Title');
$formRender = new FormElements($this, $model);
$formRender->startForm();
$formRender->showErrors();
$formRender->textField('email', Yii::t('AuthModule.forms', 'Password restore. Email placeholder'));
$formRender->capthaField('verifyCode');
$formRender->submitButton(Yii::t('AuthModule.forms', 'Password restore. Submit button'));
$formRender->endForm();
Beispiel #3
0
						<?php 
$F->tbNotVal("AlternateCity", "Alternate City", "", "float:left; clear:both;");
?>
						<?php 
$F->ddlStates("FL", "AlternateState", "Alternate State", "float:left; padding-left:0;");
?>
						<?php 
$F->tbNotVal("AlternateZipCode", "Alternate Zip Code", "", "float:left; padding-left:0;");
?>

						<?php 
$F->ddlCountries("AlternateCountry", "Alternate Country", "float:left; clear:both;");
?>

						<?php 
$F->submitButton("Create Customer", "btnSubmit", "clear:both");
?>
						
					</ul>
</div>
</div>
</div>

</form>

<SCRIPT type="text/javascript">
	function bindCountyBox()
	{
		var state = $('#ddlState').val();
		$.post('/<?php 
echo $ROOTPATH;
}
$model->rememberMe = true;
$formRender = new FormElements($this, $model);
//$formRender->startForm('user-login', true);
$formRender->startForm('user-login', $isAjax);
$formRender->showErrors(Yii::t('AuthModule.forms', 'Login. Login failure'));
$formRender->textField('username', Yii::t('AuthModule.forms', 'Login. Username placeholder'));
$formRender->passwordField('password', Yii::t('AuthModule.forms', 'Login. Password placeholder'));
$formRender->checkBox('rememberMe', Yii::t('AuthModule.forms', 'Login. Remember me checkbox'));
$formRender->capthaField('verifyCode');
if ($model->scenario != 'withCaptcha') {
    Yii::app()->clientScript->registerScript("captcha", "\n                \$('#captcha').hide();\n            ");
}
$buttonLabel = Yii::t('AuthModule.forms', 'Login. Submit button');
if (!$isAjax) {
    $formRender->submitButton($buttonLabel);
} else {
    $url = $this->createUrl('login');
    $formRender->ajaxSubmitPanel($buttonLabel, $url);
}
$formRender->endForm();
?>
   
<?php 
echo '<span class="col-sm-2"></span>';
echo CHtml::link(Yii::t('AuthModule.forms', 'Login. Restore password'), array('user/passrequest'));
echo '<span class="margin-right-mid"></span>';
echo CHtml::link(Yii::t('AuthModule.forms', 'Login. Register user'), array('user/registration'));
$allowSocial = Helpers::getAppParam('allowSocialServices');
if ($allowSocial) {
    echo '<hr>';
?>

    <?php 
$formRender = new FormElements($this, $model);
$formRender->startForm();
$formRender->showErrors();
if ($isNewRecord) {
    $formRender->textField('username', Yii::t('AuthModule.forms', 'Registration form. Username placeholder'));
    if (isset($inivtationGuid)) {
        $model->invitationGuid = $inivtationGuid;
        //$formRender->textField('invitationGuid', Yii::t('AuthModule.forms', 'Invitation'));
        $formRender->from->hiddenField($model, 'invitationGuid');
    }
} else {
    $formRender->textFieldDisabled('username');
}
$formRender->textField('email', Yii::t('AuthModule.forms', 'User form. Email placeholder'));
$formRender->textField('full_name', Yii::t('AuthModule.forms', 'User form. Fullname placeholder'));
$formRender->passwordField('password_entered', Yii::t('AuthModule.forms', 'User form. Password placeholder'));
$formRender->capthaField('verifyCode');
if ($isNewRecord) {
    $termsUrl = Yii::app()->createUrl('site/page', array('view' => 'terms'));
    $formRender->termsField('termsSigned', $termsUrl);
    $formRender->submitButton(Yii::t('AuthModule.forms', 'Registration form. Submit button'));
} else {
    $formRender->submitButton(Yii::t('AuthModule.forms', 'Update form. Submit button'));
}
$formRender->endForm();
?>

<?php 
$this->pageTitle = Yii::t('AuthModule.forms', 'Activation form. Title');
$this->h1 = Yii::t('AuthModule.forms', 'Activation form. H1');
$formRender = new FormElements($this, $model);
$formRender->startForm();
$formRender->showErrors();
$formRender->textField('guid', Yii::t('AuthModule.forms', 'Activation form. Guid placeholder'));
$formRender->submitButton(Yii::t('AuthModule.forms', 'Activation form. Submit button'));
$formRender->endForm();
Beispiel #7
0
$F->tbNotVal("ContactCell", "Contact Cell", "", "float: left", $user["ContactCell"]);
$firephp->log($Action);
?>

				  <input type="hidden" name="Action" value="<?php 
echo $Action;
?>
"></input>
				  <input type="hidden" name="user_id" value="<?php 
echo $user_id;
?>
"></input>
				
					<div style="clear: both"></div>
				<?php 
$F->submitButton("Submit");
?>
			   </ul>


		</form>
		</div>
	</div>

	<SCRIPT type="text/javascript">
		$("#tbPhone, #tbCell, #tbContactPhone, #tbContactCell").mask("(999) 999-9999 ?~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~",{placeholder:""});
		$('#tbBirthDate').mask("99/99/9999",{placeholder:""});
		$('#tbSocial').mask("999-99-9999",{placeholder:""});

	</SCRIPT>
try {
    $email = Helpers::getAppParam('adminEmail');
} catch (Exception $ex) {
    $email = AuthCommon::getParam('adminEmail');
}
echo CHtml::mailto($email, $email);
?>
</p>

<div class="margin-bottom-30"></div>
<div class="row">
    <div class="table-responsive col-md-5">
    <?php 
$formRender = new FormElements($this, $model);
$formRender->fieldClass = "col-sm-8";
$formRender->labelClass = "col-sm-3";
$formRender->submitOffcet = "col-sm-offset-3";
$formRender->startForm();
$formRender->showErrors();
$formRender->textField('guid', '', '', false);
if ($model->scenario == 'withCaptcha') {
    $formRender->capthaField('verifyCode');
}
$formRender->submitButton(Yii::t('AuthModule.forms', 'RegisterMe'));
$formRender->endForm();
?>
    </div>

</div>