Esempio n. 1
0
 function signupAction()
 {
     if ($this->getRequest()->isPost()) {
         $data = $this->getRequest()->getPost();
         $db = new Application_Model_DbTable_DbCustomer();
         $id = $db->signUp($data);
         $user_name = $db->getUserById($id, 2);
         $customer_session = new Zend_Session_Namespace('customer');
         $customer_session->customer_session = 1;
         $customer_session->customer_id = $id;
         $customer_session->customer_name = $user_name;
         $user_id = $db->getCustomerId($user_name);
         $user_info = $db->getUserById($id, 1);
         $customer_session->last_name = $user_info['last_name'];
         $customer_session->first_name = $user_info['first_name'];
         $customer_session->user_info = $user_info;
         $this->_redirect("/stuffbooking");
     } else {
         $this->_redirect("/stuffbooking");
     }
 }
Esempio n. 2
0
 function signupAction()
 {
     if ($this->getRequest()->isPost()) {
         $data = $this->getRequest()->getPost();
         $db = new Application_Model_DbTable_DbCustomer();
         $id = $db->signUp($data);
         $user_name = $db->getUserById($id, 2);
         $customer_session = new Zend_Session_Namespace('customer');
         $customer_session->customer_session = 1;
         $customer_session->customer_id = $id;
         $customer_session->customer_name = $user_name;
         $user_id = $db->getCustomerId($user_name);
         $user_info = $db->getUserById($id, 1);
         $customer_session->pwd = $password;
         $customer_session->last_name = $user_info['last_name'];
         $customer_session->first_name = $user_info['first_name'];
         $customer_session->user_info = $user_info;
         $this->_redirect("/taxi/index");
         //Application_Form_FrmMessage::redirectUrl("/taxi/index");
     } else {
     }
 }
Esempio n. 3
0
 function forgetpassAction()
 {
     $db = new Application_Model_DbTable_DbCustomer();
     $url = $this->getRequest()->getParam("url");
     if ($this->getRequest()->isPost()) {
         $data = $this->getRequest()->getPost();
         if (!empty($url)) {
             $db->updatePassword($data, $url);
             Application_Form_FrmMessage::Sucessfull("Your password have been updated!", "/customer/customerlogin");
         } else {
             $db->passLink($data["email"]);
             Application_Form_FrmMessage::Sucessfull("Your E-mail Have Been Sent./n Please Check Your E-mali !", "/customer/customerlogin");
         }
     }
     $frm = new Application_Form_FrmBooking();
     $form = $frm->FrmCustomer();
     $this->view->frms = $form;
     $this->view->url = $url;
 }