Show
Ignore:
Timestamp:
03/28/08 12:50:07 (10 months ago)
Author:
aarkerio
Message:

Improvs on Lessons and Images

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/lessons/admin_edit.ctp

    r352 r354  
    44<?php  
    55  $session->flash(); 
    6  
     6   
    77  echo $javascript->link('myfunctions'); 
    88  echo $javascript->link('fckeditor/fckeditor');  
    9   
    10    echo $form->create('Lesson'); 
    11    echo $form->hidden('Lesson.id'); 
     9   
     10  echo $form->create('Lesson'); 
     11  echo $form->hidden('Lesson.id'); 
    1212?> 
    1313<fieldset> 
    14 <legend>Add Lesson</legend> 
     14<legend>Edit Lesson: <?php echo $this->data['Lesson']['title']; ?></legend> 
    1515<table> 
    1616<tr><td> 
     
    2020  <?php echo $html->link($html->image('admin/myimages.jpg', array("alt"=>"My Images", "title"=>"My Images")), '#', array("onclick"=>"javascript:window.open('/admin/images/listing/set', 'blank', 'toolbar=no, scrollbars=yes,width=700,height=500')"), null, false) ?> 
    2121</td> 
     22 <td> 
     23     <?php 
     24      echo $form->label('Lesson.subject_id', 'Subject:'); 
     25      echo $form->select('Lesson.subject_id', $subjects, null, null, false); 
     26     ?> 
     27  </td> 
    2228</tr> 
    2329<tr> 
    24   <td colspan="2"> 
     30  <td colspan="3"> 
    2531  <?php  
    26       echo $form->label('Lesson.subject_id', 'Subject:'); 
    27       echo $form->select('Lesson.subject_id', $subjects, null, null, false); 
    28  
    2932      echo $form->label('Lesson.body', 'Body:' ); 
    3033      echo $form->textarea('Lesson.body', array("cols"=>80, "rows"=>20)); 
     
    3942  </td><td> 
    4043  <?php  
    41       echo $form->label('Lesson.disc', 'Comments allowed to this Lesson:' ); 
     44      echo $form->label('Lesson.disc', 'Comments enabled:' ); 
    4245      echo $form->checkbox('Lesson.disc', array("value"=>1)); 
    43        
    44       echo $form->label( 'Lesson.end', 'End edition:' ); 
     46      ?> 
     47      </td><td> 
     48      <?php 
     49      echo $form->label('Lesson.end', 'End edition:' ); 
    4550      echo $form->checkbox('Lesson.end', array("value"=>1));  
    46   ?> 
     51     ?> 
    4752  </td></tr> 
    48   <tr><td colspan="2"> </fieldset> 
     53  <tr><td colspan="3"> </fieldset> 
    4954  <?php echo $form->end('Save'); ?> 
    5055</td></tr>