Changeset 245
- Timestamp:
- 03/17/09 21:01:09 (3 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
app_controller.php (modified) (2 diffs)
-
controllers/images_controller.php (modified) (3 diffs)
-
views/entries/admin_start.ctp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app_controller.php
r244 r245 51 51 if (isset( $this->params[Configure::read('Routing.admin')] )): 52 52 if ($this->Auth->user('id') ): 53 return True;53 return True; 54 54 else: 55 55 return False; … … 69 69 return True; 70 70 } 71 71 72 public function fail() 72 73 { 73 $this->cakeError('youSuck');74 $this->cakeError('youSuck'); 74 75 } 75 76 /* -
trunk/controllers/images_controller.php
r243 r245 28 28 { 29 29 $this->pageTitle = 'Your Images'; 30 #die(debug($set));30 31 31 if ($set == 'pop'): 32 $this->layout = 'pop '; # small window32 $this->layout = 'popup'; # small window 33 33 $this->paginate['limit'] = 10; 34 34 $this->set('set', true); … … 38 38 $this->set('set', null); 39 39 endif; 40 40 41 $this->paginate['conditions'] = array('Image.user_id'=>$this->Auth->user('id')); 41 42 $this->paginate['order'] = 'Image.id DESC'; … … 52 53 private function __chkFiles($data) 53 54 { 54 $this->layout = 'admin';55 55 foreach($data as $v): 56 56 if ( !file_exists($this->imagesPath.$v['Image']['file']) ): -
trunk/views/entries/admin_start.ctp
r234 r245 5 5 6 6 <div class="main-item"> 7 <?php echo $html->link($html->image('admin/your-todo.png', array("title"=>"TODOs", "alt"=>"TODOs")), '/admin/todos/listing', null, null, false); ?> 7 <?php echo $html->link($html->image('admin/your-todo.png', array("title"=>"TODOs", "alt"=>"TODOs")), '/admin/todos/listing', null, null, false); ?><br /> 8 8 <a href="/admin/todos/listing" title="Your TODOs" class="main-item-caption">To-Dos</a> 9 9 </div> … … 64 64 </div> 65 65 <div class="main-item"> 66 <?php echo $html->link($html->image('admin/your-download.png', array("title"=> "Downloads", "alt"=>"Downloads")), '/admin/downloads/listing', null, null, false); ?>66 <?php echo $html->link($html->image('admin/your-download.png', array("title"=>'Downloads', "alt"=>"Downloads")), '/admin/downloads/listing', null, null, false); ?> 67 67 <a href="/admin/downloads/listing" title="Your blog" class="main-item-caption">Downloads</a> 68 68 </div> … … 79 79 <div class="main-item"> 80 80 <?php echo $html->link($html->image('admin/your-quotes.png', array("title"=>"Quotes", "alt"=>"Quotes")), '/admin/quotes/listing', null, null, false); ?> 81 <a href="/admin/entries/listing" title=" Your blog" class="main-item-caption">Quotes</a>81 <a href="/admin/entries/listing" title="Quotes" class="main-item-caption">Quotes</a> 82 82 </div> 83 83 … … 116 116 117 117 <div class="main-item"> 118 <?php echo $html->link($html->image('admin/your-themes.png', array("title"=>"News Themes", "alt"=>"News Themes")), '/admin/themes/listing', null, null, false); ?> 118 <?php echo $html->link($html->image('admin/your-themes.png', array("title"=>"News Themes", "alt"=>"News Themes")), '/admin/themes/listing', null, null, false); ?><br /> 119 119 <a href="/admin/themes/listing" title="Themes" class="main-item-caption">News Themes</a> 120 120 </div> 121 121 122 122 <div class="main-item"> 123 <?php echo $html->link($html->image('admin/your-opinion.png', array("title"=>"Polls", "alt"=>"Polls")), '/admin/polls/listing', null, null, false); ?> 123 <?php echo $html->link($html->image('admin/your-opinion.png', array("title"=>"Polls", "alt"=>"Polls")), '/admin/polls/listing', null, null, false); ?><br /> 124 124 <a href="/admin/polls/listing" title="Your blog" class="main-item-caption">Polls</a> 125 125 </div>
Note: See TracChangeset
for help on using the changeset viewer.
