Changeset 243


Ignore:
Timestamp:
03/17/09 16:04:22 (3 years ago)
Author:
aarkerio
Message:

New files

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/controllers/entries_controller.php

    r242 r243  
    1111class EntriesController extends AppController { 
    1212  
    13  public $helpers       = array('Fck', 'Gags', 'Cache'); 
     13 public $helpers       = array('Fck', 'Gags'); 
    1414  
    1515 public $components    = array('Blog', 'RequestHandler'); 
  • trunk/controllers/images_controller.php

    r231 r243  
    1313 public  $helpers     = array('Javascript'); 
    1414 public  $components  = array('Adds'); 
     15 
    1516 private $imagesPath  = '../webroot/img/imgusers/'; 
    1617 private $thumbsPath  = '../webroot/img/imgusers/thumbs/'; 
     
    2526 /**==ADMIN METHODS==**/     
    2627 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: 
    2936      $this->layout    = 'admin'; 
    3037      $this->paginate['limit'] = 30; 
    3138      $this->set('set', null); 
    32   else: 
    33       $this->layout    = 'popup'; 
    34       $this->paginate['limit']  = 10; 
    35       $this->set('set', true); 
    3639  endif; 
    37   $this->pageTitle = 'Your Images'; 
    3840  $this->paginate['conditions']  = array('Image.user_id'=>$this->Auth->user('id')); 
    3941  $this->paginate['order']  = 'Image.id DESC';  
  • trunk/views/elements/admin_menu.ctp

    r240 r243  
    1616            $html->link(__('Quick News', true), '/admin/quicks/listing'), 
    1717            $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( 
    1919                                                                           $html->link(__('New Page', true), '/admin/pages/edit') 
    2020                                                                          ), 
  • trunk/views/entries/admin_edit.ctp

    r219 r243  
    2828  ?> 
    2929  </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(); ?> 
    3231  </td> 
    3332</tr> 
  • trunk/views/helpers/gags.php

    r181 r243  
    2121 } 
    2222 
    23  
    2423 # the hidden animated gif in ajax stuff, fucking genious ha? 
    2524 public function imgLoad($divname='loading') 
     
    4544   public function setImages() { 
    4645      $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); 
    4948      $img .= '</p>'; 
    5049   return $img; 
Note: See TracChangeset for help on using the changeset viewer.