/
contactus.php
279 lines (241 loc) · 9.47 KB
/
contactus.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
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
<?php
include("system-header.php");
?>
<script src="http://maps.google.com/maps?file=api&v=2&sensor=false&key=ABQIAAAAABQUKul-fLpL_Hs9xMhUlRRKOFkBsu2yXp4h_bEBz1ZBySLTZRTksTNoP_jEsNKPVyjy9g25zU1ycQ" type="text/javascript"></script>
<script>
function validate_form() {
if (document.getElementById("titlebox").selectedIndex == 0) {
alert("Please fill in the 'Title' box");
return false;
}
if (document.getElementById("firstnamebox").value == "") {
alert("Please fill in the 'First Name' box");
return false;
}
if (document.getElementById("surnamebox").value == "") {
alert("Please fill in the 'Last Name' box");
return false;
}
if (document.getElementById("originbox").selectedIndex == 0) {
alert("Please fill in the 'How did you find us' box");
return false;
}
if (document.getElementById("userstring").value == "") {
alert("Please fill in the 'Security code' box");
return false;
}
if (document.getElementById("emailbox").value == "" &&
document.getElementById("phonebox").value == "") {
alert("Please fill in either the 'E-mail' or the 'Phone' box");
return false;
}
return true;
}
</script>
<!-- Start of content -->
<div id="templatemo_content_center">
<div class="center_column_section">
<div class="center_column_section_title">Contact Us.</div>
<div class="center_column_section_body">
<div class="posted_by">
<?php hotspot(7, "Contact Header", "ADMIN", "ADMIN", ""); ?>
</div>
<br>
<FORM action="contactsend.php" method="post" id="contactForm" name="contactForm" onSubmit="return validate_form ();">
<TABLE
style="BORDER-COLLAPSE: collapse; BACKGROUND: none transparent scroll repeat 0% 0%"
border="0" cellSpacing="1" borderColor="#ffffff"
cellPadding="1">
<TBODY>
<TR>
<TD>Title<span class="mandatoryField"> *</span></TD>
<TD width="2">
</TD>
<TD>
<select id="titlebox" name="titlebox">
<option value="Select" selected> Select </option>
<option value="Mr" >Mr</option>
<option value="Mrs">Mrs</option>
<option value="Ms">Ms</option>
<option value="Miss">Miss</option>
<option value="Dr">Dr</option>
<option value="Prof">Prof</option>
</select>
</TD>
</TR>
<TR>
<TD>First Name<span class="mandatoryField"> *</span></TD>
<TD width="2">
</TD>
<TD>
<input class="contactInfoTextBox" name="firstnamebox" id="firstnamebox" length=50 type="text"></input>
</TD>
</TR>
<TR>
<TD>Last Name<span class="mandatoryField"> *</span></TD>
<TD width="2">
</TD>
<TD>
<input class="contactInfoTextBox" name="surnamebox" id="surnamebox" length=40 type="text"></input>
</TD>
</TR>
<TR>
<TD>Phone<span class="optionalField"> *</span></TD>
<TD width="2">
</TD>
<TD>
<input class="contactInfoTextBox" name="phonebox" id="phonebox" length=40 type="text"></input>
</TD>
</TR>
<TR>
<TD>E-mail<span class="optionalField"> *</span></TD>
<TD width="2">
</TD>
<TD>
<input class="contactInfoTextBox" name="emailbox" id="emailbox" length=40 type="text"></input>
</TD>
</TR>
<TR>
<TD nowrap>How did you find us ?<span class=mandatoryField> *</span></TD>
<TD width="2">
</TD>
<TD>
<select id="originbox" name="originbox">
<option value="Select" selected> Select </option>
<option value="Leaflet" >Leaflet</option>
<option value="Retail advertisement" >Retail advertisement</option>
<option value="Recommendation">Recommendation</option>
<option value="Web search">Web search</option>
<option value="Local business web portal">Local business web portal</option>
<option value="Other">Other</option>
</select>
</TD>
</TR>
<TR>
<TD>Message</TD>
<TD width="2">
</TD>
<TD>
<textarea name="messagebox" id="messagebox" cols=50 rows=8></textarea>
</TD>
</TR>
<TR>
<TD> </TD>
</TR>
<TR>
<TD>Security code<span class="mandatoryField"> *</span></TD>
<TD width="2"></TD>
<TD>
<img src="imagebuilder.php" border="1">
<br>
<input MAXLENGTH=8 SIZE=8 name="userstring" id="userstring" type="text" value="">
</TD>
</TR>
<TR>
<TD></TD>
<TD width="2">
</TD>
<TD>
<br>
<input type="submit" value="Send" />
<input type="button" value="Clear" onClick="document.getElementById('contactForm').reset();" />
<span> </span>
<span><span class="mandatoryField"> *</span> Mandatory fields, please fill in.  <span class="optionalField"> *</span> One field required within a group.</span>
</TD>
</TR>
</TBODY>
</TABLE>
</FORM>
<hr />
<TABLE>
<TR>
<TD>
<TABLE
style="BORDER-COLLAPSE: collapse; BACKGROUND: none transparent scroll repeat 0% 0%"
border="0" cellSpacing="0" cellPadding="0">
<TBODY>
<TR>
<TD
style="BACKGROUND: none transparent scroll repeat 0% 0%; PADDING-TOP: 4px"
vAlign="top" align="left">
<TABLE
style="BORDER-COLLAPSE: collapse; BACKGROUND: none transparent scroll repeat 0% 0%"
border="0" cellSpacing="0"
width="100%">
<TBODY>
<TR>
<TD vAlign="top" align="left"><IMG
style="WIDTH: 46px; HEIGHT: 45px"
src="images/photo_11728_20100119.jpg" width="400" height="398"
alt=""></TD>
<TD
style="BACKGROUND: none transparent scroll repeat 0% 0%"
vAlign="center" align="left"><STRONG><FONT
color="#f7941d">
<?php hotspot(8, "Phone Numbers", "ADMIN", "ADMIN", ""); ?>
</FONT></STRONG>
</TD>
</TR>
<TR>
<TD vAlign="top" align="left"><IMG
style="WIDTH: 50px; HEIGHT: 55px"
src="images/photo_22462_20101105.jpg" width="398" height="301" alt="">
</TD>
<TD style="BACKGROUND: none transparent scroll repeat 0% 0%" vAlign="center" align="left">
<?php hotspot(9, "Email Address", "ADMIN", "ADMIN", ""); ?>
</TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
</TBODY>
</TABLE>
</TD>
<TD width="40x">
</TD>
<TD>
<!-- <iframe width="650" height="300" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.co.uk/maps?f=q&source=s_q&hl=en&geocode=&q=DE5+9SP&ie=UTF8&hq=&hnear=Ripley,+Derbyshire+DE5+9SP,+United+Kingdom&ll=53.037297,-1.381316&spn=0.007626,0.026071&z=14&vpsrc=6&output=embed"></iframe><br /><small><a title="Denby Equestrian" href="http://maps.google.co.uk/maps?f=q&source=embed&hl=en&geocode=&q=DE5+9SP&ie=UTF8&hq=&hnear=Ripley,+Derbyshire+DE5+9SP,+United+Kingdom&ll=53.032297,-1.381316&spn=0.007626,0.026071&z=14&vpsrc=6" style="color:#0000FF;text-align:left">View Larger Map</a></small> -->
<div id="map" style="width: 550px; height: 450px"></div>
</TD>
</TR>
</TABLE>
<script type="text/javascript">
//<![CDATA[
if (GBrowserIsCompatible()) {
var gmarkers = [];
var htmls = [];
var i = 0;
// A function to create the marker and set up the event window
// Dont try to unroll this function. It has to be here for the function closure
// Each instance of the function preserves the contends of a different instance
// of the "marker" and "html" variables which will be needed later when the event triggers.
function createMarker(point,html) {
var marker = new GMarker(point);
marker.openInfoWindowHtml(html);
return marker;
}
// Display the map, with some controls and set the initial location
var map = new GMap2(document.getElementById("map"));
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng(53.029097,-1.387316),13);
// Set up three markers with info windows
var point = new GLatLng(53.028097,-1.388016);
var marker = createMarker(point,'<div id="googleMap"><b>Denby Equestrian</b>,<br />Codnor Denby Lane,<br />Denby Village,<br />DE5 9SP<br></div>')
map.addOverlay(marker);
} else {
alert("Sorry, the Google Maps API is not compatible with this browser");
}
// This Javascript is based on code provided by the
// Community Church Javascript Team
// http://www.bisphamchurch.org.uk/
// http://econym.org.uk/gmap/
//]]>
</script>
</div>
</div>
</div>
</div>
<!-- End of content -->
<?php include("system-footer.php"); ?>