Changeset 718 for trunk/app/views
- Timestamp:
- 08/11/08 14:40:38 (4 months ago)
- Files:
-
- 1 modified
-
trunk/app/views/shares/admin_listing.ctp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/shares/admin_listing.ctp
r660 r718 1 1 <?php 2 echo $html->div('title_section', $session->read('Auth.User.username').'\'s shared files');2 echo $html->div('title_section', $session->read('Auth.User.username').'\'s '. __('shared files', true)); 3 3 4 4 echo $html->para(null, 5 5 $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))), 7 7 '#', array('onclick'=>'hU()'), false, false 8 8 ) 9 9 ); 10 $session->flash();11 10 ?> 12 11 … … 15 14 <?php echo $form->create('Share', array('type'=>'file', 'action'=>'add')); ?> 16 15 <fieldset> 17 <legend><?php __('Upload Share'); ?></legend>16 <legend><?php __('Upload file'); ?></legend> 18 17 <?php 19 18 echo $form->label('Share.file', __('File', true)); 20 19 echo $form->file('Share.file'); 21 echo $form->error('Share.file' , 'Title is required.');20 echo $form->error('Share.file'); 22 21 23 22 echo $form->input('Share.description', array('size'=>50, 'label'=> __('Description', true))); 24 echo $form->error('Share.description', 'Title is required.');25 23 26 24 echo $form->label('Share.subject_id', __('Subject', true)); 27 25 echo $form->select('Share.subject_id', $subjects, null, null, false); 28 29 26 30 27 echo $html->para(null, $form->end(__('Upload', true))); … … 38 35 //die(print_r($data)); 39 36 40 $th = array ( 'Download', 'File', 'Description', 'Public', 'Delete');37 $th = array (__('Download', true), __('File', true), __('Description', true), __('Published', true), __('Delete', true)); 41 38 echo $html->tableHeaders($th); 42 39 foreach ($data as $key=>$val) 43 40 { 44 $st = ($val['Share']['public'] == 1) ? 'Public': 'No public';41 $st = ($val['Share']['public'] == 1) ? __('Yes', true) : 'No'; 45 42 46 43 $tr = array (
