Changeset 242 for trunk/app/views/elements
- Timestamp:
- 02/20/08 19:08:38 (11 months ago)
- Location:
- trunk/app/views/elements
- Files:
-
- 5 added
- 5 removed
- 1 modified
-
admin_menu.ctp (added)
-
admin_menu.thtml (deleted)
-
footer.ctp (added)
-
footer.thtml (deleted)
-
lesson.ctp (added)
-
lesson.thtml (deleted)
-
login_hide.ctp (modified) (1 diff)
-
quote.ctp (added)
-
quote.thtml (deleted)
-
vclassrooms.ctp (added)
-
vclassrooms.thtml (deleted)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/elements/login_hide.ctp
r240 r242 1 1 <!-- hide by default --> 2 2 <div id="cover" style="display:none;" onclick="hide('cover', 'loginpopup')"> 3 3 4 4 </div> 5 5 <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 ?> 10 14 <h1>login</h1> 11 15 <p>Already have an account and just want to login?</p> 12 16 13 <?php echo $ html->formTag('/users/login','post', array("onsubmit"=>"return validateLogin()")); ?>17 <?php echo $form->create('User',array("action"=>"login","onsubmit"=>"return validateLogin()")); ?> 14 18 <fieldset> 15 19 <legend>Login</legend> 16 20 <?php 17 echo $form->label Tag( '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 20 24 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)); 24 27 ?><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 /> 26 29 <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 ?> 39 36 </div> 40 < !-- End hide elements -->41 37 </div> 38 <!-- End hide login element -->
