Advertisement
Guest User

Login View

a guest
Sep 2nd, 2011
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.21 KB | None | 0 0
  1. <form id="UserLoginForm" method="post" action="<?php echo $html->url(array ('controller' => 'users', 'action' => 'login')); ?>" accept-charset="utf-8">
  2.     <div style="display:none;"><input type="hidden" name="_method" value="POST" /></div>
  3.     <div id="login-box">
  4.         <div class="input text login-field">
  5.             <label for="UserUsername">Usuari: </label>
  6.             <input name="data[User][username]" type="text" maxlength="32" id="UserUsername" />
  7.         </div>
  8.         <div class="input password login-field">
  9.             <label for="UserPassword">Clau: </label>
  10.             <input type="password" name="data[User][password]" id="UserPassword" />
  11.         </div>
  12.         <div class="submit login-button">
  13.             <input type="submit" value="Entra" />
  14.         </div>
  15.         <div class="login-register">
  16.         <?php
  17.             echo $html->link (
  18.                 'Registri un usuari per a la seva empresa',
  19.                 array (
  20.                     'controller' => 'companies',
  21.                     'action' => 'create'
  22.                 )
  23.             ).'<br/>';
  24.             echo $html->link (
  25.                 'Registra\'t com a estudiant',
  26.                 array (
  27.                     'controller' => 'students',
  28.                     'action' => 'create'
  29.                 )
  30.             ).'<br/>';
  31.         ?>
  32.         </div>
  33.     </div>
  34.     <?php if (!$cleanLogin): ?>
  35.     <div class="login-error">No ha introduit les dades correctes</div>
  36.     <?php endif;?>
  37. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement