public function screen_list_project() { if (isset($_GET['flag'])) { if ($_GET['flag'] == "regist") { $this->message = "新規で1件、登録が完了しました"; } if ($_GET['flag'] == "modify") { $this->message = "案件を1件、更新しました"; } if ($_GET['flag'] == "delete") { $this->message = "案件を1件、削除しました"; } } //システム側から来た場合、セッション値の定義 if ($this->is_system && isset($_POST['id'])) { $_SESSION[_CUSTOMER_AUTHINFO]['id'] = $_POST['id']; $CustomerModel = new CustomerModel(); $_SESSION[_CUSTOMER_AUTHINFO]['company_name'] = $CustomerModel->get_company_name_company_id($_POST['id']); } if ($this->is_system) { $this->title = "<font color='blue'>" . $_SESSION[_CUSTOMER_AUTHINFO]['company_name'] . "</font>様の案件一覧"; } else { $this->title = "案件一覧"; } $perPage = "5"; $this->next_type = "list_project"; $CustomerModel = new CustomerModel(); $CustomerModel->valid_off_yesterday_project(); list($data, $count) = $CustomerModel->get_project_list($_SESSION[_CUSTOMER_AUTHINFO]['id']); list($data, $links) = $this->make_page_link($perPage, $data); $this->view->assign('data', $data); $this->view->assign('count', $count); $this->view->assign('links', $links['all']); $this->file = "customer_list_project.tpl"; $this->view_display(); }