getFeedbackList(array(), 10); View::assign('feedback_list', $feedback_list); View::assign('show_page', $feedback_model->page_info->render()); $this->setAdminCurItem('index'); return View::fetch('index'); } /** * 删除 */ public function del(){ $feedback_model = model('feedback'); $feedback_id = input('param.feedback_id'); $feedback_id_array = ds_delete_param($feedback_id); $condition = array(array('fb_id','in', $feedback_id_array)); $result = $feedback_model->delFeedback($condition); if ($result){ ds_json_encode(10000, lang('ds_common_op_succ')); }else { ds_json_encode(10001, lang('ds_common_op_fail')); } } protected function getAdminItemList() { $menu = array( array( 'text' => lang('ds_feedback'), 'name' => 'index', 'url' => '' ), ); return $menu; } }