root/trunk/app/views/comments/admin_listing.ctp

Revision 593, 0.8 kB (checked in by aarkerio, 6 months ago)

Comments

Line 
1<?php
2echo $html->addCrumb('Control Tools', '/admin/entries/start');
3echo $html->addCrumb('Entries', '/admin/entries/listing');
4echo $html->getCrumbs(' / ');
5 
6echo $html->div('title_section', 'Comments on your Blog');
7
8foreach ($data as $val):
9   $st   = $val['Comment']['status'] == 1 ? 'Showed' : 'Hide';
10   $tmp  = $html->link($val['Entry']['title'], '/users/entry/'.$session->read('Auth.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 .= $html->link($st, '/admin/comments/change/'.$val['Comment']['id'].'/'.$val['Comment']['status']);
14   $tmp .= $gags->confirmDel($val['Comment']['id'], 'Comment');
15   echo $html->div(null, $tmp);
16endforeach;
17?>
18
Note: See TracBrowser for help on using the browser.