當前位置: 首頁>>代碼示例>>PHP>>正文


PHP MemberModel::get_member_name_info_id方法代碼示例

本文整理匯總了PHP中MemberModel::get_member_name_info_id方法的典型用法代碼示例。如果您正苦於以下問題:PHP MemberModel::get_member_name_info_id方法的具體用法?PHP MemberModel::get_member_name_info_id怎麽用?PHP MemberModel::get_member_name_info_id使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在MemberModel的用法示例。


在下文中一共展示了MemberModel::get_member_name_info_id方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: screen_applicant_process_close

 public function screen_applicant_process_close()
 {
     $btn1 = "";
     $btn2 = "";
     $reset = "";
     $this->make_message_form();
     if (empty($this->action)) {
         $MemberModel = new MemberModel();
         $CustomerModel = new CustomerModel();
         $member_data = $MemberModel->get_member_name_info_id($_SESSION['applicant']['member_id']);
         $project_data = $CustomerModel->get_project_title($_SESSION['applicant']['project_id']);
         $subject = "不採用のお知らせ";
         $body = $member_data['last_name'] . " " . $member_data['first_name'] . " 様\n\n";
         $body .= "このたびは下記のお仕事\n\n";
         $body .= "「" . $project_data . "」\n";
         $body .= "http://localhost/index.php?type=detail_project&project_id=" . $_SESSION['applicant']['project_id'] . "\n\n";
         $body .= "にご応募いただきありがとうございました。\n\n";
         $body .= "誠に殘念でございますが、\n今回のお仕事は不採用となりました。\n\n";
         $body .= "何卒、ご了承いただけましたら\n幸いでございます。\n\n";
         $body .= $_SESSION[_CUSTOMER_AUTHINFO]['company_name'];
         $this->form->setDefaults(array('subject' => $subject, 'body' => $body));
         $this->form->freeze();
         $this->title = "見送り";
         $this->message = "不採用の通知をお送りして宜しいでしょうか?";
         $this->file = "customer_applicant_message_form.tpl";
         $this->next_type = "applicant_process_close";
         $this->next_action = "complete";
         $btn1 = "OK";
         $btn2 = "戻る";
     } else {
         if ($this->action == "complete" && isset($_POST['submit2']) && $_POST['submit2'] == "戻る") {
             $this->screen_applicant_detail();
             exit;
         } else {
             if ($this->action == "complete" && isset($_POST['submit1']) && $_POST['submit1'] == "OK") {
                 $data = $this->form->getSubmitValues();
                 $MessageModel = new MessageModel();
                 $ActionModel = new ActionModel();
                 $data['action_id'] = $ActionModel->get_action_some_id($_SESSION['applicant']['member_id'], $_SESSION['applicant']['project_id']);
                 $MessageModel->regist_customer_message_two_data($data, $_SESSION['applicant']);
                 $ActionModel = new ActionModel();
                 $history = "close";
                 $ActionModel->regist_action_history($_SESSION['applicant']['project_id'], $history);
                 $this->title = "お見送り完了";
                 $this->message = "不採用の通知の送付が完了しました。";
                 $this->file = "message.tpl";
                 unset($_SESSION['applicant']);
             }
         }
     }
     $this->form->addElement('submit', 'submit1', $btn1);
     $this->form->addElement('submit', 'submit2', $btn2);
     $this->view_display();
 }
開發者ID:okmr-d,項目名稱:tX4udPfeEx,代碼行數:54,代碼來源:CustomerController.php


注:本文中的MemberModel::get_member_name_info_id方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。