Show
Ignore:
Timestamp:
05/21/08 15:27:00 (8 months ago)
Author:
aarkerio
Message:

New Try

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/entries/admin_start.ctp

    r395 r541  
    117117<div style="clear:both;"></div> 
    118118<br /> 
    119 <?php if ( $cU['User']['group_id'] == 1 ):  ?> 
     119<?php if ( $session->read('Auth.User.group_id') == 1 ):  ?> 
    120120   <h2>Admin sections</h2> 
    121121<?php endif; ?> 
    122122 
    123 <?php if ( $cU['User']['group_id'] == 1 ): ?> 
     123<?php if ( $session->read('Auth.User.group_id') == 1 ): ?> 
    124124  <div class="main-item" title="News" onclick="document.location.href = '/admin/news/listing'"> 
    125125    <span class="main-item-icon"> 
     
    130130<?php endif; ?> 
    131131 
    132 <?php if ( $cU['User']['group_id'] == 1 ): ?> 
     132<?php if ( $session->read('Auth.User.group_id') == 1 ): ?> 
    133133  <div class="main-item" title="Subjects" onclick="document.location.href = '/admin/subjects/listing'"> 
    134134    <span class="main-item-icon"> 
     
    139139<?php endif; ?> 
    140140 
    141 <?php if ( $cU['User']['group_id'] == 1 ): ?> 
     141<?php if ( $session->read('Auth.User.group_id') == 1 ): ?> 
    142142  <div class="main-item" title="News Themes" onclick="document.location.href = '/admin/themes/listing'"> 
    143143   <span class="main-item-icon"> 
     
    148148<?php endif; ?> 
    149149 
    150 <?php if ( $cU['User']['group_id'] == 1 ): ?> 
     150<?php if ( $session->read('Auth.User.group_id') == 1 ): ?> 
    151151 <div class="main-item" title="polls" onclick="document.location.href = '/admin/polls/listing'"> 
    152152   <span class="main-item-icon"> 
     
    157157 <?php endif; ?> 
    158158 
    159 <?php if ( $cU['User']['group_id'] == 1 ): ?> 
     159<?php if ( $session->read('Auth.User.group_id') == 1 ): ?> 
    160160<div class="main-item" title="Users" onclick="document.location.href = '/admin/users/listing'"> 
    161161  <span class="main-item-icon"> 
     
    166166<?php endif; ?> 
    167167 
    168 <?php if ( $cU['User']['group_id'] == 1 ): ?> 
     168<?php if ( $session->read('Auth.User.group_id') == 1 ): ?> 
    169169<div class="main-item" title="Backup" onclick="document.location.href = '/admin/users/backup'"> 
    170170  <span class="main-item-icon"> 
     
    175175<?php endif; ?> 
    176176 
    177 <?php if ( $cU['User']['group_id'] == 1 ): ?> 
     177<?php if ( $session->read('Auth.User.group_id') == 1 ): ?> 
    178178<div class="main-item" title="Newsletters" onclick="document.location.href = '/admin/newsletters/listing'"> 
    179179  <span class="main-item-icon"> 
     
    184184<?php endif; ?> 
    185185 
    186 <?php if ( $cU['User']['group_id'] == 1 ): ?> 
     186<?php if ( $session->read('Auth.User.group_id') == 1 ): ?> 
    187187<div class="main-item" title="Help" onclick="document.location.href = '/admin/helps/listing'"> 
    188188  <span class="main-item-icon"> 
     
    193193<?php endif; ?> 
    194194 
    195 <?php if ( $cU['User']['group_id'] == 1 ): ?> 
     195<?php if ( $session->read('Auth.User.group_id') == 1 ): ?> 
    196196  <div class="main-item" title="Admin" onclick="document.location.href = '/admin/colleges/listing'"> 
    197197    <span class="main-item-icon">