public function screen_message_box() { $MessageModel = new MessageModel(); $perPage = 8; if ($this->action == "transmit") { $this->title = "送信メッセージ"; $this->message = "--送信履歴--"; $this->file = "customer_transmit_message_list.tpl"; list($data, $count) = $MessageModel->get_transmit_message_list_customer_id($_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']); } else { if ($this->action == "receive") { $this->title = "受信メッセージ"; $this->message = "--受信履歴--"; $this->file = "customer_receive_message_list.tpl"; list($data, $count) = $MessageModel->get_receive_message_list_customer_id($_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->view_display(); }