Ejemplo n.º 1
0
' alt='avatar'/>
<p>Note: Avatars are <?php 
echo link_to('gravatars', 'http://www.gravatar.com', array('target' => '_blank'));
?>
 and can be updated at their website.</p>
<br />
<?php 
echo $form = new FormFor(array('path' => url_for('UserController', 'update'), 'method' => 'PUT', 'object' => $user, 'onsubmit' => "return verifyField()"));
?>
<table>
  <tr>
    <td><?php 
echo $form->label('email');
?>
</td><td><?php 
echo $form->text_field('email');
?>
</td>
  </tr>
  <tr>
    <td colspan='2'><span style='font-weight:bold;font-size:8pt'>Leave password fields blank if you do not wish to change</span></td>
  </tr>
  <tr>
    <td>
    <?php 
echo $form->label('password');
?>
</td><td><?php 
echo $form->password('password', array('value' => ''));
?>
</td>
Ejemplo n.º 2
0
<?php

echo error_messages_for($user);
echo $form = new FormFor(array('method' => 'post', 'path' => url_for('LoginController', 'create'), 'object' => $user, 'onsubmit' => "return verifyField()"));
?>
	<table>
		<tr><td><?php 
echo $form->label('username');
?>
</td><td><?php 
echo $form->text_field('username', array('onblur' => 'checkUsername()'));
?>
</td></tr>
		<tr><td><?php 
echo $form->label('email');
?>
</td><td><?php 
echo $form->text_field('email');
?>
</td></tr>
		<tr><td><?php 
echo $form->label('password');
?>
</td><td><?php 
echo $form->password('password');
?>
</td></tr>
		<tr><td><label for='v_password'>Verify Password</label></td><td><input id='v_password' type='password' name='v_password' /><input type='text' name='whoanow' class='super_secret_field_of_doom' /></td></tr>
		<tr><td><?php 
echo $form->submit('Register');
?>