Example #1
0
   <li><label><?php 
echo __('Email address');
?>
</label></li>

   <?php 
echo $form->input('email');
?>

   <li><label><?php 
echo __('Password');
?>
</label></li>

   <?php 
echo $form->password('password', null, array('info' => __('Password should be between 6-42 characters.')));
?>

   <li><label><?php 
echo __('Re-type Password');
?>
</label></li>

   <?php 
echo $form->password('password_confirm');
?>

   <li><h2><?php 
echo __('Roles');
?>
</h2></li>
Example #2
0
?>
<div id="box">
   <div class="block">
      <h1><?php 
echo __('Login');
?>
</h1>
      <div class="content">
<?php 
echo $form->open('user/login');
echo '<table><tr><td style="vertical-align: top;">';
echo '<ul>';
echo '<li>' . $form->label('username', __('Email or Username')) . '</li>';
echo $form->input('username', null, array('class' => 'text twothirds'));
echo '<li>' . $form->label('password', __('Password')) . '</li>';
echo $form->password('password', null, array('class' => 'text twothirds'));
echo '</ul>';
echo $form->submit(NULL, __('Login'));
echo '<small> ' . Html::anchor('user/forgot', __('Forgot your password?')) . '<br></small>';
echo $form->close();
echo '</td><td width="5" style="border-right: 1px solid #DDD;">&nbsp;</td><td><td style="padding-left: 2px; vertical-align: top;">';
echo '<ul>';
echo '<li style="height: 61px">' . __('Don\'t have an account?') . ' ' . Html::anchor('user/register', __('Register a new account')) . '.</li>';
echo '</ul>';
echo '</td></tr></table>';
?>
      </div>
   </div>
</div>

Example #3
0
echo $form->label('username', __('Email'));
?>
				<div class="input">
					<?php 
echo $form->input('username', null, array('type' => 'email', 'required' => 'required', 'placeholder' => '*****@*****.**', 'autofocus' => 'autofocus'));
?>
				</div>
			</div>			

			<div class="clearfix">
				<?php 
echo $form->label('password', __('Password'));
?>
				<div class="input">
					<?php 
echo $form->password('password', null, array('required' => 'required'));
?>
					<span class="help-inline"><a target="_top" href="/user/forgot/"><br />Forgot your password?</a></span>
				</div>
			</div>			


<!--<?php 
$authClass = new ReflectionClass(get_class(Auth::instance()));
if ($authClass->hasMethod('auto_login')) {
    ?>
			<div class="clearfix">
				<div class="input">
					<ul class="inputs-list">
						<li>
							<label>
Example #4
0
?>
         <span class="help-inline">Optional (dd/mm/yyyy)</span>
      </div>
   </div>   


   <div class="clearfix<?php 
if (isset($errors['password'])) {
    echo ' error';
}
?>
">
      <label>Password</label>
      <div class="input">
         <?php 
echo $form->password('password', null, array('required' => 'required'));
?>
         <?php 
if (!isset($errors['password'])) {
    ?>
         <?php 
}
?>
      </div>
   </div>   

	<div class="clearfix<?php 
if (isset($errors['password_confirm'])) {
    echo ' error';
}
?>
Example #5
0
echo $form->input('dob', null, array('type' => 'date', 'placeholder' => '31/12/1999', 'pattern' => '^\\d+/\\d+/\\d\\d\\d\\d$'));
?>
         <span class="help-inline">Optional (dd/mm/yyyy)</span>
      </div>
   </div>   

   <div class="clearfix<?php 
if (isset($errors['password'])) {
    echo ' error';
}
?>
">
      <label>Password</label>
      <div class="input">
         <?php 
echo $form->password('password', null, array());
?>
         <?php 
if (!isset($errors['password'])) {
    ?>
         <?php 
}
?>
      </div>
   </div>   

   <div class="clearfix<?php 
if (isset($errors['password_confirm'])) {
    echo ' error';
}
?>
    $form->errors = $errors;
}
if (isset($username)) {
    $form->values['username'] = $username;
}
// set custom classes to get labels moved to bottom:
$form->error_class = 'error block';
$form->info_class = 'info block';
echo '<table width="850">';
echo '<tr><td width="428">';
echo $form->open('user/login');
echo '<ul>';
echo '<li>' . $form->label('username', __('Email or Username')) . '</li>';
echo $form->input('username');
echo '<li>' . $form->label('password', __('Password')) . '</li>';
echo $form->password('password');
echo '</ul>';
echo $form->submit(NULL, __('Login'));
echo '<small> ' . Html::anchor('user/forgot', __('Forgot your password?')) . '<br></small>';
echo $form->close();
echo '</td><td width="22">&nbsp;</td><td style="vertical-align: top;"><div id="fb-root"></div>';
echo '<ul>';
echo '<li>' . __('Don\'t have an account?') . ' ' . Html::anchor('user/register', __('Register new account here.')) . '<br></li>';
// Facebook
if ($facebook_enabled) {
    echo '<li><label>' . __('Other login options') . ':</label><br></li>';
    echo '<li id="fb-login-li"><img src="/img/fb-login.png"></li>';
}
echo '</ul>';
echo '</td></tr></table>';
// more Facebook