<?php
include"initialize_page.php";
include"systemfunctions.php";
?>
<?php include('resources/header.php') ?>
	<title></title>
	<meta name="keywords" content="" />
	<meta name="description" content="" />
<?php include('resources/css-file.php') ?>
<style>
				.boxli  h4{text-transform:uppercase;}
				.boxli li img{width:auto;}
				.boxli li
					{	padding: 30px;
						box-shadow: 0 0 16px -10px #000;
						margin: 30px 0;
					}
				.boxli .col-sm-7
					{
						line-height:25px;
					}
				.boxli .col-sm-7 p{margin:10px 0;}
				</style>
<?php include('resources/navigation.php') ?> 
<!-- Dashboard wrapper starts -->
<div class="dashboard-wrapper">
	<div class="main-container">				
		<div class="row">
			<div class="col-sm-12 ac-summ">
				<h2>Contact Us</h2>
			</div>
		</div>
		<div class="row gutter">
			<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
				<div>
					
					<div>
						<ul class="boxli">
						<li>
							<h4>Contact Us</h4>
							<p>If you have any query, complaint or suggestios, feel free to contact us. We will try our best to get in contact with you as soon as possible.</p>
							<form method="post" action="" id="contactform">
								<div class="form-group">
									<input type="hidden" name="q" value="contact_withadmin" class="form-control">
                                </div>                                      
								<div class="form-group">
                                    <label>Subject</label>
                                    <input class="form-control" type="text" name="csubjcet" value="" required>
								</div>
                                <div class="form-group">
                                    <label>Reasons</label>
                                    <input class="form-control" type="text" name="creason" value="" required >
                                </div>
                                <div class="form-group">
                                    <label> Message</label>
                                     <textarea class="form-control" rows="5" name="cmsg" required></textarea>
                                </div>
								<button class="btn btn-info">Submit</button>
                            </form>
						</li>
						</ul>	
					</div>
				</div>
			</div>
		</div>	
		</br>
	</div>
	<!-- Main container ends -->
</div>
<!-- Dashboard wrapper ends -->
<?php include('resources/footer.php') ?>
<?php include('resources/js-file.php') ?>
<script src="js/jQuery.style.switcher.js"></script>

<script type="text/javascript">
	 $(document).ready(function() {
    $("#contactform").on('submit',(function(e) {
e.preventDefault();

$.ajax({
url: "controller.php", // Url to which the request is send
type: "POST",             // Type of request to be send, called as method
data: new FormData(this), // Data sent to server, a set of key/value pairs (i.e. form fields and values)
contentType: false,       // The content type used when sending data to the server.
cache: false,             // To unable request pages to be cached
processData:false,        // To send DOMDocument or non processed data file it is set to false
success: function(data)   // A function to be called if request succeeds
{
	//alert(data);
	if(data==0)
	{
		alert("Please Fill All Fields...");
	}
	if(data==1)
	{
		alert("Sent Successfully..");
		window.location.href='<?php  echo website_settingdata('x_weburl'); ?>user/contactus.php';
	}

	
}
});
}));
});
	
	</script>











