Changeset 320 for trunk/app/views/forums
- Timestamp:
- 03/11/08 18:02:47 (9 months ago)
- Files:
-
- 1 modified
-
trunk/app/views/forums/admin_add.ctp (modified) (2 diffs)
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'); ?> 3 2 4 3 <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 ?> 7 8 </div> 8 9 <div class="title_section">Add New Forum</div> … … 10 11 <div class="spaced"> 11 12 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 ?> 14 17 <fieldset> 15 18 <legend>New Forum</legend> 16 19 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 ?> 20 24 <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 ?> 24 30 </p> 25 31 <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> 31 35 </div>
