Changeset 320 for trunk/app/views/forums

Show
Ignore:
Timestamp:
03/11/08 18:02:47 (9 months ago)
Author:
aarkerio
Message:

New images an changes in forums

Files:
1 modified

Legend:

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

    r253 r320  
    1  
    2 <?php echo $javascript->link('myfunctions'); ?> 
     1<?php  echo $javascript->link('myfunctions'); ?> 
    32 
    43<div> 
    5 <?php echo $html->addCrumb('Control Tools', '/admin/entries/start'); ?>  
    6 <?php echo $html->getCrumbs(' / '); ?> 
     4<?php  
     5   echo $html->addCrumb('Control Tools', '/admin/entries/start'); 
     6   echo $html->getCrumbs(' / ');  
     7?> 
    78</div> 
    89<div class="title_section">Add New Forum</div> 
     
    1011<div class="spaced"> 
    1112 
    12 <?php echo $html->formTag('/admin/forums/add/','post'); ?> 
    13   <?php echo $html->hiddenTag('Forum/catforum_id', $catforum_id); ?> 
     13<?php  
     14  echo $form->create('Forum'); 
     15  echo $form->hidden('Forum.catforum_id', array('value'=>$catforum_id)); 
     16?> 
    1417<fieldset> 
    1518  <legend>New Forum</legend> 
    1619   
    17   <?php echo $form->labelTag( 'Forum/title', 'Title:' );?><br /> 
    18   <?php echo $html->input('Forum/title', array("size" => 40, "maxlength" => 60)); ?> 
    19   <?php echo $html->tagErrorMsg('Forum/title', 'A phorum title is required.'); ?> 
     20  <?php  
     21    echo $form->input('Forum.title', array("size" => 40, "maxlength" => 60));  
     22    echo $form->error('Forum.title', 'A forum title is required.');  
     23  ?> 
    2024  <p> 
    21     <?php echo $form->labelTag( 'Forum/description', 'Description:' );?><br /> 
    22     <?php echo $html->textarea('Forum/description', array("rows" => 10, "cols" => 50)); ?> 
    23     <?php echo $html->tagErrorMsg('Forum/description', 'A phorum description is required.'); ?> 
     25    <?php  
     26        echo $form->label('Forum.description', 'Description:' ) . '<br />'; 
     27        echo $form->textarea('Forum.description', array("rows" => 10, "cols" => 50)); 
     28        echo $form->error('Forum.description', 'A phorum description is required.'); 
     29     ?> 
    2430  </p> 
    2531  <br /> 
    26      <?php echo $form->labelTag( 'Forum/status', 'Activate forum:') . $html->checkbox('Forum/status', null, array("value"=>1)); ?><br /> 
    27   <p><br /> 
    28   <?php echo $html->submit('Send') ?></p> 
    29 </fieldset> 
    30 </form> 
     32     <?php echo $form->label('Forum.status', 'Activate forum:') . $form->checkbox('Forum.status', array("value"=>1)); ?><br /> 
     33  <p><br /></fieldset> 
     34  <?php echo $form->end('Save'); ?></p> 
    3135</div>