Show
Ignore:
Timestamp:
02/20/08 19:08:38 (11 months ago)
Author:
aarkerio
Message:

Update views

Location:
trunk/app/views/elements
Files:
5 added
5 removed
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/elements/login_hide.ctp

    r240 r242  
    11<!-- hide by default --> 
    22<div id="cover" style="display:none;" onclick="hide('cover', 'loginpopup')"> 
    3    
     3    
    44</div> 
    55<div id="loginpopup" style="display:none"> 
    6 <table> 
    7 <tr> 
    8 <td style="border-right: 2px solid #D3D3D3; vertical-align: top; padding-right:10px"> 
    9  
     6<div style="border-right: 2px solid #D3D3D3; vertical-align: top; padding-right:10px"> 
     7<?php echo $html->link($html->image('close.gif', array('alt'=>'Close window', 'title'=>'Close window')), 
     8               '#', 
     9                       array("onclick"=>"javascript:hide('loginpopup', 'cover');"),  
     10                       false,  
     11                       false 
     12                      ); 
     13?> 
    1014<h1>login</h1> 
    1115 <p>Already have an account and just want to login?</p> 
    1216 
    13 <?php echo  $html->formTag('/users/login','post', array("onsubmit"=>"return validateLogin()")); ?> 
     17<?php echo  $form->create('User',array("action"=>"login","onsubmit"=>"return validateLogin()")); ?> 
    1418<fieldset> 
    1519<legend>Login</legend> 
    1620  <?php  
    17    echo  $form->labelTag( 'User/username', 'Username:') . "<br />";   
    18    echo  $html->input('User/username', array('size' => '15', 'maxlength'=>'30')) . "<br />"; 
    19    echo  $html->tagErrorMsg('User/username', 'Please enter your username'); 
     21   echo  $form->label( 'User.username', 'Username:') . "<br />";   
     22   echo  $form->input('User.username', array('size' => 15, 'maxlength'=>30)) . "<br />"; 
     23 
    2024    
    21    echo  $form->labelTag('User/passwd', 'Password:') . "<br />"; 
    22    echo  $html->input('User/passwd', array('size' => '9', 'type'=>'password')); 
    23    echo  $html->tagErrorMsg('User/passwd', 'Please enter your password!')  
     25   echo  $form->label('User.password', 'Password:') . "<br />"; 
     26   echo  $form->password('User.password', array('size' => 9, 'maxlength'=>9)); 
    2427   ?><br /> 
    25   Remember me: <?php echo  $html->checkbox("User/cokie", null, array("value" => 1));?><br /> 
     28  Remember me: <?php echo  $form->checkbox("User.cokie", null, array("value" => 1));?><br /> 
    2629  <br /> 
    27  <?php echo $html->submit('Login'); ?> 
    28 </fieldset> 
    29 </form> 
    30  
    31  <p><?php echo $html->link('Join us!', '/users/register'); ?></p> 
    32  <p><?php echo $html->link('forgot your password?', '/users/recover'); ?></p> 
    33 </td> 
    34 </tr> 
    35 </table> 
    36  
    37 <div class="center"> <a href="javascript:hide('cover','loginpopup')">close this window</a> </div> 
    38  
     30 </fieldset> 
     31 <?php  
     32       echo $form->end('Login'); 
     33       echo $html->para(null, $html->link('Join us!', '/users/register')); 
     34       echo $html->para(null, $html->link('forgot your password?', '/users/recover'));  
     35 ?> 
    3936</div> 
    40 <!-- End hide elements --> 
    41  
     37</div> 
     38<!-- End hide login element -->