Changeset 325 for trunk/app/views/users/entry.ctp
- Timestamp:
- 03/19/08 16:27:43 (10 months ago)
- Files:
-
- 1 modified
-
trunk/app/views/users/entry.ctp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/users/entry.ctp
r274 r325 52 52 echo "<div>"; 53 53 54 55 echo $form->create('Comments', array("onsubmit"=>"return chkForm()", "action"=>"add")); 56 echo $form->hidden('Comment.redirect_to', '/users/entry/'.$blog["User"]["username"].'/'.$entry_id); 57 echo $form->hidden('Comment.entry_id', $entry_id); 54 echo $form->create('Comment', array('onsubmit'=>'return chkForm()', 'action'=>'add')); 55 echo $form->hidden('Comment.redirect_to', array('value'=>'/users/entry/'.$blog['User']['username'].'/'.$entry_id)); 56 echo $form->hidden('Comment.entry_id', array('value'=>$entry_id)); 58 57 59 58 if ( isset( $cU['User']['id'] ) ) … … 63 62 <legend id="new_comment">New Comment</legend> 64 63 <?php 65 echo $ html->hidden('Comment.user_id', array("value"=>$cU['User']['id'] ));66 echo $ html->hidden('Comment.username', array("value"=>$cU['User']['username']));64 echo $form->hidden('Comment.user_id', array("value"=>$cU['User']['id'] )); 65 echo $form->hidden('Comment.username', array("value"=>$cU['User']['username'])); 67 66 echo $cU['User']['username'] . " writes:"; 68 67 ?> 69 68 <p> 70 <?php echo $form->label Tag('Comment.comment', 'Comment:' );?><br />69 <?php echo $form->label('Comment.comment', 'Comment:' );?><br /> 71 70 <?php echo $form->textarea('Comment.comment', array("rows" => 10, "cols" => 50)); ?> 72 71 <?php echo $form->error('Comment.comment', 'A comment is required.'); ?> 73 72 </p> 74 <br /> 75 <?php echo $form->end('Send') ?> 76 </fieldset> 77 </form> 73 <br /></fieldset> 74 <?php echo $form->end('Send'); ?> 78 75 <?php 79 76 } 80 77 else 81 78 { 82 echo $html->para(null, $html->link('You must be logged to write a comment', '/users/login'));79 echo $html->para(null, $html->link('You must be logged in to write a comment', '/users/login')); 83 80 } 84 81
