function comment_js_action() { front::check_type(front::get('aid')); $comment=new comment(); $this->view->comments=$comment->getrows('state=1 and aid='.front::get('aid'),20,'1'); $this->view->aid=front::get('aid'); echo tool::text_javascript($this->fetch()); exit; }
function comment($aid) { $comment=new comment(); return $comment->getrows('aid='.front::get('aid'),10); }