Changeset 792
- Timestamp:
- 10/03/08 16:17:30 (2 months ago)
- Location:
- trunk/app
- Files:
-
- 3 modified
-
controllers/news_controller.php (modified) (1 diff)
-
views/news/admin_add.ctp (modified) (2 diffs)
-
views/news/admin_edit.ctp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/controllers/news_controller.php
r785 r792 145 145 $this->layout = 'admin'; 146 146 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 149 149 if (!empty($this->data['News'])): 150 150 $this->Sanitize = new Sanitize; -
trunk/app/views/news/admin_add.ctp
r701 r792 1 1 <?php 2 echo $javascript->link('myfunctions');2 //die(debug($themes)); 3 3 echo $javascript->link('fckeditor/fckeditor'); 4 4 … … 16 16 <?php 17 17 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); 19 19 ?> 20 20 </td> -
trunk/app/views/news/admin_edit.ctp
r701 r792 14 14 <td> <?php echo $form->input('News.title', array('size' => 40, 'maxlength' => 120, 'label'=>__('Title', true))); ?></td> 15 15 <td> 16 <?php 16 <?php debug($themes); 17 17 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); 19 19 ?> 20 20 </td>
