Changeset 541 for trunk/app/views/comments
- Timestamp:
- 05/21/08 15:27:00 (6 months ago)
- Location:
- trunk/app/views/comments
- Files:
-
- 2 modified
-
admin_edit.ctp (modified) (1 diff)
-
admin_listing.ctp (modified) (1 diff)
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'); 2 3 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(' / '); 6 7 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 ?> 9 11 10 12 <fieldset> 11 13 <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 ?> 21 20 </fieldset> 22 21 </form> -
trunk/app/views/comments/admin_listing.ctp
r358 r541 6 6 echo $html->div('title_section', 'Comments on your Blog'); 7 7 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 } 8 foreach ($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); 14 endforeach; 16 15 ?> 17 16
