-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.php
240 lines (212 loc) · 11 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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="icon" type="image/png" href="assets/img/logo.png" />
<title>Agriculture Portal</title>
<!-- Fonts and icons -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css"
integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous"/>
<link rel="stylesheet" href=" https://cdnjs.cloudflare.com/ajax/libs/bootstrap-social/5.1.1/bootstrap-social.min.css "/>
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700" rel="stylesheet">
<link href="https://use.fontawesome.com/releases/v5.0.6/css/all.css" rel="stylesheet">
<!-- Nucleo Icons -->
<link href="assets/css/nucleo-icons.css" rel="stylesheet" />
<link href="assets/css/nucleo-svg.css" rel="stylesheet" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/1.2.0/tailwind.min.css">
<link rel="stylesheet" href="assets/css/creativetim.min.css" type="text/css">
</head>
<body class="bg-white" id="top">
<!-- Navbar -->
<nav
id="navbar-main"
class="
navbar navbar-main navbar-expand-lg
bg-default
navbar-light
position-sticky
top-0
shadow
py-0
"
>
<div class="container">
<ul class="navbar-nav navbar-nav-hover align-items-lg-center">
<li class="nav-item dropdown">
<a href="index.php" class="navbar-brand mr-lg-5 text-white">
<img src="assets/img/nav.png" />
</a>
</li>
</ul>
<button
class="navbar-toggler bg-white"
type="button"
data-toggle="collapse"
data-target="#navbar_global"
aria-controls="navbar_global"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon text-white"></span>
</button>
<div class="navbar-collapse collapse bg-default" id="navbar_global">
<div class="navbar-collapse-header">
<div class="row">
<div class="col-10 collapse-brand">
<a href="index.html">
<img src="assets/img/nav.png" />
</a>
</div>
<div class="col-2 collapse-close bg-danger">
<button
type="button"
class="navbar-toggler"
data-toggle="collapse"
data-target="#navbar_global"
aria-controls="navbar_global"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span></span>
<span></span>
</button>
</div>
</div>
</div>
<ul class="navbar-nav align-items-lg-center ml-auto">
<li class="nav-item">
<a href="contact.php" class="nav-link">
<span class="text-success nav-link-inner--text"
><i class="text-success fas fa-address-card"></i> Contact</span
>
</a>
</li>
<li class="nav-item">
<div class="dropdown show ">
<a class="nav-link dropdown-toggle text-white " href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="text-white nav-link-inner--text"
><i class="text-white fas fa-user-plus"></i> Sign Up</span
>
</a>
<div class="dropdown-menu" aria-labelledby="dropdownMenuLink">
<a class="dropdown-item" href="farmer/fregister.php">Farmer</a>
<a class="dropdown-item" href="customer/cregister.php">Customer</a>
</div>
</div>
</li>
<li class="nav-item">
<div class="dropdown show ">
<a class="nav-link dropdown-toggle text-white " href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="text-white nav-link-inner--text"
><i class="text-white fas fa-sign-in-alt"></i> Login</span
>
</a>
<div class="dropdown-menu" aria-labelledby="dropdownMenuLink">
<a class="dropdown-item" href="farmer/flogin.php">Farmer</a>
<a class="dropdown-item" href="customer/clogin.php">Customer</a>
<a class="dropdown-item" href="admin/alogin.php">Admin </a>
</div>
</div>
</li>
</ul>
</div>
</div>
</nav>
<!-- End Navbar -->
<section class="section section-shaped section-lg">
<div class="shape shape-style-1 shape-primary">
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
</div>
<div class="text-gray-100 " >
<form action="contact-script.php" method="post">
<div class="max-w-screen-xl px-8 grid gap-8 grid-cols-1 md:grid-cols-2 md:px-12 lg:px-16 xl:px-32 py-16 mx-auto bg-gray-100 text-gray-900 rounded-lg shadow-lg">
<div class="flex flex-col justify-between">
<div class="mt-2">
<h2 class="text-4xl lg:text-5xl font-bold leading-tight">Lets talk about everything!</h2>
</div>
<div class="mt-2">
<span class="uppercase text-sm text-gray-600 font-bold">Full Name</span>
<input class="w-full bg-gray-300 text-gray-900 mt-2 p-3 rounded-lg focus:outline-none focus:shadow-outline" type="text" id="user_name" name="user_name" placeholder="Enter your Full Name">
</div>
<div class="mt-2">
<span class="uppercase text-sm text-gray-600 font-bold">Mobile Number</span>
<input class="w-full bg-gray-300 text-gray-900 mt-2 p-3 rounded-lg focus:outline-none focus:shadow-outline" type="phone" id="user_mobile" name="user_mobile" pattern="^[6-9]{1}[0-9]{9}$" title="Enter Valid 10 digit Mobile Number (Ex. 76435654XX)" placeholder="Enter your Mobile Number">
</div>
<div class="mt-2">
<span class="uppercase text-sm text-gray-600 font-bold">Email Id</span>
<input class="w-full bg-gray-300 text-gray-900 mt-2 p-3 rounded-lg focus:outline-none focus:shadow-outline" type="email" id="user_email" name="user_email" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$" title="Enter Valid Email Id (Ex. [email protected])" placeholder="Enter your Email Id">
</div>
</div>
<div class="flex flex-col justify-between">
<div class="mt-2">
<span class="uppercase text-sm text-gray-600 font-bold">Address</span>
<input class="w-full bg-gray-300 text-gray-900 mt-2 p-3 rounded-lg focus:outline-none focus:shadow-outline" type="text" id="user_address" name="user_address" title="Enter your City Name and Pincode" placeholder="Enter your City/Pincode">
</div>
<div class="mt-2">
<span class="uppercase text-sm text-gray-600 font-bold">Message</span>
<textarea class="w-full h-32 bg-gray-300 text-gray-900 mt-2 p-7 rounded-lg focus:outline-none focus:shadow-outline" rows="8" id="user_message" name="user_message" title="Enter your Issue in Detail" placeholder="Enter your Issue" required="" autofocus=""></textarea>
</div>
<div class="mt-2">
<button class="uppercase text-sm font-bold tracking-wide bg-indigo-500 text-gray-100 p-3 rounded-lg w-full focus:outline-none focus:shadow-outline" type="submit" name="submit" value="Submit">
Send Message
</button>
</div>
</div>
</div>
</form>
</div>
<div class="modal fade" id="mysuccessModal" data-backdrop="static" style="position: fixed;width: 100%;height: 100%;overflow: auto;background-color: rgb(0,0,0);background-color: rgba(0,0,0,0.4);">
<div class="modal-dialog modal-lg modal-dialog-centered">
<div class="modal-content" style="position: relative;margin: auto;padding: 0;border: 1px solid #888;width: 100%;box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);">
<!-- Modal Header -->
<div class="modal-header" style="background-color: #1A4E85;color: white;">
<h4 class="modal-title">Message</h4>
<button type="button" class="close" onclick="pagesuccessRedirect()">×</button>
</div>
<!-- Modal body -->
<div class="modal-body">
<h3>Thank you for contacting us.</h3>
<h6>You are very important to us, all information received will always remain confidential. We will contact you as soon as we review your message.</h6>
</div>
<!-- Modal footer -->
<div class="modal-footer" style="padding:2px 16px;background-color: #1A4E85;color: white;">
<button type="button" class="btn btn-danger" onclick="pagesuccessRedirect()">Close</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="myunsuccessModal" data-backdrop="static" style="position: fixed;width: 100%;height: 100%;overflow: auto;background-color: rgb(0,0,0);background-color: rgba(0,0,0,0.4);">
<div class="modal-dialog modal-lg modal-dialog-centered">
<div class="modal-content" style="position: relative;margin: auto;padding: 0;border: 1px solid #888;width: 100%;box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);">
<!-- Modal Header -->
<div class="modal-header" style="background-color: #1A4E85;color: white;">
<h4 class="modal-title">Message</h4>
<button type="button" class="close" onclick="pageunsuccessRedirect()">×</button>
</div>
<!-- Modal body -->
<div class="modal-body">
Error in sending message!!! Please try again.
</div>
<!-- Modal footer -->
<div class="modal-footer" style="padding:2px 16px;background-color: #1A4E85;color: white;">
<button type="button" class="btn btn-danger" onclick="pageunsuccessRedirect()">Close</button>
</div>
</div>
</div>
</div>
</section>
<?php require("footer.php");?>
</body>
</html>