-
Notifications
You must be signed in to change notification settings - Fork 0
/
index2.php
339 lines (280 loc) · 11.3 KB
/
index2.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
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>International Amani Lodge</title>
<link href="css/styles.css" rel="stylesheet" type="text/css" />
<!--sa nivo slider-->
<link rel="stylesheet" href="nivo-slider.css" type="text/css" media="screen" />
<link rel="stylesheet" href="style.css" type="text/css" media="screen" />
<!--sa calendar-->
<script type="text/javascript" src="js/datepicker.js"></script>
<link href="css/demo.css" rel="stylesheet" type="text/css" />
<link href="css/datepicker.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
//<![CDATA[
/*
A "Reservation Date" example using two datePickers
--------------------------------------------------
* Functionality
1. When the page loads:
- We clear the value of the two inputs (to clear any values cached by the browser)
- We set an "onchange" event handler on the startDate input to call the setReservationDates function
2. When a start date is selected
- We set the low range of the endDate datePicker to be the start date the user has just selected
- If the endDate input already has a date stipulated and the date falls before the new start date then we clear the input's value
* Caveats (aren't there always)
- This demo has been written for dates that have NOT been split across three inputs
*/
function makeTwoChars(inp) {
return String(inp).length < 2 ? "0" + inp : inp;
}
function initialiseInputs() {
// Clear any old values from the inputs (that might be cached by the browser after a page reload)
document.getElementById("sd").value = "";
document.getElementById("ed").value = "";
// Add the onchange event handler to the start date input
datePickerController.addEvent(document.getElementById("sd"), "change", setReservationDates);
}
var initAttempts = 0;
function setReservationDates(e) {
// Internet Explorer will not have created the datePickers yet so we poll the datePickerController Object using a setTimeout
// until they become available (a maximum of ten times in case something has gone horribly wrong)
try {
var sd = datePickerController.getDatePicker("sd");
var ed = datePickerController.getDatePicker("ed");
} catch (err) {
if(initAttempts++ < 10) setTimeout("setReservationDates()", 50);
return;
}
// Check the value of the input is a date of the correct format
var dt = datePickerController.dateFormat(this.value, sd.format.charAt(0) == "m");
// If the input's value cannot be parsed as a valid date then return
if(dt == 0) return;
// At this stage we have a valid YYYYMMDD date
// Grab the value set within the endDate input and parse it using the dateFormat method
// N.B: The second parameter to the dateFormat function, if TRUE, tells the function to favour the m-d-y date format
var edv = datePickerController.dateFormat(document.getElementById("ed").value, ed.format.charAt(0) == "m");
// Set the low range of the second datePicker to be the date parsed from the first
ed.setRangeLow( dt );
// If theres a value already present within the end date input and it's smaller than the start date
// then clear the end date value
if(edv < dt) {
document.getElementById("ed").value = "";
}
}
function removeInputEvents() {
// Remove the onchange event handler set within the function initialiseInputs
datePickerController.removeEvent(document.getElementById("sd"), "change", setReservationDates);
}
datePickerController.addEvent(window, 'load', initialiseInputs);
datePickerController.addEvent(window, 'unload', removeInputEvents);
//]]>
</script>
<!--sa error trapping-->
<script type="text/javascript">
function validateForm()
{
var x=document.forms["index"]["start"].value;
if (x==null || x=="")
{
alert("you must enter your check in Date(click the calendar icon)");
return false;
}
var y=document.forms["index"]["end"].value;
if (y==null || y=="")
{
alert("you must enter your check out Date(click the calendar icon)");
return false;
}
}
</script>
<!--end sa nivo slider-->
<style type="text/css">
<!--
.style1 {font-size: 12px}
.style2 {
font-size: 1.4em;
font-weight: bold;
color: #FFFFFF;
}
.style3 {
font-size: 16px;
font-weight: bold;
}
-->
</style>
<!--sa poip up-->
<link href="src/facebox.css" media="screen" rel="stylesheet" type="text/css" />
<script src="lib/jquery.js" type="text/javascript"></script>
<script src="src/facebox.js" type="text/javascript"></script>
<script type="text/javascript">
jQuery(document).ready(function($) {
$('a[rel*=facebox]').facebox({
loadingImage : 'src/loading.gif',
closeImage : 'src/closelabel.png'
})
})
</script>
</head>
<body>
<!-- TOP -->
<div id="top1"><a href="index.php"><img src="images/logo.jpg" width="73" border="0" style="margin-top:27px; margin-left:20px;" /></a></div>
<div id="top">
<ul class="menu">
<li class="home1"><a href="index.php">Home</a></li>
<li class="about"><a href="about.php">About</a></li>
<li class="contacts"><a href="contact.php">Contacts</a></li>
<li class="renting"><a href="gallery.php">GALLERY</a></li>
<li class="selling"><a href="rates.php">RATES</a></li>
</ul>
</div>
<!-- HEADER -->
<div id="header">
<div id="formPan">
<h2 class="style2">RESERVATION FORM </h2>
<h3 class="style2"><?php echo $_SESSION['SESS_FIRST_NAME'];?> </h3>
<form method="post" action="testing.php" name="index" onsubmit="return validateForm()">
<div style="margin-top:20px; margin-left:10px;">
<table width="186" border="0">
<tr>
<td width="69"><div align="right">
<label>Start Date : </label>
</div></td>
<td width="101"><input type="text" class="w8em format-d-m-y highlight-days-67 range-low-today" name="start" id="sd" value="" maxlength="10" readonly="readonly" /></td>
</tr>
<tr>
<td><div align="right">
<label>End Date : </label>
</div></td>
<td><input type="text" class="w8em format-d-m-y highlight-days-67 range-low-today" name="end" id="ed" value="" maxlength="10" readonly="readonly" /></td>
</tr>
<tr>
<td><div align="right">
<label>Adult : </label>
</div></td>
<td><select name="adult" class="ed" >
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
</select></td>
</tr>
<tr>
<td><div align="right">
<div align="right">
<label>Child : </label>
</div>
</div></td>
<td><select name="child" class="ed">
<option>0</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
</select></td>
</tr>
<tr>
<td><div align="right"></div></td>
<td><input name="Input" type="submit" value="Check Availability" id="button" /></td>
</tr>
<tr>
<td colspan="2"><div align="right"><a rel="facebox" href="modifyindex.php">Modify</a> / <a href="cancelindex.php">Cancel</a> Reservation </div></td>
</tr>
</table>
</div>
</form>
</div>
<div id="mainimgPan">
<div id="mainimg">
<div id="slider" class="nivoSlider" style="float:right;">
<img src="images/toystory.jpg" alt="" />
<img src="images/up.jpg" alt="" />
<img src="images/walle.jpg" alt="" />
<img src="images/nemo.jpg" alt=""/>
<img src="images/basecamp.jpg" alt=""/>
<img src="images/buffaloes.jpg" alt=""/>
<img src="images/oup.jpg" alt=""/>
<img src="images/ten.jpg" alt=""/> </div>
</div>
</div>
</div>
<!-- CONTENT -->
<div id="content">
<div id="leftPan">
<div id="services">
<h2><strong>International Amani Lodge AMENITIES</strong></h2>
<p>
<ul>
<li>AIR CONDITIONING IN EVERY ROOM</li>
<br />
<li>FREE BREAKFAST AND COFFEE </li><br />
<li>BAR AND COFFEE SHOP </li><br />
<li>FUNCTION ROOM </li><br />
<li>24 HOURS STAND BY GENERATOR </li><br />
<li>LAUNDRY AND PRESSING </li><br />
<li>LONG DISTANCE AND FAX SERVICE </li><br />
<li>RESATAURANT </li><br />
<li>HOT AND COLD SHOWERS </li><br />
<li>CITY WIDE TAXI SERVICE</li><br />
<li>TELEPHONE AND CABLE TV </li><br />
<li>FREE WIFI</li><br />
<li>GAME PARK TOUR</li><br />
<li>SWIMMING POOL</li>
</ul>
</p>
</p>
</div>
<div id="services">
<a href="admin_index.php">adminLogin</a><br />
</div>
</div>
<div id="rightPan">
<div id="welcome">
<h2></h2>
<h3></h3>
<p align="justify" class="style1">International Amani Lodge, "Your Urban Bed and Breakfast", is here to give you a relaxing and pleasurable stay while on a Business or Leisure Trip to Masai Mara National Reserve<br />
Thank you for choosing International Amani Lodge </p>
</div>
<div class="spacerline"></div>
<div id="fcontainer">
<div id="featured">
<p class="feat1"> <span class="style3">Superior</span><br />
<img src="images/superior.jpg" style="float:left;" /> | <span class="price">Price:</span> <span class="number">ksh9,500.00</span><br />
This room is composed of three king sized bed,with air conditioned and a free wifi connection. This room also has a comfort room wich is suitable for you. <a href="#">more...</a></p><br />
<p class="feat2"> <span class="style3">Deluxe</span><br />
<img src="images/deluxe.jpg" style="float:left;" /> | <span class="price">Price:</span> <span class="number">ksh 8,500.00</span><br />
This room is a deluxe room with a double king sized bed with hot and cold shower and a free wifi connection<a href="#">more...</a></p><br />
<p class="feat3"> <span class="style3">Standard</span><br />
<img src="images/standard.jpg" style="float:left;" />| <span class="price">Price:</span> <span class="number">ksh 7500.00</span><br />
This room is composed of a queen sized bed with a an entertainment televesion set and a comfort room which is suitable for you. This room includes a wifi connection.<a href="#">more...</a></p><br />
<p class="feat4"> <span class="style3">Tent</span><br />
<img src="images/tent.jpg" style="float:left;" /> | <span class="price">Price:</span> <span class="number">ksh 6000.00</span><br />
This room has 2 double mahogany bed,a television set and a free wifi connection<a href="#">more...</a></p><br />
</div>
</div>
</div>
<div class="clear"></div>
</div>
<!-- FOOTER -->
<div id="footer">
Contact us through: 0727827359
<p><a href="index.php">HOME</a> |<a href="about.php"> ABOUT US </a>|<a href="contact.php"> CONTACTS </a>|<a href="gallery.php"> GALLERY </a>|<a href="rates.php"> ROOM RATES </a> |<a href="terms.php">TERMS AND CONDITIONS</a></p>
</div>
<!-- BOTTOM -->
<div id="bottom">
<p>Copyright ©International Amani Lodge. Designed by <a href="#" target="_blank">SHEILA</a></p>
</div>
<script type="text/javascript" src="scripts/jquery-1.4.3.min.js"></script>
<script type="text/javascript" src="jquery.nivo.slider.pack.js"></script>
<script type="text/javascript">
$(window).load(function() {
$('#slider').nivoSlider();
});
</script>
</body>
</html>