Changeset 625 for trunk/app/views/lessons
- Timestamp:
- 07/04/08 15:06:44 (5 months ago)
- Location:
- trunk/app/views/lessons
- Files:
-
- 3 modified
-
admin_add.ctp (modified) (5 diffs)
-
admin_edit.ctp (modified) (6 diffs)
-
admin_listing.ctp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/lessons/admin_add.ctp
r624 r625 1 1 <?php 2 2 echo $javascript->link('myfunctions'); 3 echo $javascript->link('fckeditor/fckeditor'); 3 echo $javascript->link('fckeditor/fckeditor'); 4 5 echo $html->addCrumb('Control Panel', '/admin/entries/start'); 6 echo $html->addCrumb(__('Lessons', true), '/admin/lessons/listing'); 7 echo $html->getCrumbs(' / '); 8 4 9 echo $form->create('Lesson'); 5 10 ?> … … 10 15 <tr><td> 11 16 <?php 12 echo $form->input('Lesson.title', array( "size" => 50, "maxlength" => 120));17 echo $form->input('Lesson.title', array('size' => 50, 'maxlength' => 120, 'label'=>__('Title', true))); 13 18 echo $form->error('Lesson.title', 'Title is required.'); 14 19 ?> … … 19 24 <td> 20 25 <?php 21 echo $form->label('Lesson.subject_id', 'Subject:');26 echo $form->label('Lesson.subject_id', __('Subject', true)); 22 27 echo $form->select('Lesson.subject_id', $subjects, null, null, false); 23 28 ?> … … 26 31 <tr> 27 32 <td colspan="3"> 28 <?php 29 echo $form->label('Lesson.body', 'Body:' ); 33 <?php 30 34 echo $form->textarea('Lesson.body', array("cols"=>80, "rows"=>20)); 31 35 echo $fck->load('LessonBody', 'Karamelo', 800, 600); … … 35 39 <tr><td> 36 40 <?php 37 echo $form->label('Lesson.status', 'Published:');41 echo $form->label('Lesson.status', __('Published',true) ); 38 42 echo $form->checkbox('Lesson.status', array('value'=>1)); 39 43 ?> 40 44 </td><td colspan="2"> 41 45 <?Php 42 Echo $form->label('Lesson.disc', 'Comments enabled:');46 Echo $form->label('Lesson.disc', __('Allow comments', true)); 43 47 echo $form->checkbox('Lesson.disc', array('value'=>1)); 44 48 ?> -
trunk/app/views/lessons/admin_edit.ctp
r624 r625 1 <script type="text/javascript">2 window.onload = timedMsg;3 </script>4 1 <?php 5 $session->flash(); 6 7 echo $javascript->link('myfunctions'); 8 echo $javascript->link('fckeditor/fckeditor'); 2 echo $javascript->link('myfunctions'); 3 echo $javascript->link('fckeditor/fckeditor'); 4 5 echo $html->addCrumb('Control Panel', '/admin/entries/start'); 6 echo $html->addCrumb(__('Lessons', true), '/admin/lessons/listing'); 7 echo $html->getCrumbs(' / '); 9 8 10 9 echo $form->create('Lesson'); … … 15 14 <table> 16 15 <tr><td> 17 <?php echo $form->input('Lesson.title', array( "size" => 50, "maxlength" => 120)); ?>16 <?php echo $form->input('Lesson.title', array('size' => 50, 'maxlength' => 120, 'label'=>__('Title', true))); ?> 18 17 </td> 19 18 <td> … … 22 21 <td> 23 22 <?php 24 echo $form->label('Lesson.subject_id', 'Subject:');23 echo $form->label('Lesson.subject_id', __('Subject', true)); 25 24 echo $form->select('Lesson.subject_id', $subjects, null, null, false); 26 25 ?> … … 30 29 <td colspan="3"> 31 30 <?php 32 echo $form->label('Lesson.body', 'Body:' );33 31 echo $form->textarea('Lesson.body', array('cols'=>80, 'rows'=>20)); 34 32 echo $fck->load('LessonBody', 'Karamelo', 800, 600); … … 37 35 <tr><td> 38 36 <?php 39 echo $form->label( 'Lesson.status', 'Published:');40 echo $form->checkbox('Lesson.status', array( "value"=>1));37 echo $form->label( 'Lesson.status', __('Published',true)); 38 echo $form->checkbox('Lesson.status', array('value'=>1)); 41 39 ?> 42 40 </td><td> 43 41 <?php 44 echo $form->label('Lesson.disc', 'Comments enabled:');45 echo $form->checkbox('Lesson.disc', array( "value"=>1));42 echo $form->label('Lesson.disc', __('Allow comments', true) ); 43 echo $form->checkbox('Lesson.disc', array('value'=>1)); 46 44 ?> 47 45 </td><td> 48 46 <?php 49 echo $form->label('Lesson.end', 'End edition:');50 echo $form->checkbox('Lesson.end', array( "value"=>1));47 echo $form->label('Lesson.end', __('End edition',true)); 48 echo $form->checkbox('Lesson.end', array('value'=>1)); 51 49 ?> 52 50 </td></tr> … … 56 54 </td></tr> 57 55 </table> 58 -
trunk/app/views/lessons/admin_listing.ctp
r312 r625 1 <script type="text/javascript"> 2 window.onload = timedMsg; 3 </script> 4 <?php $session->flash(); ?> 5 <div class="title_section">Lessons</div> 6 7 <p><?php echo $html->link($html->image('actions/new.png', array("alt"=>"Add new", "title"=>"Add new")), '/admin/lessons/add', null, false, false) ?></p> 1 <?php 2 echo $html->div('title_section', __('Lessons', true)); 3 echo $html->para(null, $html->link($html->image('actions/new.png', array('alt'=>__('Add new', true), 'title'=>__('Add new', true))), '/admin/lessons/add', null, null, false)); 4 ?> 8 5 9 6 <table class="tbadmin"> 7 <?php 10 8 11 <?php 12 //die(print_r($data)); 13 14 $th = array ('Edit', 'Title', 'Status', 'Delete'); 9 $th = array(__('Edit', true), __('Title', true), __('Status', true), __('Delete', true)); 15 10 16 11 echo $html->tableHeaders($th);
