Changeset 617 for trunk/app/views/ecourses
- Timestamp:
- 07/01/08 19:06:58 (5 months ago)
- Location:
- trunk/app/views/ecourses
- Files:
-
- 3 modified
-
admin_add.ctp (modified) (2 diffs)
-
admin_edit.ctp (modified) (2 diffs)
-
admin_vclassrooms.ctp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/ecourses/admin_add.ctp
r585 r617 4 4 ?> 5 5 <fieldset> 6 <legend> New Course</legend>6 <legend><?php __('New eCourse');?></legend> 7 7 <table><tr><td> 8 8 <?php … … 27 27 ?> 28 28 </td></tr> 29 30 29 <tr><td> 31 <?php32 echo $form->input('Ecourse.code', array("size" => 12, "maxlenght" => 12, 'title'=>' max. 12 characters. Example: ROM2121'));33 ?>30 <?php 31 e($form->input('Ecourse.code', array("size" => 12, "maxlenght" => 12, 'title'=>' max. 12 characters. Example: ROM2121'))); 32 ?> 34 33 </td><td colspan="2"> 35 34 <?php 36 echo $form->label('Ecourse.status', 'Enabled:' );37 echo $form->checkbox('Ecourse.status', array( "value"=>1, 'title'=>'Enabled course'));35 echo $form->label('Ecourse.status', 'Enabled:'); 36 echo $form->checkbox('Ecourse.status', array('value'=>1, 'title'=>'Enabled course')); 38 37 ?></fieldset> 39 38 </td></tr> -
trunk/app/views/ecourses/admin_edit.ctp
r585 r617 10 10 ?> 11 11 <fieldset> 12 <legend>Edit Course</legend>12 <legend><?php __('Edit eCourse'); ?></legend> 13 13 <table><tr><td> 14 14 <?php … … 29 29 <?php 30 30 echo $form->label('Ecourse.description', 'Description:'); 31 echo $form->textarea('Ecourse.description', array( "cols" => 40, "rows"=>4));31 echo $form->textarea('Ecourse.description', array('cols'=>40, 'rows'=>4)); 32 32 echo $fck->load('EcourseDescription', 'Karamelo'); 33 33 ?> 34 34 </td></tr> 35 <tr><td>36 <?php37 echo $form->input('Ecourse.code', array("size" => 12, "maxlenght" => 12, 'title'=>'max. 12 characters, ie.ROM2121'));38 ?>39 </td>40 <td colspan="2">41 <?php35 <tr><td> 36 <?php 37 echo $form->input('Ecourse.code', array('size' => 12, 'maxlenght' => 12, 'title'=>'max. 12 characters, ie.ROM2121')); 38 ?> 39 </td> 40 <td colspan="2"> 41 <?php 42 42 echo $form->label('Ecourse.status', 'Enabled:' ); 43 43 echo $form->checkbox('Ecourse.status', array("value"=>1, 'title'=>'Enabled course')); -
trunk/app/views/ecourses/admin_vclassrooms.ctp
r396 r617 1 1 <?php 2 // exit(print_r($data));2 //die(debug($data)); 3 3 4 echo $html->addCrumb('Control Tools', '/admin/entries/start');4 echo $html->addCrumb('Control Panel', '/admin/entries/start'); 5 5 echo $html->addCrumb('Courses', '/admin/ecourses/listing'); 6 6 echo $html->getCrumbs(' / '); … … 8 8 $str = 'Classrooms on ' . $data['Ecourse']['title']; 9 9 10 if ( isset( $historic ) ) 11 { 10 if ( isset( $historic ) ): 12 11 $str .= ' (filed)'; 13 } 12 endif; 14 13 15 14 echo $html->div('title_section', $str); 16 15 17 echo $html->para(null, $html->link($html->image('static/vgroups.gif', array("alt"=>"Add new group", "title"=>"Add new group")), '/admin/vclassrooms/add/'.$data['Ecourse']['id'], null, null, false));18 16 19 if ( count($data['Vclassroom']) < 1 ) 20 { 21 echo $html->div('notice', 'No classrooms yet'); 22 } 17 if ( count($data['Vclassroom']) < 1 ): 18 e($html->div('notice', 'No classrooms yet')); 19 $img = 'admin/vgroups-gray.gif'; 20 else: 21 $img = 'static/vgroups.gif'; 22 endif; 23 23 24 foreach ($data['Vclassroom'] as $val) 25 { 24 echo $html->para(null, $html->link($html->image($img, array("alt"=>"Add new group", "title"=>"Add new group")), '/admin/vclassrooms/add/'.$data['Ecourse']['id'], null, null, false)); 25 26 27 foreach ($data['Vclassroom'] as $val): 26 28 $s = ($val['status'] == 1) ? 'Enabled' : 'Filed'; 27 29 28 30 $tmp = $html->div('butonright', $gags->sendEdit($val['id'], 'Vclassroom')); 29 31 $tmp .= $html->link($val['name'], '/admin/vclassrooms/members/'.$val['id']); 32 $tmp .= $html->div(null, 'Secret:'. $val['secret']); 30 33 $tmp .= $html->para(null, 'Status: '.$html->link($s,'/admin/vclassrooms/change/'.$val['id'].'/'.$val['status'].'/'.$val['ecourse_id'])); 31 34 $tmp .= $html->div('butonright', $gags->confirmDel($val['id'], 'Vclassroom')); 32 35 33 36 echo $html->div('grayblock', $tmp); 34 } 37 endforeach; 35 38 36 if ( !isset( $historic ) ) 37 { 39 if ( !isset( $historic ) ): 38 40 echo $html->link( 39 41 $html->image('admin/historic.png', array('alt'=>'Filed classrooms', 'title'=>'Filed classrooms')), 40 42 '/admin/ecourses/vclassrooms/'.$data['Ecourse']['id'].'/historic', null, null, false); 41 } 43 endif; 42 44 ?>
