CasperSecurity
<?php
include('includes/connection.php');
if(isset($_REQUEST['sendmessage']))
{
$fname = $_REQUEST['fname'];
$email = $_REQUEST['email'];
$phoneno = $_REQUEST['phone'];
$comments = $_REQUEST['message'];
$datte = $_REQUEST['datte'];
/* mysqli_query($link,"insert into college_contact set contact_name='$fname',email_id='$email',phone='$phoneno',website='$website',comments='$comments',contact_date='$datte',status=0"); */
db_query("insert into college_contact set contact_name='$fname',email_id='$email', phone='$phoneno', comments='$comments', contact_date='$datte'");
$sucmessage = "Contact Send Successfully,Thank You.";
$msg = "Hi Utkal Institute of Management Admin,"."\n\n"." Someone contacts you from uim.org.in"."\n\n"."Name :".$fname."\n"."Email :".$email."\n"."Phone : ".$phoneno."\n"."website : ".$website."\n"."Messages : ".$comments."\n\n".$_REQUEST['msg']."\n";
$sub = 'New Contact From Website';
if($sub == '')
$sub = 'A new contact ...';
$to = 'uimodisha@gmail.com';
@mail($to,$sub,$msg,"From:".$email);
echo "<script type='text/javascript'>alert('$sucmessage');</script>";
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="description" content="html 5 template, dentist, stomatologist, dental clinic template, medical template, clinic template, surgery clinic theme, plastic surgery template">
<meta name="author" content="websmirno.site">
<meta name="format-detection" content="telephone=no">
<title>UIM</title>
<!-- Stylesheets -->
<link href="vendor/slick/slick.css" rel="stylesheet">
<link href="vendor/animate/animate.min.css" rel="stylesheet">
<link href="icons/style.css" rel="stylesheet">
<link href="vendor/bootstrap-datetimepicker/bootstrap-datetimepicker.css" rel="stylesheet">
<link rel="stylesheet" href="owlcarousel/owl.carousel.min.css">
<link rel="stylesheet" href="owlcarousel/owl.theme.default.min.css">
<link href="css/style.css" rel="stylesheet">
<link href="css/custom.css" rel="stylesheet">
<link href="font-awesome/css/font-awesome.css" rel="stylesheet">
<!--Favicon-->
<link rel="icon" href="images/custom/uim_logo.png" type="image/x-icon">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700,800" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700,900" rel="stylesheet">
<style type="text/css">
.order-container {
border-style: solid;
height: 400px;
}
.order-header {
text-align: center;
background-color: #3368c6;
height: auto;
margin-bottom: auto;
color:#fff;
text-align:middle;
}
ul.special_bullet {
list-style: none;
}
ul.special_bullet li:before {
color: #000;
content: "\27bd \0020";
}
</style>
</head>
<body class="shop-page layout-medlab">
<!--header-->
<?php include('header.php');?>
<!--//header-->
<!--section slider-->
<div class="page-content">
<!--section-->
<div class="section">
<div class="container">
<div class="row">
<div class="col-md col-lg-5">
<div class="pr-0 pr-lg-8">
<div class="title-wrap">
<h2>Get In Touch With Us</h2>
<div class="h-decor"></div>
</div>
<div class="mt-2 mt-lg-4">
<p>For general questions, please send us a message and we’ll get right back to you. You can also call us directly to
speak with department head.</p>
<p class="p-sm">Fields marked with a * are required.</p>
</div>
<div class="mt-2 mt-md-5"></div>
<h5>Stay Connected</h5>
<div class="content-social mt-15">
<a href="https://www.facebook.com/" target="blank" class="hovicon">
<i class="icon-facebook-logo"></i>
</a>
<a href="https://www.twitter.com/" target="blank" class="hovicon">
<i class="icon-twitter-logo"></i>
</a>
<a href="https://plus.google.com/" target="blank" class="hovicon">
<i class="icon-google-logo"></i>
</a>
<a href="https://www.instagram.com/" target="blank" class="hovicon">
<i class="icon-instagram"></i>
</a>
<!-- <a href="https://plus.google.com/" target="blank" class="hovicon">
<i class="icon-google-logo"></i>
</a>
<a href="https://www.instagram.com/" target="blank" class="hovicon">
<i class="icon-instagram"></i>
</a> -->
</div>
</div>
</div>
<div class="col-md col-lg-6 mt-4 mt-md-0">
<form name="contactlist" action="" method="post" novalidate="novalidate" enctype="multipart/form-data" >
<div class="successform">
<p>Your message was sent successfully!</p>
</div>
<div class="errorform">
<p>Something went wrong, try refreshing and submitting the form again.</p>
</div>
<div>
<input type="text" class="form-control" name="fname" placeholder="Your name*">
</div>
<div class="mt-15">
<input type="text" class="form-control" name="email" placeholder="Email*">
</div>
<div class="mt-15">
<input type="text" class="form-control" name="phone" placeholder="Your Phone">
</div>
<div class="mt-15">
<textarea class="form-control" name="message" placeholder="Message"></textarea>
</div>
<div class="mt-3">
<input type="submit" class="btn btn-hover-fill" value="SEND MESSAGE" name="sendmessage">
</div>
</form>
</div>
</div>
</div>
</div>
<!--//section-->
<!--section-->
<div class="section mt bg-grey">
<div class="container">
<div class="row">
<?php
$sql_con = db_query("SELECT * from contactt ORDER BY id DESC ");
$res_con = mysqli_fetch_assoc($sql_con);
?>
<div class="col-md">
<div class="title-wrap">
<h5>College Address</h5>
<div class="h-decor"></div>
<?php
echo $res_con['clg'];
?>
</div>
</div>
<div class="col-md mt-3 mt-md-0">
<div class="title-wrap">
<h5>City Office Address</h5>
<div class="h-decor"></div>
</div>
<?php
echo $res_con['office'];
?>
</div>
<div class="col-md mt-3 mt-md-0">
<div class="title-wrap">
<h5>Contact Person</h5>
<div class="h-decor"></div>
</div>
<ul class="icn-list-lg">
<li>
<div>
<?php
echo $res_con['contactp'];
?>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
<!--//section-->
<!--section-->
<div class="section mt-0 section-top-padding">
<div class="contact-map">
<!-- <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d40119.804311386426!2d-97.32055794896301!3d37.64364017354126!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x87bae4ec254beb5f%3A0x410df48edd2f5ede!2sGraceMed%20Jardine%20Family%20Clinic!5e0!3m2!1sen!2sua!4v1579853082410!5m2!1sen!2sua"
allowfullscreen=""></iframe> -->
<?php
echo $res_con['maplink'];
?>
</div>
</div>
<!--//section-->
</div>
<!--section specialists-->
<!--footer-->
<?php include("footer_conct.php"); ?>
<!--//footer-->
<div class="backToTop js-backToTop">
<i class="icon icon-up-arrow"></i>
</div>
<!-- Vendors -->
<script src="vendor/jquery/jquery-3.2.1.min.js"></script>
<!-- <script src="jquery.min.js"></script> -->
<script src="vendor/jquery-migrate/jquery-migrate-3.0.1.min.js"></script>
<script src="vendor/cookie/jquery.cookie.js"></script>
<script src="vendor/bootstrap-datetimepicker/moment.js"></script>
<script src="vendor/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="vendor/popper/popper.min.js"></script>
<script src="vendor/bootstrap/bootstrap.min.js"></script>
<script src="vendor/waypoints/jquery.waypoints.min.js"></script>
<script src="vendor/waypoints/sticky.min.js"></script>
<script src="vendor/imagesloaded/imagesloaded.pkgd.min.js"></script>
<script src="vendor/slick/slick.min.js"></script>
<script src="vendor/scroll-with-ease/jquery.scroll-with-ease.min.js"></script>
<script src="vendor/countTo/jquery.countTo.js"></script>
<script src="vendor/form-validation/jquery.form.js"></script>
<script src="vendor/form-validation/jquery.validate.min.js"></script>
<script src="vendor/isotope/isotope.pkgd.min.js"></script>
<script src="owlcarousel/owl.carousel.min.js"></script>
<!-- Custom Scripts -->
<script src="js/app.js"></script>
<script src="js/app-shop.js"></script>
<script src="form/forms.js"></script>
<script>
$(document).ready(function () {
$('.carousel').slick({
slidesToShow: 3,
dots: true,
centerMode: true,
});
});
</script>
</body>
</html>