@@ -55,13 +55,13 @@ |
||
| 55 | 55 | echo" <td style='text-align:center;'>"; |
| 56 | 56 | |
| 57 | 57 | if($r_edit == 'Y') {
|
| 58 | - echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_poli=$r[id_poli]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
| 59 | - } |
|
| 58 | + echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_poli=$r[id_poli]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
| 59 | + } |
|
| 60 | 60 | |
| 61 | 61 | |
| 62 | - // if($r_delete == 'Y') {
|
|
| 63 | - // echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_poli]&id_module=$id' onClick=\"return confirm('Hapus data ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
|
|
| 64 | - // } |
|
| 62 | + // if($r_delete == 'Y') {
|
|
| 63 | + // echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_poli]&id_module=$id' onClick=\"return confirm('Hapus data ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
|
|
| 64 | + // } |
|
| 65 | 65 | echo"</td>"; |
| 66 | 66 | echo"</tr>"; |
| 67 | 67 | $no++; |
@@ -2,8 +2,8 @@ discard block |
||
| 2 | 2 | <?php |
| 3 | 3 | switch($_GET[act]){
|
| 4 | 4 | |
| 5 | -default: |
|
| 6 | - ?> |
|
| 5 | + default: |
|
| 6 | + ?> |
|
| 7 | 7 | |
| 8 | 8 | <div class=""> |
| 9 | 9 | |
@@ -43,31 +43,31 @@ discard block |
||
| 43 | 43 | |
| 44 | 44 | <? |
| 45 | 45 | |
| 46 | - $tampil=mysql_query("SELECT * FROM poli ORDER BY id_poli");
|
|
| 46 | + $tampil=mysql_query("SELECT * FROM poli ORDER BY id_poli");
|
|
| 47 | 47 | |
| 48 | - $no = 1; |
|
| 48 | + $no = 1; |
|
| 49 | 49 | |
| 50 | - while ($r=mysql_fetch_array($tampil)){
|
|
| 50 | + while ($r=mysql_fetch_array($tampil)){
|
|
| 51 | 51 | |
| 52 | - echo"<tr>"; |
|
| 53 | - echo"<td>$r[poli]</td>"; |
|
| 54 | - echo"<td style='text-align:center;'>$r[aktif]</td>"; |
|
| 55 | - echo" <td style='text-align:center;'>"; |
|
| 52 | + echo"<tr>"; |
|
| 53 | + echo"<td>$r[poli]</td>"; |
|
| 54 | + echo"<td style='text-align:center;'>$r[aktif]</td>"; |
|
| 55 | + echo" <td style='text-align:center;'>"; |
|
| 56 | 56 | |
| 57 | - if($r_edit == 'Y') {
|
|
| 58 | - echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_poli=$r[id_poli]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
| 59 | - } |
|
| 57 | + if($r_edit == 'Y') {
|
|
| 58 | + echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_poli=$r[id_poli]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
| 59 | + } |
|
| 60 | 60 | |
| 61 | 61 | |
| 62 | - // if($r_delete == 'Y') {
|
|
| 63 | - // echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_poli]&id_module=$id' onClick=\"return confirm('Hapus data ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
|
|
| 64 | - // } |
|
| 65 | - echo"</td>"; |
|
| 66 | - echo"</tr>"; |
|
| 67 | - $no++; |
|
| 62 | + // if($r_delete == 'Y') {
|
|
| 63 | + // echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_poli]&id_module=$id' onClick=\"return confirm('Hapus data ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
|
|
| 64 | + // } |
|
| 65 | + echo"</td>"; |
|
| 66 | + echo"</tr>"; |
|
| 67 | + $no++; |
|
| 68 | 68 | |
| 69 | - } |
|
| 70 | - ?> |
|
| 69 | + } |
|
| 70 | + ?> |
|
| 71 | 71 | </tbody> |
| 72 | 72 | </table> |
| 73 | 73 | </div> |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | |
| 2 | 2 | <?php |
| 3 | -switch($_GET[act]){
|
|
| 3 | +switch ($_GET[act]) {
|
|
| 4 | 4 | |
| 5 | 5 | default: |
| 6 | 6 | ?> |
@@ -12,8 +12,8 @@ discard block |
||
| 12 | 12 | <div class="col-md-12 col-sm-12 col-xs-12"> |
| 13 | 13 | <div class="x_panel"> |
| 14 | 14 | <div class="x_title"> |
| 15 | - <h2><?php echo $nmmodule;?></h2> |
|
| 16 | - <p class="pull-right"><a href='<?php echo"modul/mod_$module/form_$module.php?width=720&height=560&module=$module&id_module=$id_module&TB_iframe=true";?>' title='<?php echo $nmmodule;?> Baru' class='thickbox btn btn-sm btn-success'><i class="fa fa-plus"></i> Baru</a></p> |
|
| 15 | + <h2><?php echo $nmmodule; ?></h2> |
|
| 16 | + <p class="pull-right"><a href='<?php echo"modul/mod_$module/form_$module.php?width=720&height=560&module=$module&id_module=$id_module&TB_iframe=true"; ?>' title='<?php echo $nmmodule; ?> Baru' class='thickbox btn btn-sm btn-success'><i class="fa fa-plus"></i> Baru</a></p> |
|
| 17 | 17 | <div class="clearfix"></div> |
| 18 | 18 | </div> |
| 19 | 19 | <div class="x_content"> |
@@ -43,18 +43,18 @@ discard block |
||
| 43 | 43 | |
| 44 | 44 | <? |
| 45 | 45 | |
| 46 | - $tampil=mysql_query("SELECT * FROM poli ORDER BY id_poli");
|
|
| 46 | + $tampil = mysql_query("SELECT * FROM poli ORDER BY id_poli");
|
|
| 47 | 47 | |
| 48 | 48 | $no = 1; |
| 49 | 49 | |
| 50 | - while ($r=mysql_fetch_array($tampil)){
|
|
| 50 | + while ($r = mysql_fetch_array($tampil)) {
|
|
| 51 | 51 | |
| 52 | 52 | echo"<tr>"; |
| 53 | 53 | echo"<td>$r[poli]</td>"; |
| 54 | 54 | echo"<td style='text-align:center;'>$r[aktif]</td>"; |
| 55 | 55 | echo" <td style='text-align:center;'>"; |
| 56 | 56 | |
| 57 | - if($r_edit == 'Y') {
|
|
| 57 | + if ($r_edit=='Y') {
|
|
| 58 | 58 | echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_poli=$r[id_poli]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
| 59 | 59 | } |
| 60 | 60 | |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | $prd = date("Y-m");
|
| 65 | 65 | |
| 66 | 66 | $userid = $_SESSION['userid']; |
| 67 | - ?> |
|
| 67 | + ?> |
|
| 68 | 68 | |
| 69 | 69 | <div class=""> |
| 70 | 70 | |
@@ -115,12 +115,12 @@ discard block |
||
| 115 | 115 | |
| 116 | 116 | <? |
| 117 | 117 | |
| 118 | - $module = '?module='.$_GET['module']; |
|
| 119 | - $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");
|
|
| 120 | - $r=mysql_fetch_array($tampil); |
|
| 118 | + $module = '?module='.$_GET['module']; |
|
| 119 | + $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");
|
|
| 120 | + $r=mysql_fetch_array($tampil); |
|
| 121 | 121 | |
| 122 | - echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; |
|
| 123 | - echo"<input type='hidden' name='module' value=".$_GET[module].">"; |
|
| 122 | + echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; |
|
| 123 | + echo"<input type='hidden' name='module' value=".$_GET[module].">"; |
|
| 124 | 124 | ?> |
| 125 | 125 | </form> |
| 126 | 126 | |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | - xmlhttp.open("GET","<?php echo"./modul/mod_$module/getlokasi.php?q=";?>"+str,true);
|
|
| 37 | + xmlhttp.open("GET","<?php echo"./modul/mod_$module/getlokasi.php?q="; ?>"+str,true);
|
|
| 38 | 38 | |
| 39 | 39 | xmlhttp.send(); |
| 40 | 40 | |
@@ -54,28 +54,28 @@ discard block |
||
| 54 | 54 | |
| 55 | 55 | |
| 56 | 56 | <?php |
| 57 | -switch($_GET[act]){
|
|
| 57 | +switch ($_GET[act]) {
|
|
| 58 | 58 | |
| 59 | 59 | default: |
| 60 | 60 | |
| 61 | 61 | $fdate = date("Y-m-01");
|
| 62 | 62 | $ldate = date("Y-m-d");
|
| 63 | 63 | |
| 64 | -$prd = date("Y-m");
|
|
| 64 | +$prd = date("Y-m");
|
|
| 65 | 65 | |
| 66 | -$userid = $_SESSION['userid']; |
|
| 66 | +$userid = $_SESSION['userid']; |
|
| 67 | 67 | ?> |
| 68 | 68 | |
| 69 | 69 | <div class=""> |
| 70 | 70 | |
| 71 | 71 | <div class="row"> |
| 72 | 72 | |
| 73 | - <form name="myform" id="myform" method="get" action="<? echo"modul/mod_$module/print_$module.php";?>" onSubmit="popup<?=$module?>(this, 'join')"> |
|
| 73 | + <form name="myform" id="myform" method="get" action="<? echo"modul/mod_$module/print_$module.php"; ?>" onSubmit="popup<?=$module?>(this, 'join')"> |
|
| 74 | 74 | |
| 75 | 75 | <div class="col-md-12 col-sm-12 col-xs-12"> |
| 76 | 76 | <div class="x_panel"> |
| 77 | 77 | <div class="x_title"> |
| 78 | - <h2><?=$nmmodule;?></h2> |
|
| 78 | + <h2><?=$nmmodule; ?></h2> |
|
| 79 | 79 | <div class='pull-right'> |
| 80 | 80 | <Button type="submit" class="btn btn-primary"> |
| 81 | 81 | <span class="glyphicon glyphicon-print" style='color:#fff;'></span> |
@@ -116,8 +116,8 @@ discard block |
||
| 116 | 116 | <? |
| 117 | 117 | |
| 118 | 118 | $module = '?module='.$_GET['module']; |
| 119 | - $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");
|
|
| 120 | - $r=mysql_fetch_array($tampil); |
|
| 119 | + $tampil = mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");
|
|
| 120 | + $r = mysql_fetch_array($tampil); |
|
| 121 | 121 | |
| 122 | 122 | echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; |
| 123 | 123 | echo"<input type='hidden' name='module' value=".$_GET[module].">"; |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | </form> |
| 126 | 126 | |
| 127 | 127 | </div> |
| 128 | - <?for($i = 0; $i <= 20; $i++) {
|
|
| 128 | + <?for ($i = 0; $i<=20; $i++) {
|
|
| 129 | 129 | ?> |
| 130 | 130 | <br /> |
| 131 | 131 | <? |
@@ -55,18 +55,18 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | echo"<td style='text-align:center;'>$r[aktif]</td>"; |
| 57 | 57 | echo"<td style='text-align:center;'>"; |
| 58 | - if($r_input == 'Y') {
|
|
| 59 | - echo"<a class='thickbox' href='modul/mod_$module/form_sub$module.php?parentid=$r[id_modul]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Sub $nmmodule Baru'><span class='icon'><i class='fa fa-pencil-square-o'></i></span></a>"; |
|
| 60 | - } |
|
| 58 | + if($r_input == 'Y') {
|
|
| 59 | + echo"<a class='thickbox' href='modul/mod_$module/form_sub$module.php?parentid=$r[id_modul]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Sub $nmmodule Baru'><span class='icon'><i class='fa fa-pencil-square-o'></i></span></a>"; |
|
| 60 | + } |
|
| 61 | 61 | |
| 62 | - if($r_edit == 'Y') {
|
|
| 63 | - echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_modul=$r[id_modul]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule '><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
| 64 | - } |
|
| 62 | + if($r_edit == 'Y') {
|
|
| 63 | + echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_modul=$r[id_modul]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule '><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
| 64 | + } |
|
| 65 | 65 | |
| 66 | 66 | |
| 67 | - if($r_delete == 'Y') {
|
|
| 68 | - echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapusmod&id=$r[id_modul]&id_module=$id' onClick=\"return confirm('Hapus data ?')\"><span class='icon'><i class='fa fa-trash'></i></span></a>";
|
|
| 69 | - } |
|
| 67 | + if($r_delete == 'Y') {
|
|
| 68 | + echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapusmod&id=$r[id_modul]&id_module=$id' onClick=\"return confirm('Hapus data ?')\"><span class='icon'><i class='fa fa-trash'></i></span></a>";
|
|
| 69 | + } |
|
| 70 | 70 | echo"</td>"; |
| 71 | 71 | |
| 72 | 72 | echo"</tr>"; |
@@ -85,14 +85,14 @@ discard block |
||
| 85 | 85 | |
| 86 | 86 | echo"<td style='text-align:center;'>$d[aktif]</td>"; |
| 87 | 87 | echo" <td style='text-align:right;'>"; |
| 88 | - if($r_edit == 'Y') {
|
|
| 89 | - echo"<a class='thickbox' href='modul/mod_$module/form_sub$module.php?id_modul=$d[id_modul]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update Sub $imodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
| 90 | - } |
|
| 88 | + if($r_edit == 'Y') {
|
|
| 89 | + echo"<a class='thickbox' href='modul/mod_$module/form_sub$module.php?id_modul=$d[id_modul]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update Sub $imodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
| 90 | + } |
|
| 91 | 91 | |
| 92 | - if($r_delete == 'Y') {
|
|
| 93 | - echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$d[id_modul]&id_module=$id' onClick=\"return confirm('Hapus data ?')\"><span class='icon'><i class='fa fa-trash'></i></span></a>";
|
|
| 94 | - } |
|
| 95 | - echo"</td>"; |
|
| 92 | + if($r_delete == 'Y') {
|
|
| 93 | + echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$d[id_modul]&id_module=$id' onClick=\"return confirm('Hapus data ?')\"><span class='icon'><i class='fa fa-trash'></i></span></a>";
|
|
| 94 | + } |
|
| 95 | + echo"</td>"; |
|
| 96 | 96 | echo"</tr>"; |
| 97 | 97 | |
| 98 | 98 | } |
@@ -2,8 +2,8 @@ discard block |
||
| 2 | 2 | <?php |
| 3 | 3 | switch($_GET[act]){
|
| 4 | 4 | |
| 5 | -default: |
|
| 6 | - ?> |
|
| 5 | + default: |
|
| 6 | + ?> |
|
| 7 | 7 | |
| 8 | 8 | <div class=""> |
| 9 | 9 | |
@@ -44,63 +44,63 @@ discard block |
||
| 44 | 44 | |
| 45 | 45 | <? |
| 46 | 46 | |
| 47 | - $tampil=mysql_query("SELECT * FROM modul WHERE status_menu = 'M' ORDER BY urutan ASC");
|
|
| 47 | + $tampil=mysql_query("SELECT * FROM modul WHERE status_menu = 'M' ORDER BY urutan ASC");
|
|
| 48 | 48 | |
| 49 | - $no = 1; |
|
| 50 | - while ($r=mysql_fetch_array($tampil)){
|
|
| 51 | - echo"<tr>"; |
|
| 52 | - echo"<td><b>$r[nama_modul]</b></td>"; |
|
| 53 | - echo"<td>$r[link]</td>"; |
|
| 49 | + $no = 1; |
|
| 50 | + while ($r=mysql_fetch_array($tampil)){
|
|
| 51 | + echo"<tr>"; |
|
| 52 | + echo"<td><b>$r[nama_modul]</b></td>"; |
|
| 53 | + echo"<td>$r[link]</td>"; |
|
| 54 | 54 | |
| 55 | 55 | |
| 56 | - echo"<td style='text-align:center;'>$r[aktif]</td>"; |
|
| 57 | - echo"<td style='text-align:center;'>"; |
|
| 58 | - if($r_input == 'Y') {
|
|
| 59 | - echo"<a class='thickbox' href='modul/mod_$module/form_sub$module.php?parentid=$r[id_modul]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Sub $nmmodule Baru'><span class='icon'><i class='fa fa-pencil-square-o'></i></span></a>"; |
|
| 60 | - } |
|
| 56 | + echo"<td style='text-align:center;'>$r[aktif]</td>"; |
|
| 57 | + echo"<td style='text-align:center;'>"; |
|
| 58 | + if($r_input == 'Y') {
|
|
| 59 | + echo"<a class='thickbox' href='modul/mod_$module/form_sub$module.php?parentid=$r[id_modul]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Sub $nmmodule Baru'><span class='icon'><i class='fa fa-pencil-square-o'></i></span></a>"; |
|
| 60 | + } |
|
| 61 | 61 | |
| 62 | - if($r_edit == 'Y') {
|
|
| 63 | - echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_modul=$r[id_modul]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule '><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
| 64 | - } |
|
| 62 | + if($r_edit == 'Y') {
|
|
| 63 | + echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_modul=$r[id_modul]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule '><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
| 64 | + } |
|
| 65 | 65 | |
| 66 | 66 | |
| 67 | - if($r_delete == 'Y') {
|
|
| 68 | - echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapusmod&id=$r[id_modul]&id_module=$id' onClick=\"return confirm('Hapus data ?')\"><span class='icon'><i class='fa fa-trash'></i></span></a>";
|
|
| 69 | - } |
|
| 70 | - echo"</td>"; |
|
| 67 | + if($r_delete == 'Y') {
|
|
| 68 | + echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapusmod&id=$r[id_modul]&id_module=$id' onClick=\"return confirm('Hapus data ?')\"><span class='icon'><i class='fa fa-trash'></i></span></a>";
|
|
| 69 | + } |
|
| 70 | + echo"</td>"; |
|
| 71 | 71 | |
| 72 | - echo"</tr>"; |
|
| 72 | + echo"</tr>"; |
|
| 73 | 73 | |
| 74 | - $dtampil=mysql_query("SELECT * FROM modul
|
|
| 74 | + $dtampil=mysql_query("SELECT * FROM modul
|
|
| 75 | 75 | WHERE status_menu = 'c' |
| 76 | 76 | AND parentid = '$r[id_modul]' and aktif = 'Y' ORDER BY urutan ASC"); |
| 77 | 77 | |
| 78 | 78 | |
| 79 | - while ($d=mysql_fetch_array($dtampil)){
|
|
| 79 | + while ($d=mysql_fetch_array($dtampil)){
|
|
| 80 | 80 | |
| 81 | 81 | |
| 82 | - echo"<tr>"; |
|
| 83 | - echo"<td style='padding-left:15px;'>$d[nama_modul]</td>"; |
|
| 84 | - echo"<td style='text-transform:lowercase;'>$d[link]</td>"; |
|
| 82 | + echo"<tr>"; |
|
| 83 | + echo"<td style='padding-left:15px;'>$d[nama_modul]</td>"; |
|
| 84 | + echo"<td style='text-transform:lowercase;'>$d[link]</td>"; |
|
| 85 | 85 | |
| 86 | - echo"<td style='text-align:center;'>$d[aktif]</td>"; |
|
| 87 | - echo" <td style='text-align:right;'>"; |
|
| 88 | - if($r_edit == 'Y') {
|
|
| 89 | - echo"<a class='thickbox' href='modul/mod_$module/form_sub$module.php?id_modul=$d[id_modul]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update Sub $imodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
| 90 | - } |
|
| 86 | + echo"<td style='text-align:center;'>$d[aktif]</td>"; |
|
| 87 | + echo" <td style='text-align:right;'>"; |
|
| 88 | + if($r_edit == 'Y') {
|
|
| 89 | + echo"<a class='thickbox' href='modul/mod_$module/form_sub$module.php?id_modul=$d[id_modul]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update Sub $imodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
| 90 | + } |
|
| 91 | 91 | |
| 92 | - if($r_delete == 'Y') {
|
|
| 93 | - echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$d[id_modul]&id_module=$id' onClick=\"return confirm('Hapus data ?')\"><span class='icon'><i class='fa fa-trash'></i></span></a>";
|
|
| 94 | - } |
|
| 95 | - echo"</td>"; |
|
| 96 | - echo"</tr>"; |
|
| 92 | + if($r_delete == 'Y') {
|
|
| 93 | + echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$d[id_modul]&id_module=$id' onClick=\"return confirm('Hapus data ?')\"><span class='icon'><i class='fa fa-trash'></i></span></a>";
|
|
| 94 | + } |
|
| 95 | + echo"</td>"; |
|
| 96 | + echo"</tr>"; |
|
| 97 | 97 | |
| 98 | - } |
|
| 98 | + } |
|
| 99 | 99 | |
| 100 | - $no++; |
|
| 100 | + $no++; |
|
| 101 | 101 | |
| 102 | - } |
|
| 103 | - ?> |
|
| 102 | + } |
|
| 103 | + ?> |
|
| 104 | 104 | </tbody> |
| 105 | 105 | </table> |
| 106 | 106 | </div> |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | |
| 2 | 2 | <?php |
| 3 | -switch($_GET[act]){
|
|
| 3 | +switch ($_GET[act]) {
|
|
| 4 | 4 | |
| 5 | 5 | default: |
| 6 | 6 | ?> |
@@ -12,8 +12,8 @@ discard block |
||
| 12 | 12 | <div class="col-md-12 col-sm-12 col-xs-12"> |
| 13 | 13 | <div class="x_panel"> |
| 14 | 14 | <div class="x_title"> |
| 15 | - <h2><?php echo $nmmodule;?></h2> |
|
| 16 | - <p class="pull-right"><a href='<?php echo"modul/mod_$module/form_$module.php?width=720&height=560&module=$module&id_module=$id_module&TB_iframe=true";?>' title='<?php echo $nmmodule;?> Baru' class='thickbox btn btn-sm btn-success'><i class="fa fa-plus"></i> Baru</a></p> |
|
| 15 | + <h2><?php echo $nmmodule; ?></h2> |
|
| 16 | + <p class="pull-right"><a href='<?php echo"modul/mod_$module/form_$module.php?width=720&height=560&module=$module&id_module=$id_module&TB_iframe=true"; ?>' title='<?php echo $nmmodule; ?> Baru' class='thickbox btn btn-sm btn-success'><i class="fa fa-plus"></i> Baru</a></p> |
|
| 17 | 17 | <div class="clearfix"></div> |
| 18 | 18 | </div> |
| 19 | 19 | <div class="x_content"> |
@@ -44,10 +44,10 @@ discard block |
||
| 44 | 44 | |
| 45 | 45 | <? |
| 46 | 46 | |
| 47 | - $tampil=mysql_query("SELECT * FROM modul WHERE status_menu = 'M' ORDER BY urutan ASC");
|
|
| 47 | + $tampil = mysql_query("SELECT * FROM modul WHERE status_menu = 'M' ORDER BY urutan ASC");
|
|
| 48 | 48 | |
| 49 | 49 | $no = 1; |
| 50 | - while ($r=mysql_fetch_array($tampil)){
|
|
| 50 | + while ($r = mysql_fetch_array($tampil)) {
|
|
| 51 | 51 | echo"<tr>"; |
| 52 | 52 | echo"<td><b>$r[nama_modul]</b></td>"; |
| 53 | 53 | echo"<td>$r[link]</td>"; |
@@ -55,28 +55,28 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | echo"<td style='text-align:center;'>$r[aktif]</td>"; |
| 57 | 57 | echo"<td style='text-align:center;'>"; |
| 58 | - if($r_input == 'Y') {
|
|
| 58 | + if ($r_input=='Y') {
|
|
| 59 | 59 | echo"<a class='thickbox' href='modul/mod_$module/form_sub$module.php?parentid=$r[id_modul]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Sub $nmmodule Baru'><span class='icon'><i class='fa fa-pencil-square-o'></i></span></a>"; |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | - if($r_edit == 'Y') {
|
|
| 62 | + if ($r_edit=='Y') {
|
|
| 63 | 63 | echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_modul=$r[id_modul]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule '><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | |
| 67 | - if($r_delete == 'Y') {
|
|
| 67 | + if ($r_delete=='Y') {
|
|
| 68 | 68 | echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapusmod&id=$r[id_modul]&id_module=$id' onClick=\"return confirm('Hapus data ?')\"><span class='icon'><i class='fa fa-trash'></i></span></a>";
|
| 69 | 69 | } |
| 70 | 70 | echo"</td>"; |
| 71 | 71 | |
| 72 | 72 | echo"</tr>"; |
| 73 | 73 | |
| 74 | - $dtampil=mysql_query("SELECT * FROM modul
|
|
| 74 | + $dtampil = mysql_query("SELECT * FROM modul
|
|
| 75 | 75 | WHERE status_menu = 'c' |
| 76 | 76 | AND parentid = '$r[id_modul]' and aktif = 'Y' ORDER BY urutan ASC"); |
| 77 | 77 | |
| 78 | 78 | |
| 79 | - while ($d=mysql_fetch_array($dtampil)){
|
|
| 79 | + while ($d = mysql_fetch_array($dtampil)) {
|
|
| 80 | 80 | |
| 81 | 81 | |
| 82 | 82 | echo"<tr>"; |
@@ -85,11 +85,11 @@ discard block |
||
| 85 | 85 | |
| 86 | 86 | echo"<td style='text-align:center;'>$d[aktif]</td>"; |
| 87 | 87 | echo" <td style='text-align:right;'>"; |
| 88 | - if($r_edit == 'Y') {
|
|
| 88 | + if ($r_edit=='Y') {
|
|
| 89 | 89 | echo"<a class='thickbox' href='modul/mod_$module/form_sub$module.php?id_modul=$d[id_modul]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update Sub $imodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
| 90 | 90 | } |
| 91 | 91 | |
| 92 | - if($r_delete == 'Y') {
|
|
| 92 | + if ($r_delete=='Y') {
|
|
| 93 | 93 | echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$d[id_modul]&id_module=$id' onClick=\"return confirm('Hapus data ?')\"><span class='icon'><i class='fa fa-trash'></i></span></a>";
|
| 94 | 94 | } |
| 95 | 95 | echo"</td>"; |
@@ -6,12 +6,12 @@ |
||
| 6 | 6 | |
| 7 | 7 | |
| 8 | 8 | $gtampil=mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
|
| 9 | - $g=mysql_fetch_array($gtampil); |
|
| 9 | + $g=mysql_fetch_array($gtampil); |
|
| 10 | 10 | |
| 11 | 11 | if ($g['pict']) {
|
| 12 | - $pict = $g['pict']; |
|
| 12 | + $pict = $g['pict']; |
|
| 13 | 13 | } else {
|
| 14 | - $pict = ''; |
|
| 14 | + $pict = ''; |
|
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | ?> |
@@ -2,19 +2,19 @@ discard block |
||
| 2 | 2 | <?php |
| 3 | 3 | switch($_GET[act]){
|
| 4 | 4 | |
| 5 | -default: |
|
| 5 | + default: |
|
| 6 | 6 | |
| 7 | 7 | |
| 8 | - $gtampil=mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
|
|
| 9 | - $g=mysql_fetch_array($gtampil); |
|
| 8 | + $gtampil=mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
|
|
| 9 | + $g=mysql_fetch_array($gtampil); |
|
| 10 | 10 | |
| 11 | -if ($g['pict']) {
|
|
| 12 | - $pict = $g['pict']; |
|
| 11 | + if ($g['pict']) {
|
|
| 12 | + $pict = $g['pict']; |
|
| 13 | 13 | } else {
|
| 14 | - $pict = ''; |
|
| 14 | + $pict = ''; |
|
| 15 | 15 | } |
| 16 | 16 | |
| 17 | -?> |
|
| 17 | + ?> |
|
| 18 | 18 | <div class="col-md-12 col-sm-12 col-xs-12 "> |
| 19 | 19 | <div class="x_panel"> |
| 20 | 20 | <div class="x_title"> |
@@ -28,6 +28,6 @@ discard block |
||
| 28 | 28 | </div> |
| 29 | 29 | </div> |
| 30 | 30 | <? |
| 31 | -//} |
|
| 31 | + //} |
|
| 32 | 32 | } |
| 33 | 33 | ?> |
| 34 | 34 | \ No newline at end of file |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | |
| 2 | 2 | <?php |
| 3 | -switch($_GET[act]){
|
|
| 3 | +switch ($_GET[act]) {
|
|
| 4 | 4 | |
| 5 | 5 | default: |
| 6 | 6 | |
| 7 | 7 | |
| 8 | - $gtampil=mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
|
|
| 9 | - $g=mysql_fetch_array($gtampil); |
|
| 8 | + $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
|
|
| 9 | + $g = mysql_fetch_array($gtampil); |
|
| 10 | 10 | |
| 11 | 11 | if ($g['pict']) {
|
| 12 | 12 | $pict = $g['pict']; |
@@ -52,55 +52,55 @@ discard block |
||
| 52 | 52 | default: |
| 53 | 53 | |
| 54 | 54 | if($_GET['fdate']) {
|
| 55 | - $fdate = $_GET['fdate']; |
|
| 55 | + $fdate = $_GET['fdate']; |
|
| 56 | 56 | } else {
|
| 57 | - $hour = time() - (1 * 1 * 60 * 60); |
|
| 58 | - $fdate = date("Y-m-d", $hour);
|
|
| 57 | + $hour = time() - (1 * 1 * 60 * 60); |
|
| 58 | + $fdate = date("Y-m-d", $hour);
|
|
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | if($_GET['ldate']) {
|
| 62 | - $ldate = $_GET['ldate']; |
|
| 62 | + $ldate = $_GET['ldate']; |
|
| 63 | 63 | } else {
|
| 64 | - $hour = time() - (1 * 1 * 60 * 60) + (168 * 1 * 60 * 60); |
|
| 65 | - $ldate = date("Y-m-d",$hour);
|
|
| 64 | + $hour = time() - (1 * 1 * 60 * 60) + (168 * 1 * 60 * 60); |
|
| 65 | + $ldate = date("Y-m-d",$hour);
|
|
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | $fdate1 = date("m/d/Y", strtotime($fdate));
|
| 69 | 69 | $ldate1 = date("m/d/Y", strtotime($ldate));
|
| 70 | 70 | |
| 71 | 71 | |
| 72 | - $fday = date("d", strtotime($fdate));
|
|
| 73 | - $fmonth = date("m", strtotime($fdate));
|
|
| 74 | - $fyear = date("Y", strtotime($fdate));
|
|
| 72 | + $fday = date("d", strtotime($fdate));
|
|
| 73 | + $fmonth = date("m", strtotime($fdate));
|
|
| 74 | + $fyear = date("Y", strtotime($fdate));
|
|
| 75 | 75 | |
| 76 | 76 | |
| 77 | - $fmonthName = date("M", mktime(0, 0, 0, $fmonth, 10));
|
|
| 77 | + $fmonthName = date("M", mktime(0, 0, 0, $fmonth, 10));
|
|
| 78 | 78 | |
| 79 | - $lday = mysql_query("SELECT substr(LAST_DAY('$fdate'),-2,2) as lastday ");
|
|
| 80 | - $l = mysql_fetch_array($lday); |
|
| 81 | - $f_lastday = $l['lastday']; |
|
| 82 | - $f_jml = ($f_lastday-$fday)+1; |
|
| 79 | + $lday = mysql_query("SELECT substr(LAST_DAY('$fdate'),-2,2) as lastday ");
|
|
| 80 | + $l = mysql_fetch_array($lday); |
|
| 81 | + $f_lastday = $l['lastday']; |
|
| 82 | + $f_jml = ($f_lastday-$fday)+1; |
|
| 83 | 83 | |
| 84 | - //$ldate = '2014-08-15'; |
|
| 84 | + //$ldate = '2014-08-15'; |
|
| 85 | 85 | |
| 86 | - $lday = date("d", strtotime($ldate));
|
|
| 87 | - $lmonth = date("m", strtotime($ldate));
|
|
| 88 | - $lyear = date("Y", strtotime($ldate));
|
|
| 89 | - $l_jml = $lday; |
|
| 86 | + $lday = date("d", strtotime($ldate));
|
|
| 87 | + $lmonth = date("m", strtotime($ldate));
|
|
| 88 | + $lyear = date("Y", strtotime($ldate));
|
|
| 89 | + $l_jml = $lday; |
|
| 90 | 90 | |
| 91 | - $lmonthName = date("M", mktime(0, 0, 0, $lmonth, 10));
|
|
| 91 | + $lmonthName = date("M", mktime(0, 0, 0, $lmonth, 10));
|
|
| 92 | 92 | |
| 93 | - $jml = ($lday - $fday)+1; |
|
| 93 | + $jml = ($lday - $fday)+1; |
|
| 94 | 94 | |
| 95 | 95 | |
| 96 | 96 | if($_GET['ldate']) {
|
| 97 | - if ($lmonth == $fmonth and $lyear == $fyear) {
|
|
| 98 | - $jcol = $jml; |
|
| 99 | - } else {
|
|
| 100 | - $jcol = $f_jml+$l_jml; |
|
| 101 | - } |
|
| 97 | + if ($lmonth == $fmonth and $lyear == $fyear) {
|
|
| 98 | + $jcol = $jml; |
|
| 99 | + } else {
|
|
| 100 | + $jcol = $f_jml+$l_jml; |
|
| 101 | + } |
|
| 102 | 102 | } else {
|
| 103 | - $jcol = 8; |
|
| 103 | + $jcol = 8; |
|
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | ?> |
@@ -122,15 +122,15 @@ discard block |
||
| 122 | 122 | <select name="room_type" class="form-control1" required onChange="document.myform.submit();"> |
| 123 | 123 | <option value="">--------- Room Type ---------</option> |
| 124 | 124 | <? |
| 125 | - $query = mysql_query('SELECT * FROM room_type ORDER BY room_type');
|
|
| 126 | - if($query && mysql_num_rows($query) > 0){
|
|
| 127 | - while($row = mysql_fetch_object($query)){
|
|
| 128 | - echo '<option value="'.$row->id_room_type.'"'; |
|
| 129 | - if($row->id_room_type == $_GET['room_type']) echo ' selected'; |
|
| 130 | - echo '>'.$row->room_type.'</option>'; |
|
| 131 | - } |
|
| 132 | - } |
|
| 133 | - ?> |
|
| 125 | + $query = mysql_query('SELECT * FROM room_type ORDER BY room_type');
|
|
| 126 | + if($query && mysql_num_rows($query) > 0){
|
|
| 127 | + while($row = mysql_fetch_object($query)){
|
|
| 128 | + echo '<option value="'.$row->id_room_type.'"'; |
|
| 129 | + if($row->id_room_type == $_GET['room_type']) echo ' selected'; |
|
| 130 | + echo '>'.$row->room_type.'</option>'; |
|
| 131 | + } |
|
| 132 | + } |
|
| 133 | + ?> |
|
| 134 | 134 | </select> |
| 135 | 135 | </div> |
| 136 | 136 | |
@@ -155,38 +155,38 @@ discard block |
||
| 155 | 155 | <th style='text-align:center;' width='17%' ><h3 style='font-size:12px;'>Room</h3></th> |
| 156 | 156 | |
| 157 | 157 | <? |
| 158 | - $col = (83/$jcol); |
|
| 158 | + $col = (83/$jcol); |
|
| 159 | 159 | |
| 160 | 160 | |
| 161 | - if ($lmonth == $fmonth and $lyear == $fyear) {
|
|
| 161 | + if ($lmonth == $fmonth and $lyear == $fyear) {
|
|
| 162 | 162 | |
| 163 | - for($i = $fday; $i <= $lday; $i++) {
|
|
| 163 | + for($i = $fday; $i <= $lday; $i++) {
|
|
| 164 | 164 | |
| 165 | - if (strlen($i) == '1') {
|
|
| 166 | - $tgl = '0'.$i; |
|
| 167 | - } else {
|
|
| 168 | - $tgl = $i; |
|
| 169 | - } |
|
| 165 | + if (strlen($i) == '1') {
|
|
| 166 | + $tgl = '0'.$i; |
|
| 167 | + } else {
|
|
| 168 | + $tgl = $i; |
|
| 169 | + } |
|
| 170 | 170 | |
| 171 | - $tanggal = $fyear.'-'.$fmonth.'-'.$tgl; |
|
| 171 | + $tanggal = $fyear.'-'.$fmonth.'-'.$tgl; |
|
| 172 | 172 | |
| 173 | - $DayName = date("D",strtotime($tanggal));
|
|
| 173 | + $DayName = date("D",strtotime($tanggal));
|
|
| 174 | 174 | |
| 175 | - $sSQL= "select sdate from special_day_detail where sdate in ('$tanggal')";
|
|
| 176 | - $sday = mysql_query($sSQL); |
|
| 177 | - $s=mysql_fetch_array($sday); |
|
| 175 | + $sSQL= "select sdate from special_day_detail where sdate in ('$tanggal')";
|
|
| 176 | + $sday = mysql_query($sSQL); |
|
| 177 | + $s=mysql_fetch_array($sday); |
|
| 178 | 178 | |
| 179 | - $nday = date('N', strtotime($tanggal));
|
|
| 179 | + $nday = date('N', strtotime($tanggal));
|
|
| 180 | 180 | |
| 181 | - if($s['sdate']) {
|
|
| 182 | - $bg ='#eba51c'; |
|
| 183 | - } else if ($nday == '6' or $nday == '7') {
|
|
| 184 | - $bg ='#eb1c41'; |
|
| 185 | - } else {
|
|
| 186 | - $bg =''; |
|
| 187 | - } |
|
| 181 | + if($s['sdate']) {
|
|
| 182 | + $bg ='#eba51c'; |
|
| 183 | + } else if ($nday == '6' or $nday == '7') {
|
|
| 184 | + $bg ='#eb1c41'; |
|
| 185 | + } else {
|
|
| 186 | + $bg =''; |
|
| 187 | + } |
|
| 188 | 188 | |
| 189 | - echo"<th style='text-align:center;background-color:$bg' width='$col%'> |
|
| 189 | + echo"<th style='text-align:center;background-color:$bg' width='$col%'> |
|
| 190 | 190 | <h3 style='font-size:12px;'> |
| 191 | 191 | $tgl<BR> |
| 192 | 192 | $fmonthName<BR> |
@@ -194,37 +194,37 @@ discard block |
||
| 194 | 194 | </h3> |
| 195 | 195 | </th>"; |
| 196 | 196 | |
| 197 | - } |
|
| 197 | + } |
|
| 198 | 198 | |
| 199 | - } else {
|
|
| 199 | + } else {
|
|
| 200 | 200 | |
| 201 | - for($i = $fday; $i <= $f_lastday; $i++) {
|
|
| 201 | + for($i = $fday; $i <= $f_lastday; $i++) {
|
|
| 202 | 202 | |
| 203 | - if (strlen($i) == '1') {
|
|
| 204 | - $tgl = '0'.$i; |
|
| 205 | - } else {
|
|
| 206 | - $tgl = $i; |
|
| 207 | - } |
|
| 203 | + if (strlen($i) == '1') {
|
|
| 204 | + $tgl = '0'.$i; |
|
| 205 | + } else {
|
|
| 206 | + $tgl = $i; |
|
| 207 | + } |
|
| 208 | 208 | |
| 209 | - $tanggal = $fyear.'-'.$fmonth.'-'.$tgl; |
|
| 209 | + $tanggal = $fyear.'-'.$fmonth.'-'.$tgl; |
|
| 210 | 210 | |
| 211 | - $DayName = date("D",strtotime($tanggal));
|
|
| 211 | + $DayName = date("D",strtotime($tanggal));
|
|
| 212 | 212 | |
| 213 | - $sSQL= "select sdate from special_day_detail where sdate in ('$tanggal')";
|
|
| 214 | - $sday = mysql_query($sSQL); |
|
| 215 | - $s=mysql_fetch_array($sday); |
|
| 213 | + $sSQL= "select sdate from special_day_detail where sdate in ('$tanggal')";
|
|
| 214 | + $sday = mysql_query($sSQL); |
|
| 215 | + $s=mysql_fetch_array($sday); |
|
| 216 | 216 | |
| 217 | - $nday = date('N', strtotime($tanggal));
|
|
| 217 | + $nday = date('N', strtotime($tanggal));
|
|
| 218 | 218 | |
| 219 | - if($s['sdate']) {
|
|
| 220 | - $bg ='#eba51c'; |
|
| 221 | - } else if ($nday == '6' or $nday == '7') {
|
|
| 222 | - $bg ='#eb1c41'; |
|
| 223 | - } else {
|
|
| 224 | - $bg =''; |
|
| 225 | - } |
|
| 219 | + if($s['sdate']) {
|
|
| 220 | + $bg ='#eba51c'; |
|
| 221 | + } else if ($nday == '6' or $nday == '7') {
|
|
| 222 | + $bg ='#eb1c41'; |
|
| 223 | + } else {
|
|
| 224 | + $bg =''; |
|
| 225 | + } |
|
| 226 | 226 | |
| 227 | - echo"<th style='text-align:center;background-color:$bg' width='$col%'> |
|
| 227 | + echo"<th style='text-align:center;background-color:$bg' width='$col%'> |
|
| 228 | 228 | <h3 style='font-size:12px;'> |
| 229 | 229 | $tgl<BR> |
| 230 | 230 | $fmonthName<BR> |
@@ -232,36 +232,36 @@ discard block |
||
| 232 | 232 | </h3> |
| 233 | 233 | </th>"; |
| 234 | 234 | |
| 235 | - } |
|
| 235 | + } |
|
| 236 | 236 | |
| 237 | - for($i = 1; $i <= $lday; $i++) {
|
|
| 237 | + for($i = 1; $i <= $lday; $i++) {
|
|
| 238 | 238 | |
| 239 | - if (strlen($i) == '1') {
|
|
| 240 | - $tgl = '0'.$i; |
|
| 241 | - } else {
|
|
| 242 | - $tgl = $i; |
|
| 243 | - } |
|
| 239 | + if (strlen($i) == '1') {
|
|
| 240 | + $tgl = '0'.$i; |
|
| 241 | + } else {
|
|
| 242 | + $tgl = $i; |
|
| 243 | + } |
|
| 244 | 244 | |
| 245 | - $tanggal = $lyear.'-'.$lmonth.'-'.$tgl; |
|
| 245 | + $tanggal = $lyear.'-'.$lmonth.'-'.$tgl; |
|
| 246 | 246 | |
| 247 | 247 | |
| 248 | - $DayName = date("D",strtotime($tanggal));
|
|
| 248 | + $DayName = date("D",strtotime($tanggal));
|
|
| 249 | 249 | |
| 250 | - $sSQL= "select sdate from special_day_detail where sdate in ('$tanggal')";
|
|
| 251 | - $sday = mysql_query($sSQL); |
|
| 252 | - $s=mysql_fetch_array($sday); |
|
| 250 | + $sSQL= "select sdate from special_day_detail where sdate in ('$tanggal')";
|
|
| 251 | + $sday = mysql_query($sSQL); |
|
| 252 | + $s=mysql_fetch_array($sday); |
|
| 253 | 253 | |
| 254 | - $nday = date('N', strtotime($tanggal));
|
|
| 254 | + $nday = date('N', strtotime($tanggal));
|
|
| 255 | 255 | |
| 256 | - if($s['sdate']) {
|
|
| 257 | - $bg ='#eba51c'; |
|
| 258 | - } else if ($nday == '6' or $nday == '7') {
|
|
| 259 | - $bg ='#eb1c41'; |
|
| 260 | - } else {
|
|
| 261 | - $bg =''; |
|
| 262 | - } |
|
| 256 | + if($s['sdate']) {
|
|
| 257 | + $bg ='#eba51c'; |
|
| 258 | + } else if ($nday == '6' or $nday == '7') {
|
|
| 259 | + $bg ='#eb1c41'; |
|
| 260 | + } else {
|
|
| 261 | + $bg =''; |
|
| 262 | + } |
|
| 263 | 263 | |
| 264 | - echo"<th style='text-align:center;background-color:$bg' width='$col%'> |
|
| 264 | + echo"<th style='text-align:center;background-color:$bg' width='$col%'> |
|
| 265 | 265 | <h3 style='font-size:12px;'> |
| 266 | 266 | $tgl<BR> |
| 267 | 267 | $lmonthName<BR> |
@@ -269,10 +269,10 @@ discard block |
||
| 269 | 269 | </h3> |
| 270 | 270 | </th>"; |
| 271 | 271 | |
| 272 | - } |
|
| 273 | - } |
|
| 272 | + } |
|
| 273 | + } |
|
| 274 | 274 | |
| 275 | - ?> |
|
| 275 | + ?> |
|
| 276 | 276 | |
| 277 | 277 | </tr> |
| 278 | 278 | |
@@ -282,125 +282,125 @@ discard block |
||
| 282 | 282 | |
| 283 | 283 | |
| 284 | 284 | <? |
| 285 | - $tSQL = "SELECT * FROM room_type "; |
|
| 285 | + $tSQL = "SELECT * FROM room_type "; |
|
| 286 | 286 | |
| 287 | - if ($_GET['room_type']){
|
|
| 288 | - $tSQL .= "WHERE id_room_type = '$_GET[room_type]'"; |
|
| 289 | - } |
|
| 287 | + if ($_GET['room_type']){
|
|
| 288 | + $tSQL .= "WHERE id_room_type = '$_GET[room_type]'"; |
|
| 289 | + } |
|
| 290 | 290 | |
| 291 | - $tSQL .= "ORDER BY room_type"; |
|
| 291 | + $tSQL .= "ORDER BY room_type"; |
|
| 292 | 292 | |
| 293 | - $type = mysql_query($tSQL); |
|
| 293 | + $type = mysql_query($tSQL); |
|
| 294 | 294 | |
| 295 | - while($t=mysql_fetch_array($type)){
|
|
| 295 | + while($t=mysql_fetch_array($type)){
|
|
| 296 | 296 | |
| 297 | - $id_room_type = $t['id_room_type']; |
|
| 297 | + $id_room_type = $t['id_room_type']; |
|
| 298 | 298 | |
| 299 | 299 | |
| 300 | - echo"<tr>"; |
|
| 301 | - echo"<td style='background-color: #1ABB9C;color: #E7E7E7;'>".$t['room_type']."</td>"; |
|
| 300 | + echo"<tr>"; |
|
| 301 | + echo"<td style='background-color: #1ABB9C;color: #E7E7E7;'>".$t['room_type']."</td>"; |
|
| 302 | 302 | |
| 303 | 303 | |
| 304 | - if ($lmonth == $fmonth and $lyear == $fyear) {
|
|
| 304 | + if ($lmonth == $fmonth and $lyear == $fyear) {
|
|
| 305 | 305 | |
| 306 | - for($i = $fday; $i <= $lday; $i++) {
|
|
| 306 | + for($i = $fday; $i <= $lday; $i++) {
|
|
| 307 | 307 | |
| 308 | - if (strlen($i) == '1') {
|
|
| 309 | - $tgl = '0'.$i; |
|
| 310 | - } else {
|
|
| 311 | - $tgl = $i; |
|
| 312 | - } |
|
| 308 | + if (strlen($i) == '1') {
|
|
| 309 | + $tgl = '0'.$i; |
|
| 310 | + } else {
|
|
| 311 | + $tgl = $i; |
|
| 312 | + } |
|
| 313 | 313 | |
| 314 | - $tanggal = $fyear.'-'.$fmonth.'-'.$tgl; |
|
| 314 | + $tanggal = $fyear.'-'.$fmonth.'-'.$tgl; |
|
| 315 | 315 | |
| 316 | - echo"<td style='background-color: #1ABB9C;color: #E7E7E7;'> |
|
| 316 | + echo"<td style='background-color: #1ABB9C;color: #E7E7E7;'> |
|
| 317 | 317 | </td>"; |
| 318 | 318 | |
| 319 | - } |
|
| 319 | + } |
|
| 320 | 320 | |
| 321 | - } else {
|
|
| 321 | + } else {
|
|
| 322 | 322 | |
| 323 | - for($i = $fday; $i <= $f_lastday; $i++) {
|
|
| 323 | + for($i = $fday; $i <= $f_lastday; $i++) {
|
|
| 324 | 324 | |
| 325 | - if (strlen($i) == '1') {
|
|
| 326 | - $tgl = '0'.$i; |
|
| 327 | - } else {
|
|
| 328 | - $tgl = $i; |
|
| 329 | - } |
|
| 325 | + if (strlen($i) == '1') {
|
|
| 326 | + $tgl = '0'.$i; |
|
| 327 | + } else {
|
|
| 328 | + $tgl = $i; |
|
| 329 | + } |
|
| 330 | 330 | |
| 331 | - $tanggal = $fyear.'-'.$fmonth.'-'.$tgl; |
|
| 331 | + $tanggal = $fyear.'-'.$fmonth.'-'.$tgl; |
|
| 332 | 332 | |
| 333 | - $DayName = date("D",strtotime($tanggal));
|
|
| 333 | + $DayName = date("D",strtotime($tanggal));
|
|
| 334 | 334 | |
| 335 | - echo"<td style='background-color: #1ABB9C;color: #E7E7E7;'> |
|
| 335 | + echo"<td style='background-color: #1ABB9C;color: #E7E7E7;'> |
|
| 336 | 336 | </td>"; |
| 337 | 337 | |
| 338 | - } |
|
| 338 | + } |
|
| 339 | 339 | |
| 340 | - for($i = 1; $i <= $lday; $i++) {
|
|
| 340 | + for($i = 1; $i <= $lday; $i++) {
|
|
| 341 | 341 | |
| 342 | - if (strlen($i) == '1') {
|
|
| 343 | - $tgl = '0'.$i; |
|
| 344 | - } else {
|
|
| 345 | - $tgl = $i; |
|
| 346 | - } |
|
| 342 | + if (strlen($i) == '1') {
|
|
| 343 | + $tgl = '0'.$i; |
|
| 344 | + } else {
|
|
| 345 | + $tgl = $i; |
|
| 346 | + } |
|
| 347 | 347 | |
| 348 | - $tanggal = $lyear.'-'.$lmonth.'-'.$tgl; |
|
| 348 | + $tanggal = $lyear.'-'.$lmonth.'-'.$tgl; |
|
| 349 | 349 | |
| 350 | - $DayName = date("D",strtotime($tanggal));
|
|
| 350 | + $DayName = date("D",strtotime($tanggal));
|
|
| 351 | 351 | |
| 352 | - echo"<td style='background-color: #1ABB9C;color: #E7E7E7;'> |
|
| 352 | + echo"<td style='background-color: #1ABB9C;color: #E7E7E7;'> |
|
| 353 | 353 | </td>"; |
| 354 | 354 | |
| 355 | - } |
|
| 356 | - } |
|
| 355 | + } |
|
| 356 | + } |
|
| 357 | 357 | |
| 358 | - echo"</tr>"; |
|
| 358 | + echo"</tr>"; |
|
| 359 | 359 | |
| 360 | - $rSQL= "SELECT * FROM room WHERE id_room_type = '$id_room_type' ORDER BY room_no"; |
|
| 360 | + $rSQL= "SELECT * FROM room WHERE id_room_type = '$id_room_type' ORDER BY room_no"; |
|
| 361 | 361 | |
| 362 | - $room = mysql_query($rSQL); |
|
| 362 | + $room = mysql_query($rSQL); |
|
| 363 | 363 | |
| 364 | - $no = 1; |
|
| 365 | - while($r=mysql_fetch_array($room)){
|
|
| 364 | + $no = 1; |
|
| 365 | + while($r=mysql_fetch_array($room)){
|
|
| 366 | 366 | |
| 367 | - $aktif = $r['aktif']; |
|
| 367 | + $aktif = $r['aktif']; |
|
| 368 | 368 | |
| 369 | - if(($no % 2)==0){
|
|
| 370 | - $sty="ftd"; |
|
| 371 | - } else{
|
|
| 372 | - $sty="ltd"; |
|
| 373 | - } |
|
| 369 | + if(($no % 2)==0){
|
|
| 370 | + $sty="ftd"; |
|
| 371 | + } else{
|
|
| 372 | + $sty="ltd"; |
|
| 373 | + } |
|
| 374 | 374 | |
| 375 | - $id_room = $r['id_room']; |
|
| 375 | + $id_room = $r['id_room']; |
|
| 376 | 376 | |
| 377 | - echo"<tr>"; |
|
| 378 | - echo"<td style='padding-left:20px;text-align:left;' class=$sty>".$r['room_no']."</td>"; |
|
| 377 | + echo"<tr>"; |
|
| 378 | + echo"<td style='padding-left:20px;text-align:left;' class=$sty>".$r['room_no']."</td>"; |
|
| 379 | 379 | |
| 380 | - if ($lmonth == $fmonth and $lyear == $fyear) {
|
|
| 380 | + if ($lmonth == $fmonth and $lyear == $fyear) {
|
|
| 381 | 381 | |
| 382 | - for($i = $fday; $i <= $lday; $i++) {
|
|
| 382 | + for($i = $fday; $i <= $lday; $i++) {
|
|
| 383 | 383 | |
| 384 | - if (strlen($i) == '1') {
|
|
| 385 | - $tgl = '0'.$i; |
|
| 386 | - } else {
|
|
| 387 | - $tgl = $i; |
|
| 388 | - } |
|
| 384 | + if (strlen($i) == '1') {
|
|
| 385 | + $tgl = '0'.$i; |
|
| 386 | + } else {
|
|
| 387 | + $tgl = $i; |
|
| 388 | + } |
|
| 389 | 389 | |
| 390 | - $tanggal = $fyear.'-'.$fmonth.'-'.$tgl; |
|
| 390 | + $tanggal = $fyear.'-'.$fmonth.'-'.$tgl; |
|
| 391 | 391 | |
| 392 | - echo"<td class=$sty style='padding:0;'>"; |
|
| 392 | + echo"<td class=$sty style='padding:0;'>"; |
|
| 393 | 393 | |
| 394 | - if ($aktif == 'T') {
|
|
| 395 | - echo" |
|
| 394 | + if ($aktif == 'T') {
|
|
| 395 | + echo" |
|
| 396 | 396 | <i class='fa fa-warning' style='color: red;font-size:18px' onMouseover=\"ddrivetip('Out of Order')\"; onMouseout=\"hideddrivetip()\"></i>
|
| 397 | 397 | "; |
| 398 | - } |
|
| 398 | + } |
|
| 399 | 399 | |
| 400 | - echo"<table cellpadding='0' cellspacing='0' border='0' width='100%'>"; |
|
| 401 | - echo"<tr>"; |
|
| 400 | + echo"<table cellpadding='0' cellspacing='0' border='0' width='100%'>"; |
|
| 401 | + echo"<tr>"; |
|
| 402 | 402 | |
| 403 | - $cSQL = "SELECT a.id_room,a.room_no,b.rdate,b.status,a.aktif,c.guest,c.initial,d.legend |
|
| 403 | + $cSQL = "SELECT a.id_room,a.room_no,b.rdate,b.status,a.aktif,c.guest,c.initial,d.legend |
|
| 404 | 404 | FROM room a left join room_reservation b |
| 405 | 405 | ON a.id_room = b.id_room |
| 406 | 406 | and b.status in ('0','1')
|
@@ -412,150 +412,150 @@ discard block |
||
| 412 | 412 | AND b.rdate = '$tanggal' |
| 413 | 413 | ORDER BY a.room_no,b.id_reservation"; |
| 414 | 414 | |
| 415 | - $croom = mysql_query($cSQL); |
|
| 415 | + $croom = mysql_query($cSQL); |
|
| 416 | 416 | |
| 417 | - $jml = mysql_num_rows($croom); |
|
| 417 | + $jml = mysql_num_rows($croom); |
|
| 418 | 418 | |
| 419 | - //$c=mysql_fetch_array($croom); |
|
| 420 | - while ($c=mysql_fetch_array($croom)){
|
|
| 419 | + //$c=mysql_fetch_array($croom); |
|
| 420 | + while ($c=mysql_fetch_array($croom)){
|
|
| 421 | 421 | |
| 422 | - $rdate = $c['rdate']; |
|
| 422 | + $rdate = $c['rdate']; |
|
| 423 | 423 | |
| 424 | - $lSQL = "SELECT '$rdate' - INTERVAL 1 DAY as ldate, '$rdate' + INTERVAL 1 DAY as ndate "; |
|
| 425 | - //echo $lSQL; |
|
| 426 | - $ld = mysql_query($lSQL); |
|
| 424 | + $lSQL = "SELECT '$rdate' - INTERVAL 1 DAY as ldate, '$rdate' + INTERVAL 1 DAY as ndate "; |
|
| 425 | + //echo $lSQL; |
|
| 426 | + $ld = mysql_query($lSQL); |
|
| 427 | 427 | |
| 428 | - $l=mysql_fetch_array($ld); |
|
| 428 | + $l=mysql_fetch_array($ld); |
|
| 429 | 429 | |
| 430 | - $ldate = $l['ldate']; |
|
| 430 | + $ldate = $l['ldate']; |
|
| 431 | 431 | |
| 432 | - $ndate = $l['ndate']; |
|
| 432 | + $ndate = $l['ndate']; |
|
| 433 | 433 | |
| 434 | - $cSQL1 = "SELECT * from room_reservation |
|
| 434 | + $cSQL1 = "SELECT * from room_reservation |
|
| 435 | 435 | WHERE id_room = '$id_room' |
| 436 | 436 | AND rdate = '$ldate'"; |
| 437 | 437 | |
| 438 | - $lroom = mysql_query($cSQL1); |
|
| 438 | + $lroom = mysql_query($cSQL1); |
|
| 439 | 439 | |
| 440 | - if ($ldate) {
|
|
| 441 | - $ljml = mysql_num_rows($lroom); |
|
| 442 | - } else {
|
|
| 443 | - $ljml = '0'; |
|
| 444 | - } |
|
| 440 | + if ($ldate) {
|
|
| 441 | + $ljml = mysql_num_rows($lroom); |
|
| 442 | + } else {
|
|
| 443 | + $ljml = '0'; |
|
| 444 | + } |
|
| 445 | 445 | |
| 446 | 446 | |
| 447 | - $cSQL2 = "SELECT * from room_reservation |
|
| 447 | + $cSQL2 = "SELECT * from room_reservation |
|
| 448 | 448 | WHERE id_room = '$id_room' |
| 449 | 449 | AND rdate = '$ndate'"; |
| 450 | 450 | |
| 451 | - $nroom = mysql_query($cSQL2); |
|
| 451 | + $nroom = mysql_query($cSQL2); |
|
| 452 | 452 | |
| 453 | - $njml = mysql_num_rows($nroom); |
|
| 453 | + $njml = mysql_num_rows($nroom); |
|
| 454 | 454 | |
| 455 | 455 | |
| 456 | - if ($ndate) {
|
|
| 457 | - $njml = mysql_num_rows($nroom); |
|
| 458 | - } else {
|
|
| 459 | - $njml = '0'; |
|
| 460 | - } |
|
| 456 | + if ($ndate) {
|
|
| 457 | + $njml = mysql_num_rows($nroom); |
|
| 458 | + } else {
|
|
| 459 | + $njml = '0'; |
|
| 460 | + } |
|
| 461 | 461 | |
| 462 | 462 | |
| 463 | - $guest = $c['guest']; |
|
| 463 | + $guest = $c['guest']; |
|
| 464 | 464 | |
| 465 | - $legend = $c['legend']; |
|
| 466 | - $status = $c['status']; |
|
| 465 | + $legend = $c['legend']; |
|
| 466 | + $status = $c['status']; |
|
| 467 | 467 | |
| 468 | 468 | |
| 469 | - if ($status == 0) {
|
|
| 470 | - $icolor = '#fff'; |
|
| 471 | - } else {
|
|
| 472 | - $icolor = '#fff'; |
|
| 473 | - } |
|
| 469 | + if ($status == 0) {
|
|
| 470 | + $icolor = '#fff'; |
|
| 471 | + } else {
|
|
| 472 | + $icolor = '#fff'; |
|
| 473 | + } |
|
| 474 | 474 | |
| 475 | - if ($status == 0) {
|
|
| 476 | - $istatus = 'Reserved'; |
|
| 477 | - } elseif ($status == 1) {
|
|
| 478 | - $istatus = 'Check In'; |
|
| 479 | - } else {
|
|
| 480 | - $istatus = 'Check Out'; |
|
| 481 | - } |
|
| 475 | + if ($status == 0) {
|
|
| 476 | + $istatus = 'Reserved'; |
|
| 477 | + } elseif ($status == 1) {
|
|
| 478 | + $istatus = 'Check In'; |
|
| 479 | + } else {
|
|
| 480 | + $istatus = 'Check Out'; |
|
| 481 | + } |
|
| 482 | 482 | |
| 483 | - $iguest = trim($c['initial']).'. '.trim($c['guest']).' | '.$istatus; |
|
| 483 | + $iguest = trim($c['initial']).'. '.trim($c['guest']).' | '.$istatus; |
|
| 484 | 484 | |
| 485 | 485 | |
| 486 | 486 | |
| 487 | - if($c['initial'] == 'Mr ' ) {
|
|
| 488 | - $icon = 'fa fa-male'; |
|
| 489 | - } else {
|
|
| 490 | - $icon = 'fa fa-female'; |
|
| 491 | - } |
|
| 487 | + if($c['initial'] == 'Mr ' ) {
|
|
| 488 | + $icon = 'fa fa-male'; |
|
| 489 | + } else {
|
|
| 490 | + $icon = 'fa fa-female'; |
|
| 491 | + } |
|
| 492 | 492 | |
| 493 | - echo $ljml.'-'.$jml.'-'.$njml; |
|
| 493 | + echo $ljml.'-'.$jml.'-'.$njml; |
|
| 494 | 494 | |
| 495 | - //if ($jml == '1') {
|
|
| 495 | + //if ($jml == '1') {
|
|
| 496 | 496 | |
| 497 | - if ($ljml == '0' and $jml == '1' and $njml == '1') {
|
|
| 498 | - echo"<td width='50%'> |
|
| 497 | + if ($ljml == '0' and $jml == '1' and $njml == '1') {
|
|
| 498 | + echo"<td width='50%'> |
|
| 499 | 499 | </td>"; |
| 500 | - } |
|
| 500 | + } |
|
| 501 | 501 | |
| 502 | - if ($guest) {
|
|
| 502 | + if ($guest) {
|
|
| 503 | 503 | |
| 504 | 504 | |
| 505 | - if ($guest) {
|
|
| 506 | - echo"<td style='background-color:$legend;' width='50%'> |
|
| 505 | + if ($guest) {
|
|
| 506 | + echo"<td style='background-color:$legend;' width='50%'> |
|
| 507 | 507 | <a href='' onMouseover=\"ddrivetip('$iguest')\"; onMouseout=\"hideddrivetip()\" title=''><i class='$icon' style='color: $icolor;font-size:15px'></i></a>
|
| 508 | 508 | </td>"; |
| 509 | - } else {
|
|
| 510 | - echo"<td style='background-color:$legend;' width='50%'> |
|
| 509 | + } else {
|
|
| 510 | + echo"<td style='background-color:$legend;' width='50%'> |
|
| 511 | 511 | </td>"; |
| 512 | - } |
|
| 512 | + } |
|
| 513 | 513 | |
| 514 | 514 | |
| 515 | - } |
|
| 515 | + } |
|
| 516 | 516 | |
| 517 | - } |
|
| 517 | + } |
|
| 518 | 518 | |
| 519 | - if ($ljml != '0' and $jml == '1') {
|
|
| 520 | - echo"<td width='50%'> |
|
| 519 | + if ($ljml != '0' and $jml == '1') {
|
|
| 520 | + echo"<td width='50%'> |
|
| 521 | 521 | </td>"; |
| 522 | - } |
|
| 522 | + } |
|
| 523 | 523 | |
| 524 | - //} |
|
| 524 | + //} |
|
| 525 | 525 | |
| 526 | 526 | |
| 527 | 527 | |
| 528 | - echo"</tr>"; |
|
| 529 | - echo"</table>"; |
|
| 530 | - echo"</td>"; |
|
| 528 | + echo"</tr>"; |
|
| 529 | + echo"</table>"; |
|
| 530 | + echo"</td>"; |
|
| 531 | 531 | |
| 532 | 532 | |
| 533 | - } |
|
| 533 | + } |
|
| 534 | 534 | |
| 535 | - } else {
|
|
| 535 | + } else {
|
|
| 536 | 536 | |
| 537 | - for($i = $fday; $i <= $f_lastday; $i++) {
|
|
| 537 | + for($i = $fday; $i <= $f_lastday; $i++) {
|
|
| 538 | 538 | |
| 539 | - if (strlen($i) == '1') {
|
|
| 540 | - $tgl = '0'.$i; |
|
| 541 | - } else {
|
|
| 542 | - $tgl = $i; |
|
| 543 | - } |
|
| 539 | + if (strlen($i) == '1') {
|
|
| 540 | + $tgl = '0'.$i; |
|
| 541 | + } else {
|
|
| 542 | + $tgl = $i; |
|
| 543 | + } |
|
| 544 | 544 | |
| 545 | - $tanggal = $fyear.'-'.$fmonth.'-'.$tgl; |
|
| 545 | + $tanggal = $fyear.'-'.$fmonth.'-'.$tgl; |
|
| 546 | 546 | |
| 547 | - echo"<td class=$sty style='padding:0;'>"; |
|
| 547 | + echo"<td class=$sty style='padding:0;'>"; |
|
| 548 | 548 | |
| 549 | - if ($aktif == 'T') {
|
|
| 550 | - echo" |
|
| 549 | + if ($aktif == 'T') {
|
|
| 550 | + echo" |
|
| 551 | 551 | <i class='fa fa-warning' style='color: red;font-size:18px' onMouseover=\"ddrivetip('Out of Order')\"; onMouseout=\"hideddrivetip()\"></i>
|
| 552 | 552 | "; |
| 553 | - } |
|
| 553 | + } |
|
| 554 | 554 | |
| 555 | - echo"<table cellpadding='0' cellspacing='0' border='0' width='100%'>"; |
|
| 556 | - echo"<tr>"; |
|
| 555 | + echo"<table cellpadding='0' cellspacing='0' border='0' width='100%'>"; |
|
| 556 | + echo"<tr>"; |
|
| 557 | 557 | |
| 558 | - $cSQL = "SELECT a.id_room,a.room_no,b.rdate,b.status,a.aktif,c.guest,c.initial,d.legend |
|
| 558 | + $cSQL = "SELECT a.id_room,a.room_no,b.rdate,b.status,a.aktif,c.guest,c.initial,d.legend |
|
| 559 | 559 | FROM room a left join room_reservation b |
| 560 | 560 | ON a.id_room = b.id_room |
| 561 | 561 | and b.status in ('0','1')
|
@@ -567,96 +567,96 @@ discard block |
||
| 567 | 567 | AND b.rdate = '$tanggal' |
| 568 | 568 | ORDER BY a.room_no"; |
| 569 | 569 | |
| 570 | - $croom = mysql_query($cSQL); |
|
| 570 | + $croom = mysql_query($cSQL); |
|
| 571 | 571 | |
| 572 | - $jml = mysql_num_rows($croom); |
|
| 572 | + $jml = mysql_num_rows($croom); |
|
| 573 | 573 | |
| 574 | - //$c=mysql_fetch_array($croom); |
|
| 575 | - while ($c=mysql_fetch_array($croom)){
|
|
| 574 | + //$c=mysql_fetch_array($croom); |
|
| 575 | + while ($c=mysql_fetch_array($croom)){
|
|
| 576 | 576 | |
| 577 | 577 | |
| 578 | - $guest = $c['guest']; |
|
| 578 | + $guest = $c['guest']; |
|
| 579 | 579 | |
| 580 | - $legend = $c['legend']; |
|
| 581 | - $status = $c['status']; |
|
| 580 | + $legend = $c['legend']; |
|
| 581 | + $status = $c['status']; |
|
| 582 | 582 | |
| 583 | - if ($status == 0) {
|
|
| 584 | - $icolor = '#fff'; |
|
| 585 | - } else {
|
|
| 586 | - $icolor = '#fff'; |
|
| 587 | - } |
|
| 583 | + if ($status == 0) {
|
|
| 584 | + $icolor = '#fff'; |
|
| 585 | + } else {
|
|
| 586 | + $icolor = '#fff'; |
|
| 587 | + } |
|
| 588 | 588 | |
| 589 | - if ($status == 0) {
|
|
| 590 | - $istatus = 'Reserved'; |
|
| 591 | - } elseif ($status == 1) {
|
|
| 592 | - $istatus = 'Check In'; |
|
| 593 | - } else {
|
|
| 594 | - $istatus = 'Check Out'; |
|
| 595 | - } |
|
| 589 | + if ($status == 0) {
|
|
| 590 | + $istatus = 'Reserved'; |
|
| 591 | + } elseif ($status == 1) {
|
|
| 592 | + $istatus = 'Check In'; |
|
| 593 | + } else {
|
|
| 594 | + $istatus = 'Check Out'; |
|
| 595 | + } |
|
| 596 | 596 | |
| 597 | - $iguest = trim($c['initial']).'. '.trim($c['guest']).' | '.$istatus; |
|
| 597 | + $iguest = trim($c['initial']).'. '.trim($c['guest']).' | '.$istatus; |
|
| 598 | 598 | |
| 599 | 599 | |
| 600 | 600 | |
| 601 | - if($c['initial'] == 'Mr ' ) {
|
|
| 602 | - $icon = 'fa fa-male'; |
|
| 603 | - } else {
|
|
| 604 | - $icon = 'fa fa-female'; |
|
| 605 | - } |
|
| 601 | + if($c['initial'] == 'Mr ' ) {
|
|
| 602 | + $icon = 'fa fa-male'; |
|
| 603 | + } else {
|
|
| 604 | + $icon = 'fa fa-female'; |
|
| 605 | + } |
|
| 606 | 606 | |
| 607 | - if ($guest) {
|
|
| 607 | + if ($guest) {
|
|
| 608 | 608 | |
| 609 | 609 | |
| 610 | - if ($guest) {
|
|
| 611 | - echo"<td style='background-color:$legend;' width='50%'> |
|
| 610 | + if ($guest) {
|
|
| 611 | + echo"<td style='background-color:$legend;' width='50%'> |
|
| 612 | 612 | <a href='' onMouseover=\"ddrivetip('$iguest')\"; onMouseout=\"hideddrivetip()\" title=''><i class='$icon' style='color: $icolor;font-size:15px'></i></a>
|
| 613 | 613 | </td>"; |
| 614 | - } else {
|
|
| 615 | - echo"<td style='background-color:$legend;' width='50%'> |
|
| 614 | + } else {
|
|
| 615 | + echo"<td style='background-color:$legend;' width='50%'> |
|
| 616 | 616 | </td>"; |
| 617 | - } |
|
| 617 | + } |
|
| 618 | 618 | |
| 619 | 619 | |
| 620 | - } |
|
| 620 | + } |
|
| 621 | 621 | |
| 622 | - } |
|
| 622 | + } |
|
| 623 | 623 | |
| 624 | - if ($jml == '1') {
|
|
| 624 | + if ($jml == '1') {
|
|
| 625 | 625 | |
| 626 | 626 | |
| 627 | - echo"<td width='50%'> |
|
| 627 | + echo"<td width='50%'> |
|
| 628 | 628 | </td>"; |
| 629 | - } |
|
| 629 | + } |
|
| 630 | 630 | |
| 631 | - echo"</tr>"; |
|
| 632 | - echo"</table>"; |
|
| 633 | - echo"</td>"; |
|
| 631 | + echo"</tr>"; |
|
| 632 | + echo"</table>"; |
|
| 633 | + echo"</td>"; |
|
| 634 | 634 | |
| 635 | 635 | |
| 636 | - } |
|
| 636 | + } |
|
| 637 | 637 | |
| 638 | - for($i = 1; $i <= $lday; $i++) {
|
|
| 638 | + for($i = 1; $i <= $lday; $i++) {
|
|
| 639 | 639 | |
| 640 | - if (strlen($i) == '1') {
|
|
| 641 | - $tgl = '0'.$i; |
|
| 642 | - } else {
|
|
| 643 | - $tgl = $i; |
|
| 644 | - } |
|
| 640 | + if (strlen($i) == '1') {
|
|
| 641 | + $tgl = '0'.$i; |
|
| 642 | + } else {
|
|
| 643 | + $tgl = $i; |
|
| 644 | + } |
|
| 645 | 645 | |
| 646 | - $tanggal = $lyear.'-'.$lmonth.'-'.$tgl; |
|
| 646 | + $tanggal = $lyear.'-'.$lmonth.'-'.$tgl; |
|
| 647 | 647 | |
| 648 | - echo"<td class=$sty style='padding:0;'>"; |
|
| 648 | + echo"<td class=$sty style='padding:0;'>"; |
|
| 649 | 649 | |
| 650 | - if ($aktif == 'T') {
|
|
| 651 | - echo" |
|
| 650 | + if ($aktif == 'T') {
|
|
| 651 | + echo" |
|
| 652 | 652 | <i class='fa fa-warning' style='color: red;font-size:18px' onMouseover=\"ddrivetip('Out of Order')\"; onMouseout=\"hideddrivetip()\"></i>
|
| 653 | 653 | "; |
| 654 | - } |
|
| 654 | + } |
|
| 655 | 655 | |
| 656 | - echo"<table cellpadding='0' cellspacing='0' border='0' width='100%'>"; |
|
| 657 | - echo"<tr>"; |
|
| 656 | + echo"<table cellpadding='0' cellspacing='0' border='0' width='100%'>"; |
|
| 657 | + echo"<tr>"; |
|
| 658 | 658 | |
| 659 | - $cSQL = "SELECT a.id_room,a.room_no,b.rdate,b.status,a.aktif,c.guest,c.initial,d.legend |
|
| 659 | + $cSQL = "SELECT a.id_room,a.room_no,b.rdate,b.status,a.aktif,c.guest,c.initial,d.legend |
|
| 660 | 660 | FROM room a left join room_reservation b |
| 661 | 661 | ON a.id_room = b.id_room |
| 662 | 662 | and b.status in ('0','1')
|
@@ -668,80 +668,80 @@ discard block |
||
| 668 | 668 | AND b.rdate = '$tanggal' |
| 669 | 669 | ORDER BY a.room_no"; |
| 670 | 670 | |
| 671 | - $croom = mysql_query($cSQL); |
|
| 671 | + $croom = mysql_query($cSQL); |
|
| 672 | 672 | |
| 673 | - $jml = mysql_num_rows($croom); |
|
| 673 | + $jml = mysql_num_rows($croom); |
|
| 674 | 674 | |
| 675 | - //$c=mysql_fetch_array($croom); |
|
| 676 | - while ($c=mysql_fetch_array($croom)){
|
|
| 675 | + //$c=mysql_fetch_array($croom); |
|
| 676 | + while ($c=mysql_fetch_array($croom)){
|
|
| 677 | 677 | |
| 678 | 678 | |
| 679 | - $guest = $c['guest']; |
|
| 679 | + $guest = $c['guest']; |
|
| 680 | 680 | |
| 681 | - $legend = $c['legend']; |
|
| 682 | - $status = $c['status']; |
|
| 681 | + $legend = $c['legend']; |
|
| 682 | + $status = $c['status']; |
|
| 683 | 683 | |
| 684 | - if ($status == 0) {
|
|
| 685 | - $icolor = '#fff'; |
|
| 686 | - } else {
|
|
| 687 | - $icolor = '#fff'; |
|
| 688 | - } |
|
| 684 | + if ($status == 0) {
|
|
| 685 | + $icolor = '#fff'; |
|
| 686 | + } else {
|
|
| 687 | + $icolor = '#fff'; |
|
| 688 | + } |
|
| 689 | 689 | |
| 690 | - if ($status == 0) {
|
|
| 691 | - $istatus = 'Reserved'; |
|
| 692 | - } elseif ($status == 1) {
|
|
| 693 | - $istatus = 'Check In'; |
|
| 694 | - } else {
|
|
| 695 | - $istatus = 'Check Out'; |
|
| 696 | - } |
|
| 690 | + if ($status == 0) {
|
|
| 691 | + $istatus = 'Reserved'; |
|
| 692 | + } elseif ($status == 1) {
|
|
| 693 | + $istatus = 'Check In'; |
|
| 694 | + } else {
|
|
| 695 | + $istatus = 'Check Out'; |
|
| 696 | + } |
|
| 697 | 697 | |
| 698 | - $iguest = trim($c['initial']).'. '.trim($c['guest']).' | '.$istatus; |
|
| 698 | + $iguest = trim($c['initial']).'. '.trim($c['guest']).' | '.$istatus; |
|
| 699 | 699 | |
| 700 | 700 | |
| 701 | 701 | |
| 702 | - if($c['initial'] == 'Mr ' ) {
|
|
| 703 | - $icon = 'fa fa-male'; |
|
| 704 | - } else {
|
|
| 705 | - $icon = 'fa fa-female'; |
|
| 706 | - } |
|
| 702 | + if($c['initial'] == 'Mr ' ) {
|
|
| 703 | + $icon = 'fa fa-male'; |
|
| 704 | + } else {
|
|
| 705 | + $icon = 'fa fa-female'; |
|
| 706 | + } |
|
| 707 | 707 | |
| 708 | - if ($guest) {
|
|
| 708 | + if ($guest) {
|
|
| 709 | 709 | |
| 710 | 710 | |
| 711 | - if ($guest) {
|
|
| 712 | - echo"<td style='background-color:$legend;' width='50%'> |
|
| 711 | + if ($guest) {
|
|
| 712 | + echo"<td style='background-color:$legend;' width='50%'> |
|
| 713 | 713 | <a href='' onMouseover=\"ddrivetip('$iguest')\"; onMouseout=\"hideddrivetip()\" title=''><i class='$icon' style='color: $icolor;font-size:15px'></i></a>
|
| 714 | 714 | </td>"; |
| 715 | - } else {
|
|
| 716 | - echo"<td style='background-color:$legend;' width='50%'> |
|
| 715 | + } else {
|
|
| 716 | + echo"<td style='background-color:$legend;' width='50%'> |
|
| 717 | 717 | </td>"; |
| 718 | - } |
|
| 718 | + } |
|
| 719 | 719 | |
| 720 | 720 | |
| 721 | - } |
|
| 721 | + } |
|
| 722 | 722 | |
| 723 | - } |
|
| 723 | + } |
|
| 724 | 724 | |
| 725 | - if ($jml == '1') {
|
|
| 726 | - echo"<td width='50%'> |
|
| 725 | + if ($jml == '1') {
|
|
| 726 | + echo"<td width='50%'> |
|
| 727 | 727 | </td>"; |
| 728 | - } |
|
| 728 | + } |
|
| 729 | 729 | |
| 730 | - echo"</tr>"; |
|
| 731 | - echo"</table>"; |
|
| 732 | - echo"</td>"; |
|
| 730 | + echo"</tr>"; |
|
| 731 | + echo"</table>"; |
|
| 732 | + echo"</td>"; |
|
| 733 | 733 | |
| 734 | 734 | |
| 735 | - } |
|
| 736 | - } |
|
| 737 | - echo"</tr>"; |
|
| 735 | + } |
|
| 736 | + } |
|
| 737 | + echo"</tr>"; |
|
| 738 | 738 | |
| 739 | - $no++; |
|
| 740 | - } |
|
| 739 | + $no++; |
|
| 740 | + } |
|
| 741 | 741 | |
| 742 | 742 | |
| 743 | - } |
|
| 744 | - ?> |
|
| 743 | + } |
|
| 744 | + ?> |
|
| 745 | 745 | |
| 746 | 746 | </tbody> |
| 747 | 747 | </table> |
@@ -755,19 +755,19 @@ discard block |
||
| 755 | 755 | <tr> |
| 756 | 756 | <td style='padding-right:3px;'>Room Status : </td> |
| 757 | 757 | <? |
| 758 | - $SQL= "SELECT * FROM room_status where aktif ='Y' ORDER BY id_room_status"; |
|
| 759 | - $tampil=mysql_query($SQL); |
|
| 758 | + $SQL= "SELECT * FROM room_status where aktif ='Y' ORDER BY id_room_status"; |
|
| 759 | + $tampil=mysql_query($SQL); |
|
| 760 | 760 | |
| 761 | - while($r=mysql_fetch_array($tampil)){
|
|
| 761 | + while($r=mysql_fetch_array($tampil)){
|
|
| 762 | 762 | |
| 763 | 763 | |
| 764 | - echo"<td style='width:20px;background-color:".$r['legend'].";'> </td>"; |
|
| 765 | - echo"<td style='padding-left:3px;'>".$r['room_status']." </td>"; |
|
| 764 | + echo"<td style='width:20px;background-color:".$r['legend'].";'> </td>"; |
|
| 765 | + echo"<td style='padding-left:3px;'>".$r['room_status']." </td>"; |
|
| 766 | 766 | |
| 767 | 767 | |
| 768 | - } |
|
| 768 | + } |
|
| 769 | 769 | |
| 770 | - ?> |
|
| 770 | + ?> |
|
| 771 | 771 | </tr> |
| 772 | 772 | </table> |
| 773 | 773 | </div> |
@@ -778,14 +778,14 @@ discard block |
||
| 778 | 778 | <td style='padding-right:3px;'>Day Status : </td> |
| 779 | 779 | <? |
| 780 | 780 | |
| 781 | - echo"<td style='width:20px;background-color:#eba51c;'> </td>"; |
|
| 782 | - echo"<td style='padding-left:3px;'>Spesial Day </td>"; |
|
| 783 | - echo"<td style='width:20px;background-color:#eb1c41;'> </td>"; |
|
| 784 | - echo"<td style='padding-left:3px;'>Weekend </td>"; |
|
| 785 | - echo"<td style='width:20px;background-color:#2A3F54;;'> </td>"; |
|
| 786 | - echo"<td style='padding-left:3px;'>Weekday </td>"; |
|
| 787 | - |
|
| 788 | - ?> |
|
| 781 | + echo"<td style='width:20px;background-color:#eba51c;'> </td>"; |
|
| 782 | + echo"<td style='padding-left:3px;'>Spesial Day </td>"; |
|
| 783 | + echo"<td style='width:20px;background-color:#eb1c41;'> </td>"; |
|
| 784 | + echo"<td style='padding-left:3px;'>Weekend </td>"; |
|
| 785 | + echo"<td style='width:20px;background-color:#2A3F54;;'> </td>"; |
|
| 786 | + echo"<td style='padding-left:3px;'>Weekday </td>"; |
|
| 787 | + |
|
| 788 | + ?> |
|
| 789 | 789 | </tr> |
| 790 | 790 | </table> |
| 791 | 791 | </div> |
@@ -47,22 +47,22 @@ discard block |
||
| 47 | 47 | </style> |
| 48 | 48 | |
| 49 | 49 | <?php |
| 50 | -switch($_GET[act]){
|
|
| 50 | +switch ($_GET[act]) {
|
|
| 51 | 51 | |
| 52 | 52 | default: |
| 53 | 53 | |
| 54 | -if($_GET['fdate']) {
|
|
| 54 | +if ($_GET['fdate']) {
|
|
| 55 | 55 | $fdate = $_GET['fdate']; |
| 56 | 56 | } else {
|
| 57 | 57 | $hour = time() - (1 * 1 * 60 * 60); |
| 58 | 58 | $fdate = date("Y-m-d", $hour);
|
| 59 | 59 | } |
| 60 | 60 | |
| 61 | -if($_GET['ldate']) {
|
|
| 61 | +if ($_GET['ldate']) {
|
|
| 62 | 62 | $ldate = $_GET['ldate']; |
| 63 | 63 | } else {
|
| 64 | 64 | $hour = time() - (1 * 1 * 60 * 60) + (168 * 1 * 60 * 60); |
| 65 | - $ldate = date("Y-m-d",$hour);
|
|
| 65 | + $ldate = date("Y-m-d", $hour);
|
|
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | $fdate1 = date("m/d/Y", strtotime($fdate));
|
@@ -76,31 +76,31 @@ discard block |
||
| 76 | 76 | |
| 77 | 77 | $fmonthName = date("M", mktime(0, 0, 0, $fmonth, 10));
|
| 78 | 78 | |
| 79 | - $lday = mysql_query("SELECT substr(LAST_DAY('$fdate'),-2,2) as lastday ");
|
|
| 80 | - $l = mysql_fetch_array($lday); |
|
| 81 | - $f_lastday = $l['lastday']; |
|
| 82 | - $f_jml = ($f_lastday-$fday)+1; |
|
| 79 | + $lday = mysql_query("SELECT substr(LAST_DAY('$fdate'),-2,2) as lastday ");
|
|
| 80 | + $l = mysql_fetch_array($lday); |
|
| 81 | + $f_lastday = $l['lastday']; |
|
| 82 | + $f_jml = ($f_lastday - $fday) + 1; |
|
| 83 | 83 | |
| 84 | 84 | //$ldate = '2014-08-15'; |
| 85 | 85 | |
| 86 | - $lday = date("d", strtotime($ldate));
|
|
| 86 | + $lday = date("d", strtotime($ldate));
|
|
| 87 | 87 | $lmonth = date("m", strtotime($ldate));
|
| 88 | 88 | $lyear = date("Y", strtotime($ldate));
|
| 89 | 89 | $l_jml = $lday; |
| 90 | 90 | |
| 91 | 91 | $lmonthName = date("M", mktime(0, 0, 0, $lmonth, 10));
|
| 92 | 92 | |
| 93 | - $jml = ($lday - $fday)+1; |
|
| 93 | + $jml = ($lday - $fday) + 1; |
|
| 94 | 94 | |
| 95 | 95 | |
| 96 | -if($_GET['ldate']) {
|
|
| 97 | - if ($lmonth == $fmonth and $lyear == $fyear) {
|
|
| 98 | - $jcol = $jml; |
|
| 96 | +if ($_GET['ldate']) {
|
|
| 97 | + if ($lmonth==$fmonth and $lyear==$fyear) {
|
|
| 98 | + $jcol = $jml; |
|
| 99 | 99 | } else {
|
| 100 | - $jcol = $f_jml+$l_jml; |
|
| 100 | + $jcol = $f_jml + $l_jml; |
|
| 101 | 101 | } |
| 102 | 102 | } else {
|
| 103 | - $jcol = 8; |
|
| 103 | + $jcol = 8; |
|
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | ?> |
@@ -123,10 +123,10 @@ discard block |
||
| 123 | 123 | <option value="">--------- Room Type ---------</option> |
| 124 | 124 | <? |
| 125 | 125 | $query = mysql_query('SELECT * FROM room_type ORDER BY room_type');
|
| 126 | - if($query && mysql_num_rows($query) > 0){
|
|
| 127 | - while($row = mysql_fetch_object($query)){
|
|
| 126 | + if ($query && mysql_num_rows($query)>0) {
|
|
| 127 | + while ($row = mysql_fetch_object($query)) {
|
|
| 128 | 128 | echo '<option value="'.$row->id_room_type.'"'; |
| 129 | - if($row->id_room_type == $_GET['room_type']) echo ' selected'; |
|
| 129 | + if ($row->id_room_type==$_GET['room_type']) echo ' selected'; |
|
| 130 | 130 | echo '>'.$row->room_type.'</option>'; |
| 131 | 131 | } |
| 132 | 132 | } |
@@ -155,35 +155,35 @@ discard block |
||
| 155 | 155 | <th style='text-align:center;' width='17%' ><h3 style='font-size:12px;'>Room</h3></th> |
| 156 | 156 | |
| 157 | 157 | <? |
| 158 | - $col = (83/$jcol); |
|
| 158 | + $col = (83 / $jcol); |
|
| 159 | 159 | |
| 160 | 160 | |
| 161 | - if ($lmonth == $fmonth and $lyear == $fyear) {
|
|
| 161 | + if ($lmonth==$fmonth and $lyear==$fyear) {
|
|
| 162 | 162 | |
| 163 | - for($i = $fday; $i <= $lday; $i++) {
|
|
| 163 | + for ($i = $fday; $i<=$lday; $i++) {
|
|
| 164 | 164 | |
| 165 | - if (strlen($i) == '1') {
|
|
| 166 | - $tgl = '0'.$i; |
|
| 165 | + if (strlen($i)=='1') {
|
|
| 166 | + $tgl = '0'.$i; |
|
| 167 | 167 | } else {
|
| 168 | - $tgl = $i; |
|
| 168 | + $tgl = $i; |
|
| 169 | 169 | } |
| 170 | 170 | |
| 171 | 171 | $tanggal = $fyear.'-'.$fmonth.'-'.$tgl; |
| 172 | 172 | |
| 173 | - $DayName = date("D",strtotime($tanggal));
|
|
| 173 | + $DayName = date("D", strtotime($tanggal));
|
|
| 174 | 174 | |
| 175 | - $sSQL= "select sdate from special_day_detail where sdate in ('$tanggal')";
|
|
| 175 | + $sSQL = "select sdate from special_day_detail where sdate in ('$tanggal')";
|
|
| 176 | 176 | $sday = mysql_query($sSQL); |
| 177 | - $s=mysql_fetch_array($sday); |
|
| 177 | + $s = mysql_fetch_array($sday); |
|
| 178 | 178 | |
| 179 | 179 | $nday = date('N', strtotime($tanggal));
|
| 180 | 180 | |
| 181 | - if($s['sdate']) {
|
|
| 182 | - $bg ='#eba51c'; |
|
| 183 | - } else if ($nday == '6' or $nday == '7') {
|
|
| 184 | - $bg ='#eb1c41'; |
|
| 181 | + if ($s['sdate']) {
|
|
| 182 | + $bg = '#eba51c'; |
|
| 183 | + } else if ($nday=='6' or $nday=='7') {
|
|
| 184 | + $bg = '#eb1c41'; |
|
| 185 | 185 | } else {
|
| 186 | - $bg =''; |
|
| 186 | + $bg = ''; |
|
| 187 | 187 | } |
| 188 | 188 | |
| 189 | 189 | echo"<th style='text-align:center;background-color:$bg' width='$col%'> |
@@ -198,30 +198,30 @@ discard block |
||
| 198 | 198 | |
| 199 | 199 | } else {
|
| 200 | 200 | |
| 201 | - for($i = $fday; $i <= $f_lastday; $i++) {
|
|
| 201 | + for ($i = $fday; $i<=$f_lastday; $i++) {
|
|
| 202 | 202 | |
| 203 | - if (strlen($i) == '1') {
|
|
| 204 | - $tgl = '0'.$i; |
|
| 203 | + if (strlen($i)=='1') {
|
|
| 204 | + $tgl = '0'.$i; |
|
| 205 | 205 | } else {
|
| 206 | - $tgl = $i; |
|
| 206 | + $tgl = $i; |
|
| 207 | 207 | } |
| 208 | 208 | |
| 209 | 209 | $tanggal = $fyear.'-'.$fmonth.'-'.$tgl; |
| 210 | 210 | |
| 211 | - $DayName = date("D",strtotime($tanggal));
|
|
| 211 | + $DayName = date("D", strtotime($tanggal));
|
|
| 212 | 212 | |
| 213 | - $sSQL= "select sdate from special_day_detail where sdate in ('$tanggal')";
|
|
| 213 | + $sSQL = "select sdate from special_day_detail where sdate in ('$tanggal')";
|
|
| 214 | 214 | $sday = mysql_query($sSQL); |
| 215 | - $s=mysql_fetch_array($sday); |
|
| 215 | + $s = mysql_fetch_array($sday); |
|
| 216 | 216 | |
| 217 | 217 | $nday = date('N', strtotime($tanggal));
|
| 218 | 218 | |
| 219 | - if($s['sdate']) {
|
|
| 220 | - $bg ='#eba51c'; |
|
| 221 | - } else if ($nday == '6' or $nday == '7') {
|
|
| 222 | - $bg ='#eb1c41'; |
|
| 219 | + if ($s['sdate']) {
|
|
| 220 | + $bg = '#eba51c'; |
|
| 221 | + } else if ($nday=='6' or $nday=='7') {
|
|
| 222 | + $bg = '#eb1c41'; |
|
| 223 | 223 | } else {
|
| 224 | - $bg =''; |
|
| 224 | + $bg = ''; |
|
| 225 | 225 | } |
| 226 | 226 | |
| 227 | 227 | echo"<th style='text-align:center;background-color:$bg' width='$col%'> |
@@ -234,31 +234,31 @@ discard block |
||
| 234 | 234 | |
| 235 | 235 | } |
| 236 | 236 | |
| 237 | - for($i = 1; $i <= $lday; $i++) {
|
|
| 237 | + for ($i = 1; $i<=$lday; $i++) {
|
|
| 238 | 238 | |
| 239 | - if (strlen($i) == '1') {
|
|
| 240 | - $tgl = '0'.$i; |
|
| 239 | + if (strlen($i)=='1') {
|
|
| 240 | + $tgl = '0'.$i; |
|
| 241 | 241 | } else {
|
| 242 | - $tgl = $i; |
|
| 242 | + $tgl = $i; |
|
| 243 | 243 | } |
| 244 | 244 | |
| 245 | 245 | $tanggal = $lyear.'-'.$lmonth.'-'.$tgl; |
| 246 | 246 | |
| 247 | 247 | |
| 248 | - $DayName = date("D",strtotime($tanggal));
|
|
| 248 | + $DayName = date("D", strtotime($tanggal));
|
|
| 249 | 249 | |
| 250 | - $sSQL= "select sdate from special_day_detail where sdate in ('$tanggal')";
|
|
| 250 | + $sSQL = "select sdate from special_day_detail where sdate in ('$tanggal')";
|
|
| 251 | 251 | $sday = mysql_query($sSQL); |
| 252 | - $s=mysql_fetch_array($sday); |
|
| 252 | + $s = mysql_fetch_array($sday); |
|
| 253 | 253 | |
| 254 | 254 | $nday = date('N', strtotime($tanggal));
|
| 255 | 255 | |
| 256 | - if($s['sdate']) {
|
|
| 257 | - $bg ='#eba51c'; |
|
| 258 | - } else if ($nday == '6' or $nday == '7') {
|
|
| 259 | - $bg ='#eb1c41'; |
|
| 256 | + if ($s['sdate']) {
|
|
| 257 | + $bg = '#eba51c'; |
|
| 258 | + } else if ($nday=='6' or $nday=='7') {
|
|
| 259 | + $bg = '#eb1c41'; |
|
| 260 | 260 | } else {
|
| 261 | - $bg =''; |
|
| 261 | + $bg = ''; |
|
| 262 | 262 | } |
| 263 | 263 | |
| 264 | 264 | echo"<th style='text-align:center;background-color:$bg' width='$col%'> |
@@ -282,17 +282,17 @@ discard block |
||
| 282 | 282 | |
| 283 | 283 | |
| 284 | 284 | <? |
| 285 | - $tSQL = "SELECT * FROM room_type "; |
|
| 285 | + $tSQL = "SELECT * FROM room_type "; |
|
| 286 | 286 | |
| 287 | - if ($_GET['room_type']){
|
|
| 288 | - $tSQL .= "WHERE id_room_type = '$_GET[room_type]'"; |
|
| 287 | + if ($_GET['room_type']) {
|
|
| 288 | + $tSQL .= "WHERE id_room_type = '$_GET[room_type]'"; |
|
| 289 | 289 | } |
| 290 | 290 | |
| 291 | - $tSQL .= "ORDER BY room_type"; |
|
| 291 | + $tSQL .= "ORDER BY room_type"; |
|
| 292 | 292 | |
| 293 | 293 | $type = mysql_query($tSQL); |
| 294 | 294 | |
| 295 | - while($t=mysql_fetch_array($type)){
|
|
| 295 | + while ($t = mysql_fetch_array($type)) {
|
|
| 296 | 296 | |
| 297 | 297 | $id_room_type = $t['id_room_type']; |
| 298 | 298 | |
@@ -301,14 +301,14 @@ discard block |
||
| 301 | 301 | echo"<td style='background-color: #1ABB9C;color: #E7E7E7;'>".$t['room_type']."</td>"; |
| 302 | 302 | |
| 303 | 303 | |
| 304 | - if ($lmonth == $fmonth and $lyear == $fyear) {
|
|
| 304 | + if ($lmonth==$fmonth and $lyear==$fyear) {
|
|
| 305 | 305 | |
| 306 | - for($i = $fday; $i <= $lday; $i++) {
|
|
| 306 | + for ($i = $fday; $i<=$lday; $i++) {
|
|
| 307 | 307 | |
| 308 | - if (strlen($i) == '1') {
|
|
| 309 | - $tgl = '0'.$i; |
|
| 308 | + if (strlen($i)=='1') {
|
|
| 309 | + $tgl = '0'.$i; |
|
| 310 | 310 | } else {
|
| 311 | - $tgl = $i; |
|
| 311 | + $tgl = $i; |
|
| 312 | 312 | } |
| 313 | 313 | |
| 314 | 314 | $tanggal = $fyear.'-'.$fmonth.'-'.$tgl; |
@@ -320,34 +320,34 @@ discard block |
||
| 320 | 320 | |
| 321 | 321 | } else {
|
| 322 | 322 | |
| 323 | - for($i = $fday; $i <= $f_lastday; $i++) {
|
|
| 323 | + for ($i = $fday; $i<=$f_lastday; $i++) {
|
|
| 324 | 324 | |
| 325 | - if (strlen($i) == '1') {
|
|
| 326 | - $tgl = '0'.$i; |
|
| 325 | + if (strlen($i)=='1') {
|
|
| 326 | + $tgl = '0'.$i; |
|
| 327 | 327 | } else {
|
| 328 | - $tgl = $i; |
|
| 328 | + $tgl = $i; |
|
| 329 | 329 | } |
| 330 | 330 | |
| 331 | 331 | $tanggal = $fyear.'-'.$fmonth.'-'.$tgl; |
| 332 | 332 | |
| 333 | - $DayName = date("D",strtotime($tanggal));
|
|
| 333 | + $DayName = date("D", strtotime($tanggal));
|
|
| 334 | 334 | |
| 335 | 335 | echo"<td style='background-color: #1ABB9C;color: #E7E7E7;'> |
| 336 | 336 | </td>"; |
| 337 | 337 | |
| 338 | 338 | } |
| 339 | 339 | |
| 340 | - for($i = 1; $i <= $lday; $i++) {
|
|
| 340 | + for ($i = 1; $i<=$lday; $i++) {
|
|
| 341 | 341 | |
| 342 | - if (strlen($i) == '1') {
|
|
| 343 | - $tgl = '0'.$i; |
|
| 342 | + if (strlen($i)=='1') {
|
|
| 343 | + $tgl = '0'.$i; |
|
| 344 | 344 | } else {
|
| 345 | - $tgl = $i; |
|
| 345 | + $tgl = $i; |
|
| 346 | 346 | } |
| 347 | 347 | |
| 348 | 348 | $tanggal = $lyear.'-'.$lmonth.'-'.$tgl; |
| 349 | 349 | |
| 350 | - $DayName = date("D",strtotime($tanggal));
|
|
| 350 | + $DayName = date("D", strtotime($tanggal));
|
|
| 351 | 351 | |
| 352 | 352 | echo"<td style='background-color: #1ABB9C;color: #E7E7E7;'> |
| 353 | 353 | </td>"; |
@@ -357,19 +357,19 @@ discard block |
||
| 357 | 357 | |
| 358 | 358 | echo"</tr>"; |
| 359 | 359 | |
| 360 | - $rSQL= "SELECT * FROM room WHERE id_room_type = '$id_room_type' ORDER BY room_no"; |
|
| 360 | + $rSQL = "SELECT * FROM room WHERE id_room_type = '$id_room_type' ORDER BY room_no"; |
|
| 361 | 361 | |
| 362 | 362 | $room = mysql_query($rSQL); |
| 363 | 363 | |
| 364 | 364 | $no = 1; |
| 365 | - while($r=mysql_fetch_array($room)){
|
|
| 365 | + while ($r = mysql_fetch_array($room)) {
|
|
| 366 | 366 | |
| 367 | 367 | $aktif = $r['aktif']; |
| 368 | 368 | |
| 369 | - if(($no % 2)==0){
|
|
| 370 | - $sty="ftd"; |
|
| 371 | - } else{
|
|
| 372 | - $sty="ltd"; |
|
| 369 | + if (($no % 2)==0) {
|
|
| 370 | + $sty = "ftd"; |
|
| 371 | + } else {
|
|
| 372 | + $sty = "ltd"; |
|
| 373 | 373 | } |
| 374 | 374 | |
| 375 | 375 | $id_room = $r['id_room']; |
@@ -377,21 +377,21 @@ discard block |
||
| 377 | 377 | echo"<tr>"; |
| 378 | 378 | echo"<td style='padding-left:20px;text-align:left;' class=$sty>".$r['room_no']."</td>"; |
| 379 | 379 | |
| 380 | - if ($lmonth == $fmonth and $lyear == $fyear) {
|
|
| 380 | + if ($lmonth==$fmonth and $lyear==$fyear) {
|
|
| 381 | 381 | |
| 382 | - for($i = $fday; $i <= $lday; $i++) {
|
|
| 382 | + for ($i = $fday; $i<=$lday; $i++) {
|
|
| 383 | 383 | |
| 384 | - if (strlen($i) == '1') {
|
|
| 385 | - $tgl = '0'.$i; |
|
| 384 | + if (strlen($i)=='1') {
|
|
| 385 | + $tgl = '0'.$i; |
|
| 386 | 386 | } else {
|
| 387 | - $tgl = $i; |
|
| 387 | + $tgl = $i; |
|
| 388 | 388 | } |
| 389 | 389 | |
| 390 | 390 | $tanggal = $fyear.'-'.$fmonth.'-'.$tgl; |
| 391 | 391 | |
| 392 | 392 | echo"<td class=$sty style='padding:0;'>"; |
| 393 | 393 | |
| 394 | - if ($aktif == 'T') {
|
|
| 394 | + if ($aktif=='T') {
|
|
| 395 | 395 | echo" |
| 396 | 396 | <i class='fa fa-warning' style='color: red;font-size:18px' onMouseover=\"ddrivetip('Out of Order')\"; onMouseout=\"hideddrivetip()\"></i>
|
| 397 | 397 | "; |
@@ -400,7 +400,7 @@ discard block |
||
| 400 | 400 | echo"<table cellpadding='0' cellspacing='0' border='0' width='100%'>"; |
| 401 | 401 | echo"<tr>"; |
| 402 | 402 | |
| 403 | - $cSQL = "SELECT a.id_room,a.room_no,b.rdate,b.status,a.aktif,c.guest,c.initial,d.legend |
|
| 403 | + $cSQL = "SELECT a.id_room,a.room_no,b.rdate,b.status,a.aktif,c.guest,c.initial,d.legend |
|
| 404 | 404 | FROM room a left join room_reservation b |
| 405 | 405 | ON a.id_room = b.id_room |
| 406 | 406 | and b.status in ('0','1')
|
@@ -417,21 +417,21 @@ discard block |
||
| 417 | 417 | $jml = mysql_num_rows($croom); |
| 418 | 418 | |
| 419 | 419 | //$c=mysql_fetch_array($croom); |
| 420 | - while ($c=mysql_fetch_array($croom)){
|
|
| 420 | + while ($c = mysql_fetch_array($croom)) {
|
|
| 421 | 421 | |
| 422 | 422 | $rdate = $c['rdate']; |
| 423 | 423 | |
| 424 | - $lSQL = "SELECT '$rdate' - INTERVAL 1 DAY as ldate, '$rdate' + INTERVAL 1 DAY as ndate "; |
|
| 424 | + $lSQL = "SELECT '$rdate' - INTERVAL 1 DAY as ldate, '$rdate' + INTERVAL 1 DAY as ndate "; |
|
| 425 | 425 | //echo $lSQL; |
| 426 | 426 | $ld = mysql_query($lSQL); |
| 427 | 427 | |
| 428 | - $l=mysql_fetch_array($ld); |
|
| 428 | + $l = mysql_fetch_array($ld); |
|
| 429 | 429 | |
| 430 | 430 | $ldate = $l['ldate']; |
| 431 | 431 | |
| 432 | 432 | $ndate = $l['ndate']; |
| 433 | 433 | |
| 434 | - $cSQL1 = "SELECT * from room_reservation |
|
| 434 | + $cSQL1 = "SELECT * from room_reservation |
|
| 435 | 435 | WHERE id_room = '$id_room' |
| 436 | 436 | AND rdate = '$ldate'"; |
| 437 | 437 | |
@@ -444,7 +444,7 @@ discard block |
||
| 444 | 444 | } |
| 445 | 445 | |
| 446 | 446 | |
| 447 | - $cSQL2 = "SELECT * from room_reservation |
|
| 447 | + $cSQL2 = "SELECT * from room_reservation |
|
| 448 | 448 | WHERE id_room = '$id_room' |
| 449 | 449 | AND rdate = '$ndate'"; |
| 450 | 450 | |
@@ -466,15 +466,15 @@ discard block |
||
| 466 | 466 | $status = $c['status']; |
| 467 | 467 | |
| 468 | 468 | |
| 469 | - if ($status == 0) {
|
|
| 469 | + if ($status==0) {
|
|
| 470 | 470 | $icolor = '#fff'; |
| 471 | 471 | } else {
|
| 472 | 472 | $icolor = '#fff'; |
| 473 | 473 | } |
| 474 | 474 | |
| 475 | - if ($status == 0) {
|
|
| 475 | + if ($status==0) {
|
|
| 476 | 476 | $istatus = 'Reserved'; |
| 477 | - } elseif ($status == 1) {
|
|
| 477 | + } elseif ($status==1) {
|
|
| 478 | 478 | $istatus = 'Check In'; |
| 479 | 479 | } else {
|
| 480 | 480 | $istatus = 'Check Out'; |
@@ -484,7 +484,7 @@ discard block |
||
| 484 | 484 | |
| 485 | 485 | |
| 486 | 486 | |
| 487 | - if($c['initial'] == 'Mr ' ) {
|
|
| 487 | + if ($c['initial']=='Mr ') {
|
|
| 488 | 488 | $icon = 'fa fa-male'; |
| 489 | 489 | } else {
|
| 490 | 490 | $icon = 'fa fa-female'; |
@@ -494,15 +494,15 @@ discard block |
||
| 494 | 494 | |
| 495 | 495 | //if ($jml == '1') {
|
| 496 | 496 | |
| 497 | - if ($ljml == '0' and $jml == '1' and $njml == '1') {
|
|
| 497 | + if ($ljml=='0' and $jml=='1' and $njml=='1') {
|
|
| 498 | 498 | echo"<td width='50%'> |
| 499 | 499 | </td>"; |
| 500 | 500 | } |
| 501 | 501 | |
| 502 | - if ($guest) {
|
|
| 502 | + if ($guest) {
|
|
| 503 | 503 | |
| 504 | 504 | |
| 505 | - if ($guest) {
|
|
| 505 | + if ($guest) {
|
|
| 506 | 506 | echo"<td style='background-color:$legend;' width='50%'> |
| 507 | 507 | <a href='' onMouseover=\"ddrivetip('$iguest')\"; onMouseout=\"hideddrivetip()\" title=''><i class='$icon' style='color: $icolor;font-size:15px'></i></a>
|
| 508 | 508 | </td>"; |
@@ -516,7 +516,7 @@ discard block |
||
| 516 | 516 | |
| 517 | 517 | } |
| 518 | 518 | |
| 519 | - if ($ljml != '0' and $jml == '1') {
|
|
| 519 | + if ($ljml!='0' and $jml=='1') {
|
|
| 520 | 520 | echo"<td width='50%'> |
| 521 | 521 | </td>"; |
| 522 | 522 | } |
@@ -534,19 +534,19 @@ discard block |
||
| 534 | 534 | |
| 535 | 535 | } else {
|
| 536 | 536 | |
| 537 | - for($i = $fday; $i <= $f_lastday; $i++) {
|
|
| 537 | + for ($i = $fday; $i<=$f_lastday; $i++) {
|
|
| 538 | 538 | |
| 539 | - if (strlen($i) == '1') {
|
|
| 540 | - $tgl = '0'.$i; |
|
| 539 | + if (strlen($i)=='1') {
|
|
| 540 | + $tgl = '0'.$i; |
|
| 541 | 541 | } else {
|
| 542 | - $tgl = $i; |
|
| 542 | + $tgl = $i; |
|
| 543 | 543 | } |
| 544 | 544 | |
| 545 | 545 | $tanggal = $fyear.'-'.$fmonth.'-'.$tgl; |
| 546 | 546 | |
| 547 | 547 | echo"<td class=$sty style='padding:0;'>"; |
| 548 | 548 | |
| 549 | - if ($aktif == 'T') {
|
|
| 549 | + if ($aktif=='T') {
|
|
| 550 | 550 | echo" |
| 551 | 551 | <i class='fa fa-warning' style='color: red;font-size:18px' onMouseover=\"ddrivetip('Out of Order')\"; onMouseout=\"hideddrivetip()\"></i>
|
| 552 | 552 | "; |
@@ -555,7 +555,7 @@ discard block |
||
| 555 | 555 | echo"<table cellpadding='0' cellspacing='0' border='0' width='100%'>"; |
| 556 | 556 | echo"<tr>"; |
| 557 | 557 | |
| 558 | - $cSQL = "SELECT a.id_room,a.room_no,b.rdate,b.status,a.aktif,c.guest,c.initial,d.legend |
|
| 558 | + $cSQL = "SELECT a.id_room,a.room_no,b.rdate,b.status,a.aktif,c.guest,c.initial,d.legend |
|
| 559 | 559 | FROM room a left join room_reservation b |
| 560 | 560 | ON a.id_room = b.id_room |
| 561 | 561 | and b.status in ('0','1')
|
@@ -572,7 +572,7 @@ discard block |
||
| 572 | 572 | $jml = mysql_num_rows($croom); |
| 573 | 573 | |
| 574 | 574 | //$c=mysql_fetch_array($croom); |
| 575 | - while ($c=mysql_fetch_array($croom)){
|
|
| 575 | + while ($c = mysql_fetch_array($croom)) {
|
|
| 576 | 576 | |
| 577 | 577 | |
| 578 | 578 | $guest = $c['guest']; |
@@ -580,15 +580,15 @@ discard block |
||
| 580 | 580 | $legend = $c['legend']; |
| 581 | 581 | $status = $c['status']; |
| 582 | 582 | |
| 583 | - if ($status == 0) {
|
|
| 583 | + if ($status==0) {
|
|
| 584 | 584 | $icolor = '#fff'; |
| 585 | 585 | } else {
|
| 586 | 586 | $icolor = '#fff'; |
| 587 | 587 | } |
| 588 | 588 | |
| 589 | - if ($status == 0) {
|
|
| 589 | + if ($status==0) {
|
|
| 590 | 590 | $istatus = 'Reserved'; |
| 591 | - } elseif ($status == 1) {
|
|
| 591 | + } elseif ($status==1) {
|
|
| 592 | 592 | $istatus = 'Check In'; |
| 593 | 593 | } else {
|
| 594 | 594 | $istatus = 'Check Out'; |
@@ -598,16 +598,16 @@ discard block |
||
| 598 | 598 | |
| 599 | 599 | |
| 600 | 600 | |
| 601 | - if($c['initial'] == 'Mr ' ) {
|
|
| 601 | + if ($c['initial']=='Mr ') {
|
|
| 602 | 602 | $icon = 'fa fa-male'; |
| 603 | 603 | } else {
|
| 604 | 604 | $icon = 'fa fa-female'; |
| 605 | 605 | } |
| 606 | 606 | |
| 607 | - if ($guest) {
|
|
| 607 | + if ($guest) {
|
|
| 608 | 608 | |
| 609 | 609 | |
| 610 | - if ($guest) {
|
|
| 610 | + if ($guest) {
|
|
| 611 | 611 | echo"<td style='background-color:$legend;' width='50%'> |
| 612 | 612 | <a href='' onMouseover=\"ddrivetip('$iguest')\"; onMouseout=\"hideddrivetip()\" title=''><i class='$icon' style='color: $icolor;font-size:15px'></i></a>
|
| 613 | 613 | </td>"; |
@@ -621,7 +621,7 @@ discard block |
||
| 621 | 621 | |
| 622 | 622 | } |
| 623 | 623 | |
| 624 | - if ($jml == '1') {
|
|
| 624 | + if ($jml=='1') {
|
|
| 625 | 625 | |
| 626 | 626 | |
| 627 | 627 | echo"<td width='50%'> |
@@ -635,19 +635,19 @@ discard block |
||
| 635 | 635 | |
| 636 | 636 | } |
| 637 | 637 | |
| 638 | - for($i = 1; $i <= $lday; $i++) {
|
|
| 638 | + for ($i = 1; $i<=$lday; $i++) {
|
|
| 639 | 639 | |
| 640 | - if (strlen($i) == '1') {
|
|
| 641 | - $tgl = '0'.$i; |
|
| 640 | + if (strlen($i)=='1') {
|
|
| 641 | + $tgl = '0'.$i; |
|
| 642 | 642 | } else {
|
| 643 | - $tgl = $i; |
|
| 643 | + $tgl = $i; |
|
| 644 | 644 | } |
| 645 | 645 | |
| 646 | 646 | $tanggal = $lyear.'-'.$lmonth.'-'.$tgl; |
| 647 | 647 | |
| 648 | 648 | echo"<td class=$sty style='padding:0;'>"; |
| 649 | 649 | |
| 650 | - if ($aktif == 'T') {
|
|
| 650 | + if ($aktif=='T') {
|
|
| 651 | 651 | echo" |
| 652 | 652 | <i class='fa fa-warning' style='color: red;font-size:18px' onMouseover=\"ddrivetip('Out of Order')\"; onMouseout=\"hideddrivetip()\"></i>
|
| 653 | 653 | "; |
@@ -656,7 +656,7 @@ discard block |
||
| 656 | 656 | echo"<table cellpadding='0' cellspacing='0' border='0' width='100%'>"; |
| 657 | 657 | echo"<tr>"; |
| 658 | 658 | |
| 659 | - $cSQL = "SELECT a.id_room,a.room_no,b.rdate,b.status,a.aktif,c.guest,c.initial,d.legend |
|
| 659 | + $cSQL = "SELECT a.id_room,a.room_no,b.rdate,b.status,a.aktif,c.guest,c.initial,d.legend |
|
| 660 | 660 | FROM room a left join room_reservation b |
| 661 | 661 | ON a.id_room = b.id_room |
| 662 | 662 | and b.status in ('0','1')
|
@@ -673,7 +673,7 @@ discard block |
||
| 673 | 673 | $jml = mysql_num_rows($croom); |
| 674 | 674 | |
| 675 | 675 | //$c=mysql_fetch_array($croom); |
| 676 | - while ($c=mysql_fetch_array($croom)){
|
|
| 676 | + while ($c = mysql_fetch_array($croom)) {
|
|
| 677 | 677 | |
| 678 | 678 | |
| 679 | 679 | $guest = $c['guest']; |
@@ -681,15 +681,15 @@ discard block |
||
| 681 | 681 | $legend = $c['legend']; |
| 682 | 682 | $status = $c['status']; |
| 683 | 683 | |
| 684 | - if ($status == 0) {
|
|
| 684 | + if ($status==0) {
|
|
| 685 | 685 | $icolor = '#fff'; |
| 686 | 686 | } else {
|
| 687 | 687 | $icolor = '#fff'; |
| 688 | 688 | } |
| 689 | 689 | |
| 690 | - if ($status == 0) {
|
|
| 690 | + if ($status==0) {
|
|
| 691 | 691 | $istatus = 'Reserved'; |
| 692 | - } elseif ($status == 1) {
|
|
| 692 | + } elseif ($status==1) {
|
|
| 693 | 693 | $istatus = 'Check In'; |
| 694 | 694 | } else {
|
| 695 | 695 | $istatus = 'Check Out'; |
@@ -699,16 +699,16 @@ discard block |
||
| 699 | 699 | |
| 700 | 700 | |
| 701 | 701 | |
| 702 | - if($c['initial'] == 'Mr ' ) {
|
|
| 702 | + if ($c['initial']=='Mr ') {
|
|
| 703 | 703 | $icon = 'fa fa-male'; |
| 704 | 704 | } else {
|
| 705 | 705 | $icon = 'fa fa-female'; |
| 706 | 706 | } |
| 707 | 707 | |
| 708 | - if ($guest) {
|
|
| 708 | + if ($guest) {
|
|
| 709 | 709 | |
| 710 | 710 | |
| 711 | - if ($guest) {
|
|
| 711 | + if ($guest) {
|
|
| 712 | 712 | echo"<td style='background-color:$legend;' width='50%'> |
| 713 | 713 | <a href='' onMouseover=\"ddrivetip('$iguest')\"; onMouseout=\"hideddrivetip()\" title=''><i class='$icon' style='color: $icolor;font-size:15px'></i></a>
|
| 714 | 714 | </td>"; |
@@ -722,7 +722,7 @@ discard block |
||
| 722 | 722 | |
| 723 | 723 | } |
| 724 | 724 | |
| 725 | - if ($jml == '1') {
|
|
| 725 | + if ($jml=='1') {
|
|
| 726 | 726 | echo"<td width='50%'> |
| 727 | 727 | </td>"; |
| 728 | 728 | } |
@@ -755,10 +755,10 @@ discard block |
||
| 755 | 755 | <tr> |
| 756 | 756 | <td style='padding-right:3px;'>Room Status : </td> |
| 757 | 757 | <? |
| 758 | - $SQL= "SELECT * FROM room_status where aktif ='Y' ORDER BY id_room_status"; |
|
| 759 | - $tampil=mysql_query($SQL); |
|
| 758 | + $SQL = "SELECT * FROM room_status where aktif ='Y' ORDER BY id_room_status"; |
|
| 759 | + $tampil = mysql_query($SQL); |
|
| 760 | 760 | |
| 761 | - while($r=mysql_fetch_array($tampil)){
|
|
| 761 | + while ($r = mysql_fetch_array($tampil)) {
|
|
| 762 | 762 | |
| 763 | 763 | |
| 764 | 764 | echo"<td style='width:20px;background-color:".$r['legend'].";'> </td>"; |
@@ -126,7 +126,9 @@ |
||
| 126 | 126 | if($query && mysql_num_rows($query) > 0){
|
| 127 | 127 | while($row = mysql_fetch_object($query)){
|
| 128 | 128 | echo '<option value="'.$row->id_room_type.'"'; |
| 129 | - if($row->id_room_type == $_GET['room_type']) echo ' selected'; |
|
| 129 | + if($row->id_room_type == $_GET['room_type']) {
|
|
| 130 | + echo ' selected'; |
|
| 131 | + } |
|
| 130 | 132 | echo '>'.$row->room_type.'</option>'; |
| 131 | 133 | } |
| 132 | 134 | } |
@@ -2,19 +2,19 @@ discard block |
||
| 2 | 2 | <?php |
| 3 | 3 | switch($_GET[act]){
|
| 4 | 4 | |
| 5 | -default: |
|
| 5 | + default: |
|
| 6 | 6 | |
| 7 | 7 | |
| 8 | - $gtampil=mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
|
|
| 9 | - $g=mysql_fetch_array($gtampil); |
|
| 8 | + $gtampil=mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
|
|
| 9 | + $g=mysql_fetch_array($gtampil); |
|
| 10 | 10 | |
| 11 | -if ($g['pict']) {
|
|
| 12 | - $pict = $g['pict']; |
|
| 11 | + if ($g['pict']) {
|
|
| 12 | + $pict = $g['pict']; |
|
| 13 | 13 | } else {
|
| 14 | - $pict = ''; |
|
| 14 | + $pict = ''; |
|
| 15 | 15 | } |
| 16 | 16 | |
| 17 | -?> |
|
| 17 | + ?> |
|
| 18 | 18 | <div class="col-md-12 col-sm-12 col-xs-12 center-block"> |
| 19 | 19 | <div class="x_panel"> |
| 20 | 20 | <div class="x_title"> |
@@ -28,6 +28,6 @@ discard block |
||
| 28 | 28 | </div> |
| 29 | 29 | </div> |
| 30 | 30 | <? |
| 31 | -//} |
|
| 31 | + //} |
|
| 32 | 32 | } |
| 33 | 33 | ?> |
| 34 | 34 | \ No newline at end of file |
@@ -6,12 +6,12 @@ |
||
| 6 | 6 | |
| 7 | 7 | |
| 8 | 8 | $gtampil=mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
|
| 9 | - $g=mysql_fetch_array($gtampil); |
|
| 9 | + $g=mysql_fetch_array($gtampil); |
|
| 10 | 10 | |
| 11 | 11 | if ($g['pict']) {
|
| 12 | - $pict = $g['pict']; |
|
| 12 | + $pict = $g['pict']; |
|
| 13 | 13 | } else {
|
| 14 | - $pict = ''; |
|
| 14 | + $pict = ''; |
|
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | ?> |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | |
| 2 | 2 | <?php |
| 3 | -switch($_GET[act]){
|
|
| 3 | +switch ($_GET[act]) {
|
|
| 4 | 4 | |
| 5 | 5 | default: |
| 6 | 6 | |
| 7 | 7 | |
| 8 | - $gtampil=mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
|
|
| 9 | - $g=mysql_fetch_array($gtampil); |
|
| 8 | + $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
|
|
| 9 | + $g = mysql_fetch_array($gtampil); |
|
| 10 | 10 | |
| 11 | 11 | if ($g['pict']) {
|
| 12 | 12 | $pict = $g['pict']; |
@@ -77,8 +77,8 @@ |
||
| 77 | 77 | echo" <td style='text-align:center;'>"; |
| 78 | 78 | |
| 79 | 79 | if($r_edit == 'Y') {
|
| 80 | - echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_kunjungan_berobat=$r[id_kunjungan_berobat]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
| 81 | - } |
|
| 80 | + echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_kunjungan_berobat=$r[id_kunjungan_berobat]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
| 81 | + } |
|
| 82 | 82 | |
| 83 | 83 | |
| 84 | 84 | |
@@ -1,8 +1,8 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | switch($_GET[act]){
|
| 3 | 3 | |
| 4 | -default: |
|
| 5 | - ?> |
|
| 4 | + default: |
|
| 5 | + ?> |
|
| 6 | 6 | |
| 7 | 7 | <div class=""> |
| 8 | 8 | |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | |
| 49 | 49 | <? |
| 50 | 50 | |
| 51 | - $tampil=mysql_query("SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori
|
|
| 51 | + $tampil=mysql_query("SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori
|
|
| 52 | 52 | FROM kunjungan_berobat a left join pasien b |
| 53 | 53 | ON a.id_pasien = b.id_pasien |
| 54 | 54 | left join poli c |
@@ -57,37 +57,37 @@ discard block |
||
| 57 | 57 | ON b.id_kategori = d.id_kategori |
| 58 | 58 | ORDER BY a.tanggal,a.id_poli,a.no_urut ASC"); |
| 59 | 59 | |
| 60 | - $no = 1; |
|
| 60 | + $no = 1; |
|
| 61 | 61 | |
| 62 | - while ($r=mysql_fetch_array($tampil)){
|
|
| 62 | + while ($r=mysql_fetch_array($tampil)){
|
|
| 63 | 63 | |
| 64 | - $tgl = DATE('d/m/Y',strtotime($r[tanggal]));
|
|
| 65 | - $tgl_lahir = DATE('d/m/Y',strtotime($r[tgl_lahir]));
|
|
| 64 | + $tgl = DATE('d/m/Y',strtotime($r[tanggal]));
|
|
| 65 | + $tgl_lahir = DATE('d/m/Y',strtotime($r[tgl_lahir]));
|
|
| 66 | 66 | |
| 67 | - echo"<tr>"; |
|
| 68 | - echo"<td>$tgl</td>"; |
|
| 69 | - echo"<td>$r[poli]</td>"; |
|
| 70 | - echo"<td>$r[no_urut]</td>"; |
|
| 71 | - echo"<td>$r[nama]</td>"; |
|
| 72 | - echo"<td>$r[kategori]</td>"; |
|
| 73 | - echo"<td>$r[keluhan]</td>"; |
|
| 74 | - echo"<td>$r[diagnosa]</td>"; |
|
| 75 | - echo"<td>$r[pemeriksaan]</td>"; |
|
| 76 | - echo"<td>$r[tindakan]</td>"; |
|
| 77 | - echo" <td style='text-align:center;'>"; |
|
| 67 | + echo"<tr>"; |
|
| 68 | + echo"<td>$tgl</td>"; |
|
| 69 | + echo"<td>$r[poli]</td>"; |
|
| 70 | + echo"<td>$r[no_urut]</td>"; |
|
| 71 | + echo"<td>$r[nama]</td>"; |
|
| 72 | + echo"<td>$r[kategori]</td>"; |
|
| 73 | + echo"<td>$r[keluhan]</td>"; |
|
| 74 | + echo"<td>$r[diagnosa]</td>"; |
|
| 75 | + echo"<td>$r[pemeriksaan]</td>"; |
|
| 76 | + echo"<td>$r[tindakan]</td>"; |
|
| 77 | + echo" <td style='text-align:center;'>"; |
|
| 78 | 78 | |
| 79 | - if($r_edit == 'Y') {
|
|
| 80 | - echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_kunjungan_berobat=$r[id_kunjungan_berobat]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
| 81 | - } |
|
| 79 | + if($r_edit == 'Y') {
|
|
| 80 | + echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_kunjungan_berobat=$r[id_kunjungan_berobat]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
| 81 | + } |
|
| 82 | 82 | |
| 83 | 83 | |
| 84 | 84 | |
| 85 | - echo"</td>"; |
|
| 86 | - echo"</tr>"; |
|
| 87 | - $no++; |
|
| 85 | + echo"</td>"; |
|
| 86 | + echo"</tr>"; |
|
| 87 | + $no++; |
|
| 88 | 88 | |
| 89 | - } |
|
| 90 | - ?> |
|
| 89 | + } |
|
| 90 | + ?> |
|
| 91 | 91 | </tbody> |
| 92 | 92 | </table> |
| 93 | 93 | </div> |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -switch($_GET[act]){
|
|
| 2 | +switch ($_GET[act]) {
|
|
| 3 | 3 | |
| 4 | 4 | default: |
| 5 | 5 | ?> |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | <div class="col-md-12 col-sm-12 col-xs-12"> |
| 12 | 12 | <div class="x_panel"> |
| 13 | 13 | <div class="x_title"> |
| 14 | - <h2><?php echo $nmmodule;?></h2> |
|
| 14 | + <h2><?php echo $nmmodule; ?></h2> |
|
| 15 | 15 | <div class="clearfix"></div> |
| 16 | 16 | </div> |
| 17 | 17 | <div class="x_content"> |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | |
| 49 | 49 | <? |
| 50 | 50 | |
| 51 | - $tampil=mysql_query("SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori
|
|
| 51 | + $tampil = mysql_query("SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori
|
|
| 52 | 52 | FROM kunjungan_berobat a left join pasien b |
| 53 | 53 | ON a.id_pasien = b.id_pasien |
| 54 | 54 | left join poli c |
@@ -59,10 +59,10 @@ discard block |
||
| 59 | 59 | |
| 60 | 60 | $no = 1; |
| 61 | 61 | |
| 62 | - while ($r=mysql_fetch_array($tampil)){
|
|
| 62 | + while ($r = mysql_fetch_array($tampil)) {
|
|
| 63 | 63 | |
| 64 | - $tgl = DATE('d/m/Y',strtotime($r[tanggal]));
|
|
| 65 | - $tgl_lahir = DATE('d/m/Y',strtotime($r[tgl_lahir]));
|
|
| 64 | + $tgl = DATE('d/m/Y', strtotime($r[tanggal]));
|
|
| 65 | + $tgl_lahir = DATE('d/m/Y', strtotime($r[tgl_lahir]));
|
|
| 66 | 66 | |
| 67 | 67 | echo"<tr>"; |
| 68 | 68 | echo"<td>$tgl</td>"; |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | echo"<td>$r[tindakan]</td>"; |
| 77 | 77 | echo" <td style='text-align:center;'>"; |
| 78 | 78 | |
| 79 | - if($r_edit == 'Y') {
|
|
| 79 | + if ($r_edit=='Y') {
|
|
| 80 | 80 | echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_kunjungan_berobat=$r[id_kunjungan_berobat]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
| 81 | 81 | } |
| 82 | 82 | |
@@ -60,12 +60,12 @@ discard block |
||
| 60 | 60 | echo"<td><b>$r[nama_modul]</b></td>"; |
| 61 | 61 | echo"<td style='text-align:center;'>$r[aktif]</td>"; |
| 62 | 62 | echo" <td style='text-align:center;'>"; |
| 63 | - if($r_edit == 'Y') {
|
|
| 64 | - echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_groupmodul=$r[id_groupmodul]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
| 65 | - } |
|
| 63 | + if($r_edit == 'Y') {
|
|
| 64 | + echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_groupmodul=$r[id_groupmodul]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
| 65 | + } |
|
| 66 | 66 | |
| 67 | 67 | if($r_delete == 'Y') {
|
| 68 | - echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_groupmodul]&id_module=$id' onClick=\"return confirm('Hapus Data ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
|
|
| 68 | + echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_groupmodul]&id_module=$id' onClick=\"return confirm('Hapus Data ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
|
|
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | echo"</td>"; |
@@ -90,11 +90,11 @@ discard block |
||
| 90 | 90 | echo"<td>$d[nama_modul]</td>"; |
| 91 | 91 | |
| 92 | 92 | echo"<td style='text-align:center;'>$d[aktif]</td>"; |
| 93 | - echo"<td style='text-align:right;'>"; |
|
| 94 | - if($r_delete == 'Y') {
|
|
| 95 | - echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$d[id_groupmodul]&id_module=$id' onClick=\"return confirm('Delete this record ?')\"><span class='icon'><i class='fa fa-trash'></i></span></a>";
|
|
| 93 | + echo"<td style='text-align:right;'>"; |
|
| 94 | + if($r_delete == 'Y') {
|
|
| 95 | + echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$d[id_groupmodul]&id_module=$id' onClick=\"return confirm('Delete this record ?')\"><span class='icon'><i class='fa fa-trash'></i></span></a>";
|
|
| 96 | 96 | |
| 97 | - } |
|
| 97 | + } |
|
| 98 | 98 | echo"</td>"; |
| 99 | 99 | |
| 100 | 100 | echo"</tr>"; |
@@ -2,8 +2,8 @@ discard block |
||
| 2 | 2 | <?php |
| 3 | 3 | switch($_GET[act]){
|
| 4 | 4 | |
| 5 | -default: |
|
| 6 | - ?> |
|
| 5 | + default: |
|
| 6 | + ?> |
|
| 7 | 7 | |
| 8 | 8 | <div class=""> |
| 9 | 9 | |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | <tbody> |
| 44 | 44 | <? |
| 45 | 45 | |
| 46 | - $tampil=mysql_query("SELECT a.*,b.groups,c.nama_modul,c.status_menu FROM groupmodul a INNER JOIN groups b
|
|
| 46 | + $tampil=mysql_query("SELECT a.*,b.groups,c.nama_modul,c.status_menu FROM groupmodul a INNER JOIN groups b
|
|
| 47 | 47 | ON a.id_groups = b.id_groups |
| 48 | 48 | INNER JOIN modul c |
| 49 | 49 | ON a.id_modul = c.id_modul |
@@ -51,28 +51,28 @@ discard block |
||
| 51 | 51 | ORDER BY a.id_groups,a.id_modul"); |
| 52 | 52 | |
| 53 | 53 | |
| 54 | - $no = 1; |
|
| 55 | - while ($r=mysql_fetch_array($tampil)){
|
|
| 54 | + $no = 1; |
|
| 55 | + while ($r=mysql_fetch_array($tampil)){
|
|
| 56 | 56 | |
| 57 | 57 | |
| 58 | - echo"<tr>"; |
|
| 59 | - echo"<td><b>$r[groups]</b></td>"; |
|
| 60 | - echo"<td><b>$r[nama_modul]</b></td>"; |
|
| 61 | - echo"<td style='text-align:center;'>$r[aktif]</td>"; |
|
| 62 | - echo" <td style='text-align:center;'>"; |
|
| 63 | - if($r_edit == 'Y') {
|
|
| 64 | - echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_groupmodul=$r[id_groupmodul]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
| 65 | - } |
|
| 58 | + echo"<tr>"; |
|
| 59 | + echo"<td><b>$r[groups]</b></td>"; |
|
| 60 | + echo"<td><b>$r[nama_modul]</b></td>"; |
|
| 61 | + echo"<td style='text-align:center;'>$r[aktif]</td>"; |
|
| 62 | + echo" <td style='text-align:center;'>"; |
|
| 63 | + if($r_edit == 'Y') {
|
|
| 64 | + echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_groupmodul=$r[id_groupmodul]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
| 65 | + } |
|
| 66 | 66 | |
| 67 | - if($r_delete == 'Y') {
|
|
| 68 | - echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_groupmodul]&id_module=$id' onClick=\"return confirm('Hapus Data ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
|
|
| 69 | - } |
|
| 67 | + if($r_delete == 'Y') {
|
|
| 68 | + echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_groupmodul]&id_module=$id' onClick=\"return confirm('Hapus Data ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
|
|
| 69 | + } |
|
| 70 | 70 | |
| 71 | - echo"</td>"; |
|
| 72 | - echo"</tr>"; |
|
| 71 | + echo"</td>"; |
|
| 72 | + echo"</tr>"; |
|
| 73 | 73 | |
| 74 | 74 | |
| 75 | - $dtampil=mysql_query("SELECT a.*,b.groups,c.nama_modul,c.status_menu FROM groupmodul a INNER JOIN groups b
|
|
| 75 | + $dtampil=mysql_query("SELECT a.*,b.groups,c.nama_modul,c.status_menu FROM groupmodul a INNER JOIN groups b
|
|
| 76 | 76 | ON a.id_groups = b.id_groups |
| 77 | 77 | INNER JOIN modul c |
| 78 | 78 | ON a.id_modul = c.id_modul |
@@ -82,32 +82,32 @@ discard block |
||
| 82 | 82 | ORDER BY a.id_groupmodul"); |
| 83 | 83 | |
| 84 | 84 | |
| 85 | - while ($d=mysql_fetch_array($dtampil)){
|
|
| 85 | + while ($d=mysql_fetch_array($dtampil)){
|
|
| 86 | 86 | |
| 87 | 87 | |
| 88 | - echo"<tr>"; |
|
| 89 | - echo"<td></td>"; |
|
| 90 | - echo"<td>$d[nama_modul]</td>"; |
|
| 88 | + echo"<tr>"; |
|
| 89 | + echo"<td></td>"; |
|
| 90 | + echo"<td>$d[nama_modul]</td>"; |
|
| 91 | 91 | |
| 92 | - echo"<td style='text-align:center;'>$d[aktif]</td>"; |
|
| 93 | - echo"<td style='text-align:right;'>"; |
|
| 94 | - if($r_delete == 'Y') {
|
|
| 95 | - echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$d[id_groupmodul]&id_module=$id' onClick=\"return confirm('Delete this record ?')\"><span class='icon'><i class='fa fa-trash'></i></span></a>";
|
|
| 92 | + echo"<td style='text-align:center;'>$d[aktif]</td>"; |
|
| 93 | + echo"<td style='text-align:right;'>"; |
|
| 94 | + if($r_delete == 'Y') {
|
|
| 95 | + echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$d[id_groupmodul]&id_module=$id' onClick=\"return confirm('Delete this record ?')\"><span class='icon'><i class='fa fa-trash'></i></span></a>";
|
|
| 96 | 96 | |
| 97 | - } |
|
| 98 | - echo"</td>"; |
|
| 97 | + } |
|
| 98 | + echo"</td>"; |
|
| 99 | 99 | |
| 100 | - echo"</tr>"; |
|
| 100 | + echo"</tr>"; |
|
| 101 | 101 | |
| 102 | 102 | |
| 103 | - } |
|
| 103 | + } |
|
| 104 | 104 | |
| 105 | 105 | |
| 106 | 106 | |
| 107 | - $no++; |
|
| 107 | + $no++; |
|
| 108 | 108 | |
| 109 | - } |
|
| 110 | - ?> |
|
| 109 | + } |
|
| 110 | + ?> |
|
| 111 | 111 | </tbody> |
| 112 | 112 | </table> |
| 113 | 113 | </div> |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | |
| 2 | 2 | <?php |
| 3 | -switch($_GET[act]){
|
|
| 3 | +switch ($_GET[act]) {
|
|
| 4 | 4 | |
| 5 | 5 | default: |
| 6 | 6 | ?> |
@@ -12,8 +12,8 @@ discard block |
||
| 12 | 12 | <div class="col-md-12 col-sm-12 col-xs-12"> |
| 13 | 13 | <div class="x_panel"> |
| 14 | 14 | <div class="x_title"> |
| 15 | - <h2><?php echo $nmmodule;?></h2> |
|
| 16 | - <p class="pull-right"><a href='<?php echo"modul/mod_$module/form_$module.php?width=720&height=560&module=$module&id_module=$id_module&TB_iframe=true";?>' title='New <?php echo $nmmodule;?>' class='thickbox btn btn-sm btn-success'><i class="fa fa-plus"></i> New</a></p> |
|
| 15 | + <h2><?php echo $nmmodule; ?></h2> |
|
| 16 | + <p class="pull-right"><a href='<?php echo"modul/mod_$module/form_$module.php?width=720&height=560&module=$module&id_module=$id_module&TB_iframe=true"; ?>' title='New <?php echo $nmmodule; ?>' class='thickbox btn btn-sm btn-success'><i class="fa fa-plus"></i> New</a></p> |
|
| 17 | 17 | <div class="clearfix"></div> |
| 18 | 18 | </div> |
| 19 | 19 | <div class="x_content"> |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | <tbody> |
| 44 | 44 | <? |
| 45 | 45 | |
| 46 | - $tampil=mysql_query("SELECT a.*,b.groups,c.nama_modul,c.status_menu FROM groupmodul a INNER JOIN groups b
|
|
| 46 | + $tampil = mysql_query("SELECT a.*,b.groups,c.nama_modul,c.status_menu FROM groupmodul a INNER JOIN groups b
|
|
| 47 | 47 | ON a.id_groups = b.id_groups |
| 48 | 48 | INNER JOIN modul c |
| 49 | 49 | ON a.id_modul = c.id_modul |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | |
| 53 | 53 | |
| 54 | 54 | $no = 1; |
| 55 | - while ($r=mysql_fetch_array($tampil)){
|
|
| 55 | + while ($r = mysql_fetch_array($tampil)) {
|
|
| 56 | 56 | |
| 57 | 57 | |
| 58 | 58 | echo"<tr>"; |
@@ -60,11 +60,11 @@ discard block |
||
| 60 | 60 | echo"<td><b>$r[nama_modul]</b></td>"; |
| 61 | 61 | echo"<td style='text-align:center;'>$r[aktif]</td>"; |
| 62 | 62 | echo" <td style='text-align:center;'>"; |
| 63 | - if($r_edit == 'Y') {
|
|
| 63 | + if ($r_edit=='Y') {
|
|
| 64 | 64 | echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_groupmodul=$r[id_groupmodul]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | - if($r_delete == 'Y') {
|
|
| 67 | + if ($r_delete=='Y') {
|
|
| 68 | 68 | echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_groupmodul]&id_module=$id' onClick=\"return confirm('Hapus Data ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
|
| 69 | 69 | } |
| 70 | 70 | |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | echo"</tr>"; |
| 73 | 73 | |
| 74 | 74 | |
| 75 | - $dtampil=mysql_query("SELECT a.*,b.groups,c.nama_modul,c.status_menu FROM groupmodul a INNER JOIN groups b
|
|
| 75 | + $dtampil = mysql_query("SELECT a.*,b.groups,c.nama_modul,c.status_menu FROM groupmodul a INNER JOIN groups b
|
|
| 76 | 76 | ON a.id_groups = b.id_groups |
| 77 | 77 | INNER JOIN modul c |
| 78 | 78 | ON a.id_modul = c.id_modul |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | ORDER BY a.id_groupmodul"); |
| 83 | 83 | |
| 84 | 84 | |
| 85 | - while ($d=mysql_fetch_array($dtampil)){
|
|
| 85 | + while ($d = mysql_fetch_array($dtampil)) {
|
|
| 86 | 86 | |
| 87 | 87 | |
| 88 | 88 | echo"<tr>"; |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | |
| 92 | 92 | echo"<td style='text-align:center;'>$d[aktif]</td>"; |
| 93 | 93 | echo"<td style='text-align:right;'>"; |
| 94 | - if($r_delete == 'Y') {
|
|
| 94 | + if ($r_delete=='Y') {
|
|
| 95 | 95 | echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$d[id_groupmodul]&id_module=$id' onClick=\"return confirm('Delete this record ?')\"><span class='icon'><i class='fa fa-trash'></i></span></a>";
|
| 96 | 96 | |
| 97 | 97 | } |
@@ -1,8 +1,8 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | switch($_GET[act]){
|
| 3 | 3 | |
| 4 | -default: |
|
| 5 | - ?> |
|
| 4 | + default: |
|
| 5 | + ?> |
|
| 6 | 6 | |
| 7 | 7 | <div class=""> |
| 8 | 8 | |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | |
| 47 | 47 | <? |
| 48 | 48 | |
| 49 | - $tampil=mysql_query("SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori
|
|
| 49 | + $tampil=mysql_query("SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori
|
|
| 50 | 50 | ,e.rujukan as rujukan_rs |
| 51 | 51 | ,f.rujukan as rujukan_lab |
| 52 | 52 | FROM kunjungan_berobat a left join pasien b |
@@ -62,35 +62,35 @@ discard block |
||
| 62 | 62 | WHERE a.rujukan = 'Y' |
| 63 | 63 | ORDER BY a.tanggal,a.id_poli,a.no_urut ASC"); |
| 64 | 64 | |
| 65 | - $no = 1; |
|
| 65 | + $no = 1; |
|
| 66 | 66 | |
| 67 | - while ($r=mysql_fetch_array($tampil)){
|
|
| 67 | + while ($r=mysql_fetch_array($tampil)){
|
|
| 68 | 68 | |
| 69 | - $tgl = DATE('d/m/Y',strtotime($r[tanggal]));
|
|
| 70 | - $tgl_lahir = DATE('d/m/Y',strtotime($r[tgl_lahir]));
|
|
| 69 | + $tgl = DATE('d/m/Y',strtotime($r[tanggal]));
|
|
| 70 | + $tgl_lahir = DATE('d/m/Y',strtotime($r[tgl_lahir]));
|
|
| 71 | 71 | |
| 72 | - echo"<tr>"; |
|
| 73 | - echo"<td>$tgl</td>"; |
|
| 74 | - echo"<td>$r[poli]</td>"; |
|
| 75 | - echo"<td>$r[no_urut]</td>"; |
|
| 76 | - echo"<td>$r[nama]</td>"; |
|
| 77 | - echo"<td>$r[kategori]</td>"; |
|
| 78 | - echo"<td>$r[rujukan_rs]</td>"; |
|
| 79 | - echo"<td>$r[rujukan_lab]</td>"; |
|
| 80 | - echo" <td style='text-align:center;'>"; |
|
| 72 | + echo"<tr>"; |
|
| 73 | + echo"<td>$tgl</td>"; |
|
| 74 | + echo"<td>$r[poli]</td>"; |
|
| 75 | + echo"<td>$r[no_urut]</td>"; |
|
| 76 | + echo"<td>$r[nama]</td>"; |
|
| 77 | + echo"<td>$r[kategori]</td>"; |
|
| 78 | + echo"<td>$r[rujukan_rs]</td>"; |
|
| 79 | + echo"<td>$r[rujukan_lab]</td>"; |
|
| 80 | + echo" <td style='text-align:center;'>"; |
|
| 81 | 81 | |
| 82 | - if($r_edit == 'Y') {
|
|
| 83 | - echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_kunjungan_berobat=$r[id_kunjungan_berobat]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
| 84 | - } |
|
| 82 | + if($r_edit == 'Y') {
|
|
| 83 | + echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_kunjungan_berobat=$r[id_kunjungan_berobat]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
| 84 | + } |
|
| 85 | 85 | |
| 86 | 86 | |
| 87 | 87 | |
| 88 | - echo"</td>"; |
|
| 89 | - echo"</tr>"; |
|
| 90 | - $no++; |
|
| 88 | + echo"</td>"; |
|
| 89 | + echo"</tr>"; |
|
| 90 | + $no++; |
|
| 91 | 91 | |
| 92 | - } |
|
| 93 | - ?> |
|
| 92 | + } |
|
| 93 | + ?> |
|
| 94 | 94 | </tbody> |
| 95 | 95 | </table> |
| 96 | 96 | </div> |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -switch($_GET[act]){
|
|
| 2 | +switch ($_GET[act]) {
|
|
| 3 | 3 | |
| 4 | 4 | default: |
| 5 | 5 | ?> |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | <div class="col-md-12 col-sm-12 col-xs-12"> |
| 12 | 12 | <div class="x_panel"> |
| 13 | 13 | <div class="x_title"> |
| 14 | - <h2><?php echo $nmmodule;?></h2> |
|
| 14 | + <h2><?php echo $nmmodule; ?></h2> |
|
| 15 | 15 | <div class="clearfix"></div> |
| 16 | 16 | </div> |
| 17 | 17 | <div class="x_content"> |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | |
| 47 | 47 | <? |
| 48 | 48 | |
| 49 | - $tampil=mysql_query("SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori
|
|
| 49 | + $tampil = mysql_query("SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori
|
|
| 50 | 50 | ,e.rujukan as rujukan_rs |
| 51 | 51 | ,f.rujukan as rujukan_lab |
| 52 | 52 | FROM kunjungan_berobat a left join pasien b |
@@ -64,10 +64,10 @@ discard block |
||
| 64 | 64 | |
| 65 | 65 | $no = 1; |
| 66 | 66 | |
| 67 | - while ($r=mysql_fetch_array($tampil)){
|
|
| 67 | + while ($r = mysql_fetch_array($tampil)) {
|
|
| 68 | 68 | |
| 69 | - $tgl = DATE('d/m/Y',strtotime($r[tanggal]));
|
|
| 70 | - $tgl_lahir = DATE('d/m/Y',strtotime($r[tgl_lahir]));
|
|
| 69 | + $tgl = DATE('d/m/Y', strtotime($r[tanggal]));
|
|
| 70 | + $tgl_lahir = DATE('d/m/Y', strtotime($r[tgl_lahir]));
|
|
| 71 | 71 | |
| 72 | 72 | echo"<tr>"; |
| 73 | 73 | echo"<td>$tgl</td>"; |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | echo"<td>$r[rujukan_lab]</td>"; |
| 80 | 80 | echo" <td style='text-align:center;'>"; |
| 81 | 81 | |
| 82 | - if($r_edit == 'Y') {
|
|
| 82 | + if ($r_edit=='Y') {
|
|
| 83 | 83 | echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_kunjungan_berobat=$r[id_kunjungan_berobat]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
| 84 | 84 | } |
| 85 | 85 | |
@@ -77,8 +77,8 @@ |
||
| 77 | 77 | echo" <td style='text-align:center;'>"; |
| 78 | 78 | |
| 79 | 79 | if($r_edit == 'Y') {
|
| 80 | - echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_kunjungan_berobat=$r[id_kunjungan_berobat]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
| 81 | - } |
|
| 80 | + echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_kunjungan_berobat=$r[id_kunjungan_berobat]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
| 81 | + } |
|
| 82 | 82 | |
| 83 | 83 | |
| 84 | 84 | |