Changeset 718 for trunk/app/views

Show
Ignore:
Timestamp:
08/11/08 14:40:38 (4 months ago)
Author:
aarkerio
Message:

Update

Files:
1 modified

Legend:

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

    r660 r718  
    11<?php  
    2 echo $html->div('title_section', $session->read('Auth.User.username').'\'s shared files'); 
     2echo $html->div('title_section', $session->read('Auth.User.username').'\'s '. __('shared files', true)); 
    33 
    44echo $html->para(null,  
    55                 $html->link( 
    6                              $html->image('actions/new.png', array('alt'=>'Add new share', 'title'=>'Add new share')),  
     6                             $html->image('actions/new.png', array('alt'=>__('Add new', true), 'title'=>__('Add new', true))),  
    77                             '#', array('onclick'=>'hU()'), false, false 
    88                             ) 
    99                 ); 
    10  $session->flash(); 
    1110?> 
    1211 
     
    1514  <?php echo $form->create('Share', array('type'=>'file', 'action'=>'add')); ?> 
    1615  <fieldset> 
    17      <legend><?php __('Upload Share'); ?></legend> 
     16     <legend><?php __('Upload file'); ?></legend> 
    1817     <?php  
    1918           echo $form->label('Share.file', __('File', true)); 
    2019           echo $form->file('Share.file');  
    21            echo $form->error('Share.file', 'Title is required.');  
     20           echo $form->error('Share.file');  
    2221 
    2322           echo $form->input('Share.description', array('size'=>50, 'label'=> __('Description', true)));  
    24            echo $form->error('Share.description', 'Title is required.'); 
    2523  
    2624           echo $form->label('Share.subject_id', __('Subject', true)); 
    2725           echo $form->select('Share.subject_id', $subjects, null, null, false); 
    28             
    2926      
    3027           echo $html->para(null, $form->end(__('Upload', true))); 
     
    3835//die(print_r($data)); 
    3936 
    40 $th = array ('Download', 'File', 'Description', 'Public', 'Delete'); 
     37$th = array (__('Download', true), __('File', true), __('Description', true), __('Published', true), __('Delete', true)); 
    4138echo $html->tableHeaders($th);   
    4239foreach ($data as $key=>$val) 
    4340    { 
    44        $st = ($val['Share']['public'] == 1) ? 'Public': 'No public'; 
     41       $st = ($val['Share']['public'] == 1) ? __('Yes', true) : 'No'; 
    4542        
    4643       $tr = array (