예제 #1
0
 function User($username, $password, $email = "", $firstname = "", $lastname = "", $webpage = "", $birthdate = "", $description = "")
 {
     $this->username = $username;
     setPassword($password);
     setEmail($email);
     setFirstname($firstname);
     setLastname($lastname);
     setWebpage($webpage);
     setBirthdate($birthdate);
     setDescription($description);
 }
예제 #2
0
 public function completed($id)
 {
     if (islogin()) {
         if ($data['result'] = $this->Mdl_admin->completed($id)) {
             /* $this->load->view('messageCompleted',$data); */
             /* die();*/
             $user_email = $data['result'][0]['eduworkers_users_username'];
             /* echo $user_email;
                die;*/
             $messageCompleted = $this->load->view('messageCompleted', $data, TRUE);
             $this->email->from(setEmail(), 'EduWorkers');
             $this->email->to($user_email);
             $this->email->subject('Order Completed');
             /* $this->email->message('Your order number :'.$data['result'][0]['eduworkers_products_id'].' has been successfully completed. Thank you for using our services.');  */
             $this->email->message($messageCompleted);
             if ($this->email->send()) {
                 setInformUser('success', ' Product successfully Completed ');
                 redirect(base_url('admin/product'));
             } else {
                 setInformUser('error', 'Some error Occurred ');
                 redirect(base_url('admin/product'));
             }
         } else {
             setInformUser('error', 'Some error Occurred ');
             redirect(base_url('admin/product'));
         }
     } else {
         redirect(base_url('users'));
     }
 }
예제 #3
0
 public function __construct($username, $password, $email)
 {
     setUsername($username);
     setPassword($password);
     setEmail($email);
 }
예제 #4
0
 public function contactUs()
 {
     if (strtolower($_SERVER['REQUEST_METHOD']) == 'post') {
         $data = $this->input->post();
         /* print_r($data);die;*/
         $message = $this->load->view('contact_us', $data, TRUE);
         /*$admin_mail='*****@*****.**';*/
         $this->email->from(setEmail(), 'Eduworkers');
         $this->email->to($this->adminEmail());
         $this->email->subject('Contact Us');
         $this->email->message($message);
         /*  echo $data['subject']; die;
          */
         if ($this->email->send()) {
             setInformUser('success', " successfully Send Query");
             redirect(base_url('users/contactUs'));
         } else {
             setInformUser('error', "Some Error Occurred.");
             redirect(base_url('users/contactUs'));
         }
     } else {
         $this->load->view('header/header');
         $this->load->view('contact');
         $this->load->view('header/footer');
     }
 }
예제 #5
0
    $name = setName($_POST["name"]);
}
?>
</span>
	      </div>

	      <div class="field email-box">
		        <input type="text" type="email" id="email" name="email" value="<?php 
echo $email;
?>
" placeholder="*****@*****.**" required />
		        <label for="email">Email*</label>
		        <span class="glyphicon-ok"></span>
		        <span class="error"><?php 
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    $email = setEmail($_POST["email"]);
}
?>
</span>
	      </div>

	      <div class="field msg-box">
		        <textarea id="msg" rows="4" name="message" value="<?php 
echo $message;
?>
" placeholder="How may I help you ?"/></textarea>
		        <label for="msg">Msg*</label>
		        <span class="glyphicon-ok"></span>
		        <span class="error"><?php 
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    $message = setMessage($_POST["message"]);