Changeset 701 for trunk/app/views/news
- Timestamp:
- 08/08/08 16:03:49 (4 months ago)
- Location:
- trunk/app/views/news
- Files:
-
- 3 modified
-
admin_add.ctp (modified) (4 diffs)
-
admin_edit.ctp (modified) (4 diffs)
-
admin_listing.ctp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/news/admin_add.ctp
r620 r701 6 6 echo $html->addCrumb(__('News', true), '/admin/news/listing'); 7 7 echo $html->getCrumbs(' / '); 8 echo $form->create('News' , array('onsubmit'=>'return validateNew()'));8 echo $form->create('News'); 9 9 10 10 echo $html->div('title_section', __('Add new', true)); … … 12 12 <table> 13 13 <tr> 14 <td><?php echo $form->input('News.title', array('size' => 40, 'maxlength' => 120)); ?> </td> 14 15 <td> 15 <?php16 echo $form->input('News.title', array('size' => 40, 'maxlength' => 120));17 echo $form->error('News.title', 'Title is required.');18 ?>19 </td><td>20 16 <?php 21 17 echo $form->label('News.theme_id', __('Theme', true)); 22 18 echo $form->select('News.theme_id', $themes, null, null, null, false, false); 23 19 ?> 24 </td><td> 25 <?php 26 echo $form->input('News.reference', array('size'=> 30, 'maxlength'=> 250, 'value'=>'http://')); 27 ?> 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> 20 </td> 21 <td><?php echo $form->input('News.reference', array('size'=> 30, 'maxlength'=> 340)); ?></td> 22 <td> 23 <?php echo $html->link($html->image('admin/myimages.jpg', array('alt'=>__('My Images', true), 'title'=>__('My Images', true))), '#', array("onclick"=>"javascript:window.open('/admin/images/listing/set', 'blank', 'toolbar=no, scrollbars=yes,width=700,height=500')"), null, false) ?></p> 30 24 </td></tr> 31 32 25 <tr><td colspan="4"> 33 26 <?php 34 echo $form-> label('News.Body', 'Body:').'<br />';27 echo $form->error('News.body').'<br />'; 35 28 echo $form->textarea('News.body', array('cols'=>80, 'rows'=>35)); 36 29 echo $fck->load('NewsBody', 'Karamelo'); … … 39 32 <tr><td> 40 33 <?php 41 echo $form->label('News.status', 'Published:');34 echo $form->label('News.status', __('Published', true) ); 42 35 echo $form->checkbox('News.status', array('value'=>1)); 43 36 ?> 44 37 </td><td> 45 38 <?php 46 echo $form->label('News.comments', 'Comments actived:');39 echo $form->label('News.comments', __('Allow comments', true) ); 47 40 echo $form->checkbox('News.comments', array('value'=>1)); 48 41 ?> … … 50 43 <td colspan="2"> 51 44 <?php 52 echo $form->label('News.end', 'Finish editing:');45 echo $form->label('News.end', __('Finish edition', true)); 53 46 echo $form->checkbox('News.end', array('value'=>1)); 54 47 ?> 55 48 </td> 56 49 </tr> 57 58 <tr><td colspan="4"> <?php echo $form->end(__('Save', true)); ?> </td></tr> 59 50 <tr><td colspan="4"> <?php echo $form->end(__('Save', true)); ?> </td></tr> 60 51 </table> 52 </fieldset> -
trunk/app/views/news/admin_edit.ctp
r620 r701 5 5 echo $html->getCrumbs(' / '); 6 6 7 echo $html->para(null, $html->link($html->image('actions/new.png', array( "alt"=>"Add new", "title"=>"Add new")), '/admin/news/add', null, false, false));7 echo $html->para(null, $html->link($html->image('actions/new.png', array('alt'=>__('Add new', true), 'title'=>__('Add new',true))), '/admin/news/add', null, false, false)); 8 8 9 echo $form->create('News' , array('onsubmit'=>'return validateNew()'));9 echo $form->create('News'); 10 10 echo $form->hidden('News.id'); 11 11 ?> 12 12 <table> 13 13 <tr> 14 <td> 15 <?php 16 echo $form->input('News.title', array('size' => 40, 'maxlength' => 120, 'label'=>__('Title', true))); 17 echo $form->error('News.title', 'Title is required.'); 18 ?> 19 </td> 14 <td> <?php echo $form->input('News.title', array('size' => 40, 'maxlength' => 120, 'label'=>__('Title', true))); ?></td> 20 15 <td> 21 16 <?php 22 echo $form->label('News.theme_id', 'Theme:');17 echo $form->label('News.theme_id', __('Theme', true)); 23 18 echo $form->select('News.theme_id', $themes, null, null, false); 24 19 ?> 25 20 </td> 26 <td> 27 <?php echo $form->input('News.reference', array("size" => 30, "maxlength" => 250, 'value'=>'http://')); ?> 28 </td> 21 <td><?php echo $form->input('News.reference', array('size'=> 30, 'maxlength' => 340)); ?></td> 29 22 <td> 30 23 <?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> … … 33 26 <tr><td colspan="4"> 34 27 <?php 35 echo $form-> label('News.Body', 'Body:') . '<br />';28 echo $form->error('News.body'); 36 29 echo $form->textarea('News.body', array('cols'=>90, 'rows'=>35)); 37 30 echo $fck->load('NewsBody', 'Karamelo'); … … 41 34 <td> 42 35 <?php 43 echo $form->label('News.status', 'Published:');44 echo $form->checkbox('News.status', array( "value"=>1));36 echo $form->label('News.status', __('Published', true)); 37 echo $form->checkbox('News.status', array('value'=>1)); 45 38 ?> 46 39 </td> 47 40 <td> 48 41 <?php 49 echo $form->label('News.comments', 'Allow comments:');50 echo $form->checkbox('News.comments', array( "value"=>1));42 echo $form->label('News.comments', __('Allow comments', true)); 43 echo $form->checkbox('News.comments', array('value'=>1)); 51 44 ?> 52 45 </td> 53 46 <td colspan="2"> 54 47 <?php 55 echo $form->label('News.end', 'Finish editing:');56 echo $form->checkbox('News.end', array("value"=>1));48 echo $form->label('News.end', __('Finish edition', true)); 49 echo $form->checkbox('News.end', array('value'=>1)); 57 50 ?> 58 51 </td> … … 60 53 <tr><td colspan="4"> <?php echo $form->end(__('Save', true)); ?></td></tr> 61 54 </table> 55 </fieldset> -
trunk/app/views/news/admin_listing.ctp
r653 r701 1 1 <?php 2 //die(debug($data));3 2 echo $html->div('title_section', __('News', true)); 4 3 echo $html->link($html->image('actions/new.png', array('alt'=>__('Add new', true), 'title'=>__('Add new', true))), '/admin/news/add', null, false, false); 5 4 echo ' '; 6 echo $html->link($html->image('static/forum.gif', array( "alt"=>"See comments", "title"=>"See comments")), '/admin/discussions/listing', null, false, false);5 echo $html->link($html->image('static/forum.gif', array('alt'=>__('See comments', true),'title'=>__('See comments', true))), '/admin/discussions/listing', null, false, false); 7 6 ?> 8 7 <table class="tbadmin"> 9 8 <?php 10 11 9 $th = array(__('Edit', true), __('Title', true), __('Author', true), __('Status', true), __('Delete', true)); 12 10 echo $html->tableHeaders($th); … … 25 23 26 24 endforeach; 27 ?>28 </table>29 25 30 <?php 26 echo '</table>'; 27 31 28 $t = $html->div(null,$paginator->prev('« '.__('Previous', true). ' ',null,null,array('class'=>'disabled')),array('style'=>'width:100px;float:left')); 32 29 $t .= $html->div(null, $paginator->next(' '.__('Next', true). ' »', null, null, array('class' => 'disabled')),array('style'=>'width:100px;float:right'));
