Changeset 792 for trunk/app

Show
Ignore:
Timestamp:
10/03/08 16:17:30 (2 months ago)
Author:
aarkerio
Message:

Little fixes

Location:
trunk/app
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/controllers/news_controller.php

    r785 r792  
    145145    $this->layout    = 'admin'; 
    146146  
    147     $this->set('themes', Set::combine($this->News->Theme->find('all', array('order'=>'theme')),"{n}.Theme.id","{n}.Theme.theme")); 
    148      
     147    $this->set('themes', Set::combine($this->News->Theme->find('all',     array('order'=>'theme')),"{n}.Theme.id","{n}.Theme.theme")); 
     148       
    149149    if (!empty($this->data['News'])): 
    150150         $this->Sanitize = new Sanitize; 
  • trunk/app/views/news/admin_add.ctp

    r701 r792  
    11<?php  
    2    echo $javascript->link('myfunctions'); 
     2//die(debug($themes)); 
    33   echo $javascript->link('fckeditor/fckeditor');  
    44 
     
    1616 <?php  
    1717    echo $form->label('News.theme_id', __('Theme', true)); 
    18     echo $form->select('News.theme_id', $themes, null, null, null, false, false);       
     18    echo $form->select('News.theme_id', $themes, null, array(), false);       
    1919  ?> 
    2020</td> 
  • trunk/app/views/news/admin_edit.ctp

    r701 r792  
    1414<td> <?php echo $form->input('News.title', array('size' => 40, 'maxlength' => 120, 'label'=>__('Title', true))); ?></td> 
    1515<td> 
    16   <?php  
     16<?php debug($themes); 
    1717    echo $form->label('News.theme_id', __('Theme', true)); 
    18     echo $form->select('News.theme_id', $themes, null, null, false);       
     18    echo $form->select('News.theme_id', $themes, null, array(), false);       
    1919  ?> 
    2020</td>