| 1 | <?php |
|---|
| 2 | //die(debug($session->read('Auth.User.email'))); |
|---|
| 3 | |
|---|
| 4 | echo $html->addCrumb('Control Panel', '/admin/entries/start'); |
|---|
| 5 | echo $html->getCrumbs(' / '); |
|---|
| 6 | echo $html->div('title_section', __('Entries', true)); |
|---|
| 7 | |
|---|
| 8 | echo $html->para(null, $html->link($html->image('actions/new.png', array('alt'=>__('Add new', true), 'title'=>__('Add new', true))), '/admin/entries/edit', null, false, false) . ' '.$html->link($html->image('static/forum.gif', array('alt'=>__('See comments', true),'title'=>__('See comments', true))), '/admin/entries/comments', null, false, false)); |
|---|
| 9 | |
|---|
| 10 | ?> |
|---|
| 11 | <table class="tbadmin"> |
|---|
| 12 | <?php |
|---|
| 13 | $th = array (__('Edit', true), __('Title', true), __('Status', true), __('Delete', true)); |
|---|
| 14 | echo $html->tableHeaders($th, array('style'=>'text-align:center')); |
|---|
| 15 | foreach ($data as $val): |
|---|
| 16 | $tr = array ( |
|---|
| 17 | $gags->sendEdit($val['Entry']['id'], 'Entry'), |
|---|
| 18 | $val['Entry']['title'], |
|---|
| 19 | $html->link($gags->setStatus($val['Entry']['status']), '/admin/entries/change/'.$val['Entry']['id'].'/'.$val['Entry']['status']), |
|---|
| 20 | $gags->confirmDel($val['Entry']['id'], 'Entry') |
|---|
| 21 | ); |
|---|
| 22 | |
|---|
| 23 | echo $html->tableCells($tr, array("class"=>"altRow", "onmouseover"=>"this.className='highlight'", "onmouseout"=>"this.className='altRow'"), |
|---|
| 24 | array('class'=>'evenRow',"onmouseover"=>"this.className='highlight'", "onmouseout"=>"this.className='evenRow'")); |
|---|
| 25 | endforeach; |
|---|
| 26 | ?> |
|---|
| 27 | </table> |
|---|
| 28 | |
|---|
| 29 | <?php |
|---|
| 30 | if ( isset($val) ): |
|---|
| 31 | $paginator->options(array('url' => $val['User']['username'])); |
|---|
| 32 | endif; |
|---|
| 33 | |
|---|
| 34 | $t = $html->div(null,$paginator->prev('« '.__('Previous', true),null,null,array('class'=>'disabled')),array('style'=>'width:100px;float:left')); |
|---|
| 35 | $t .= $html->div(null,$paginator->next(__('Next', true).' »', null, null, array('class' => 'disabled')),array('style'=>'width:100px;float:right')); |
|---|
| 36 | $t .= $html->div(null,$paginator->counter(), array('style'=>'width:200px;float:center')); |
|---|
| 37 | echo $html->div(null,$t, array('style'=>'font-size:9pt;width:400px;margin:15px auto;')); |
|---|
| 38 | ?> |
|---|