Show
Ignore:
Timestamp:
07/02/08 18:44:15 (5 months ago)
Author:
aarkerio
Message:

In spanish please

Files:
1 modified

Legend:

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

    r407 r620  
    1 <div class="title_section">News</div> 
    2  
    3 <p> 
    4   <?php  
    5      echo $html->link($html->image('actions/new.png', array("alt"=>"Add new", "title"=>"Add new")), '/admin/news/add', null, false, false); 
    6      echo $html->link($html->image('static/forum.gif', array("alt"=>"See comments", "title"=>"See comments")), '/admin/discussions/listing', null, false, false); 
    7   ?> 
    8  
    9 </p> 
    10  
     1<?php 
     2  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('static/forum.gif', array("alt"=>"See comments", "title"=>"See comments")), '/admin/discussions/listing', null, false, false); 
     5?> 
    116<table class="tbadmin"> 
    12  
    137<?php 
    14 //die(print_r($data)); 
    158 
    169$th = array ('Edit', 'Title', 'Status', 'Delete'); 
    1710echo $html->tableHeaders($th);   
    18 foreach ($data as $key=>$val) 
    19     { 
    20              
     11foreach ($data as $key=>$val): 
     12       $st = ($val['News']['status']) ? __('Published', true) : __('Draft', true);      
    2113       $tr = array ( 
    2214        $gags->sendEdit($val['News']['id'], 'news'), 
    2315        $val['News']['title'], 
    24         $gags->setStatus($val['News']['status']), 
     16        $html->link($st, '/admin/news/change/'.$val['News']['status'].'/'.$val['News']['id']), 
    2517        $gags->confirmDel($val['News']['id'], 'news') 
    2618        ); 
     
    2921                                array('class'=>'evenRow',"onmouseover"=>"this.className='highlight'", "onmouseout"=>"this.className='evenRow'")); 
    3022     
    31     } 
     23endforeach; 
    3224?> 
    3325</table> 
     
    3628// echo $pagination;  
    3729?> 
    38