Changeset 643

Show
Ignore:
Timestamp:
07/11/08 14:50:29 (3 months ago)
Author:
aarkerio
Message:

Update FAQS

Location:
trunk/app
Files:
2 modified

Legend:

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

    r540 r643  
    5151         
    5252        $this->set('data',  $this->Faq->findAll($conditions, $fields, $order)); 
    53          
    54         $this->set('catfaq_id', $catfaq_id); 
     53        $this->Faq->Catfaq->unbindAll(); 
     54        $this->set('catfaq', $this->Faq->Catfaq->find(array('Catfaq.id'=>$catfaq_id), array('id', 'title'))); 
    5555 } 
    5656    
  • trunk/app/views/faqs/admin_listing.ctp

    r642 r643  
    11<?php 
    2 //exit(var_dump($data)); 
    3 if ( isset($javascript) ): 
    4   echo $javascript->link('fckeditor/fckeditor'); 
    5 endif; 
     2//exit(debug($catfaq['Catfaq']['id'])); 
     3 if ( isset($javascript) ): 
     4    echo $javascript->link('fckeditor/fckeditor'); 
     5 endif; 
    66 
    77 echo $html->addCrumb('Control Panel', '/admin/entries/start'); 
     
    99 echo $html->getCrumbs(' / ');  
    1010 
    11  echo $html->div('title_section', __('Questions & answers', true)); 
     11 echo $html->div('title_section', __('Questions & answers', true). ' - ' .$catfaq['Catfaq']['title']); 
    1212     
    1313 echo $html->div(null, $html->image("static/loading.gif", array('alt'=>'Loading')), array('id'=>'loading', 'style'=>'display:none')); 
    1414     
    15  echo  $ajax->link($html->image('actions/new.png', array('alt'=>__('Add new', true), 'title'=>__('Add new', true))),'/admin/faqs/add/'.$catfaq_id,  
     15 echo  $ajax->link($html->image('actions/new.png', array('alt'=>__('Add new', true), 'title'=>__('Add new', true))),'/admin/faqs/add/'.$catfaq['Catfaq']['id'],  
    1616     array("update" => "updater","loading"=>"Element.show('loading');Element.hide('updater');", "complete"=>"Element.hide('loading');Effect.Appear('updater')"),  
    1717                null, false);