-
Notifications
You must be signed in to change notification settings - Fork 1
/
contact.php
150 lines (124 loc) · 4.71 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<?php
if(isset($_POST['contact_submit']))
{
$name=$_POST['name'];
$mobile=$_POST['mobile'];
$from=$_POST['email'];
$message=$_POST['message'];
$subject="Received mail from '$name'";
$to="[email protected]";
$headers .="MIME-VERSION: 1.0" . "\r\n";
$headers .="Content-type:text/html;charset=UTF-8" . "\r\n";
$headers ="From : <$from> \r\n";
if(mail($to,$subject,$message,$headers))
{
echo'<script>
alert("Thanks.. Request..We will Contact You Soon.");
</script>';
}
else
{
echo"failed in sending the mail";
}
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>MM Granites</title>
<link rel="icon" type="image/png" href="assets/mmg logo.svg" sizes="16x16">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link href="https://fonts.googleapis.com/css?family=Merriweather+Sans" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/css_product.css">
<link rel="stylesheet" type="text/css" href="css/header-footer.css">
</head>
<body>
<?php
include 'header.php';
?>
<section class="banner-section-contact" style="background-image: url('assets/img/contact us.jpg');height:150px ">
<div class="container-fluid" id="product_banner">
<div class="row">
<div class="col-sm-3">
<h1 style="color: white;margin-top:50px">Contact Us</h1>
<h5 ><a style="color: white;text-decoration: none" href="index.php">Home /</a><a style="color: white;text-decoration: none" href="#">Contact Us</a></h5>
</div>
</div>
</section>
<section>
<div class="container-fluid">
<div class="jumbo" style="margin-top: 0px;margin-bottom: 50px;">
<h4 style="color:#555555"><strong>Get in Touch</strong></h4>
</div>
<div class="row">
<div class="col-sm-6" style="text-align: right;">
<form action="#" method="post">
<div class="form-group">
<input type="text" name="name" placeholder="Your Name" class="form-control" required="required">
</div>
<div class="form-group">
<input type="email" name="email" placeholder="Your Email" class="form-control" required="required">
</div>
<div class="form-group">
<input type="number" name="mobile" placeholder="Your Mobile" class="form-control" required="required" min="6000000000" max="9999999999">
</div>
<div class="form-group">
<textarea rows="7" cols="20" placeholder="Your Query" name="message" class="form-control"></textarea>
</div>
<div class="form-group" style="text-align:center;">
<input type="submit" name="contact_submit" class="mm-button" style="background-color: #e75143;color: black;">
</div>
</form>
</div>
<div class="col-sm-6">
<div class="col-sm-12">
<?php
include 'config.php';
$query="SELECT * FROM `company_address` ORDER BY `id` DESC";
$data1=mysqli_query($dbcon,$query);
$result1=mysqli_fetch_array($data1);
?>
<blockquote style="text-align: left;">
Address
<footer>
<br>
<?php echo $result1['add_1'] ; ?>
<br>
<?php echo $result1['add_2'] ; ?>
<br>
<?php echo $result1['add_3'] ; ?>
<br>
<?php echo $result1['add_4'] ; ?>
<br>
<?php echo $result1['add_5'] ; ?>
<br>
</footer>
</blockquote>
</div>
<div class="col-sm-12">
<?php
include 'config.php';
$query="SELECT * FROM `company_contacts` ORDER BY `id` DESC";
$data1=mysqli_query($dbcon,$query);
$result2=mysqli_fetch_array($data1);
?>
<blockquote style="text-align: left;">
Contact Details
<footer>
<br>
<strong>Phone:-</strong><?php echo $result2['phone'] ; ?><br>
<strong>Fax:-</strong><?php echo $result2['fax'] ; ?><br>
<strong>Email:-</strong><?php echo $result2['email'] ; ?><br>
</footer>
</blockquote>
</div>
</div>
</div>
</div>
</section>
<iframe id="gmap_canvas" src="https://maps.google.com/maps?q=Prestige%20Stone%20.village%20Kohra%2C(%20lakha%20)%20teh.%20Fathegarh%2C%20Jaisalmer%2C%20Jaisalmer%2C%20Rajasthan%20345027&t=&z=13&ie=UTF8&iwloc=&output=embed" width="100%" height="350" frameborder="0" style="border:0;margin-bottom: -5px;margin-top: 30px;" allowfullscreen>></iframe>
<?php
include 'footer.php';
?>