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

Revision 861, 2.0 kB (checked in by aarkerio, 4 weeks ago)

Better helps

Line 
1<?php
2//die(debug($session->read('Auth.User.email')));
3 
4echo $html->addCrumb('Control Panel', '/admin/entries/start');
5echo $html->getCrumbs(' / ');
6echo $html->div('title_section', __('Entries', true));
7
8echo $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) . ' &nbsp;&nbsp;  '.$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));
14echo $html->tableHeaders($th, array('style'=>'text-align:center'));
15foreach ($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'"));
25endforeach;
26?>
27</table>
28
29<?php
30if ( isset($val) ):
31   $paginator->options(array('url' => $val['User']['username']));
32endif;
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'));
37echo  $html->div(null,$t, array('style'=>'font-size:9pt;width:400px;margin:15px auto;'));
38?>
Note: See TracBrowser for help on using the browser.