Exemplo n.º 1
0
// set custom classes to get labels moved to bottom:
$form->error_class = 'error block';
$form->info_class = 'info block';
?>
<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>
Exemplo n.º 2
0
// set custom classes to get labels moved to bottom:
$form->error_class = 'error block';
$form->info_class = 'info block';
?>
<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'), array('style' => 'display: inline; margin-right:10px;')) . '<small> ' . Html::anchor('user/forgot', __('?forgot.password')) . '<br></small>' . '</li>';
echo $form->password('password', null, array('class' => 'text twothirds'));
$authClass = new ReflectionClass(get_class(Auth::instance()));
//set a valid salt in useradmin config or your bootstrap.php
if ($authClass->hasMethod('auto_login') and Cookie::$salt) {
    echo '<li>' . Kohana_Form::checkbox('remember', 'remember', false, array('style' => 'margin-right: 10px', 'id' => 'remember')) . $form->label('remember', __('remember.me'), array('style' => 'display: inline')) . $form->submit(NULL, __('login'), array('style' => 'float: right;')) . '</li>';
    echo '</ul>';
} else {
    echo '</ul>';
    echo $form->submit(NULL, __('login'));
}
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;">';
$registerEnabled = Kohana::$config->load('useradmin.register_enabled');
Exemplo n.º 3
0
}
// set custom classes to get labels moved to bottom:
$form->error_class = 'error block';
$form->info_class = 'info block';
?>
<div id="box">
   <div class="block">
      <h1><?php 
echo $title;
?>
</h1>
      <div class="content meal_info">
<?php 
echo $form->open();
echo '<ul>';
echo '<li class="li_label">' . $form->label('shakes', __('Shakes:')) . '</li>';
echo $form->select('shakes', array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20));
echo '<li class="li_label">' . $form->label('entree', __('Entrees:')) . '</li>';
echo $form->select('entree', array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20));
echo '<li class="li_label">' . $form->label('bars', __('Bars:')) . '</li>';
echo $form->select('Bars', array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20));
echo '<li class="li_label">' . $form->label('vegetables', __('Vegetables:')) . '</li>';
echo $form->select('Vegetables', array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20));
echo '<li class="li_label">' . $form->label('fruits', __('Fruits:')) . '</li>';
echo $form->select('Fruits', array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20));
echo '<li class="li_label">' . $form->label('notes', __('Notes:')) . '</li>';
echo $form->textarea('notes');
echo '</ul>';
echo $form->submit(NULL, __('Save'));
echo $form->close();
?>
Exemplo n.º 4
0
$form->info_class = 'info block';
?>
<div class="span7">

	<?php 
if (!empty($errors['password'])) {
    echo '<div class="alert-message error"><p>';
    echo $errors['password'];
    echo '</p></div>';
}
?>
	<form method="post" action="" accept-charset="utf-8">
		<fieldset>
			<div class="clearfix">
				<?php 
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'));
Exemplo n.º 5
0
}
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';
?>
	<div data-role="fieldcontain">
	<?php 
$numbers = array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20);
echo $form->open();
?>
	<div data-role="fieldcontain">
	<?php 
echo $form->label('shakes', __('Shakes:'));
echo $form->select('shakes', $numbers, NULL, array('id' => 'shakes'));
?>
	</div>
	<div data-role="fieldcontain">
	<?php 
echo $form->label('entree', __('Entrees:'));
echo $form->select('entree', $numbers, NULL, array('id' => 'entree'));
?>
	</div>
	<div data-role="fieldcontain">
	<?php 
echo $form->label('bars', __('Bars:'));
echo $form->select('bars', $numbers, NULL, array('id' => 'bars'));
?>
	</div>