Changeset 541 for trunk/app/views/entries
- Timestamp:
- 05/21/08 15:27:00 (6 months ago)
- Location:
- trunk/app/views/entries
- Files:
-
- 3 modified
-
admin_listing.ctp (modified) (3 diffs)
-
admin_start.ctp (modified) (9 diffs)
-
search.ctp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/entries/admin_listing.ctp
r527 r541 3 3 </script> 4 4 <?php 5 //die(debug($session->read('Auth.User.email'))); 5 6 6 7 $session->flash(); … … 14 15 15 16 ?> 16 17 17 <table class="tbadmin"> 18 18 <?php 19 //die(print_r($data));20 19 21 20 $th = array ('Edit', 'Title', 'Status', 'Delete'); 22 21 echo $html->tableHeaders($th); 23 foreach ($data as $val) {22 foreach ($data as $val): 24 23 $tr = array ( 25 24 $gags->sendEdit($val['Entry']['id'], 'Entry'), … … 31 30 echo $html->tableCells($tr, array("class"=>"altRow", "onmouseover"=>"this.className='highlight'", "onmouseout"=>"this.className='altRow'"), 32 31 array('class'=>'evenRow',"onmouseover"=>"this.className='highlight'", "onmouseout"=>"this.className='evenRow'")); 33 } 32 endforeach; 34 33 ?> 35 34 </table> -
trunk/app/views/entries/admin_start.ctp
r395 r541 117 117 <div style="clear:both;"></div> 118 118 <br /> 119 <?php if ( $ cU['User']['group_id']== 1 ): ?>119 <?php if ( $session->read('Auth.User.group_id') == 1 ): ?> 120 120 <h2>Admin sections</h2> 121 121 <?php endif; ?> 122 122 123 <?php if ( $ cU['User']['group_id']== 1 ): ?>123 <?php if ( $session->read('Auth.User.group_id') == 1 ): ?> 124 124 <div class="main-item" title="News" onclick="document.location.href = '/admin/news/listing'"> 125 125 <span class="main-item-icon"> … … 130 130 <?php endif; ?> 131 131 132 <?php if ( $ cU['User']['group_id']== 1 ): ?>132 <?php if ( $session->read('Auth.User.group_id') == 1 ): ?> 133 133 <div class="main-item" title="Subjects" onclick="document.location.href = '/admin/subjects/listing'"> 134 134 <span class="main-item-icon"> … … 139 139 <?php endif; ?> 140 140 141 <?php if ( $ cU['User']['group_id']== 1 ): ?>141 <?php if ( $session->read('Auth.User.group_id') == 1 ): ?> 142 142 <div class="main-item" title="News Themes" onclick="document.location.href = '/admin/themes/listing'"> 143 143 <span class="main-item-icon"> … … 148 148 <?php endif; ?> 149 149 150 <?php if ( $ cU['User']['group_id']== 1 ): ?>150 <?php if ( $session->read('Auth.User.group_id') == 1 ): ?> 151 151 <div class="main-item" title="polls" onclick="document.location.href = '/admin/polls/listing'"> 152 152 <span class="main-item-icon"> … … 157 157 <?php endif; ?> 158 158 159 <?php if ( $ cU['User']['group_id']== 1 ): ?>159 <?php if ( $session->read('Auth.User.group_id') == 1 ): ?> 160 160 <div class="main-item" title="Users" onclick="document.location.href = '/admin/users/listing'"> 161 161 <span class="main-item-icon"> … … 166 166 <?php endif; ?> 167 167 168 <?php if ( $ cU['User']['group_id']== 1 ): ?>168 <?php if ( $session->read('Auth.User.group_id') == 1 ): ?> 169 169 <div class="main-item" title="Backup" onclick="document.location.href = '/admin/users/backup'"> 170 170 <span class="main-item-icon"> … … 175 175 <?php endif; ?> 176 176 177 <?php if ( $ cU['User']['group_id']== 1 ): ?>177 <?php if ( $session->read('Auth.User.group_id') == 1 ): ?> 178 178 <div class="main-item" title="Newsletters" onclick="document.location.href = '/admin/newsletters/listing'"> 179 179 <span class="main-item-icon"> … … 184 184 <?php endif; ?> 185 185 186 <?php if ( $ cU['User']['group_id']== 1 ): ?>186 <?php if ( $session->read('Auth.User.group_id') == 1 ): ?> 187 187 <div class="main-item" title="Help" onclick="document.location.href = '/admin/helps/listing'"> 188 188 <span class="main-item-icon"> … … 193 193 <?php endif; ?> 194 194 195 <?php if ( $ cU['User']['group_id']== 1 ): ?>195 <?php if ( $session->read('Auth.User.group_id') == 1 ): ?> 196 196 <div class="main-item" title="Admin" onclick="document.location.href = '/admin/colleges/listing'"> 197 197 <span class="main-item-icon"> -
trunk/app/views/entries/search.ctp
r258 r541 1 < div class="title_section">Results</div>1 <?php 2 2 3 <div style="padding:4px;margin:4px;"> 4 <?php 3 echo $html->div('title_section','Results'); 4 5 echo '<div style="padding:4px;margin:4px;">'; 6 5 7 //die(print_r($data)); 6 8 … … 51 53 } 52 54 53 if ( $i == 0) 54 { 55 if ( $i == 0): 55 56 echo "<h3>Sorry, no results found.</h3>"; 56 } 57 endif; 57 58 ?> 58 59 </div>
