Changeset 698 for trunk/app/views

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

Validate arrayas

Location:
trunk/app/views
Files:
1 removed
7 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')); 
  • trunk/app/views/catglossaries/admin_edit.ctp

    r541 r698  
    11<?php  
    22   echo $html->addCrumb('Control Tools', '/admin/entries/start');  
    3    echo $html->addCrumb('Glossaries', '/admin/catglossaries/listing');  
     3   echo $html->addCrumb(__('Glossaries', true), '/admin/catglossaries/listing');  
    44   echo $html->getCrumbs(' / ');  
    55 
     
    88?> 
    99<fieldset> 
    10   <legend>Edit Category</legend> 
     10  <legend><?php __('Edit category'); ?></legend> 
    1111  <?php 
    12     echo $form->input('Catglossary.title', array("size" => 30, "maxlength" => 90)); 
     12    echo $form->input('Catglossary.title', array('size' => 30, 'maxlength' => 90, 'label'=>__('Title', true))); 
    1313      
    14     echo $form->label('Catglossary.description', 'Description:' ); 
     14    echo $form->label('Catglossary.description', __('Description', true)); 
    1515    echo $form->textarea('Catglossary.description', array("cols" => 40, "row" => 20)); 
    1616   
    17     echo $form->label( 'Catglossary.status', 'Enabled:' ); 
     17    echo $form->label( 'Catglossary.status', __('Published', true)); 
    1818    echo $form->checkbox('Catglossary.status', array('status'=>1));  
    19 ?> 
    20     
     19?>    
    2120  <br /> 
    22   <?php echo $form->end('Save'); ?> 
     21  <?php echo $form->end(__('Save', true)); ?> 
    2322</fieldset> 
  • trunk/app/views/catglossaries/admin_items.ctp

    r541 r698  
    11<?php  
    2   //die(debug($data));  
    3 ?>  
    4 <script type="text/javascript"> 
    5    window.onload = timedMsg; 
    6 </script> 
    7 <?php  
    8 $session->flash(); 
    9  
    10 echo $html->addCrumb('Control Tools', '/admin/entries/start'); 
    11 echo $html->addCrumb('Glossaries', '/admin/catglossaries/listing');  
     2echo $html->addCrumb('Control Panel', '/admin/entries/start'); 
     3echo $html->addCrumb(__('Glossaries', true), '/admin/catglossaries/listing');  
    124echo $html->getCrumbs(' / ');  
    135 
    14 echo $html->div('control-panel-title', $data['Catglossary']['title']); 
     6echo $html->div('title_section', $data['Catglossary']['title']); 
    157 
    168 if ( count($data['Glossary']) < 1): 
    17     echo '<p><b>No items yet</b></p>'; 
     9    echo '<p><b>'.__('No items yet', true).'</b></p>'; 
    1810 endif; 
    1911  
    20  echo '<div id="loading" style="display: none;">'; 
    21                   echo $html->image("static/loading.gif", array("alt"=>"Loading")); 
    22  echo '</div>'; 
     12 echo '<div id="loading" style="display: none;">'.$html->image("static/loading.gif", array("alt"=>"Loading")). '</div>'; 
    2313     
    24  echo  $ajax->link($html->image('actions/new.png', array("alt"=>"Add new category", "title"=>"Add new category")),  
     14 echo  $ajax->link($html->image('actions/new.png', array('alt'=>__('Add new', true), 'title'=>__('Add new', true))),  
    2515          '/admin/glossaries/new/'.$data['Catglossary']['id'],  
    2616      array("update" => "updater", 
     
    4030   echo '<p style="margin-left:15px;">'. $val['definition']  . '</p>'; 
    4131     
    42    echo $form->create('Glossary', array('action'=>'delete', 'onsubmit'=>'return confirm(\'Are you sure to delete this item?\')')); 
     32   echo $form->create('Glossary', array('action'=>'delete', 'onsubmit'=>"return confirm('".__('Are you sure to want to delete this?', true)."')")); 
    4333   echo $form->hidden('Glossary.id', array('value'=>$val['id'])); 
    4434   echo $form->hidden('Glossary.catglossary_id', array('value'=>$data['Catglossary']['id']));  
    45    echo $form->end('Delete');  
     35   echo $form->end(__('Delete', true));  
    4636    
    4737   echo '</div>'; 
  • trunk/app/views/catglossaries/admin_listing.ctp

    r644 r698  
    33 echo $html->getCrumbs(' / '); 
    44 
    5  echo $html->div('title_section', __('Glossaries categories', true)); 
     5 echo $html->div('title_section', __('Categories', true)); 
    66 
    7 echo $html->link($html->image('actions/new.png', array("alt"=>"Add new category", "title"=>"Add new category")), '/admin/catglossaries/add', null, false, false); 
     7echo $html->link($html->image('actions/new.png', array('alt'=>__('Add new', true), 'title'=>__('Add new', true))), '/admin/catglossaries/add', null, false, false); 
    88 
    99foreach ($data as $val): 
    10  
    1110   echo '<div style="padding:6px;margin:5px;border:1px dotted gray;">'; 
    1211   echo $gags->sendEdit($val['Catglossary']['id'], 'catglossaries') . '<br />'; 
    1312          
    14    echo $html->link($val['Catglossary']['title'], '/admin/catglossaries/items/'.$val['Catglossary']['id'], array("class"=>"largelink")) . '<br />';  
     13   echo $html->link($val['Catglossary']['title'],'/admin/catglossaries/items/'.$val['Catglossary']['id'], array('class'=>'largelink', 'title'=>__('Click to add glossary in this category', true))) . '<br />';  
    1514   echo $val['Catglossary']['description']  . '<br />'; 
    1615             
    17    //echo count($val['Glossary'])  . ' <b>items</b><br />'; 
    18    echo '<p style="font-size:7pt">Status: '. $gags->setStatus($val['Catglossary']['status']) . '</p>'; 
     16   echo $html->para(null, 'Status: '. $html->link($gags->setStatus($val['Catglossary']['status']), '/admin/catglossaries/change/'.$val['Catglossary']['status'].'/'.$val['Catglossary']['id']), aa('style', 'font-size:7pt')); 
    1917   echo $gags->confirmDel($val['Catglossary']['id'], 'catglossaries'); 
    2018   echo '</div>'; 
  • trunk/app/views/glossaries/new.ctp

    r541 r698  
    44?> 
    55<fieldset> 
    6   <legend>Add Item</legend> 
     6  <legend><?php __('New item'); ?></legend> 
    77  <?php  
    88    echo $form->input('Glossary.item', array("size" => 30, "maxlength" => 90)); 
    99    echo $form->error('Glossary.item', 'A FAQ item is required.'); 
    1010      
    11     echo $form->label('Glossary.definition', 'Definition:' ); 
    12     echo $form->textarea('Glossary.definition', array("cols" => 60, "rows" => 6)); 
     11    echo $form->label('Glossary.definition', __('Definition', true) ); 
     12    echo $form->textarea('Glossary.definition', array('cols' => 60, 'rows' => 6)); 
    1313    echo $form->error('Glossary.definition', 'A category definition is required.'); 
     14    echo $form->end(__('Save', true));  
    1415  ?> 
    15   <br /><br /> 
    16   <div style="clear:both"></div> 
    17   <br /></fieldset> 
    18   <?php echo $form->end('Save'); ?> 
     16</fieldset> 
  • trunk/app/views/lessons/admin_edit.ctp

    r625 r698  
    1717  </td> 
    1818  <td> 
    19   <?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) ?> 
     19  <?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) ?> 
    2020</td> 
    2121<td>