Changeset 321 for trunk/app/views/forums

Show
Ignore:
Timestamp:
03/12/08 13:35:16 (9 months ago)
Author:
aarkerio
Message:

Changes on Forums

Location:
trunk/app/views/forums
Files:
1 added
2 modified

Legend:

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

    r253 r321  
    11<div class="spaced"> 
    22<?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'); 
    55?> 
    66<fieldset> 
     
    88 
    99<?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.');  
    1312?> 
    1413<br /> 
    1514<br /> 
    1615<?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.'); 
    2018?> 
    2119 
    2220<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?> 
    2525<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 
    3030</div> 
    31  
  • trunk/app/views/forums/display.ctp

    r253 r321  
    5050 echo '<div style="text-align:center;width:50%;padding:6px">'; 
    5151  
    52  if ( !$othAuth->sessionValid() )  
     52 if ( ! isset( $cU ) )  
    5353 { 
    5454            echo $this->renderElement('login'); 
     
    6363<?php echo $html->image('static/new.gif', array("alt"=>"Comentario nuevo", "title"=>"Comentario nuevo")); ?>      Comentario nuevo<br /> 
    6464</p> 
    65  
    66