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

New Try

Location:
trunk/app/views/entries
Files:
3 modified

Legend:

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

    r527 r541  
    33</script> 
    44<?php  
     5//die(debug($session->read('Auth.User.email'))); 
    56 
    67$session->flash();  
     
    1415 
    1516?> 
    16  
    1717<table class="tbadmin"> 
    1818<?php 
    19 //die(print_r($data)); 
    2019 
    2120$th = array ('Edit', 'Title', 'Status', 'Delete'); 
    2221echo $html->tableHeaders($th);   
    23 foreach ($data as $val) { 
     22foreach ($data as $val): 
    2423       $tr = array ( 
    2524        $gags->sendEdit($val['Entry']['id'], 'Entry'), 
     
    3130    echo $html->tableCells($tr, array("class"=>"altRow", "onmouseover"=>"this.className='highlight'", "onmouseout"=>"this.className='altRow'"),  
    3231                                array('class'=>'evenRow',"onmouseover"=>"this.className='highlight'", "onmouseout"=>"this.className='evenRow'"));  
    33 } 
     32endforeach; 
    3433?> 
    3534</table> 
  • 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"> 
  • trunk/app/views/entries/search.ctp

    r258 r541  
    1 <div class="title_section">Results</div> 
     1<?php 
    22 
    3 <div style="padding:4px;margin:4px;"> 
    4 <?php 
     3echo $html->div('title_section','Results'); 
     4 
     5echo '<div style="padding:4px;margin:4px;">'; 
     6 
    57//die(print_r($data)); 
    68 
     
    5153} 
    5254 
    53 if ( $i == 0) 
    54 { 
     55if ( $i == 0): 
    5556   echo "<h3>Sorry, no results found.</h3>"; 
    56 } 
     57endif; 
    5758?> 
    5859</div>