-
Notifications
You must be signed in to change notification settings - Fork 0
/
special_offer_reserve.php
149 lines (118 loc) · 4.2 KB
/
special_offer_reserve.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
<?
//
// RICS <info@rics.ru>
// Created on: <06-Nov-2001 15:28:37 bf>
//
// This source file is part of HRS software.
// Copyright (C) 1999-2001 RICS systems.
//
// This program is licence software;
// The licensee may modify or change this software program
// to suit licensee's needs, at licensee's own risk.
// The licensee may modify the source code for licensee's own use.
// However, the modified source code must not be resold or distributed.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// License for more details.
// RICS Ltd.,St.Chernigovskaya 8., Saint-Petersburg, Russia.tel./fax:
// +7 812 298 3611 E-mail: russia@rics.ru
//
include "./auth.php";
include "themes//header.php";
include "./functions.php";
?>
<tr><td valign=top>
<?
include "themes/menu.php";
?>
</td>
<td valign=top>
<?
$res = mysql_query("SELECT * FROM Roomtypes where flag='on'");
$i=1;
while( $row = mysql_fetch_array( $res ) )
{
$id[$i]=$row['id'];
$adult[$id[$i]]=$row['adult'];
$child[$id[$i]]=$row['child'];
$name[$id[$i]]=$row['name'];
$i++;
}
$k=$i;
$res2 = mysql_query("SELECT MAX(date) AS max, MIN(date) AS min FROM Rates WHERE special_desc_id='$spec_id'");
while( $row = mysql_fetch_array( $res2 ) ){
$start_date=$row['min'];
$end_date=$row['max'];
}
?>
<TABLE width="100%" height="100%" ALIGN=CENTER>
<TR ALIGN="CENTER" VALIGN="MIDDLE">
<TD>
<FONT FACE="Goudy Old Style, Conneticut Gothic, Times New Roman" SIZE=5 COLOR="#cc9900">
<BR><B><? print TEXT_CHECK_AVAILABILITY ?></B><P>
</FONT>
<TABLE BORDER="0" WIDTH="600" CELLPADDING="0" CELLSPACING="0" ALIGN="CENTER" VALIGN="MIDDLE">
<TR ALIGN="CENTER" VALIGN="MIDDLE">
<TD ALIGN=CENTER>
<FORM name="f1" action="rooms.php?special=1" method="post">
<TABLE BORDER=0 ALIGN=CENTER>
<TR ALIGN="LEFT">
<TD ALIGN="LEFT"><FONT FACE="Goudy Old Style, Conneticut Gothic, Times New Roman" SIZE=3 ><B><? print TEXT_ARRIVAL_DATE ?></B></FONT></TD>
<TD ALIGN="CENTER"><FONT FACE="Goudy Old Style, Conneticut Gothic, Times New Roman" SIZE=3 ><B><? print local_date($start_date) ?></B></FONT></TD>
</TR>
<tr align="center">
<TD ALIGN="LEFT"><FONT FACE="Goudy Old Style, Conneticut Gothic, Times New Roman" SIZE=3 ><B><? print TEXT_DEPARTURE_DATE ?></B></FONT></TD>
<TD><FONT FACE="Goudy Old Style, Conneticut Gothic, Times New Roman" SIZE=3 ><B><? print local_date($end_date) ?></B></FONT></TD>
</TR>
</TABLE>
<BR>
<HR WIDTH="200" COLOR="RED">
<BR>
<TABLE BORDER="0" ALIGN="CENTER">
<TR ALIGN="CENTER">
<TD></TD>
<? $i=1;
while ($i<$k)
{ ?>
<TD><FONT FACE="Goudy Old Style, Conneticut Gothic, Times New Roman" SIZE=3 ><? print type($id[$i]) ?></FONT></TD>
<? $i++;
}?>
</TR>
<TR ALIGN="CENTER">
<TD ALIGN="LEFT"><FONT FACE="Goudy Old Style, Conneticut Gothic, Times New Roman" SIZE=3 ><B><? print TEXT_ROOM_QUANTITY ?></B></FONT></TD>
<? $i=1;
while ($i<$k)
{ ?>
<TD><INPUT NAME="<? print $name[$id[$i]] ?>" VALUE="0" SIZE="2" MAXLENGTH="1"></TD>
<? $i++;
}?>
</TR>
<TR ALIGN="CENTER">
<TD ALIGN="LEFT"><FONT FACE="Goudy Old Style, Conneticut Gothic, Times New Roman" SIZE=3 ><B><? print TEXT_MAX_OCCUPANCY ?></B></FONT></TD>
<? $i=1;
while ($i<$k)
{
if ($id[$i]==5)
{ echo "<TD><SELECT NAME='exec_guest_number'><OPTION SELECTED>1<OPTION>2<OPTION>3</SELECT></TD>";}
else {
?>
<TD><FONT FACE="Goudy Old Style, Conneticut Gothic, Times New Roman" SIZE=3 ><B><? echo $adult[$id[$i]],"+",$child[$id[$i]]; ?></B></FONT></TD>
<? } $i++;
}?>
</TR>
</table>
<BR>
<HR WIDTH="200" COLOR="RED">
<BR>
<input type=hidden name="spec_id" value="<?echo $spec_id;?>">
<input type=hidden name="start_date" value="<?echo $start_date;?>">
<input type=hidden name="end_date" value="<?echo $end_date;?>">
<input type=submit value="<? print TEXT_CHECK_AVAILABIL ?>">
</form>
</TD>
</TR>
</TABLE>
</td></tr>
</td><tr></table>
<? include "themes/footer.php" ; ?>