Changeset 243
- Timestamp:
- 03/17/09 16:04:22 (3 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
-
controllers/entries_controller.php (modified) (1 diff)
-
controllers/images_controller.php (modified) (2 diffs)
-
views/elements/admin_menu.ctp (modified) (1 diff)
-
views/entries/admin_edit.ctp (modified) (1 diff)
-
views/helpers/gags.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/controllers/entries_controller.php
r242 r243 11 11 class EntriesController extends AppController { 12 12 13 public $helpers = array('Fck', 'Gags' , 'Cache');13 public $helpers = array('Fck', 'Gags'); 14 14 15 15 public $components = array('Blog', 'RequestHandler'); -
trunk/controllers/images_controller.php
r231 r243 13 13 public $helpers = array('Javascript'); 14 14 public $components = array('Adds'); 15 15 16 private $imagesPath = '../webroot/img/imgusers/'; 16 17 private $thumbsPath = '../webroot/img/imgusers/thumbs/'; … … 25 26 /**==ADMIN METHODS==**/ 26 27 public function admin_listing($set = null) 27 { 28 if ($set == null): 28 { 29 $this->pageTitle = 'Your Images'; 30 #die(debug($set)); 31 if ($set == 'pop'): 32 $this->layout = 'pop'; # small window 33 $this->paginate['limit'] = 10; 34 $this->set('set', true); 35 else: 29 36 $this->layout = 'admin'; 30 37 $this->paginate['limit'] = 30; 31 38 $this->set('set', null); 32 else:33 $this->layout = 'popup';34 $this->paginate['limit'] = 10;35 $this->set('set', true);36 39 endif; 37 $this->pageTitle = 'Your Images';38 40 $this->paginate['conditions'] = array('Image.user_id'=>$this->Auth->user('id')); 39 41 $this->paginate['order'] = 'Image.id DESC'; -
trunk/views/elements/admin_menu.ctp
r240 r243 16 16 $html->link(__('Quick News', true), '/admin/quicks/listing'), 17 17 $html->link(__('wIwD', true), '/admin/waydings/listing'), 18 $html->link(__('Pages', true), '/admin/ lessons/listing') => array(18 $html->link(__('Pages', true), '/admin/pages/sections') => array( 19 19 $html->link(__('New Page', true), '/admin/pages/edit') 20 20 ), -
trunk/views/entries/admin_edit.ctp
r219 r243 28 28 ?> 29 29 </td><td> 30 <?php echo $html->link($html->image('admin/myimages.jpg', array('alt'=>'My Images','title'=>'My Images')), '#', 31 array('onclick'=>"javascript:window.open('/admin/images/listing/set','blank','toolbar=no, scrollbars=yes,width=700,height=500')"), null, false) ?> 30 <?php echo $gags->setImages(); ?> 32 31 </td> 33 32 </tr> -
trunk/views/helpers/gags.php
r181 r243 21 21 } 22 22 23 24 23 # the hidden animated gif in ajax stuff, fucking genious ha? 25 24 public function imgLoad($divname='loading') … … 45 44 public function setImages() { 46 45 $img = '<p style="text-align:right;width:150px;float:right">'; 47 $img .= $this->Html->link($this->Html->image('admin/myimages.jpg', array( "alt"=>"My Images", "title"=>"My Images")), '#',48 array( "onclick"=>"javascript:window.open('/admin/images/listing/set', 'blank', 'toolbar=no, scrollbars=yes,width=700,height=500')"), null, null,false);46 $img .= $this->Html->link($this->Html->image('admin/myimages.jpg', array('alt'=>'My Images', "title"=>'My Images')), '#', 47 array('onclick'=>"javascript:window.open('/admin/images/listing/pop/', 'blank', 'toolbar=no, scrollbars=yes,width=700,height=500')"), null, null,false); 49 48 $img .= '</p>'; 50 49 return $img;
Note: See TracChangeset
for help on using the changeset viewer.
