Changeset 698 for trunk/app/views/catfaqs
- Timestamp:
- 08/06/08 12:32:50 (4 months ago)
- Location:
- trunk/app/views/catfaqs
- Files:
-
- 2 modified
-
admin_edit.ctp (modified) (2 diffs)
-
admin_listing.ctp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/catfaqs/admin_edit.ctp
r542 r698 1 1 <?php 2 echo $html->addCrumb('Control Tools', '/admin/entries/start');2 echo $html->addCrumb('Control Panel', '/admin/entries/start'); 3 3 echo $html->addCrumb('FAQs', '/admin/catfaqs/listing'); 4 4 echo $html->getCrumbs(' / '); … … 8 8 ?> 9 9 <fieldset> 10 <legend> Edit Item</legend>10 <legend><?php __('Edit item');?> </legend> 11 11 <?php 12 echo $form->input('Catfaq.title', array( "size" => 30, "maxlength" => 90));13 14 echo $form->label('Catfaq.description', 'Description:');12 echo $form->input('Catfaq.title', array('size'=>30,'maxlength'=> 90, 'label'=>__('Title', true))); 13 14 echo $form->label('Catfaq.description', __('Description', true)); 15 15 echo $form->textarea('Catfaq.description', array("cols" => 40, "row" => 20)); 16 16 ?> 17 17 <div style="clear:both"></div> 18 18 <br /> 19 <?php echo $form->end( 'Save'); ?>19 <?php echo $form->end(__('Save', true)); ?> 20 20 </fieldset> -
trunk/app/views/catfaqs/admin_listing.ctp
r642 r698 1 <script type="text/javascript">2 window.onload = timedMsg;3 </script>4 1 <?php 5 $session->flash(); 6 echo $html->addCrumb('Control Tools', '/admin/entries/start'); 2 echo $html->addCrumb('Control Panel', '/admin/entries/start'); 7 3 echo $html->addCrumb('FAQs', '/admin/catfaqs/listing'); 8 4 echo $html->getCrumbs(' / '); 9 5 10 echo $html->div('title_section', __(' FAQ categories', true));6 echo $html->div('title_section', __('Categories', true)); 11 7 12 8 echo $ajax->div('loading', array('style'=>'display:none')). $html->image("static/loading.gif", array("alt"=>"Loading")).$ajax->divEnd('loading'); 13 9 14 echo $html->para(null, $ajax->link($html->image('actions/new.png', array("alt"=>"Add new category", "title"=>"Add new category")),'/admin/catfaqs/add',10 echo $html->para(null, $ajax->link($html->image('actions/new.png',array('alt'=>__('Add new', true),'title'=>__('Add new', true))), '/admin/catfaqs/add', 15 11 array("update" => "updater","loading"=>"Element.show('loading');Element.hide('updater');", "complete"=>"Element.hide('loading');Effect.Appear('updater')"), 16 12 null, false)); … … 18 14 echo $ajax->div('updater') . $ajax->divEnd('updater'); 19 15 20 //exit(print_r($data));21 16 foreach ($data as $val): 22 17 $tmp = $html->div('butonright', $gags->sendEdit($val['Catfaq']['id'], 'catfaqs'));
