Changeset 633 for trunk/app/views/entries
- Timestamp:
- 07/09/08 00:03:09 (5 months ago)
- Location:
- trunk/app/views/entries
- Files:
-
- 3 modified
-
admin_add.ctp (modified) (6 diffs)
-
admin_edit.ctp (modified) (6 diffs)
-
admin_listing.ctp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/entries/admin_add.ctp
r585 r633 3 3 echo $javascript->link('fckeditor/fckeditor'); 4 4 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'); 6 6 echo $html->getCrumbs(' / '); 7 7 echo $form->create('Entry'); 8 8 ?> 9 9 <fieldset> 10 <legend>New Entry</legend> 11 10 <legend><?php __('New Entry'); ?></legend> 12 11 <table style="margin:0 auto 0 auto;"> 13 12 <tr><td> 14 13 <?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))); 16 15 echo $form->error('Entry.title', 'Title is required.'); 17 16 ?> … … 19 18 <td> 20 19 <?php 21 echo $form->label('Entry.subject_id', 'Subject:');20 echo $form->label('Entry.subject_id', __('Subject',true)); 22 21 echo $form->select('Entry.subject_id', $subjects, null, null, false); 23 22 ?> … … 30 29 <tr><td colspan="3"> 31 30 <?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)); 34 32 echo $fck->load('EntryBody', 'Karamelo'); 35 33 ?> … … 39 37 <td> 40 38 <?php 41 echo $form->label('Entry.status', 'Published:');39 echo $form->label('Entry.status', __('Published', true)); 42 40 echo $form->checkbox('Entry.status', array('value'=>1)); 43 41 ?> 44 42 </td><td> 45 43 <?php 46 echo $form->label('Entry.discution', 'Comments allowed:');44 echo $form->label('Entry.discution', __('Allow comments', true)); 47 45 echo $form->checkbox('Entry.discution', array('value'=>1)); 48 46 ?> … … 50 48 <td> 51 49 <?php 52 echo $form->label('Entry.end', 'Finish edition:');50 echo $form->label('Entry.end', __('Finish edition', true)); 53 51 echo $form->checkbox('Entry.end', array('value'=>1)); 54 52 ?> … … 58 56 <tr><td colspan="3"> 59 57 </fieldset> 60 <?php echo $form->end( 'Save'); ?>58 <?php echo $form->end(__('Save', true)); ?> 61 59 </td></tr> 62 60 </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 9 1 <?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(' / '); 13 7 ?> 14 8 15 9 <fieldset> 16 <legend> Edit Entry</legend>10 <legend><?php __('Edit Entry'); ?></legend> 17 11 18 12 <table style="margin:0 auto 0 auto;"> … … 21 15 echo $form->create('Entry', array('action'=>'edit')); 22 16 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))); 24 18 echo $form->error('Entry.title', 'Title is required.'); 25 19 ?> 26 20 </td> <td> 27 21 <?php 28 echo $form->label('Entry.subject_id', 'Subject:');22 echo $form->label('Entry.subject_id', __('Subject', true)); 29 23 echo $form->select('Entry.subject_id', $subjects); 30 24 ?> … … 36 30 <td colspan="3"> 37 31 <?php 38 echo $form->label('Entry.body', 'Body:');39 32 echo $form->textarea('Entry.body', array('cols'=>80, 'row'=>22)); 40 33 echo $fck->load('EntryBody', 'Karamelo'); … … 44 37 <tr><td> 45 38 <?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)); 48 41 ?> 49 42 </td> 50 43 <td> 51 44 <?php 52 echo $form->label('Entry.discution', 'Comments allowed:');45 echo $form->label('Entry.discution', __('Allow comments', true) ); 53 46 echo $form->checkbox('Entry.discution', array('value' => 1)); 54 47 ?> … … 56 49 <td> 57 50 <?php 58 echo $form->label('Entry.end', 'Finish edition :' );51 echo $form->label('Entry.end', 'Finish edition' ); 59 52 echo $form->checkbox('Entry.end', array('value'=>1)); 60 53 ?> … … 63 56 <tr> 64 57 <td colspan="3"> 65 <?php echo $form->end('Save'); ?> 66 58 <?php echo $form->end(__('Save', true)); ?> 67 59 </td> 68 60 </tr> -
trunk/app/views/entries/admin_listing.ctp
r541 r633 7 7 $session->flash(); 8 8 9 echo $html->addCrumb('Control Tools', '/admin/entries/start');9 echo $html->addCrumb('Control Panel', '/admin/entries/start'); 10 10 echo $html->getCrumbs(' / '); 11 11 12 echo $html->div('title_section', 'Entries');12 echo $html->div('title_section', __('Entries', true)); 13 13 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));14 echo $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) . ' '.$html->link($html->image('static/forum.gif', array("alt"=>"See comments", "title"=>"See comments")), '/admin/comments/listing', null, false, false)); 15 15 16 16 ?> … … 18 18 <?php 19 19 20 $th = array ( 'Edit', 'Title', 'Status', 'Delete');20 $th = array (__('Edit', true), __('Title', true), __('Status', true), __('Delete', true)); 21 21 echo $html->tableHeaders($th); 22 22 foreach ($data as $val): … … 35 35 36 36 <?php 37 37 38 //echo $pagination; 38 39 ?>
