Show
Ignore:
Timestamp:
08/06/08 12:32:50 (4 months ago)
Author:
aarkerio
Message:

Validate arrayas

Location:
trunk/app/views/catfaqs
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/catfaqs/admin_edit.ctp

    r542 r698  
    11<?php  
    2  echo $html->addCrumb('Control Tools', '/admin/entries/start');   
     2 echo $html->addCrumb('Control Panel', '/admin/entries/start');   
    33 echo $html->addCrumb('FAQs', '/admin/catfaqs/listing');  
    44 echo $html->getCrumbs(' / ');  
     
    88?> 
    99<fieldset> 
    10   <legend>Edit Item</legend> 
     10  <legend><?php __('Edit item');?> </legend> 
    1111  <?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)); 
    1515    echo $form->textarea('Catfaq.description', array("cols" => 40, "row" => 20)); 
    1616  ?> 
    1717  <div style="clear:both"></div> 
    1818  <br /> 
    19   <?php echo $form->end('Save'); ?> 
     19  <?php echo $form->end(__('Save', true)); ?> 
    2020</fieldset> 
  • trunk/app/views/catfaqs/admin_listing.ctp

    r642 r698  
    1 <script type="text/javascript"> 
    2    window.onload = timedMsg; 
    3 </script> 
    41<?php  
    5 $session->flash();  
    6 echo $html->addCrumb('Control Tools', '/admin/entries/start'); 
     2echo $html->addCrumb('Control Panel', '/admin/entries/start'); 
    73echo $html->addCrumb('FAQs', '/admin/catfaqs/listing');  
    84echo $html->getCrumbs(' / ');  
    95 
    10 echo $html->div('title_section', __('FAQ categories', true)); 
     6echo $html->div('title_section', __('Categories', true)); 
    117 
    128echo $ajax->div('loading', array('style'=>'display:none')). $html->image("static/loading.gif", array("alt"=>"Loading")).$ajax->divEnd('loading'); 
    139     
    14 echo  $html->para(null, $ajax->link($html->image('actions/new.png', array("alt"=>"Add new category", "title"=>"Add new category")),                  '/admin/catfaqs/add',  
     10echo  $html->para(null, $ajax->link($html->image('actions/new.png',array('alt'=>__('Add new', true),'title'=>__('Add new', true))), '/admin/catfaqs/add',  
    1511     array("update" => "updater","loading"=>"Element.show('loading');Element.hide('updater');", "complete"=>"Element.hide('loading');Effect.Appear('updater')"),  
    1612                null, false)); 
     
    1814echo $ajax->div('updater') . $ajax->divEnd('updater'); 
    1915 
    20 //exit(print_r($data)); 
    2116foreach ($data as $val): 
    2217 $tmp  = $html->div('butonright', $gags->sendEdit($val['Catfaq']['id'], 'catfaqs'));