HomeAction::addFeedbackType PHP Method

addFeedbackType() public method

添加反馈类型
public addFeedbackType ( )
    public function addFeedbackType()
    {
        $this->pageTab[] = array('title' => L('PUBLIC_FEEDBACK_LIST'), 'tabHash' => 'list', 'url' => U('admin/Home/feedback'));
        $this->pageTab[] = array('title' => L('PUBLIC_FEEDBACK_TYPE'), 'tabHash' => 'type', 'url' => U('admin/Home/feedbackType'));
        if (!empty($_GET['type_id'])) {
            $this->assign('pageTitle', L('PUBLIC_FEEDBACK_EDIT_TYPE'));
            $detail = D('')->table(C('DB_PREFIX') . 'feedback_type')->where('type_id=' . intval($_GET['type_id']))->find();
            $this->pageKey .= '_edit';
        } else {
            $this->assign('pageTitle', L('PUBLIC_FEEDBACK_ADD_TYPE'));
            $detail = array();
        }
        $this->pageKeyList = array('type_id', 'type_name');
        $this->savePostUrl = U('admin/Home/doaddFeedbackType');
        $this->displayConfig($detail);
    }