Esempio n. 1
0
function PageMain()
{
    global $TMPL, $LNG, $CONF, $db, $settings;
    if (isset($_POST['contactus'])) {
        // Verification usage
        $contu = new contactus();
        $contu->db = $db;
        $contu->url = $contuF['url'];
        $contu->name = $_POST['name'];
        $contu->email = $_POST['email'];
        $contu->enrollno = $_POST['enrollno'];
        $contu->course = $_POST['course'];
        $contu->branch = $_POST['branch'];
        $contu->message = $_POST['message'];
        $contu->join = $_POST['jyear'] . '-' . $_POST['tyear'];
        $TMPL['contactusMsg'] = $contu->process();
        $mailmsg = '';
        $mailmsg .= "Name: {$this->name} \n";
        $mailmsg .= "Email: {$this->email} \n";
        $mailmsg .= "Course: {$this->course} \n";
        $mailmsg .= "Branch: {$this->branch} \n";
        $mailmsg .= "Batch: {$this->batch} \n";
        $mailmsg .= "Enroll No: {$this->enrollno} \n";
        $mailmsg .= "Message: {$this->message} \n";
        if ($TMPL['contactusMsg'] == 1) {
            sendMail($settings['email'], sprintf($LNG['ttl_admin_email'], $this->name), $mailmsg, $this->email);
            header("Location: " . $CONF['url'] . "/index.php?a=contactus");
        }
    }
    $TMPL['jyear'] = generateDateForm(0, $join[0]);
    $TMPL['tyear'] = generateDateForm(0, $join[1]);
    $TMPL['url'] = $CONF['url'];
    $TMPL['title'] = 'Contact Us - ' . $settings['title'];
    $TMPL['ad'] = $settings['ad1'];
    $skin = new skin('welcome/contactus');
    return $skin->make();
}
Esempio n. 2
0
<?php

include "header.php";
include $_SERVER['DOCUMENT_ROOT'] . "/common/class/contactus.class.php";
$delete_contactus = new contactus();
/*echo "<pre>";
print_r($_POST);
echo "</pre>";*/
if ($_GET['action'] == "delete") {
    $midarray = explode(",", $_POST['selectcheck']);
    foreach ($midarray as $w) {
        $delete_contactus->deletecontactus($w);
    }
    //disconnect_db($cn);
    echo "<script>alert('Contact us message Deleted ...'); window.location='contact_management.php';</script>";
}
?>

Esempio n. 3
0
<?php

require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/mysql.class.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/contactus.class.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/user.class.php";
$contactus = new contactus();
$user = new user();
if ($_POST['type'] != "general") {
    if ($user->login($_POST['username'], $_POST['password']) > 0) {
        $contactus->add($_POST['type'], $_POST['subject'], $_POST['project_id'], $_POST['url'], $_POST['description']);
        echo "script:messageBox('Thanks For contacting us');\r\n\tclosePage();\r\n\t";
    } else {
        echo "script:messageBox('Login Failed');\r\n\tclosePage();\r\n\t";
    }
} else {
    $contactus->add_general($_POST['type'], $_POST['subject'], $_POST['description'], $_POST['email']);
    echo "script:messageBox('Thanks For contacting us');\r\n\tclosePage();\r\n\t";
}
Esempio n. 4
0
 public function postContact(Request $request)
 {
     $rules = array('name' => 'required|min:2', 'email_id' => 'required|email', 'message' => 'required|min:5');
     $validator = Validator::make($request->all(), $rules);
     if ($validator->passes()) {
         $contact = new contactus();
         $contact->name = $request->input('name');
         $contact->email_id = $request->input('email_id');
         $contact->message = $request->input('message');
         $contact->save();
         return Redirect::to('/contact')->with('message', \SiteHelpers::alert('success', 'Thank you for contacting us'));
     } else {
         return Redirect::to('/contact')->with('message', \SiteHelpers::alert('error', 'The following errors occurred'))->withErrors($validator)->withInput();
     }
 }
Esempio n. 5
0
        $page->apply_string("title", "Boyds Nest");
        $page->apply_string("meta", "");
        $page->apply_string("style", Html::CssInclude(BN_URL_CSS . "/contactus.css"));
        $page->apply_string("javascript", "");

        return $page;
    }

    public function default_request()
    {
        $master = $this->ready_master();
        $master->apply_param(
                "main_content",
                $this->load_local_php_view("content"));

        $master->commit_applies();
        return $master->get_page();
    }
}

try
{
    $this_page = new contactus();
    echo $this_page->init_request('default');
}
catch(Exception $e)
{
    FCore::ShowError(500, $e->getMessage());
}

?>
Esempio n. 6
0
	 alert("No Rows Selected");  
	 return false;
	 }
	var arv = checkBoxArr.toString();
	document.getElementById('selectcheck').value=arv;
		return confirm("Are You Sure ?");
}


</script>


<?php 
$mysql = new mysql();
$common = new common();
$contactus = new contactus();
?>

<table align="left" width="100%" style="font-family:Arial, Helvetica, sans-serif; font-weight:bold; color:#FFFFFF; font-size:16px;">
	
	
	<tr><td colspan="6" align="center" valign="middle">
    <table align="center" >
    <tr>
    <td><img src="images/listmain.png" /></td>
    <td style="color:#003399; font-family:Arial, Helvetica, sans-serif; font-weight:bold; font-size:18px;" align="center" valign="middle">
    &nbsp;&nbsp;Contact us Management</td>
    </tr>
    </table>
	</td></tr>