Show
Ignore:
Timestamp:
03/19/08 16:27:43 (10 months ago)
Author:
aarkerio
Message:

Little changes on edublog entry and I added replies controller to answer topics

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/users/entry.ctp

    r274 r325  
    5252        echo "<div>"; 
    5353         
    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)); 
    5857         
    5958        if ( isset( $cU['User']['id'] ) ) 
     
    6362         <legend id="new_comment">New Comment</legend> 
    6463         <?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'])); 
    6766            echo $cU['User']['username'] . "  writes:"; 
    6867         ?> 
    6968         <p> 
    70          <?php echo $form->labelTag('Comment.comment', 'Comment:' );?><br /> 
     69         <?php echo $form->label('Comment.comment', 'Comment:' );?><br /> 
    7170         <?php echo $form->textarea('Comment.comment', array("rows" => 10, "cols" => 50)); ?> 
    7271         <?php echo $form->error('Comment.comment', 'A comment is required.'); ?> 
    7372         </p> 
    74          <br /> 
    75          <?php echo $form->end('Send') ?> 
    76          </fieldset> 
    77          </form> 
     73         <br /></fieldset> 
     74         <?php echo $form->end('Send'); ?> 
    7875<?php 
    7976         } 
    8077         else 
    8178         { 
    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')); 
    8380         } 
    8481