Show
Ignore:
Timestamp:
05/21/08 15:27:00 (6 months ago)
Author:
aarkerio
Message:

New Try

Location:
trunk/app/views/comments
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/comments/admin_edit.ctp

    r269 r541  
    1 <?php echo $javascript->link('fckeditor/fckeditor'); ?>  
     1<?php  
     2  echo $javascript->link('fckeditor/fckeditor');   
    23  
    3 <?php echo $html->addCrumb('Control Tools', '/admin/entries/start'); ?>  
    4 <?php echo $html->addCrumb('Comments', '/admin/comments/listing'); ?>  
    5 <?php echo $html->getCrumbs(' / '); ?> 
     4 echo $html->addCrumb('Control Tools', '/admin/entries/start');  
     5 echo $html->addCrumb('Comments', '/admin/comments/listing');  
     6 echo $html->getCrumbs(' / ');  
    67 
    7 <?php echo $html->formTag('/admin/comments/edit/','post'); ?> 
    8 <?php echo $html->hiddenTag('Comment/id'); ?> 
     8 echo $form->create('Comment'); 
     9 echo $form->hidden('Comment.id');  
     10?> 
    911 
    1012<fieldset> 
    1113<legend>Edit help</legend> 
    12  
    13    <?php echo $form->labelTag('Comment/comment', 'Comment:' );?> 
    14    <?php echo $html->textarea('Comment/comment', array("cols"=>80, "rows"=>65)) ?> 
    15    <?php echo $fck->load('Comment/comment', 'Karamelo', 700, 300); ?>  
    16    <?php echo $html->tagErrorMsg('Comment/comment', 'Comment is required.'); ?> 
    17  
    18   <?php echo $form->labelTag( 'Comment/end', 'End edition:' );?><?php echo $html->checkbox('Comment/end'); ?><br /> 
    19  
    20   <?php echo $html->submit('Send');  ?> 
     14<?php  
     15  echo $form->label('Comment.comment', 'Comment:'); 
     16  echo $form->textarea('Comment.comment', array("cols"=>80, "rows"=>65)); 
     17  echo $fck->load('CommentComment', 'Karamelo', 700, 300);  
     18  echo $form->end('Send');   
     19?> 
    2120</fieldset> 
    2221</form> 
  • trunk/app/views/comments/admin_listing.ctp

    r358 r541  
    66echo $html->div('title_section', 'Comments on your Blog'); 
    77 
    8 foreach ($data as $val)  
    9 { 
    10   $tmp  = $html->link($val['Entry']['title'], '/users/entry/'. $cU['User']['username'] . '/'.$val['Entry']['id']) . '<br />'; 
    11   $tmp .= $val['Comment']['created'].' <b>'.$val['Comment']['username'].' wrote:</b><br />'; 
    12   $tmp .= $html->para(null, $val['Comment']['comment']); 
    13   $tmp .= $gags->confirmDel($val['Comment']['id'], 'Comment'); 
    14   echo $html->div(null, $tmp); 
    15 } 
     8foreach ($data as $val): 
     9   $tmp  = $html->link($val['Entry']['title'], '/users/entry/'.$session->read('Auth.User.username').'/'.$val['Entry']['id']) . '<br />'; 
     10   $tmp .= $val['Comment']['created'].' <b>'.$val['Comment']['username'].' wrote:</b><br />'; 
     11   $tmp .= $html->para(null, $val['Comment']['comment']); 
     12   $tmp .= $gags->confirmDel($val['Comment']['id'], 'Comment'); 
     13   echo $html->div(null, $tmp); 
     14endforeach; 
    1615?>  
    1716