Пример #1
0
<ul>

   <?php 
echo View::factory('user/user_edit_form')->set(array('form' => $form));
?>
   
   <?php 
if (isset($captcha_enabled) && $captcha_enabled) {
    ?>
   <li>
       <?php 
    echo $recaptcha_html;
    ?>
       <br/>
   </li>
   <?php 
}
?>
   
   <li><?php 
echo $form->submit(NULL, __('register.account'));
?>
</li>
</ul>
<br style="clear:both;">
<?php 
echo $form->close();
?>
   </div>
</div>
Пример #2
0
foreach ($all_roles as $role => $description) {
    echo '<tr';
    if ($i % 2 == 0) {
        echo ' class="odd"';
    }
    echo '>';
    echo '<td>' . Form::checkbox('roles[' . $role . ']', $role, in_array($role, $user_roles) ? true : false) . '</td>';
    echo '<td>' . ucfirst($role) . '</td><td>' . $description . '</td>';
    echo '</tr>';
    $i++;
}
?>

         </table>

   </li>

</ul>

<br>

<?php 
echo $form->submit(NULL, __('Save'));
echo $form->close();
?>

   </div>

</div>

Пример #3
0
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');
if ($registerEnabled || !empty($providers)) {
    echo '<ul>';
    if ($registerEnabled) {
        echo '<li style="height: 61px">' . __('?dont.have.account') . '<br />' . Html::anchor('user/register', __('register.new.account')) . '.</li>';
    }
    if (!empty($providers)) {
        if ($registerEnabled) {
Пример #4
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>


Пример #5
0
?>
</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');
?>
   <?php 
if (isset($captcha_enabled) && $captcha_enabled) {
    ?>
   <li>
       <?php 
    echo $recaptcha_html;
    ?>
       <br/>
   </li>
   <?php 
}
?>
   <li><?php 
echo $form->submit(NULL, __('Register new account'));
?>
</li>
</ul>
<?php 
echo $form->close();