Changeset 653 for trunk/app/views/news/admin_listing.ctp
- Timestamp:
- 07/15/08 14:38:50 (4 months ago)
- Files:
-
- 1 modified
-
trunk/app/views/news/admin_listing.ctp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/news/admin_listing.ctp
r620 r653 1 1 <?php 2 //die(debug($data)); 2 3 echo $html->div('title_section', __('News', true)); 3 echo $html->link($html->image('actions/new.png', array("alt"=>"Add new", "title"=>"Add new")), '/admin/news/add', null, false, false); 4 echo $html->link($html->image('actions/new.png', array('alt'=>__('Add new', true), 'title'=>__('Add new', true))), '/admin/news/add', null, false, false); 5 echo ' '; 4 6 echo $html->link($html->image('static/forum.gif', array("alt"=>"See comments", "title"=>"See comments")), '/admin/discussions/listing', null, false, false); 5 7 ?> … … 7 9 <?php 8 10 9 $th = array ('Edit', 'Title', 'Status', 'Delete');11 $th = array(__('Edit', true), __('Title', true), __('Author', true), __('Status', true), __('Delete', true)); 10 12 echo $html->tableHeaders($th); 11 13 foreach ($data as $key=>$val): … … 14 16 $gags->sendEdit($val['News']['id'], 'news'), 15 17 $val['News']['title'], 18 $val['User']['username'], 16 19 $html->link($st, '/admin/news/change/'.$val['News']['status'].'/'.$val['News']['id']), 17 20 $gags->confirmDel($val['News']['id'], 'news') … … 26 29 27 30 <?php 28 // echo $pagination; 31 $t = $html->div(null,$paginator->prev('« '.__('Previous', true). ' ',null,null,array('class'=>'disabled')),array('style'=>'width:100px;float:left')); 32 $t .= $html->div(null, $paginator->next(' '.__('Next', true). ' »', null, null, array('class' => 'disabled')),array('style'=>'width:100px;float:right')); 33 $t .= $html->div(null,$paginator->counter(), array('style'=>'width:200px;float:center')); 34 echo $html->div(null,$t, array('style'=>'font-size:9pt;width:400px;margin:15px auto;')); 29 35 ?>
