1 | |||||
2 | <style type="text/css"> |
||||
3 | .ftd{ |
||||
4 | background-color:#FFFFFF; |
||||
5 | color:#000000; |
||||
6 | text-align:left; |
||||
7 | text-transform:capitalize; |
||||
8 | font-size:12px; |
||||
9 | text-align: center; |
||||
10 | |||||
11 | } |
||||
12 | |||||
13 | |||||
14 | |||||
15 | .ltd{ |
||||
16 | background-color:#f5f3f4; |
||||
17 | text-align:left; |
||||
18 | text-transform:capitalize; |
||||
19 | color:#000000; |
||||
20 | text-align: center; |
||||
21 | |||||
22 | } |
||||
23 | |||||
24 | .iframe { |
||||
25 | position:static; |
||||
26 | border:none; |
||||
27 | width: 100%; |
||||
28 | height: 460px; |
||||
29 | overflow: auto; |
||||
30 | margin-bottom:0px; |
||||
31 | |||||
32 | } |
||||
33 | </style> |
||||
34 | |||||
35 | <style> |
||||
36 | #dhtmltooltip{ |
||||
37 | position: absolute; |
||||
38 | text-align:left; |
||||
39 | width: 200px; |
||||
40 | padding: 6px; |
||||
41 | background-color: #706c6f; |
||||
42 | color: #E7E7E7; |
||||
43 | font-weight:bold; |
||||
44 | visibility: hidden; |
||||
45 | z-index: 100; |
||||
46 | } |
||||
47 | </style> |
||||
48 | |||||
49 | <?php |
||||
50 | switch (isset($_GET['act']) && $_GET['act']) { |
||||
51 | |||||
52 | default: |
||||
53 | |||||
54 | if ($_GET['fdate']) { |
||||
55 | $fdate = $_GET['fdate']; |
||||
56 | } else { |
||||
57 | $hour = time() - (1 * 1 * 60 * 60); |
||||
58 | $fdate = date('Y-m-d', $hour); |
||||
59 | } |
||||
60 | |||||
61 | if ($_GET['ldate']) { |
||||
62 | $ldate = $_GET['ldate']; |
||||
63 | } else { |
||||
64 | $hour = time() - (1 * 1 * 60 * 60) + (168 * 1 * 60 * 60); |
||||
65 | $ldate = date('Y-m-d', $hour); |
||||
66 | } |
||||
67 | |||||
68 | $fdate1 = date('m/d/Y', strtotime($fdate)); |
||||
69 | $ldate1 = date('m/d/Y', strtotime($ldate)); |
||||
70 | |||||
71 | $fday = date('d', strtotime($fdate)); |
||||
72 | $fmonth = date('m', strtotime($fdate)); |
||||
73 | $fyear = date('Y', strtotime($fdate)); |
||||
74 | |||||
75 | $fmonthName = date('M', mktime(0, 0, 0, $fmonth, 10)); |
||||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||||
76 | |||||
77 | $lday = mysql_query("SELECT substr(LAST_DAY('$fdate'),-2,2) as lastday "); |
||||
0 ignored issues
–
show
The function
mysql_query() has been deprecated: 5.5 Send a MySQL query
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
78 | $l = mysql_fetch_array($lday); |
||||
0 ignored issues
–
show
The function
mysql_fetch_array() has been deprecated: 5.5 Fetch a result row as an associative array, a numeric array, or both
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
79 | $f_lastday = $l['lastday']; |
||||
80 | $f_jml = ($f_lastday - $fday) + 1; |
||||
81 | |||||
82 | //$ldate = '2014-08-15'; |
||||
83 | |||||
84 | $lday = date('d', strtotime($ldate)); |
||||
85 | $lmonth = date('m', strtotime($ldate)); |
||||
86 | $lyear = date('Y', strtotime($ldate)); |
||||
87 | $l_jml = $lday; |
||||
88 | |||||
89 | $lmonthName = date('M', mktime(0, 0, 0, $lmonth, 10)); |
||||
90 | |||||
91 | $jml = ($lday - $fday) + 1; |
||||
92 | |||||
93 | if ($_GET['ldate']) { |
||||
94 | if ($lmonth == $fmonth and $lyear == $fyear) { |
||||
95 | $jcol = $jml; |
||||
96 | } else { |
||||
97 | $jcol = $f_jml + $l_jml; |
||||
98 | } |
||||
99 | } else { |
||||
100 | $jcol = 8; |
||||
101 | } |
||||
102 | |||||
103 | ?> |
||||
104 | |||||
105 | <div class=""> |
||||
106 | |||||
107 | <div class="row"> |
||||
108 | |||||
109 | <form method=get action='<?=$_SERVER[PHP_SELF]?>' name='myform'> |
||||
0 ignored issues
–
show
|
|||||
110 | <input type="hidden" name="module" value="<?=$module?>"/> |
||||
111 | <input type="hidden" name="id_module" value="<?=$id?>" /> |
||||
112 | <div class="col-md-12 col-sm-12 col-xs-12"> |
||||
113 | <div class="x_panel"> |
||||
114 | <div class="x_title"> |
||||
115 | <h2>Room View</h2> |
||||
116 | |||||
117 | <div class="form-group"> |
||||
118 | <div class="col-md-6 col-sm-6 col-xs-12" > |
||||
119 | <select name="room_type" class="form-control1" required onChange="document.myform.submit();"> |
||||
120 | <option value="">--------- Room Type ---------</option> |
||||
121 | <?php |
||||
122 | $query = mysql_query('SELECT * FROM room_type ORDER BY room_type'); |
||||
0 ignored issues
–
show
The function
mysql_query() has been deprecated: 5.5 Send a MySQL query
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
123 | if ($query && mysql_num_rows($query) > 0) { |
||||
0 ignored issues
–
show
The function
mysql_num_rows() has been deprecated: 5.5
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
124 | while ($row = mysql_fetch_object($query)) { |
||||
0 ignored issues
–
show
The function
mysql_fetch_object() has been deprecated: 5.5 Fetch a result row as an object
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
125 | echo '<option value="'.$row->id_room_type.'"'; |
||||
126 | if ($row->id_room_type == $_GET['room_type']) { |
||||
127 | echo ' selected'; |
||||
128 | } |
||||
129 | echo '>'.$row->room_type.'</option>'; |
||||
130 | } |
||||
131 | } |
||||
132 | ?> |
||||
133 | </select> |
||||
134 | </div> |
||||
135 | |||||
136 | <div class="pull-right" style='text-align:right'> |
||||
137 | |||||
138 | <i class="glyphicon glyphicon-calendar fa fa-calendar"></i> |
||||
139 | <input type="date" name='fdate' value="<?=$fdate?>" required="required" class="form-control-fdate" onChange="document.myform.submit();"> |
||||
140 | - |
||||
141 | <input type="date" name='ldate' value="<?=$ldate?>" required="required" class="form-control-ldate" onChange="document.myform.submit();"> |
||||
142 | |||||
143 | </div> |
||||
144 | <div class="clearfix"></div> |
||||
145 | </div> |
||||
146 | <div class="x_content"> |
||||
147 | <div id="tablewrapper"> |
||||
148 | </form> |
||||
149 | <br> |
||||
150 | <div class='iframe'> |
||||
151 | <table cellpadding="0" width='100%' cellspacing="0" border="0" class="tinytable table-striped responsive-utilities jambo_table" > |
||||
152 | <thead> |
||||
153 | <tr> |
||||
154 | <th style='text-align:center;' width='17%' ><h3 style='font-size:12px;'>Room</h3></th> |
||||
155 | |||||
156 | <?php |
||||
157 | $col = (83 / $jcol); |
||||
158 | |||||
159 | if ($lmonth == $fmonth and $lyear == $fyear) { |
||||
160 | for ($i = $fday; $i <= $lday; $i++) { |
||||
161 | if (strlen($i) == '1') { |
||||
162 | $tgl = '0'.$i; |
||||
163 | } else { |
||||
164 | $tgl = $i; |
||||
165 | } |
||||
166 | |||||
167 | $tanggal = $fyear.'-'.$fmonth.'-'.$tgl; |
||||
168 | |||||
169 | $DayName = date('D', strtotime($tanggal)); |
||||
170 | |||||
171 | $sSQL = "select sdate from special_day_detail where sdate in ('$tanggal')"; |
||||
172 | $sday = mysql_query($sSQL); |
||||
0 ignored issues
–
show
The function
mysql_query() has been deprecated: 5.5 Send a MySQL query
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
173 | $s = mysql_fetch_array($sday); |
||||
0 ignored issues
–
show
The function
mysql_fetch_array() has been deprecated: 5.5 Fetch a result row as an associative array, a numeric array, or both
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
174 | |||||
175 | $nday = date('N', strtotime($tanggal)); |
||||
176 | |||||
177 | if ($s['sdate']) { |
||||
178 | $bg = '#eba51c'; |
||||
179 | } elseif ($nday == '6' or $nday == '7') { |
||||
180 | $bg = '#eb1c41'; |
||||
181 | } else { |
||||
182 | $bg = ''; |
||||
183 | } |
||||
184 | |||||
185 | echo"<th style='text-align:center;background-color:$bg' width='$col%'> |
||||
186 | <h3 style='font-size:12px;'> |
||||
187 | $tgl<BR> |
||||
188 | $fmonthName<BR> |
||||
189 | $DayName |
||||
190 | </h3> |
||||
191 | </th>"; |
||||
192 | } |
||||
193 | } else { |
||||
194 | for ($i = $fday; $i <= $f_lastday; $i++) { |
||||
195 | if (strlen($i) == '1') { |
||||
196 | $tgl = '0'.$i; |
||||
197 | } else { |
||||
198 | $tgl = $i; |
||||
199 | } |
||||
200 | |||||
201 | $tanggal = $fyear.'-'.$fmonth.'-'.$tgl; |
||||
202 | |||||
203 | $DayName = date('D', strtotime($tanggal)); |
||||
204 | |||||
205 | $sSQL = "select sdate from special_day_detail where sdate in ('$tanggal')"; |
||||
206 | $sday = mysql_query($sSQL); |
||||
0 ignored issues
–
show
The function
mysql_query() has been deprecated: 5.5 Send a MySQL query
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
207 | $s = mysql_fetch_array($sday); |
||||
0 ignored issues
–
show
The function
mysql_fetch_array() has been deprecated: 5.5 Fetch a result row as an associative array, a numeric array, or both
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
208 | |||||
209 | $nday = date('N', strtotime($tanggal)); |
||||
210 | |||||
211 | if ($s['sdate']) { |
||||
212 | $bg = '#eba51c'; |
||||
213 | } elseif ($nday == '6' or $nday == '7') { |
||||
214 | $bg = '#eb1c41'; |
||||
215 | } else { |
||||
216 | $bg = ''; |
||||
217 | } |
||||
218 | |||||
219 | echo"<th style='text-align:center;background-color:$bg' width='$col%'> |
||||
220 | <h3 style='font-size:12px;'> |
||||
221 | $tgl<BR> |
||||
222 | $fmonthName<BR> |
||||
223 | $DayName |
||||
224 | </h3> |
||||
225 | </th>"; |
||||
226 | } |
||||
227 | |||||
228 | for ($i = 1; $i <= $lday; $i++) { |
||||
229 | if (strlen($i) == '1') { |
||||
230 | $tgl = '0'.$i; |
||||
231 | } else { |
||||
232 | $tgl = $i; |
||||
233 | } |
||||
234 | |||||
235 | $tanggal = $lyear.'-'.$lmonth.'-'.$tgl; |
||||
236 | |||||
237 | $DayName = date('D', strtotime($tanggal)); |
||||
238 | |||||
239 | $sSQL = "select sdate from special_day_detail where sdate in ('$tanggal')"; |
||||
240 | $sday = mysql_query($sSQL); |
||||
0 ignored issues
–
show
The function
mysql_query() has been deprecated: 5.5 Send a MySQL query
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
241 | $s = mysql_fetch_array($sday); |
||||
0 ignored issues
–
show
The function
mysql_fetch_array() has been deprecated: 5.5 Fetch a result row as an associative array, a numeric array, or both
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
242 | |||||
243 | $nday = date('N', strtotime($tanggal)); |
||||
244 | |||||
245 | if ($s['sdate']) { |
||||
246 | $bg = '#eba51c'; |
||||
247 | } elseif ($nday == '6' or $nday == '7') { |
||||
248 | $bg = '#eb1c41'; |
||||
249 | } else { |
||||
250 | $bg = ''; |
||||
251 | } |
||||
252 | |||||
253 | echo"<th style='text-align:center;background-color:$bg' width='$col%'> |
||||
254 | <h3 style='font-size:12px;'> |
||||
255 | $tgl<BR> |
||||
256 | $lmonthName<BR> |
||||
257 | $DayName |
||||
258 | </h3> |
||||
259 | </th>"; |
||||
260 | } |
||||
261 | } |
||||
262 | |||||
263 | ?> |
||||
264 | |||||
265 | </tr> |
||||
266 | |||||
267 | </thead> |
||||
268 | <tbody> |
||||
269 | |||||
270 | |||||
271 | |||||
272 | <?php |
||||
273 | $tSQL = 'SELECT * FROM room_type '; |
||||
274 | |||||
275 | if ($_GET['room_type']) { |
||||
276 | $tSQL .= "WHERE id_room_type = '$_GET[room_type]'"; |
||||
277 | } |
||||
278 | |||||
279 | $tSQL .= 'ORDER BY room_type'; |
||||
280 | |||||
281 | $type = mysql_query($tSQL); |
||||
0 ignored issues
–
show
The function
mysql_query() has been deprecated: 5.5 Send a MySQL query
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
282 | |||||
283 | while ($t = mysql_fetch_array($type)) { |
||||
0 ignored issues
–
show
The function
mysql_fetch_array() has been deprecated: 5.5 Fetch a result row as an associative array, a numeric array, or both
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
284 | $id_room_type = $t['id_room_type']; |
||||
285 | |||||
286 | echo'<tr>'; |
||||
287 | echo"<td style='background-color: #1ABB9C;color: #E7E7E7;'>".$t['room_type'].'</td>'; |
||||
288 | |||||
289 | if ($lmonth == $fmonth and $lyear == $fyear) { |
||||
290 | for ($i = $fday; $i <= $lday; $i++) { |
||||
291 | if (strlen($i) == '1') { |
||||
292 | $tgl = '0'.$i; |
||||
293 | } else { |
||||
294 | $tgl = $i; |
||||
295 | } |
||||
296 | |||||
297 | $tanggal = $fyear.'-'.$fmonth.'-'.$tgl; |
||||
298 | |||||
299 | echo"<td style='background-color: #1ABB9C;color: #E7E7E7;'> |
||||
300 | </td>"; |
||||
301 | } |
||||
302 | } else { |
||||
303 | for ($i = $fday; $i <= $f_lastday; $i++) { |
||||
304 | if (strlen($i) == '1') { |
||||
305 | $tgl = '0'.$i; |
||||
306 | } else { |
||||
307 | $tgl = $i; |
||||
308 | } |
||||
309 | |||||
310 | $tanggal = $fyear.'-'.$fmonth.'-'.$tgl; |
||||
311 | |||||
312 | $DayName = date('D', strtotime($tanggal)); |
||||
313 | |||||
314 | echo"<td style='background-color: #1ABB9C;color: #E7E7E7;'> |
||||
315 | </td>"; |
||||
316 | } |
||||
317 | |||||
318 | for ($i = 1; $i <= $lday; $i++) { |
||||
319 | if (strlen($i) == '1') { |
||||
320 | $tgl = '0'.$i; |
||||
321 | } else { |
||||
322 | $tgl = $i; |
||||
323 | } |
||||
324 | |||||
325 | $tanggal = $lyear.'-'.$lmonth.'-'.$tgl; |
||||
326 | |||||
327 | $DayName = date('D', strtotime($tanggal)); |
||||
328 | |||||
329 | echo"<td style='background-color: #1ABB9C;color: #E7E7E7;'> |
||||
330 | </td>"; |
||||
331 | } |
||||
332 | } |
||||
333 | |||||
334 | echo'</tr>'; |
||||
335 | |||||
336 | $rSQL = "SELECT * FROM room WHERE id_room_type = '$id_room_type' ORDER BY room_no"; |
||||
337 | |||||
338 | $room = mysql_query($rSQL); |
||||
0 ignored issues
–
show
The function
mysql_query() has been deprecated: 5.5 Send a MySQL query
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
339 | |||||
340 | $no = 1; |
||||
341 | while ($r = mysql_fetch_array($room)) { |
||||
0 ignored issues
–
show
The function
mysql_fetch_array() has been deprecated: 5.5 Fetch a result row as an associative array, a numeric array, or both
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
342 | $aktif = $r['aktif']; |
||||
343 | |||||
344 | if (($no % 2) == 0) { |
||||
345 | $sty = 'ftd'; |
||||
346 | } else { |
||||
347 | $sty = 'ltd'; |
||||
348 | } |
||||
349 | |||||
350 | $id_room = $r['id_room']; |
||||
351 | |||||
352 | echo'<tr>'; |
||||
353 | echo"<td style='padding-left:20px;text-align:left;' class=$sty>".$r['room_no'].'</td>'; |
||||
354 | |||||
355 | if ($lmonth == $fmonth and $lyear == $fyear) { |
||||
356 | for ($i = $fday; $i <= $lday; $i++) { |
||||
357 | if (strlen($i) == '1') { |
||||
358 | $tgl = '0'.$i; |
||||
359 | } else { |
||||
360 | $tgl = $i; |
||||
361 | } |
||||
362 | |||||
363 | $tanggal = $fyear.'-'.$fmonth.'-'.$tgl; |
||||
364 | |||||
365 | echo"<td class=$sty style='padding:0;'>"; |
||||
366 | |||||
367 | if ($aktif == 'T') { |
||||
368 | echo" |
||||
369 | <i class='fa fa-warning' style='color: red;font-size:18px' onMouseover=\"ddrivetip('Out of Order')\"; onMouseout=\"hideddrivetip()\"></i> |
||||
370 | "; |
||||
371 | } |
||||
372 | |||||
373 | echo"<table cellpadding='0' cellspacing='0' border='0' width='100%'>"; |
||||
374 | echo'<tr>'; |
||||
375 | |||||
376 | $cSQL = "SELECT a.id_room,a.room_no,b.rdate,b.status,a.aktif,c.guest,c.initial,d.legend |
||||
377 | FROM room a left join room_reservation b |
||||
378 | ON a.id_room = b.id_room |
||||
379 | and b.status in ('0','1') |
||||
380 | LEFT JOIN guest c |
||||
381 | ON b.id_guest = c.id_guest |
||||
382 | LEFT JOIN room_status d |
||||
383 | ON b.id_room_status = d.id_room_status |
||||
384 | WHERE a.id_room = '$id_room' |
||||
385 | AND b.rdate = '$tanggal' |
||||
386 | ORDER BY a.room_no,b.id_reservation"; |
||||
387 | |||||
388 | $croom = mysql_query($cSQL); |
||||
0 ignored issues
–
show
The function
mysql_query() has been deprecated: 5.5 Send a MySQL query
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
389 | |||||
390 | $jml = mysql_num_rows($croom); |
||||
0 ignored issues
–
show
The function
mysql_num_rows() has been deprecated: 5.5
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
391 | |||||
392 | //$c=mysql_fetch_array($croom); |
||||
393 | while ($c = mysql_fetch_array($croom)) { |
||||
0 ignored issues
–
show
The function
mysql_fetch_array() has been deprecated: 5.5 Fetch a result row as an associative array, a numeric array, or both
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
394 | $rdate = $c['rdate']; |
||||
395 | |||||
396 | $lSQL = "SELECT '$rdate' - INTERVAL 1 DAY as ldate, '$rdate' + INTERVAL 1 DAY as ndate "; |
||||
397 | //echo $lSQL; |
||||
398 | $ld = mysql_query($lSQL); |
||||
0 ignored issues
–
show
The function
mysql_query() has been deprecated: 5.5 Send a MySQL query
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
399 | |||||
400 | $l = mysql_fetch_array($ld); |
||||
0 ignored issues
–
show
The function
mysql_fetch_array() has been deprecated: 5.5 Fetch a result row as an associative array, a numeric array, or both
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
401 | |||||
402 | $ldate = $l['ldate']; |
||||
403 | |||||
404 | $ndate = $l['ndate']; |
||||
405 | |||||
406 | $cSQL1 = "SELECT * from room_reservation |
||||
407 | WHERE id_room = '$id_room' |
||||
408 | AND rdate = '$ldate'"; |
||||
409 | |||||
410 | $lroom = mysql_query($cSQL1); |
||||
0 ignored issues
–
show
The function
mysql_query() has been deprecated: 5.5 Send a MySQL query
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
411 | |||||
412 | if ($ldate) { |
||||
413 | $ljml = mysql_num_rows($lroom); |
||||
0 ignored issues
–
show
The function
mysql_num_rows() has been deprecated: 5.5
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
414 | } else { |
||||
415 | $ljml = '0'; |
||||
416 | } |
||||
417 | |||||
418 | $cSQL2 = "SELECT * from room_reservation |
||||
419 | WHERE id_room = '$id_room' |
||||
420 | AND rdate = '$ndate'"; |
||||
421 | |||||
422 | $nroom = mysql_query($cSQL2); |
||||
0 ignored issues
–
show
The function
mysql_query() has been deprecated: 5.5 Send a MySQL query
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
423 | |||||
424 | $njml = mysql_num_rows($nroom); |
||||
0 ignored issues
–
show
The function
mysql_num_rows() has been deprecated: 5.5
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
425 | |||||
426 | if ($ndate) { |
||||
427 | $njml = mysql_num_rows($nroom); |
||||
0 ignored issues
–
show
The function
mysql_num_rows() has been deprecated: 5.5
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
428 | } else { |
||||
429 | $njml = '0'; |
||||
430 | } |
||||
431 | |||||
432 | $guest = $c['guest']; |
||||
433 | |||||
434 | $legend = $c['legend']; |
||||
435 | $status = $c['status']; |
||||
436 | |||||
437 | if ($status == 0) { |
||||
438 | $icolor = '#fff'; |
||||
439 | } else { |
||||
440 | $icolor = '#fff'; |
||||
441 | } |
||||
442 | |||||
443 | if ($status == 0) { |
||||
444 | $istatus = 'Reserved'; |
||||
445 | } elseif ($status == 1) { |
||||
446 | $istatus = 'Check In'; |
||||
447 | } else { |
||||
448 | $istatus = 'Check Out'; |
||||
449 | } |
||||
450 | |||||
451 | $iguest = trim($c['initial']).'. '.trim($c['guest']).' | '.$istatus; |
||||
452 | |||||
453 | if ($c['initial'] == 'Mr ') { |
||||
454 | $icon = 'fa fa-male'; |
||||
455 | } else { |
||||
456 | $icon = 'fa fa-female'; |
||||
457 | } |
||||
458 | |||||
459 | echo $ljml.'-'.$jml.'-'.$njml; |
||||
460 | |||||
461 | //if ($jml == '1') { |
||||
462 | |||||
463 | if ($ljml == '0' and $jml == '1' and $njml == '1') { |
||||
464 | echo"<td width='50%'> |
||||
465 | </td>"; |
||||
466 | } |
||||
467 | |||||
468 | if ($guest) { |
||||
469 | if ($guest) { |
||||
470 | echo"<td style='background-color:$legend;' width='50%'> |
||||
471 | <a href='' onMouseover=\"ddrivetip('$iguest')\"; onMouseout=\"hideddrivetip()\" title=''><i class='$icon' style='color: $icolor;font-size:15px'></i></a> |
||||
472 | </td>"; |
||||
473 | } else { |
||||
474 | echo"<td style='background-color:$legend;' width='50%'> |
||||
475 | </td>"; |
||||
476 | } |
||||
477 | } |
||||
478 | } |
||||
479 | |||||
480 | if ($ljml != '0' and $jml == '1') { |
||||
481 | echo"<td width='50%'> |
||||
482 | </td>"; |
||||
483 | } |
||||
484 | |||||
485 | //} |
||||
486 | |||||
487 | echo'</tr>'; |
||||
488 | echo'</table>'; |
||||
489 | echo'</td>'; |
||||
490 | } |
||||
491 | } else { |
||||
492 | for ($i = $fday; $i <= $f_lastday; $i++) { |
||||
493 | if (strlen($i) == '1') { |
||||
494 | $tgl = '0'.$i; |
||||
495 | } else { |
||||
496 | $tgl = $i; |
||||
497 | } |
||||
498 | |||||
499 | $tanggal = $fyear.'-'.$fmonth.'-'.$tgl; |
||||
500 | |||||
501 | echo"<td class=$sty style='padding:0;'>"; |
||||
502 | |||||
503 | if ($aktif == 'T') { |
||||
504 | echo" |
||||
505 | <i class='fa fa-warning' style='color: red;font-size:18px' onMouseover=\"ddrivetip('Out of Order')\"; onMouseout=\"hideddrivetip()\"></i> |
||||
506 | "; |
||||
507 | } |
||||
508 | |||||
509 | echo"<table cellpadding='0' cellspacing='0' border='0' width='100%'>"; |
||||
510 | echo'<tr>'; |
||||
511 | |||||
512 | $cSQL = "SELECT a.id_room,a.room_no,b.rdate,b.status,a.aktif,c.guest,c.initial,d.legend |
||||
513 | FROM room a left join room_reservation b |
||||
514 | ON a.id_room = b.id_room |
||||
515 | and b.status in ('0','1') |
||||
516 | LEFT JOIN guest c |
||||
517 | ON b.id_guest = c.id_guest |
||||
518 | LEFT JOIN room_status d |
||||
519 | ON b.id_room_status = d.id_room_status |
||||
520 | WHERE a.id_room = '$id_room' |
||||
521 | AND b.rdate = '$tanggal' |
||||
522 | ORDER BY a.room_no"; |
||||
523 | |||||
524 | $croom = mysql_query($cSQL); |
||||
0 ignored issues
–
show
The function
mysql_query() has been deprecated: 5.5 Send a MySQL query
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
525 | |||||
526 | $jml = mysql_num_rows($croom); |
||||
0 ignored issues
–
show
The function
mysql_num_rows() has been deprecated: 5.5
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
527 | |||||
528 | //$c=mysql_fetch_array($croom); |
||||
529 | while ($c = mysql_fetch_array($croom)) { |
||||
0 ignored issues
–
show
The function
mysql_fetch_array() has been deprecated: 5.5 Fetch a result row as an associative array, a numeric array, or both
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
530 | $guest = $c['guest']; |
||||
531 | |||||
532 | $legend = $c['legend']; |
||||
533 | $status = $c['status']; |
||||
534 | |||||
535 | if ($status == 0) { |
||||
536 | $icolor = '#fff'; |
||||
537 | } else { |
||||
538 | $icolor = '#fff'; |
||||
539 | } |
||||
540 | |||||
541 | if ($status == 0) { |
||||
542 | $istatus = 'Reserved'; |
||||
543 | } elseif ($status == 1) { |
||||
544 | $istatus = 'Check In'; |
||||
545 | } else { |
||||
546 | $istatus = 'Check Out'; |
||||
547 | } |
||||
548 | |||||
549 | $iguest = trim($c['initial']).'. '.trim($c['guest']).' | '.$istatus; |
||||
550 | |||||
551 | if ($c['initial'] == 'Mr ') { |
||||
552 | $icon = 'fa fa-male'; |
||||
553 | } else { |
||||
554 | $icon = 'fa fa-female'; |
||||
555 | } |
||||
556 | |||||
557 | if ($guest) { |
||||
558 | if ($guest) { |
||||
559 | echo"<td style='background-color:$legend;' width='50%'> |
||||
560 | <a href='' onMouseover=\"ddrivetip('$iguest')\"; onMouseout=\"hideddrivetip()\" title=''><i class='$icon' style='color: $icolor;font-size:15px'></i></a> |
||||
561 | </td>"; |
||||
562 | } else { |
||||
563 | echo"<td style='background-color:$legend;' width='50%'> |
||||
564 | </td>"; |
||||
565 | } |
||||
566 | } |
||||
567 | } |
||||
568 | |||||
569 | if ($jml == '1') { |
||||
570 | echo"<td width='50%'> |
||||
571 | </td>"; |
||||
572 | } |
||||
573 | |||||
574 | echo'</tr>'; |
||||
575 | echo'</table>'; |
||||
576 | echo'</td>'; |
||||
577 | } |
||||
578 | |||||
579 | for ($i = 1; $i <= $lday; $i++) { |
||||
580 | if (strlen($i) == '1') { |
||||
581 | $tgl = '0'.$i; |
||||
582 | } else { |
||||
583 | $tgl = $i; |
||||
584 | } |
||||
585 | |||||
586 | $tanggal = $lyear.'-'.$lmonth.'-'.$tgl; |
||||
587 | |||||
588 | echo"<td class=$sty style='padding:0;'>"; |
||||
589 | |||||
590 | if ($aktif == 'T') { |
||||
591 | echo" |
||||
592 | <i class='fa fa-warning' style='color: red;font-size:18px' onMouseover=\"ddrivetip('Out of Order')\"; onMouseout=\"hideddrivetip()\"></i> |
||||
593 | "; |
||||
594 | } |
||||
595 | |||||
596 | echo"<table cellpadding='0' cellspacing='0' border='0' width='100%'>"; |
||||
597 | echo'<tr>'; |
||||
598 | |||||
599 | $cSQL = "SELECT a.id_room,a.room_no,b.rdate,b.status,a.aktif,c.guest,c.initial,d.legend |
||||
600 | FROM room a left join room_reservation b |
||||
601 | ON a.id_room = b.id_room |
||||
602 | and b.status in ('0','1') |
||||
603 | LEFT JOIN guest c |
||||
604 | ON b.id_guest = c.id_guest |
||||
605 | LEFT JOIN room_status d |
||||
606 | ON b.id_room_status = d.id_room_status |
||||
607 | WHERE a.id_room = '$id_room' |
||||
608 | AND b.rdate = '$tanggal' |
||||
609 | ORDER BY a.room_no"; |
||||
610 | |||||
611 | $croom = mysql_query($cSQL); |
||||
0 ignored issues
–
show
The function
mysql_query() has been deprecated: 5.5 Send a MySQL query
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
612 | |||||
613 | $jml = mysql_num_rows($croom); |
||||
0 ignored issues
–
show
The function
mysql_num_rows() has been deprecated: 5.5
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
614 | |||||
615 | //$c=mysql_fetch_array($croom); |
||||
616 | while ($c = mysql_fetch_array($croom)) { |
||||
0 ignored issues
–
show
The function
mysql_fetch_array() has been deprecated: 5.5 Fetch a result row as an associative array, a numeric array, or both
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
617 | $guest = $c['guest']; |
||||
618 | |||||
619 | $legend = $c['legend']; |
||||
620 | $status = $c['status']; |
||||
621 | |||||
622 | if ($status == 0) { |
||||
623 | $icolor = '#fff'; |
||||
624 | } else { |
||||
625 | $icolor = '#fff'; |
||||
626 | } |
||||
627 | |||||
628 | if ($status == 0) { |
||||
629 | $istatus = 'Reserved'; |
||||
630 | } elseif ($status == 1) { |
||||
631 | $istatus = 'Check In'; |
||||
632 | } else { |
||||
633 | $istatus = 'Check Out'; |
||||
634 | } |
||||
635 | |||||
636 | $iguest = trim($c['initial']).'. '.trim($c['guest']).' | '.$istatus; |
||||
637 | |||||
638 | if ($c['initial'] == 'Mr ') { |
||||
639 | $icon = 'fa fa-male'; |
||||
640 | } else { |
||||
641 | $icon = 'fa fa-female'; |
||||
642 | } |
||||
643 | |||||
644 | if ($guest) { |
||||
645 | if ($guest) { |
||||
646 | echo"<td style='background-color:$legend;' width='50%'> |
||||
647 | <a href='' onMouseover=\"ddrivetip('$iguest')\"; onMouseout=\"hideddrivetip()\" title=''><i class='$icon' style='color: $icolor;font-size:15px'></i></a> |
||||
648 | </td>"; |
||||
649 | } else { |
||||
650 | echo"<td style='background-color:$legend;' width='50%'> |
||||
651 | </td>"; |
||||
652 | } |
||||
653 | } |
||||
654 | } |
||||
655 | |||||
656 | if ($jml == '1') { |
||||
657 | echo"<td width='50%'> |
||||
658 | </td>"; |
||||
659 | } |
||||
660 | |||||
661 | echo'</tr>'; |
||||
662 | echo'</table>'; |
||||
663 | echo'</td>'; |
||||
664 | } |
||||
665 | } |
||||
666 | echo'</tr>'; |
||||
667 | |||||
668 | $no++; |
||||
669 | } |
||||
670 | } |
||||
671 | ?> |
||||
672 | |||||
673 | </tbody> |
||||
674 | </table> |
||||
675 | </div> |
||||
676 | </div> |
||||
677 | </div> |
||||
678 | </div> |
||||
679 | |||||
680 | <div class="col-md-7 col-xs-7" style='text-align:right;padding-top:10px;'> |
||||
681 | <table style='text-align:right;'> |
||||
682 | <tr> |
||||
683 | <td style='padding-right:3px;'>Room Status : </td> |
||||
684 | <?php |
||||
685 | $SQL = "SELECT * FROM room_status where aktif ='Y' ORDER BY id_room_status"; |
||||
686 | $tampil = mysql_query($SQL); |
||||
0 ignored issues
–
show
The function
mysql_query() has been deprecated: 5.5 Send a MySQL query
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
687 | |||||
688 | while ($r = mysql_fetch_array($tampil)) { |
||||
0 ignored issues
–
show
The function
mysql_fetch_array() has been deprecated: 5.5 Fetch a result row as an associative array, a numeric array, or both
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
689 | echo"<td style='width:20px;background-color:".$r['legend'].";'> </td>"; |
||||
690 | echo"<td style='padding-left:3px;'>".$r['room_status'].' </td>'; |
||||
691 | } |
||||
692 | |||||
693 | ?> |
||||
694 | </tr> |
||||
695 | </table> |
||||
696 | </div> |
||||
697 | |||||
698 | <div class="col-md-5 col-xs-5" class='pull-right' style='text-align:right;padding-top:10px;'> |
||||
699 | <table style='text-align:right;'> |
||||
700 | <tr> |
||||
701 | <td style='padding-right:3px;'>Day Status : </td> |
||||
702 | <?php |
||||
703 | |||||
704 | echo"<td style='width:20px;background-color:#eba51c;'> </td>"; |
||||
705 | echo"<td style='padding-left:3px;'>Spesial Day </td>"; |
||||
706 | echo"<td style='width:20px;background-color:#eb1c41;'> </td>"; |
||||
707 | echo"<td style='padding-left:3px;'>Weekend </td>"; |
||||
708 | echo"<td style='width:20px;background-color:#2A3F54;;'> </td>"; |
||||
709 | echo"<td style='padding-left:3px;'>Weekday </td>"; |
||||
710 | |||||
711 | ?> |
||||
712 | </tr> |
||||
713 | </table> |
||||
714 | </div> |
||||
715 | |||||
716 | </div> |
||||
717 | </div> |
||||
718 | </div> |
||||
719 | </div> |
||||
720 | </div> |
||||
721 | |||||
722 | <?php |
||||
723 | } |
||||
724 | ?> |