|
Revision 593, 0.8 kB
(checked in by aarkerio, 6 months ago)
|
|
Comments
|
| Line | |
|---|
| 1 | <?php |
|---|
| 2 | echo $html->addCrumb('Control Tools', '/admin/entries/start'); |
|---|
| 3 | echo $html->addCrumb('Entries', '/admin/entries/listing'); |
|---|
| 4 | echo $html->getCrumbs(' / '); |
|---|
| 5 | |
|---|
| 6 | echo $html->div('title_section', 'Comments on your Blog'); |
|---|
| 7 | |
|---|
| 8 | foreach ($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); |
|---|
| 16 | endforeach; |
|---|
| 17 | ?> |
|---|
| 18 | |
|---|