Show
Ignore:
Timestamp:
05/16/08 23:23:24 (8 months ago)
Author:
aarkerio
Message:

Message interfase

Files:
1 modified

Legend:

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

    r342 r498  
    11<?php  
    22 //die( debug( $this->data ) );  
    3  if ( $cU['User']['group_id'] != 1 ) 
    4  { 
    5   $this->flash('Error, you are not allowed to be here'); 
    6  } 
     3 if ( $cU['User']['group_id'] != 1 ): 
     4     $this->flash('Error, you are not allowed to be here'); 
     5 endif; 
    76 
    87 echo $form->create('Group',array("onsubmit"=>"return validateData()"));  
     
    1615    echo $form->error('Group.code', 'Code is required.');  
    1716     
    18     if ( $this->data['Group']['id'] == 4) 
    19     { 
    20         echo $form->label('Group.active', 'Enabled: ');  
    21        echo $form->checkbox('Group.active', array('value'=>2));  
    22     } 
    23   ?> 
    24   <br /></fieldset> 
    25   <?php echo $form->end('Save'); ?> 
    26  
     17    if ( $this->data['Group']['id'] == 4): 
     18        echo $form->label('Group.active', 'Enabled: ');  
     19            echo $form->checkbox('Group.active', array('value'=>2));  
     20    endif; 
     21    echo $form->end('Save');  
     22?> 
     23</fieldset> 
    2724<script type="text/javascript"> 
    2825function validateData()