Changeset 321 for trunk/app/views/forums
- Timestamp:
- 03/12/08 13:35:16 (9 months ago)
- Location:
- trunk/app/views/forums
- Files:
-
- 1 added
- 2 modified
-
admin_edit.ctp (modified) (2 diffs)
-
admin_topics.ctp (added)
-
display.ctp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/forums/admin_edit.ctp
r253 r321 1 1 <div class="spaced"> 2 2 <?php 3 echo $ html->formTag('/admin/forums/edit/', 'post');4 echo $ html->hidden('Forum/id');3 echo $form->create('Forum'); 4 echo $form->hidden('Forum.id'); 5 5 ?> 6 6 <fieldset> … … 8 8 9 9 <?php 10 echo $form->labelTag('Forum/title', 'Title:') . "<br />"; 11 echo $html->input('Forum/title', array('size'=>60, 'maxlength'=>90)); 12 echo $html->tagErrorMsg('Forum/title','Please enter a title.'); 10 echo $form->input('Forum.title', array('size'=>60, 'maxlength'=>90)); 11 echo $form->error('Forum.title','Please enter a title.'); 13 12 ?> 14 13 <br /> 15 14 <br /> 16 15 <?php 17 echo $form->labelTag('Forum/description', 'Description:') . "<br />"; 18 echo $html->input('Forum/description', array("size" => 60, "maxlength" => 90)); 19 echo $html->tagErrorMsg('Forum/description','Please enter a description.'); 16 echo $form->input('Forum.description', array("size" => 60, "maxlength" => 90)); 17 echo $form->error('Forum.description','Please enter a description.'); 20 18 ?> 21 19 22 20 <br /><br /> 23 <?php echo $form->labelTag('Forum/status', 'Status:') . "<br />"; ?> 24 <?php echo $html->checkbox('Forum/status', null, array("value"=>1)); ?> 21 <?php 22 echo $form->label('Forum.status', 'Status:') . "<br />"; 23 echo $form->checkbox('Forum.status'); 24 ?> 25 25 <br /><br /> 26 <p style="clear:both"></p> 27 <?php echo $html->submit('Update') ?> 28 < /fieldset>29 </form> 26 <p style="clear:both"></p></fieldset> 27 28 <?php echo $form->end('Save'); ?> 29 30 30 </div> 31 -
trunk/app/views/forums/display.ctp
r253 r321 50 50 echo '<div style="text-align:center;width:50%;padding:6px">'; 51 51 52 if ( ! $othAuth->sessionValid() )52 if ( ! isset( $cU ) ) 53 53 { 54 54 echo $this->renderElement('login'); … … 63 63 <?php echo $html->image('static/new.gif', array("alt"=>"Comentario nuevo", "title"=>"Comentario nuevo")); ?> Comentario nuevo<br /> 64 64 </p> 65 66
