-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.php
91 lines (89 loc) · 2.49 KB
/
contact.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
?>
<!doctype html>
<html>
<head>
<title>Contact Us Page</title>
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<!--bootstrap-->
<link href="css/bootstrap.css" rel="stylesheet" type="text/css" media="all">
<!--coustom css-->
<link href="css/style.css" rel="stylesheet" type="text/css"/>
<!--script-->
<script src="js/jquery-1.11.0.min.js"></script>
<!-- js -->
<script src="js/bootstrap.js"></script>
<!-- /js -->
<!--fonts-->
<link href='//fonts.googleapis.com/css?family=Open+Sans:300,300italic,400italic,400,600,600italic,700,700italic,800,800italic' rel='stylesheet' type='text/css'>
<!--/fonts-->
<script type="text/javascript" src="js/move-top.js"></script>
<script type="text/javascript" src="js/easing.js"></script>
<!--script-->
<script type="text/javascript">
jQuery(document).ready(function($) {
$(".scroll").click(function(event){
event.preventDefault();
$('html,body').animate({scrollTop:$(this.hash).offset().top},900);
});
});
</script>
<!--/script-->
</head>
<body>
<!--header-->
<?php include_once('includes/header.php');?>
<!-- Top Navigation -->
<div class="banner banner5">
<div class="container">
<h2>Contact</h2>
</div>
</div>
<!--header-->
<!-- contact -->
<div class="contact">
<!-- container -->
<div class="container">
<div class="contact-info">
<h3 class="c-text">Feel Free to contact us!!!</h3>
</div>
<div class="contact-grids">
<?php
$sql="SELECT * from tblpage where PageType='contactus'";
$query = $dbh -> prepare($sql);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() > 0)
{
foreach($results as $row)
{ ?>
<div class="col-md-4 contact-grid-left">
<h3>Address :</h3>
<p><?php echo htmlentities($row->PageDescription);?>
</p>
</div>
<div class="col-md-4 contact-grid-middle">
<h3>Phones :</h3>
<p><?php echo htmlentities($row->MobileNumber);?>
</p>
</div>
<div class="col-md-4 contact-grid-right">
<h3>E-mail :</h3>
<p><?php echo htmlentities($row->Email);?>
</p>
</div>
<div class="clearfix"> </div>
<?php $cnt=$cnt+1;}} ?>
</div>
</div>
<!-- //container -->
</div>
<!-- //contact -->
<?php include_once('includes/footer.php');?>
<!--/copy-rights-->
</body>
</html>