Beispiel #1
0
 public function screen_customer_delete()
 {
     $btn = "";
     $CustomerModel = new CustomerModel();
     if ($this->action == "form") {
         $this->title = "顧客情報削除";
         $this->message = "<font color='red' size='4'>--注意--</font><br><br>";
         $this->message .= "[削除]ボタンをクリックすると<br><br>";
         $this->message .= "顧客番号&nbsp;<font color='blue'>";
         $this->message .= htmlspecialchars($_SESSION[_CUSTOMER_AUTHINFO]['id'], ENT_QUOTES);
         $this->message .= "</font>番<br><br><font color='blue'>";
         $this->message .= htmlspecialchars($_SESSION[_CUSTOMER_AUTHINFO]['company_name'], ENT_QUOTES);
         $this->message .= "</font>&nbsp;様の<br><br><font color='red' size='4'>すべての情報</font>を削除します。";
         $this->file = "member_delete.tpl";
         $this->next_type = "delete_customer";
         $this->next_action = "complete";
         $btn = "削除";
     } else {
         if ($this->action == "complete") {
             $CustomerModel->delete_customer($_SESSION[_CUSTOMER_AUTHINFO]['id']);
             $this->title = "削除完了";
             $this->message = "顧客情報を削除しました";
             $this->URL = "system.php?type=customer_list";
             $this->URL .= $this->add_pageID();
             $this->file = "message.tpl";
         }
     }
     $this->form->addElement('submit', 'submit1', $btn);
     $this->view_display();
 }