HomeAction::feedback_list PHP Method

feedback_list() public method

public feedback_list ( )
    public function feedback_list()
    {
        if (!empty($_GET['id'])) {
            $detail = model('Feedback')->where('id=' . intval($_GET['id']))->find();
            $feedbacktype = model('Feedback')->getFeedBackType();
            $detail['feedbacktype'] = $feedbacktype[$detail['feedbacktype']];
        } else {
            $detail = array();
        }
        $this->pageKeyList = array('feedbacktype', 'uid', 'feedback', 'cTme');
        $this->savePostUrl = U('admin/Home/delfeedback', array('id' => intval($_GET['id'])));
        $this->submitAlias = L('PUBLIC_MARK_PROCESSED');
        $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'));
        $this->assign('pageTitle', L('PUBLIC_DETAILS_LIST'));
        $this->displayConfig($detail);
    }