Changeset 45 for trunk/app/views/entries/admin_listing.thtml
- Timestamp:
- 07/17/07 17:24:45 (18 months ago)
- Files:
-
- 1 modified
-
trunk/app/views/entries/admin_listing.thtml (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/entries/admin_listing.thtml
r20 r45 1 <script type="text/javascript"> 2 window.onload = timedMsg; 3 </script> 4 <?php $session->flash(); ?> 1 5 2 <?php echo $html->addCrumb('Control Tools', '/admin/ /entries/start'); ?>6 <?php echo $html->addCrumb('Control Tools', '/admin/entries/start'); ?> 3 7 4 8 <?php echo $html->getCrumbs(' / '); ?> … … 8 12 <p><?php echo $html->link($html->image('actions/new.png', array("alt"=>"Add entry", "title"=>"Add entry")), '/admin/entries/add', null, false, false) ?></p> 9 13 14 <table class="tbadmin"> 10 15 <?php 11 16 //die(print_r($data)); 12 17 13 foreach ($data as $key => $val) { 14 echo '<p><a href="/admin/entries/edit/'.$data[$key]['Entry']['id'].'">Edit</a> '; 15 echo $data[$key]['Entry']['title']; 16 echo ' <a href="/admin/entries/delete/'.$data[$key]['Entry']['id'].'">Delete</a></p><hr />'; 18 $th = array ('Edit', 'Title', 'Status', 'Delete'); 19 echo $html->tableHeaders($th); 20 foreach ($data as $val) { 21 $tr = array ( 22 $gags->sendEdit($val['Entry']['id'], 'entries'), 23 $val['Entry']['title'], 24 $gags->setStatus($val['Entry']['status']), 25 $gags->confirmDel($val['Entry']['id'], 'entries') 26 ); 27 28 echo $html->tableCells($tr, array("class"=>"altRow", "onmouseover"=>"this.className='highlight'", "onmouseout"=>"this.className='altRow'"), 29 array('class'=>'evenRow',"onmouseover"=>"this.className='highlight'", "onmouseout"=>"this.className='evenRow'")); 17 30 } 18 ?> 31 ?> 32 </table> 33 34 <?php echo $pagination; ?>
