Changeset 620 for trunk/app/views/news

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

In spanish please

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

Legend:

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

    r546 r620  
    33   echo $javascript->link('fckeditor/fckeditor');  
    44 
    5    echo $html->addCrumb('Control Tools', '/admin/entries/start');  
    6    echo $html->addCrumb('News', '/admin/news/listing'); 
     5   echo $html->addCrumb('Control Panel', '/admin/entries/start');  
     6   echo $html->addCrumb(__('News', true), '/admin/news/listing'); 
    77   echo $html->getCrumbs(' / '); 
    88   echo $form->create('News', array('onsubmit'=>'return validateNew()'));  
    99 
    10    echo $html->div('title_section', 'Add new'); 
     10   echo $html->div('title_section', __('Add new', true)); 
    1111?> 
    1212<table> 
    1313<tr> 
    1414<td> 
    15   <?php  
    16       echo $form->input('News.title', array("size" => 40, "maxlength" => 120)); 
     15 <?php  
     16      echo $form->input('News.title', array('size' => 40, 'maxlength' => 120)); 
    1717      echo $form->error('News.title', 'Title is required.');  
    18   ?> 
    19 </td> 
    20 <td> 
    21   <?php  
    22     echo $form->label('News.theme_id', 'Theme:'); 
     18 ?> 
     19</td><td> 
     20 <?php  
     21    echo $form->label('News.theme_id', __('Theme', true)); 
    2322    echo $form->select('News.theme_id', $themes, null, null, null, false, false);       
    2423  ?> 
    25 </td> 
    26 <td> 
     24</td><td> 
    2725<?php  
    2826   echo $form->input('News.reference', array('size'=> 30, 'maxlength'=> 250, 'value'=>'http://'));  
    2927 ?> 
    30 </td> 
    31 <td> 
    32   <?php echo $html->link($html->image('admin/myimages.jpg', array("alt"=>"My Images", "title"=>"My Images")), '#', array("onclick"=>"javascript:window.open('/admin/images/listing/set', 'blank', 'toolbar=no, scrollbars=yes,width=700,height=500')"), null, false) ?></p> 
     28</td><td> 
     29 <?php echo $html->link($html->image('admin/myimages.jpg', array("alt"=>"My Images", "title"=>"My Images")), '#', array("onclick"=>"javascript:window.open('/admin/images/listing/set', 'blank', 'toolbar=no, scrollbars=yes,width=700,height=500')"), null, false) ?></p> 
    3330</td></tr> 
    3431 
     
    4037  ?> 
    4138</td></tr> 
    42 <tr><td colspan="2"> 
     39<tr><td> 
    4340  <?php  
    4441     echo $form->label('News.status', 'Published:' ); 
    4542     echo $form->checkbox('News.status', array('value'=>1));  
    4643  ?> 
    47 </td> 
    48  <td> 
     44</td><td> 
    4945  <?php  
    5046     echo $form->label('News.comments', 'Comments actived:' ); 
     
    5248  ?> 
    5349</td> 
    54 <td> 
     50<td  colspan="2"> 
    5551   <?php  
    5652     echo $form->label('News.end', 'Finish editing:'); 
     
    6056</tr> 
    6157   
    62 <tr><td colspan="4">  <?php echo $form->end('Save'); ?> </td></tr> 
     58<tr><td colspan="4">  <?php echo $form->end(__('Save', true)); ?> </td></tr> 
    6359 
    6460</table> 
  • trunk/app/views/news/admin_edit.ctp

    r401 r620  
    11<?php  
    22  echo $javascript->link('fckeditor/fckeditor'); 
    3   echo $html->addCrumb('Control Tools', '/admin/entries/start');  
    4   echo $html->addCrumb('News', '/admin/news/listing');  
     3  echo $html->addCrumb('Control Panel', '/admin/entries/start');  
     4  echo $html->addCrumb(__('News', true), '/admin/news/listing');  
    55  echo $html->getCrumbs(' / ');  
    66 
     
    1414<td> 
    1515<?php  
    16   echo $form->input('News.title', array('size' => 40, 'maxlength' => 120)); 
     16  echo $form->input('News.title', array('size' => 40, 'maxlength' => 120, 'label'=>__('Title', true))); 
    1717  echo $form->error('News.title', 'Title is required.');  
    1818?> 
     
    3434  <?php  
    3535     echo $form->label('News.Body', 'Body:') . '<br />'; 
    36      echo $form->textarea('News.body', array('cols'=>80, 'rows'=>35));  
     36     echo $form->textarea('News.body', array('cols'=>90, 'rows'=>35));  
    3737     echo $fck->load('NewsBody', 'Karamelo');  
    3838  ?> 
     
    5858</td> 
    5959</tr> 
    60 <tr><td colspan="4">  <?php echo $form->end('Save'); ?></td></tr> 
     60<tr><td colspan="4"> <?php echo $form->end(__('Save', true)); ?></td></tr> 
    6161</table> 
  • 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  
  • trunk/app/views/news/display.ctp

    r604 r620  
    22// die(debug($_SERVER)); 
    33 
    4 echo $html->div('title_portal', __("news_campus", true)); 
     4echo $html->div('title_portal', __('News on Campus', true)); 
    55 
    66foreach ($data as $val): 
     
    4747                           false); 
    4848       
    49 echo $news->socialNets($val['News']['id'], $val['News']['title']); // Social nets buttons 
     49  echo $news->socialNets($val['News']['id'], $val['News']['title']); // Social nets buttons 
    5050       
    51      
    52  
    5351  echo '</div>'; 
    5452endforeach; 
  • trunk/app/views/news/view.ctp

    r604 r620  
    11<?php 
    22// die(debug($data)); 
    3 echo $html->div('titnew', $data['News']['title']); 
     3 
     4echo $html->div('news_title', $html->link($data['News']['title'], '/news/view/'. $data['News']['id'])); 
    45 
    56echo $html->div('redaccion', __('from_dep', true).'<i> '.$data['Theme']['theme'].'</i>, posted by '.$html->link($data['User']['username'], '/users/about/'.$data['User']['username']).' on '. $data['News']['created']);  
     
    5859?> 
    5960<fieldset> 
    60    <legend>Write comment:</legend> 
     61   <legend><?php __('Write comment'); ?></legend> 
    6162<?php  
    62     echo $form->label('Discussion.comment', '<b>'. $session->read('Auth.User.username') . '</b>  write:').'<br />';  
     63    echo $form->label('Discussion.comment', '<b>'. $session->read('Auth.User.username') .'</b> '.  __('write', true) . ':<br />'); 
    6364    echo $form->textarea('Discussion.comment', array('cols'=>60, 'rows'=>10)); 
    64     echo $form->end('Send comment'); 
     65    echo $form->end(__('Send comment', true)); 
    6566 else: 
    66     echo $html->para(null, $html->link('Login to write comments', '/users/login'));  
     67    echo $html->para(null, $html->link(__('Login to write comments', true), '/users/login'));  
    6768 endif;  
    6869}