| 1 | <script type="text/javascript"> |
|---|
| 2 | window.onload = timedMsg; |
|---|
| 3 | </script> |
|---|
| 4 | <?php $session->flash(); ?> |
|---|
| 5 | |
|---|
| 6 | <?php echo $html->addCrumb('Control Tools', '/admin/entries/start'); ?> |
|---|
| 7 | |
|---|
| 8 | <?php echo $html->getCrumbs(' / '); ?> |
|---|
| 9 | |
|---|
| 10 | <div class="title_section">Entries </div> |
|---|
| 11 | |
|---|
| 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> |
|---|
| 13 | |
|---|
| 14 | <table class="tbadmin"> |
|---|
| 15 | <?php |
|---|
| 16 | //die(print_r($data)); |
|---|
| 17 | |
|---|
| 18 | $th = array ('Edit', 'Title', 'Status', 'Delete'); |
|---|
| 19 | echo $html->tableHeaders($th, array('style'=>'text-align:center')); |
|---|
| 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'")); |
|---|
| 30 | } |
|---|
| 31 | ?> |
|---|
| 32 | </table> |
|---|
| 33 | |
|---|
| 34 | <?php echo $pagination; ?> |
|---|