Show
Ignore:
Timestamp:
07/04/08 21:52:56 (5 months ago)
Author:
aarkerio
Message:

Internatiantilzation

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/catforums/admin_listing.ctp

    r541 r626  
    11<?php  
    22 // exit(debug($data)); 
    3 ?> 
    4 <?php  
    5  echo $html->div('title_section', 'Categories Forums'); 
    63 
    7  echo $html->link($html->image('actions/new.png', array("alt"=>"Add new forum", "title"=>"Add new forum")), '#', array("onclick"=>"hU()"), false, false);  
     4 echo $html->div('title_section', __('Categories Forums', true)); 
     5 
     6 echo $html->link($html->image('actions/new.png', array('alt'=>__('Add new', true), 'title'=>__('Add new', true))), '#', array("onclick"=>"hU()"), false, false);  
    87?> 
    98 
     
    1514     <legend>Add new Category Forum</legend> 
    1615     <?php  
    17            echo $form->input('Catforum.title', array('size'=>50, 'maxlength'=>150));   
    18            echo $form->input('Catforum.description', array('size'=>70, 'maxlength'=>150)); 
    19            echo $form->label('Catforum.status', 'Enabled:') . $form->checkbox('Catforum.status', array('value'=>1)); 
     16           echo $form->input('Catforum.title', array('size'=>50, 'maxlength'=>150, 'label'=>__('Title', true)));   
     17           echo $form->input('Catforum.description', array('size'=>70, 'maxlength'=>150, 'label'=>__('Description', true))); 
     18           echo $form->label('Catforum.status', __('Enabled', true)) . $form->checkbox('Catforum.status', array('value'=>1)); 
    2019           echo '<div style="clear:both"></div></fieldset>'; 
    21            echo $form->end('Save');  
     20           echo $form->end(__('Save', true));  
    2221     ?> 
     22</fieldset> 
    2323</td> 
    2424</tr> 
     
    2626//die(print_r($data)); 
    2727 
    28 $th = array ('Edit', 'Add', 'Title', 'Description', 'Status', 'Delete', '&nbsp;'); 
     28$th = array(__('Edit', true),__('Add', true),__('Title', true),__('Description', true),__('Status', true),__('Delete', true), '&nbsp;'); 
     29 
    2930echo $html->tableHeaders($th);   
    3031 
    31 foreach ($data as $val) 
    32 { 
     32foreach ($data as $val): 
    3333             
    34        $tr = array (  
     34  $tr = array (  
    3535               $gags->sendEdit($val['Catforum']['id'], 'Catforum'), 
    3636                $html->link($html->image('admin/add-forum.jpg', array("alt"=>"Add Forum", "title"=>"Add Forum")), '/admin/forums/add/'.$val['Catforum']['id'], null, null, false), 
     
    4040               $gags->confirmDel($val['Catforum']['id'], 'Catforum'), 
    4141               '&nbsp;' 
    42         ); 
     42  ); 
    4343        
    44       echo $html->tableCells($tr, array("style"=>"border:1px solid gray;background-color:#c0c0c0"),  
     44  echo $html->tableCells($tr, array("style"=>"border:1px solid gray;background-color:#c0c0c0"),  
    4545                                   array("style"=>"border:1px solid gray;background-color:#c0c0c0")); 
    4646 
    47       foreach ( $val['Forum'] as $v)  // forum in catforums 
    48       { 
    49          echo '<tr><td>&nbsp;</td> <td>' .  $gags->sendEdit($v["id"], 'forums') .'</td>'; 
    50          echo '<td>' . $html->link($v["title"], '/admin/forums/topics/'.$v['id']) .'</td>  <td colspan="2"> '. $v["description"] .' </td>'; 
    51          echo '<td>' . $html->link($gags->setStatus($v['status']), '/admin/forums/change/'.$v['status'].'/'.$v['id']).'</td>  <td> ' .  $gags->confirmDel($v['id'], 'forums') . '</td> </tr>'; 
    52       } 
    53  } 
     47  foreach ( $val['Forum'] as $v):  // forum in catforums 
     48     echo '<tr><td>&nbsp;</td> <td>' .  $gags->sendEdit($v["id"], 'forums') .'</td>'; 
     49     echo '<td>'.$html->link($v["title"], '/admin/forums/topics/'.$v['id']) .'</td>  <td colspan="2"> '. $v["description"] .' </td>'; 
     50     echo '<td>'.$html->link($gags->setStatus($v['status']), '/admin/forums/change/'.$v['status'].'/'.$v['id']).'</td>'; 
     51     echo '<td>'.$gags->confirmDel($v['id'], 'forums') . '</td> </tr>'; 
     52   endforeach; 
     53endforeach; 
    5454?> 
    5555</table>