Changeset 653 for trunk/app/views/news

Show
Ignore:
Timestamp:
07/15/08 14:38:50 (4 months ago)
Author:
aarkerio
Message:

Messages and news imprved

Location:
trunk/app/views/news
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/news/admin_listing.ctp

    r620 r653  
    11<?php 
     2//die(debug($data)); 
    23  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 '&nbsp;&nbsp;&nbsp;';  
    46  echo $html->link($html->image('static/forum.gif', array("alt"=>"See comments", "title"=>"See comments")), '/admin/discussions/listing', null, false, false); 
    57?> 
     
    79<?php 
    810 
    9 $th = array ('Edit', 'Title', 'Status', 'Delete'); 
     11$th = array(__('Edit', true), __('Title', true), __('Author', true), __('Status', true), __('Delete', true)); 
    1012echo $html->tableHeaders($th);   
    1113foreach ($data as $key=>$val): 
     
    1416        $gags->sendEdit($val['News']['id'], 'news'), 
    1517        $val['News']['title'], 
     18        $val['User']['username'], 
    1619        $html->link($st, '/admin/news/change/'.$val['News']['status'].'/'.$val['News']['id']), 
    1720        $gags->confirmDel($val['News']['id'], 'news') 
     
    2629 
    2730<?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')); 
     34echo  $html->div(null,$t, array('style'=>'font-size:9pt;width:400px;margin:15px auto;')); 
    2935?> 
  • trunk/app/views/news/display.ctp

    r636 r653  
    5252endforeach; 
    5353 
    54 $t  = $html->div(null,$paginator->prev('« Previous ',null,null,array('class'=>'disabled')),array('style'=>'width:100px;float:left')); 
    55 $t .= $html->div(null, $paginator->next(' Next »', null, null, array('class' => 'disabled')),array('style'=>'width:100px;float:right')); 
     54$t  = $html->div(null,$paginator->prev('«'. __('Previous', true).' ',null,null,array('class'=>'disabled')),array('style'=>'width:100px;float:left')); 
     55$t .= $html->div(null, $paginator->next(' '.__('Next', true).' »', null, null, array('class' => 'disabled')),array('style'=>'width:100px;float:right')); 
    5656$t .= $html->div(null,$paginator->counter(), array('style'=>'width:200px;float:center')); 
    5757echo  $html->div(null,$t, array('style'=>'font-size:9pt;width:400px;margin:15px auto;'));