|
|
|
@ -379,10 +379,10 @@ class ArticleController extends HomeController {
|
|
|
|
|
private function getDocument($title)
|
|
|
|
|
{
|
|
|
|
|
$category=D('category')->where(array('name'=>'agreement'))->find();
|
|
|
|
|
$docu=D('document')->where(array('category_id'=>$category['id'],'status'=>1,'title'=>"'%{$title}'"))->find();
|
|
|
|
|
$docu=D('document')->where(array('category_id'=>$category['id'],'status'=>1,'title'=>['like',"%{$title}"]))->find();
|
|
|
|
|
$document_article=D('document_article')->where(array('id'=>$docu['id']))->find();
|
|
|
|
|
$this->assign('article',$document_article['content']);
|
|
|
|
|
$this->display();
|
|
|
|
|
$this->display('agreement');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected function list_data($model){
|
|
|
|
|