Changeset 388 for trunk/app/views/forums

Show
Ignore:
Timestamp:
04/10/08 23:51:22 (8 months ago)
Author:
aarkerio
Message:

Forums and vclassrooms

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/forums/admin_add.ctp

    r386 r388  
    1 <?php  echo $javascript->link('myfunctions'); ?> 
     1<?php   
     2echo $javascript->link('myfunctions');  
     3echo $html->addCrumb('Control Tools', '/admin/entries/start'); 
     4echo $html->getCrumbs(' / ');  
    25 
    3 <div> 
    4 <?php  
    5    echo $html->addCrumb('Control Tools', '/admin/entries/start'); 
    6    echo $html->getCrumbs(' / ');  
    7 ?> 
    8 </div> 
    9 <div class="title_section">Add New Forum</div> 
     6echo $html->div('title_section', 'Add New Forum'); 
    107 
    11 <div class="spaced"> 
    12  
    13 <?php  
     8if ( $vclassrooms == null) 
     9{ 
     10    echo $html->para(null, $html->link('You need to have at last one classroom enabled to add new forums', '/admin/ecourses/listing')); 
     11} 
     12else 
     13{ 
    1414  echo $form->create('Forum'); 
    1515  echo $form->hidden('Forum.catforum_id', array('value'=>$catforum_id)); 
     
    3434     <?php echo $form->label('Forum.status', 'Activate forum:') . $form->checkbox('Forum.status', array("value"=>1)); ?><br /> 
    3535  <p><br /></fieldset> 
    36   <?php echo $form->end('Save'); ?></p> 
    37 </div> 
     36  <?php echo $form->end('Save');  
     37} 
     38?></p>