Show
Ignore:
Timestamp:
07/09/08 00:03:09 (5 months ago)
Author:
aarkerio
Message:

New methods

Location:
trunk/app/views/entries
Files:
3 modified

Legend:

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

    r585 r633  
    33    echo $javascript->link('fckeditor/fckeditor'); 
    44    echo $html->addCrumb('Control Tools', '/admin/entries/start');  
    5     echo $html->addCrumb('Entries', '/admin/entries/listing');  
     5    echo $html->addCrumb(__('Entries', true), '/admin/entries/listing');  
    66    echo $html->getCrumbs(' / '); 
    77    echo $form->create('Entry');  
    88?> 
    99<fieldset> 
    10 <legend>New Entry</legend> 
    11  
     10<legend><?php __('New Entry'); ?></legend> 
    1211<table style="margin:0 auto 0 auto;"> 
    1312<tr><td> 
    1413  <?php  
    15      echo $form->input('Entry.title', array("size" => 50, "maxlength" => 50)); 
     14     echo $form->input('Entry.title', array('size' => 50, 'maxlength' => 50, 'label'=>__('Title', true))); 
    1615     echo $form->error('Entry.title', 'Title is required.'); 
    1716 ?> 
     
    1918  <td> 
    2019   <?php  
    21       echo $form->label('Entry.subject_id', 'Subject:'); 
     20      echo $form->label('Entry.subject_id', __('Subject',true)); 
    2221      echo $form->select('Entry.subject_id', $subjects, null, null, false);  
    2322   ?> 
     
    3029  <tr><td colspan="3"> 
    3130  <?php  
    32      echo $form->label( 'Entry.Body', 'Body:' ); 
    33      echo $form->textarea('Entry.body', array("cols"=>80, "rows"=>30));  
     31     echo $form->textarea('Entry.body', array('cols'=>80, 'rows'=>30));  
    3432     echo $fck->load('EntryBody', 'Karamelo');  
    3533   ?> 
     
    3937  <td> 
    4038 <?php  
    41      echo $form->label('Entry.status', 'Published:'); 
     39     echo $form->label('Entry.status', __('Published', true)); 
    4240     echo $form->checkbox('Entry.status', array('value'=>1));  
    4341  ?> 
    4442  </td><td> 
    4543   <?php  
    46       echo $form->label('Entry.discution', 'Comments allowed:' ); 
     44      echo $form->label('Entry.discution', __('Allow comments', true)); 
    4745      echo $form->checkbox('Entry.discution', array('value'=>1));  
    4846   ?> 
     
    5048   <td> 
    5149     <?php  
    52        echo $form->label('Entry.end', 'Finish edition:' ); 
     50       echo $form->label('Entry.end', __('Finish edition', true)); 
    5351       echo $form->checkbox('Entry.end', array('value'=>1)); 
    5452    ?> 
     
    5856  <tr><td colspan="3"> 
    5957</fieldset> 
    60   <?php echo $form->end('Save'); ?> 
     58  <?php echo $form->end(__('Save', true)); ?> 
    6159</td></tr> 
    6260</table> 
  • trunk/app/views/entries/admin_edit.ctp

    r585 r633  
    1 <?php echo $javascript->link('myfunctions'); ?> 
    2 <?php echo $javascript->link('fckeditor/fckeditor'); ?>  
    3  
    4 <script type="text/javascript"> 
    5    window.onload = timedMsg; 
    6 </script> 
    7 <?php $session->flash(); ?> 
    8  
    91<?php  
    10    echo $html->addCrumb('Control Tools', '/admin/entries/start');  
    11    echo $html->addCrumb('Entries', '/admin/entries/listing');  
    12    echo $html->getCrumbs(' / ');  
     2  echo $javascript->link('myfunctions'); 
     3  echo $javascript->link('fckeditor/fckeditor'); 
     4  echo $html->addCrumb('Control Panel', '/admin/entries/start');  
     5  echo $html->addCrumb(__('Entries', true), '/admin/entries/listing');  
     6  echo $html->getCrumbs(' / ');  
    137?> 
    148 
    159<fieldset> 
    16 <legend>Edit Entry</legend> 
     10<legend><?php __('Edit Entry'); ?></legend> 
    1711 
    1812<table style="margin:0 auto 0 auto;"> 
     
    2115  echo $form->create('Entry', array('action'=>'edit')); 
    2216  echo $form->hidden('Entry.id'); 
    23   echo $form->input('Entry.title', array("size" => 40, "maxlength" => 50)); 
     17  echo $form->input('Entry.title', array('size' => 40, 'maxlength' => 50, 'label'=>__('Title', true))); 
    2418  echo $form->error('Entry.title', 'Title is required.');  
    2519?> 
    2620</td> <td> 
    2721 <?php  
    28    echo $form->label('Entry.subject_id', 'Subject:'); 
     22   echo $form->label('Entry.subject_id', __('Subject', true)); 
    2923   echo $form->select('Entry.subject_id', $subjects);  
    3024  ?> 
     
    3630 <td colspan="3"> 
    3731  <?php  
    38      echo $form->label('Entry.body', 'Body:'); 
    3932     echo $form->textarea('Entry.body', array('cols'=>80, 'row'=>22)); 
    4033     echo $fck->load('EntryBody', 'Karamelo');  
     
    4437  <tr><td> 
    4538    <?php  
    46         echo $form->label('Entry/status', 'Published:' ); 
    47         echo $form->checkbox('Entry/status', null, array("value" => 1));  
     39        echo $form->label('Entry.status', __('Published',true) ); 
     40        echo $form->checkbox('Entry.status', null, array('value' => 1));  
    4841    ?> 
    4942  </td> 
    5043  <td> 
    5144 <?php  
    52    echo $form->label('Entry.discution', 'Comments allowed:' ); 
     45   echo $form->label('Entry.discution', __('Allow comments', true) ); 
    5346   echo $form->checkbox('Entry.discution', array('value' => 1));  
    5447?> 
     
    5649  <td> 
    5750  <?php  
    58       echo $form->label('Entry.end', 'Finish edition:' ); 
     51      echo $form->label('Entry.end', 'Finish edition' ); 
    5952      echo $form->checkbox('Entry.end', array('value'=>1));  
    6053  ?> 
     
    6356  <tr> 
    6457  <td colspan="3"> 
    65        <?php echo $form->end('Save'); ?> 
    66        
     58       <?php echo $form->end(__('Save', true)); ?> 
    6759  </td> 
    6860  </tr> 
  • trunk/app/views/entries/admin_listing.ctp

    r541 r633  
    77$session->flash();  
    88  
    9 echo $html->addCrumb('Control Tools', '/admin/entries/start'); 
     9echo $html->addCrumb('Control Panel', '/admin/entries/start'); 
    1010echo $html->getCrumbs(' / ');  
    1111 
    12 echo $html->div('title_section', 'Entries');  
     12echo $html->div('title_section', __('Entries', true));  
    1313 
    14 echo $html->para(null, $html->link($html->image('actions/new.png', array("alt"=>"Add entry", "title"=>"Add entry")), '/admin/entries/add', null, false, false) . $html->link($html->image('static/forum.gif', array("alt"=>"See comments", "title"=>"See comments")), '/admin/comments/listing', null, false, false)); 
     14echo $html->para(null, $html->link($html->image('actions/new.png', array('alt'=>__('Add new', true), 'title'=>__('Add new', true))), '/admin/entries/add', null, false, false) . ' &nbsp;&nbsp;  '.$html->link($html->image('static/forum.gif', array("alt"=>"See comments", "title"=>"See comments")), '/admin/comments/listing', null, false, false)); 
    1515 
    1616?> 
     
    1818<?php 
    1919 
    20 $th = array ('Edit', 'Title', 'Status', 'Delete'); 
     20$th = array (__('Edit', true), __('Title', true), __('Status', true), __('Delete', true)); 
    2121echo $html->tableHeaders($th);   
    2222foreach ($data as $val): 
     
    3535 
    3636<?php  
     37 
    3738//echo $pagination;  
    3839?>