Show
Ignore:
Timestamp:
05/13/08 18:56:06 (7 months ago)
Author:
aarkerio
Message:

Esto

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/layouts/portal.ctp

    r446 r481  
    11<?php  
    22   echo '<?xml version="1.0"?>';  
    3    echo $html->docType();  
     3   echo $html->docType(); 
    44?> 
    55<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 
     
    2727<div id="toplinks"> 
    2828<?php 
    29  if ( isset( $cU['User']['id']) ) 
    30  { 
     29 if ( isset( $cU['User']['id']) ): 
    3130   echo '<span style="font-size:7pt;color:#8bb126;padding-right:15px">You are logged in as <b>'; 
    3231 
    3332   echo $cU['User']['username'] .'</b></span>'.$html->link('(Logout)', '/users/logout') . ' | ';  
    3433 
    35         if (  $cU['User']['group_id'] < 3 ) // the logged user is teacher or admin? 
    36         { 
    37            echo $html->link('Admin', '/admin/entries/start') . ' | '; 
    38         } 
    39  } 
    40  else 
    41  { 
     34   if (  $cU['User']['group_id'] < 3 ): // the logged user is teacher or admin? 
     35           echo $html->link('Admin', '/admin/entries/start') . ' | '; 
     36   endif; 
     37 
     38   if (  $cU['User']['group_id'] == 3 ): // the logged user is student 
     39     echo $html->link('Profile', '/users/edit'). ' | '.$html->link( 
     40                                                                        $html->image('static/mailgray.png',  
     41                                                                                  array('alt'=>'Messages', 'title'=>'Messages')),  
     42                                                                          '/messages/listing', null, null, false) . ' | '; 
     43   endif; 
     44 
     45 
     46 else: 
    4247     echo $html->link('Login', '#', array("id"=>"logindiv", "onclick"=>"javascript:mod('logindiv', 1, '')")) .  ' | '; 
    43  } 
     48 endif; 
    4449  
    4550 echo $html->link('Home', '/') . ' | ';