Passed
Push — master ( d91862...237c42 )
by Saepul
04:48
created
modul/mod_report_stok/report_stok.php 3 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
115 115
 
116 116
              <?php
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
                    
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
             </form>    
126 126
                    
127 127
                 </div>
128
-                <?php for ($i = 0; $i <= 20; $i++) {
128
+                <?php for ($i = 0; $i<=20; $i++) {
129 129
                 ?>
130 130
                     <br />
131 131
                     <?php
Please login to merge, or discard this patch.
Switch Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -56,15 +56,15 @@  discard block
 block discarded – undo
56 56
 <?php
57 57
 switch ($_GET[act]) {
58 58
 
59
-default:
59
+        default:
60 60
 
61
-$fdate = date('Y-m-01');
62
-$ldate = date('Y-m-d');
61
+        $fdate = date('Y-m-01');
62
+        $ldate = date('Y-m-d');
63 63
 
64
-$prd = date('Y-m');
64
+        $prd = date('Y-m');
65 65
 
66
-$userid = $_SESSION['userid'];
67
-  ?>
66
+        $userid = $_SESSION['userid'];
67
+          ?>
68 68
 
69 69
  <div class="">
70 70
                    
@@ -107,30 +107,30 @@  discard block
 block discarded – undo
107 107
                 <div class="col-md-9 col-sm-9 col-xs-9 form-group"> 
108 108
                  <label class="control-label">
109 109
                     <?php
110
-                    echo"<input type=radio name='printto' value='1' class='flat' checked>&nbsp Preview &nbsp</label>";
111
-                    echo"<input type=radio name='printto' value='2' class='flat'>&nbsp Print</label> ";
112
-                    ?>      
110
+                            echo"<input type=radio name='printto' value='1' class='flat' checked>&nbsp Preview &nbsp</label>";
111
+                            echo"<input type=radio name='printto' value='2' class='flat'>&nbsp Print</label> ";
112
+                            ?>      
113 113
                  </label>             
114 114
                 </div> 
115 115
 
116 116
              <?php
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].'>';
124
-            ?>
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
+                    ?>
125 125
             </form>    
126 126
                    
127 127
                 </div>
128 128
                 <?php for ($i = 0; $i <= 20; $i++) {
129
-                ?>
130
-                    <br />
129
+                        ?>
130
+                            <br />
131 131
                     <?php
132
-            }
133
-                    ?>
132
+                    }
133
+                            ?>
134 134
                  </div>
135 135
                    
136 136
                   
@@ -139,5 +139,5 @@  discard block
 block discarded – undo
139 139
 
140 140
     <?php
141 141
 }
142
-?>
143
-
142
+    ?>
143
+    
Please login to merge, or discard this patch.
modul/mod_report_revenue/report_revenue.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
115 115
 
116 116
              <?php
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
                    
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
             </form>    
126 126
                    
127 127
                 </div>
128
-                <?php for ($i = 0; $i <= 20; $i++) {
128
+                <?php for ($i = 0; $i<=20; $i++) {
129 129
                 ?>
130 130
                     <br />
131 131
                     <?php
Please login to merge, or discard this patch.
modul/mod_home/home.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 default:
6 6
 
7 7
  $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
8
- $g = mysql_fetch_array($gtampil);
8
+    $g = mysql_fetch_array($gtampil);
9 9
 
10 10
 if ($g['pict']) {
11 11
     $pict = $g['pict'];
Please login to merge, or discard this patch.
Switch Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,19 +1,19 @@
 block discarded – undo
1
-
2
-<?php
1
+    
2
+    <?php
3 3
 switch ($_GET[act]) {
4 4
 
5
-default:
5
+        default:
6 6
 
7
- $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
8
- $g = mysql_fetch_array($gtampil);
7
+         $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
8
+         $g = mysql_fetch_array($gtampil);
9 9
 
10
-if ($g['pict']) {
11
-    $pict = $g['pict'];
10
+        if ($g['pict']) {
11
+            $pict = $g['pict'];
12 12
 } else {
13
-    $pict = '';
13
+            $pict = '';
14 14
 }
15 15
 
16
-?>
16
+        ?>
17 17
 <div class="col-md-12 col-sm-12 col-xs-12 center-block">
18 18
 <div class="x_panel">
19 19
    <div class="x_title">
Please login to merge, or discard this patch.
modul/mod_resep_obat/aksi_resep_obat.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     $business_type = $_SESSION['business_type'];
18 18
 
19 19
     // Hapus modul
20
-    if ($module == 'resep_obat' and $act == 'dhapus') {
20
+    if ($module=='resep_obat' and $act=='dhapus') {
21 21
         $id = $_GET['id'];
22 22
         $id_module = $_GET['id_module'];
23 23
         $id_kunjungan_berobat = $_GET['id_kunjungan_berobat'];
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     }
34 34
 
35 35
     // Input group
36
-    elseif ($module == 'resep_obat' and $act == 'input') {
36
+    elseif ($module=='resep_obat' and $act=='input') {
37 37
         $id_module = $_POST['id_module'];
38 38
         $id_kunjungan_berobat = $_POST['id_kunjungan_berobat'];
39 39
 
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
         }
80 80
         header('location:form_'.$module.'.php?id_kunjungan_berobat='.$id_kunjungan_berobat.'&module='.$module.'&id_module='.$id_modul);
81 81
     }  // Input group
82
-    elseif ($module == 'resep_obat' and $act == 'close') {
82
+    elseif ($module=='resep_obat' and $act=='close') {
83 83
         $id_module = $_POST['id_module']; ?>
84 84
   
85 85
     <script language="javascript">
Please login to merge, or discard this patch.
Switch Indentation   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -1,61 +1,61 @@  discard block
 block discarded – undo
1
-<?php
2
-session_start();
3
-if (empty($_SESSION['username']) and empty($_SESSION['password'])) {
4
-    echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>";
1
+    <?php
2
+    session_start();
3
+    if (empty($_SESSION['username']) and empty($_SESSION['password'])) {
4
+        echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>";
5 5
 } else {
6
-    include './../../config/koneksi.php';
7
-    include './../../config/fungsi_thumb.php';
6
+        include './../../config/koneksi.php';
7
+        include './../../config/fungsi_thumb.php';
8 8
 
9
-    $module = $_GET[module];
10
-    $act = $_GET[act];
9
+        $module = $_GET[module];
10
+        $act = $_GET[act];
11 11
 
12
-    $date = date('d/m/Y');
13
-    $idate = date('Y-m-d');
14
-    $hour = time() - (1 * 1 * 60 * 60);
15
-    $datetime = date('Y-m-d G:i:s', $hour);
16
-    $userid = $_SESSION['userid'];
17
-    $business_type = $_SESSION['business_type'];
12
+        $date = date('d/m/Y');
13
+        $idate = date('Y-m-d');
14
+        $hour = time() - (1 * 1 * 60 * 60);
15
+        $datetime = date('Y-m-d G:i:s', $hour);
16
+        $userid = $_SESSION['userid'];
17
+        $business_type = $_SESSION['business_type'];
18 18
 
19
-    // Hapus modul
20
-    if ($module == 'resep_obat' and $act == 'dhapus') {
21
-        $id = $_GET['id'];
22
-        $id_module = $_GET['id_module'];
23
-        $id_kunjungan_berobat = $_GET['id_kunjungan_berobat'];
19
+        // Hapus modul
20
+        if ($module == 'resep_obat' and $act == 'dhapus') {
21
+            $id = $_GET['id'];
22
+            $id_module = $_GET['id_module'];
23
+            $id_kunjungan_berobat = $_GET['id_kunjungan_berobat'];
24 24
 
25
-        mysql_query("DELETE FROM kunjungan_berobat_detail WHERE id_kunjungan_berobat_detail = $id");
25
+            mysql_query("DELETE FROM kunjungan_berobat_detail WHERE id_kunjungan_berobat_detail = $id");
26 26
 
27
-        mysql_query("UPDATE obat SET jumlah   = jumlah+'$_GET[qty]'
27
+            mysql_query("UPDATE obat SET jumlah   = jumlah+'$_GET[qty]'
28 28
                               ,upddt   = '$datetime'
29 29
                               ,updby   = '$userid' 
30 30
                         WHERE id_obat    = '$_GET[obat]'");
31 31
 
32
-        header('location:form_'.$module.'.php?id_kunjungan_berobat='.$id_kunjungan_berobat.'&module='.$module.'&id_module='.$id_modul);
33
-    }
32
+            header('location:form_'.$module.'.php?id_kunjungan_berobat='.$id_kunjungan_berobat.'&module='.$module.'&id_module='.$id_modul);
33
+        }
34 34
 
35
-    // Input group
36
-    elseif ($module == 'resep_obat' and $act == 'input') {
37
-        $id_module = $_POST['id_module'];
38
-        $id_kunjungan_berobat = $_POST['id_kunjungan_berobat'];
35
+        // Input group
36
+        elseif ($module == 'resep_obat' and $act == 'input') {
37
+            $id_module = $_POST['id_module'];
38
+            $id_kunjungan_berobat = $_POST['id_kunjungan_berobat'];
39 39
 
40
-        if ($_POST['ID']) {
41
-            mysql_query("UPDATE kunjungan_berobat_detail SET id_obat   = '$_POST[obat]'
40
+            if ($_POST['ID']) {
41
+                mysql_query("UPDATE kunjungan_berobat_detail SET id_obat   = '$_POST[obat]'
42 42
                               ,qty   = '$_POST[qty]'  
43 43
                               ,descr   = '$_POST[descr]'
44 44
                             ,upddt   = '$datetime'
45 45
                             ,updby   = '$userid' 
46 46
                       WHERE id_kunjungan_berobat_detail    = '$_POST[ID]'");
47 47
 
48
-            mysql_query("UPDATE obat SET jumlah   = jumlah+'$_POST[eqty]'
48
+                mysql_query("UPDATE obat SET jumlah   = jumlah+'$_POST[eqty]'
49 49
                             ,upddt   = '$datetime'
50 50
                             ,updby   = '$userid' 
51 51
                       WHERE id_obat    = '$_POST[obat]'");
52 52
 
53
-            mysql_query("UPDATE obat SET jumlah   = jumlah-'$_POST[qty]'
53
+                mysql_query("UPDATE obat SET jumlah   = jumlah-'$_POST[qty]'
54 54
                             ,upddt   = '$datetime'
55 55
                             ,updby   = '$userid' 
56 56
                       WHERE id_obat    = '$_POST[obat]'");
57
-        } else {
58
-            mysql_query("INSERT INTO kunjungan_berobat_detail(id_obat
57
+            } else {
58
+                mysql_query("INSERT INTO kunjungan_berobat_detail(id_obat
59 59
                             ,qty
60 60
                             ,descr
61 61
                             ,id_kunjungan_berobat
@@ -72,15 +72,15 @@  discard block
 block discarded – undo
72 72
                           ,'$datetime'      
73 73
                           ,'$userid')");
74 74
 
75
-            mysql_query("UPDATE obat SET jumlah   = jumlah-'$_POST[qty]'
75
+                mysql_query("UPDATE obat SET jumlah   = jumlah-'$_POST[qty]'
76 76
                               ,upddt   = '$datetime'
77 77
                               ,updby   = '$userid' 
78 78
                         WHERE id_obat    = '$_POST[obat]'");
79
-        }
80
-        header('location:form_'.$module.'.php?id_kunjungan_berobat='.$id_kunjungan_berobat.'&module='.$module.'&id_module='.$id_modul);
81
-    }  // Input group
82
-    elseif ($module == 'resep_obat' and $act == 'close') {
83
-        $id_module = $_POST['id_module']; ?>
79
+            }
80
+            header('location:form_'.$module.'.php?id_kunjungan_berobat='.$id_kunjungan_berobat.'&module='.$module.'&id_module='.$id_modul);
81
+        }  // Input group
82
+        elseif ($module == 'resep_obat' and $act == 'close') {
83
+            $id_module = $_POST['id_module']; ?>
84 84
   
85 85
     <script language="javascript">
86 86
        window.parent.location.href = "<?php echo"./../../main.php?module=$module&id_module=$id_module"; ?>";  
@@ -88,6 +88,6 @@  discard block
 block discarded – undo
88 88
      </script> 
89 89
   
90 90
   <?php
91
-    }
91
+        }
92 92
 }
93
-?>
93
+    ?>
Please login to merge, or discard this patch.
modul/mod_resep_obat/resep_obat.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
                 echo'</td>';
94 94
                 echo" <td  style='text-align:center;'>";
95 95
 
96
-                if ($r_edit == 'Y') {
96
+                if ($r_edit=='Y') {
97 97
                     echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_kunjungan_berobat=$r[id_kunjungan_berobat]&id_module=$id&width=720&height=620&module=$module&TB_iframe=true' title='Tambah $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
98 98
                 }
99 99
 
Please login to merge, or discard this patch.
Switch Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1
-<?php
1
+    <?php
2 2
 switch ($_GET[act]) {
3 3
 
4
-default:
5
-  ?>
4
+        default:
5
+          ?>
6 6
 
7 7
  <div class="">
8 8
                    
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
                             
48 48
                          <?php
49 49
 
50
-            $tampil = mysql_query('SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori                                  
50
+                    $tampil = mysql_query('SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori                                  
51 51
                                 FROM kunjungan_berobat a left join pasien b 
52 52
                                  ON a.id_pasien = b.id_pasien
53 53
                                  left join poli c 
@@ -56,24 +56,24 @@  discard block
 block discarded – undo
56 56
                                  ON b.id_kategori = d.id_kategori                                
57 57
                                  ORDER BY a.tanggal,a.id_poli,a.no_urut ASC');
58 58
 
59
-            $no = 1;
59
+                    $no = 1;
60 60
 
61
-            while ($r = mysql_fetch_array($tampil)) {
62
-                $id = $r[id_kunjungan_berobat];
63
-                $tgl = date('d/m/Y', strtotime($r[tanggal]));
64
-                $tgl_lahir = date('d/m/Y', strtotime($r[tgl_lahir]));
61
+                    while ($r = mysql_fetch_array($tampil)) {
62
+                        $id = $r[id_kunjungan_berobat];
63
+                        $tgl = date('d/m/Y', strtotime($r[tanggal]));
64
+                        $tgl_lahir = date('d/m/Y', strtotime($r[tgl_lahir]));
65 65
 
66
-                echo'<tr>';
67
-                echo"<td>$tgl</td>";
68
-                echo"<td>$r[poli]</td>";
69
-                echo"<td>$r[no_urut]</td>";
70
-                echo"<td>$r[nama]</td>";
71
-                echo"<td>$r[kategori]</td>";
72
-                echo"<td>$r[keluhan]</td>";
73
-                echo"<td>$r[diagnosa]</td>";
74
-                echo'<td>';
66
+                        echo'<tr>';
67
+                        echo"<td>$tgl</td>";
68
+                        echo"<td>$r[poli]</td>";
69
+                        echo"<td>$r[no_urut]</td>";
70
+                        echo"<td>$r[nama]</td>";
71
+                        echo"<td>$r[kategori]</td>";
72
+                        echo"<td>$r[keluhan]</td>";
73
+                        echo"<td>$r[diagnosa]</td>";
74
+                        echo'<td>';
75 75
 
76
-                $dtampil = mysql_query("SELECT a.*,b.obat,c.satuan
76
+                        $dtampil = mysql_query("SELECT a.*,b.obat,c.satuan
77 77
                                       FROM kunjungan_berobat_detail  a LEFT JOIN obat b
78 78
                                       ON a.id_obat = b.id_obat  
79 79
                                       LEFT JOIN satuan c
@@ -81,27 +81,27 @@  discard block
 block discarded – undo
81 81
                                       WHERE a.id_kunjungan_berobat = '$id' 
82 82
                                       order by a.id_kunjungan_berobat_detail");
83 83
 
84
-                while ($d = mysql_fetch_array($dtampil)) {
85
-                    echo"<table width='100%'>";
86
-                    echo'<tr>';
87
-                    echo"<td width='70%'>$d[obat]</td>";
88
-                    echo"<td width='30%'>$d[qty] $d[satuan]</td>";
89
-                    echo'</tr>';
90
-                    echo'</table>';
91
-                }
84
+                        while ($d = mysql_fetch_array($dtampil)) {
85
+                            echo"<table width='100%'>";
86
+                            echo'<tr>';
87
+                            echo"<td width='70%'>$d[obat]</td>";
88
+                            echo"<td width='30%'>$d[qty] $d[satuan]</td>";
89
+                            echo'</tr>';
90
+                            echo'</table>';
91
+                        }
92 92
 
93
-                echo'</td>';
94
-                echo" <td  style='text-align:center;'>";
93
+                        echo'</td>';
94
+                        echo" <td  style='text-align:center;'>";
95 95
 
96
-                if ($r_edit == 'Y') {
97
-                    echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_kunjungan_berobat=$r[id_kunjungan_berobat]&id_module=$id&width=720&height=620&module=$module&TB_iframe=true' title='Tambah $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
98
-                }
96
+                        if ($r_edit == 'Y') {
97
+                            echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_kunjungan_berobat=$r[id_kunjungan_berobat]&id_module=$id&width=720&height=620&module=$module&TB_iframe=true' title='Tambah $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
98
+                        }
99 99
 
100
-                echo'</td>';
101
-                echo'</tr>';
102
-                $no++;
103
-            }
104
-                                ?>
100
+                        echo'</td>';
101
+                        echo'</tr>';
102
+                        $no++;
103
+                    }
104
+                                        ?>
105 105
                          </tbody>
106 106
                     </table>
107 107
                   </div>
@@ -146,4 +146,4 @@  discard block
 block discarded – undo
146 146
 
147 147
     <?php
148 148
 }
149
-?>
149
+    ?>
Please login to merge, or discard this patch.
modul/mod_kasir/kasir.php 3 patches
Indentation   +57 added lines, -57 removed lines patch added patch discarded remove patch
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
         <?php
312 312
 
313 313
 
314
-         $tampil = mysql_query("SELECT a.*,b.shift
314
+            $tampil = mysql_query("SELECT a.*,b.shift
315 315
 
316 316
                              FROM kasir a left join shift b
317 317
 
@@ -325,57 +325,57 @@  discard block
 block discarded – undo
325 325
 
326 326
                             ORDER BY a.tanggal");
327 327
 
328
-         $no = 1;
329
-
330
-         while ($r = mysql_fetch_array($tampil)) {
331
-             $tgl = date('d/m/Y', strtotime($r['tanggal']));
332
-
333
-             if ($r['status'] == '0') {
334
-                 $istatus = 'Baru';
335
-             } elseif ($r['status'] == '1') {
336
-                 $istatus = 'Disetujui';
337
-             } elseif ($r['status'] == '2') {
338
-                 $istatus = 'Ditolak';
339
-             } elseif ($r['status'] == '9') {
340
-                 $istatus = 'Posting';
341
-             } else {
342
-                 $istatus = 'Dibatalkan';
343
-             }
328
+            $no = 1;
329
+
330
+            while ($r = mysql_fetch_array($tampil)) {
331
+                $tgl = date('d/m/Y', strtotime($r['tanggal']));
332
+
333
+                if ($r['status'] == '0') {
334
+                    $istatus = 'Baru';
335
+                } elseif ($r['status'] == '1') {
336
+                    $istatus = 'Disetujui';
337
+                } elseif ($r['status'] == '2') {
338
+                    $istatus = 'Ditolak';
339
+                } elseif ($r['status'] == '9') {
340
+                    $istatus = 'Posting';
341
+                } else {
342
+                    $istatus = 'Dibatalkan';
343
+                }
344 344
 
345
-             $ID = $r[id_kasir];
345
+                $ID = $r[id_kasir];
346 346
 
347
-             echo'<tr>';
347
+                echo'<tr>';
348 348
 
349
-             echo"<td>$tgl </td>";
349
+                echo"<td>$tgl </td>";
350 350
 
351
-             echo"<td>$r[shift]</td>";
351
+                echo"<td>$r[shift]</td>";
352 352
 
353
-             echo"<td>$r[petugas]</td>";
353
+                echo"<td>$r[petugas]</td>";
354 354
 
355
-             echo"<td>$r[note]</td>";
355
+                echo"<td>$r[note]</td>";
356 356
 
357
-             // echo"<td>$istatus</td>";
357
+                // echo"<td>$istatus</td>";
358 358
 
359
-             echo"<td style='text-align:center;'>";
359
+                echo"<td style='text-align:center;'>";
360 360
 
361
-             if ($r_edit == 'Y') {
362
-                 echo"<a href='?module=$module&id_module=$id&act=save&ID=$ID' title='Update'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
363
-             }
361
+                if ($r_edit == 'Y') {
362
+                    echo"<a href='?module=$module&id_module=$id&act=save&ID=$ID' title='Update'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
363
+                }
364 364
 
365
-             if ($r_delete == 'Y' and $r['status'] == '0') {
366
-                 echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$ID&id_module=$id&id_module=$id' onClick=\"return confirm('Hapus Data ?')\" title='Hapus $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
367
-             } else {
368
-                 echo"<i class='fa fa-trash'></i></span>";
369
-             }
365
+                if ($r_delete == 'Y' and $r['status'] == '0') {
366
+                    echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$ID&id_module=$id&id_module=$id' onClick=\"return confirm('Hapus Data ?')\" title='Hapus $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
367
+                } else {
368
+                    echo"<i class='fa fa-trash'></i></span>";
369
+                }
370 370
 
371
-             echo'</td>';
371
+                echo'</td>';
372 372
 
373
-             echo'</tr>';
373
+                echo'</tr>';
374 374
 
375
-             $no++;
376
-         }
375
+                $no++;
376
+            }
377 377
 
378
-         ?>
378
+            ?>
379 379
 
380 380
         </tbody>
381 381
 
@@ -514,16 +514,16 @@  discard block
 block discarded – undo
514 514
 
515 515
             <?php
516 516
 
517
-          echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=batal&id=$ID&id_module=$id&notrans=$notrans&prd=$prd&kode=$kodee&outlet=$outlet' onClick=\"return confirm('Hapus transaksi ?')\" title='Hapus $nmmodule'><span class='btn btn-danger'><span style='color:white;'>Hapus</span></a>"; ?>
517
+            echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=batal&id=$ID&id_module=$id&notrans=$notrans&prd=$prd&kode=$kodee&outlet=$outlet' onClick=\"return confirm('Hapus transaksi ?')\" title='Hapus $nmmodule'><span class='btn btn-danger'><span style='color:white;'>Hapus</span></a>"; ?>
518 518
 
519 519
         <?php
520 520
 } else {
521
-              ?>
521
+                ?>
522 522
 
523 523
             <button type="button" class="btn btn-danger" disabled>Hapus</button>
524 524
 
525 525
            <?php
526
-          } ?>  
526
+            } ?>  
527 527
 
528 528
 
529 529
 
@@ -589,7 +589,7 @@  discard block
 block discarded – undo
589 589
 
590 590
  <?php
591 591
 
592
-   $query = mysql_query('SELECT * FROM shift WHERE  aktif = "Y" ORDER BY id_shift');
592
+    $query = mysql_query('SELECT * FROM shift WHERE  aktif = "Y" ORDER BY id_shift');
593 593
 
594 594
     if ($query && mysql_num_rows($query) > 0) {
595 595
         while ($row = mysql_fetch_object($query)) {
@@ -603,7 +603,7 @@  discard block
 block discarded – undo
603 603
         }
604 604
     }
605 605
 
606
- ?>  
606
+    ?>  
607 607
 
608 608
  </select>         
609 609
 
@@ -813,7 +813,7 @@  discard block
 block discarded – undo
813 813
 
814 814
  <?php
815 815
 
816
-   $query = mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift');
816
+    $query = mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift');
817 817
 
818 818
     if ($query && mysql_num_rows($query) > 0) {
819 819
         while ($row = mysql_fetch_object($query)) {
@@ -827,7 +827,7 @@  discard block
 block discarded – undo
827 827
         }
828 828
     }
829 829
 
830
- ?>  
830
+    ?>  
831 831
 
832 832
  </select>         
833 833
 
@@ -923,7 +923,7 @@  discard block
 block discarded – undo
923 923
 
924 924
      <?php
925 925
 
926
-       $query = mysql_query('SELECT * FROM jenis_transaksi WHERE aktif = "Y" ORDER BY id_jenis_transaksi');
926
+        $query = mysql_query('SELECT * FROM jenis_transaksi WHERE aktif = "Y" ORDER BY id_jenis_transaksi');
927 927
 
928 928
         if ($query && mysql_num_rows($query) > 0) {
929 929
             while ($row = mysql_fetch_object($query)) {
@@ -937,7 +937,7 @@  discard block
 block discarded – undo
937 937
             }
938 938
         }
939 939
 
940
-     ?>
940
+        ?>
941 941
 
942 942
      </select>
943 943
 
@@ -968,7 +968,7 @@  discard block
 block discarded – undo
968 968
   
969 969
      <?php
970 970
 
971
-       $query = mysql_query('SELECT * FROM jenis_pembayaran WHERE aktif = "Y" ORDER BY id_jenis_pembayaran');
971
+        $query = mysql_query('SELECT * FROM jenis_pembayaran WHERE aktif = "Y" ORDER BY id_jenis_pembayaran');
972 972
 
973 973
         if ($query && mysql_num_rows($query) > 0) {
974 974
             while ($row = mysql_fetch_object($query)) {
@@ -982,7 +982,7 @@  discard block
 block discarded – undo
982 982
             }
983 983
         }
984 984
 
985
-     ?>
985
+        ?>
986 986
 
987 987
      </select>
988 988
 
@@ -995,7 +995,7 @@  discard block
 block discarded – undo
995 995
   
996 996
      <?php
997 997
 
998
-       $query = mysql_query('SELECT * FROM penjamin WHERE aktif = "Y" ORDER BY id_penjamin');
998
+        $query = mysql_query('SELECT * FROM penjamin WHERE aktif = "Y" ORDER BY id_penjamin');
999 999
 
1000 1000
         if ($query && mysql_num_rows($query) > 0) {
1001 1001
             while ($row = mysql_fetch_object($query)) {
@@ -1009,7 +1009,7 @@  discard block
 block discarded – undo
1009 1009
             }
1010 1010
         }
1011 1011
 
1012
-     ?>
1012
+        ?>
1013 1013
 
1014 1014
      </select>
1015 1015
 
@@ -1219,7 +1219,7 @@  discard block
 block discarded – undo
1219 1219
 
1220 1220
 if ($jml > 0) {
1221 1221
 
1222
-  // $readonly = 'readonly';
1222
+    // $readonly = 'readonly';
1223 1223
 
1224 1224
     // $disabled = 'disabled';
1225 1225
 
@@ -1339,7 +1339,7 @@  discard block
 block discarded – undo
1339 1339
 
1340 1340
  <?php
1341 1341
 
1342
-   $query = mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift');
1342
+    $query = mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift');
1343 1343
 
1344 1344
     if ($query && mysql_num_rows($query) > 0) {
1345 1345
         while ($row = mysql_fetch_object($query)) {
@@ -1353,7 +1353,7 @@  discard block
 block discarded – undo
1353 1353
         }
1354 1354
     }
1355 1355
 
1356
- ?>  
1356
+    ?>  
1357 1357
 
1358 1358
  </select>         
1359 1359
 
@@ -1633,7 +1633,7 @@  discard block
 block discarded – undo
1633 1633
 
1634 1634
  <?php
1635 1635
 
1636
-   $query = mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift');
1636
+    $query = mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift');
1637 1637
 
1638 1638
     if ($query && mysql_num_rows($query) > 0) {
1639 1639
         while ($row = mysql_fetch_object($query)) {
@@ -1647,7 +1647,7 @@  discard block
 block discarded – undo
1647 1647
         }
1648 1648
     }
1649 1649
 
1650
- ?>  
1650
+    ?>  
1651 1651
 
1652 1652
  </select>         
1653 1653
 
@@ -1712,7 +1712,7 @@  discard block
 block discarded – undo
1712 1712
 
1713 1713
  <?php
1714 1714
 
1715
- $d_id = $_GET['d_id'];
1715
+    $d_id = $_GET['d_id'];
1716 1716
 
1717 1717
 $dSQL = "SELECT a.*,b.jenis_transaksi,c.penjamin,d.jenis_pembayaran
1718 1718
 
Please login to merge, or discard this patch.
Switch Indentation   +345 added lines, -345 removed lines patch added patch discarded remove patch
@@ -177,9 +177,9 @@  discard block
 block discarded – undo
177 177
 
178 178
 switch ($_GET[act]):
179 179
 
180
-default:
180
+    default:
181 181
 
182
-  ?>
182
+      ?>
183 183
 
184 184
 
185 185
 
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
         <?php
312 312
 
313 313
 
314
-         $tampil = mysql_query("SELECT a.*,b.shift
314
+             $tampil = mysql_query("SELECT a.*,b.shift
315 315
 
316 316
                              FROM kasir a left join shift b
317 317
 
@@ -325,57 +325,57 @@  discard block
 block discarded – undo
325 325
 
326 326
                             ORDER BY a.tanggal");
327 327
 
328
-         $no = 1;
329
-
330
-         while ($r = mysql_fetch_array($tampil)) {
331
-             $tgl = date('d/m/Y', strtotime($r['tanggal']));
332
-
333
-             if ($r['status'] == '0') {
334
-                 $istatus = 'Baru';
335
-             } elseif ($r['status'] == '1') {
336
-                 $istatus = 'Disetujui';
337
-             } elseif ($r['status'] == '2') {
338
-                 $istatus = 'Ditolak';
339
-             } elseif ($r['status'] == '9') {
340
-                 $istatus = 'Posting';
341
-             } else {
342
-                 $istatus = 'Dibatalkan';
343
-             }
328
+             $no = 1;
344 329
 
345
-             $ID = $r[id_kasir];
330
+             while ($r = mysql_fetch_array($tampil)) {
331
+                 $tgl = date('d/m/Y', strtotime($r['tanggal']));
346 332
 
347
-             echo'<tr>';
333
+                 if ($r['status'] == '0') {
334
+                     $istatus = 'Baru';
335
+                 } elseif ($r['status'] == '1') {
336
+                     $istatus = 'Disetujui';
337
+                 } elseif ($r['status'] == '2') {
338
+                     $istatus = 'Ditolak';
339
+                 } elseif ($r['status'] == '9') {
340
+                     $istatus = 'Posting';
341
+                 } else {
342
+                     $istatus = 'Dibatalkan';
343
+                 }
348 344
 
349
-             echo"<td>$tgl </td>";
345
+                 $ID = $r[id_kasir];
350 346
 
351
-             echo"<td>$r[shift]</td>";
347
+                 echo'<tr>';
352 348
 
353
-             echo"<td>$r[petugas]</td>";
349
+                 echo"<td>$tgl </td>";
354 350
 
355
-             echo"<td>$r[note]</td>";
351
+                 echo"<td>$r[shift]</td>";
356 352
 
357
-             // echo"<td>$istatus</td>";
353
+                 echo"<td>$r[petugas]</td>";
358 354
 
359
-             echo"<td style='text-align:center;'>";
355
+                 echo"<td>$r[note]</td>";
360 356
 
361
-             if ($r_edit == 'Y') {
362
-                 echo"<a href='?module=$module&id_module=$id&act=save&ID=$ID' title='Update'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
363
-             }
357
+                 // echo"<td>$istatus</td>";
364 358
 
365
-             if ($r_delete == 'Y' and $r['status'] == '0') {
366
-                 echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$ID&id_module=$id&id_module=$id' onClick=\"return confirm('Hapus Data ?')\" title='Hapus $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
367
-             } else {
368
-                 echo"<i class='fa fa-trash'></i></span>";
369
-             }
359
+                 echo"<td style='text-align:center;'>";
370 360
 
371
-             echo'</td>';
361
+                 if ($r_edit == 'Y') {
362
+                     echo"<a href='?module=$module&id_module=$id&act=save&ID=$ID' title='Update'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
363
+                 }
372 364
 
373
-             echo'</tr>';
365
+                 if ($r_delete == 'Y' and $r['status'] == '0') {
366
+                     echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$ID&id_module=$id&id_module=$id' onClick=\"return confirm('Hapus Data ?')\" title='Hapus $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
367
+                 } else {
368
+                     echo"<i class='fa fa-trash'></i></span>";
369
+                 }
374 370
 
375
-             $no++;
376
-         }
371
+                 echo'</td>';
377 372
 
378
-         ?>
373
+                 echo'</tr>';
374
+
375
+                 $no++;
376
+             }
377
+
378
+             ?>
379 379
 
380 380
         </tbody>
381 381
 
@@ -463,17 +463,17 @@  discard block
 block discarded – undo
463 463
 
464 464
 <?php
465 465
 
466
-break;
466
+    break;
467 467
 
468
-case 'baru':
468
+    case 'baru':
469 469
 
470
-$hour = time() + (30 * 25 * 60 * 60);
470
+    $hour = time() + (30 * 25 * 60 * 60);
471 471
 
472
-$idate = date('Y-m-d');
472
+    $idate = date('Y-m-d');
473 473
 
474
-$idate = $idate;
474
+    $idate = $idate;
475 475
 
476
-?>
476
+    ?>
477 477
 
478 478
 
479 479
 
@@ -504,26 +504,26 @@  discard block
 block discarded – undo
504 504
           <button  type="button" onClick="location.href='<?php echo"?module=$module&id_module=$id_module&act=ubah&prd=$prd&notrans=$notrans&kode=$kode&outlet=$outlet"; ?>'" 
505 505
 
506 506
           class="btn btn-success" <?php if ($status != '0') {
507
-    echo 'disabled';
507
+        echo 'disabled';
508 508
 } ?>>Ubah</button>
509 509
 
510 510
 
511 511
 
512 512
            <?php if ($status == '0') {
513
-    ?>
514
-
513
+        ?>
514
+    
515 515
             <?php
516 516
 
517
-          echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=batal&id=$ID&id_module=$id&notrans=$notrans&prd=$prd&kode=$kodee&outlet=$outlet' onClick=\"return confirm('Hapus transaksi ?')\" title='Hapus $nmmodule'><span class='btn btn-danger'><span style='color:white;'>Hapus</span></a>"; ?>
518
-
517
+              echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=batal&id=$ID&id_module=$id&notrans=$notrans&prd=$prd&kode=$kodee&outlet=$outlet' onClick=\"return confirm('Hapus transaksi ?')\" title='Hapus $nmmodule'><span class='btn btn-danger'><span style='color:white;'>Hapus</span></a>"; ?>
518
+    
519 519
         <?php
520 520
 } else {
521
-              ?>
521
+                  ?>
522 522
 
523 523
             <button type="button" class="btn btn-danger" disabled>Hapus</button>
524 524
 
525 525
            <?php
526
-          } ?>  
526
+              } ?>  
527 527
 
528 528
 
529 529
 
@@ -589,21 +589,21 @@  discard block
 block discarded – undo
589 589
 
590 590
  <?php
591 591
 
592
-   $query = mysql_query('SELECT * FROM shift WHERE  aktif = "Y" ORDER BY id_shift');
592
+       $query = mysql_query('SELECT * FROM shift WHERE  aktif = "Y" ORDER BY id_shift');
593 593
 
594
-    if ($query && mysql_num_rows($query) > 0) {
595
-        while ($row = mysql_fetch_object($query)) {
596
-            echo '<option value="'.$row->id_shift.'"';
594
+        if ($query && mysql_num_rows($query) > 0) {
595
+            while ($row = mysql_fetch_object($query)) {
596
+                echo '<option value="'.$row->id_shift.'"';
597 597
 
598
-            if ($row->id_shift == $shift) {
599
-                echo ' selected';
600
-            }
598
+                if ($row->id_shift == $shift) {
599
+                    echo ' selected';
600
+                }
601 601
 
602
-            echo '>'.$row->shift.'</option>';
602
+                echo '>'.$row->shift.'</option>';
603
+            }
603 604
         }
604
-    }
605 605
 
606
- ?>  
606
+     ?>  
607 607
 
608 608
  </select>         
609 609
 
@@ -692,33 +692,33 @@  discard block
 block discarded – undo
692 692
 
693 693
 <?php
694 694
 
695
-break;
695
+    break;
696 696
 
697
-case 'save':
697
+    case 'save':
698 698
 
699
-$k_ID = $_GET['ID'];
699
+    $k_ID = $_GET['ID'];
700 700
 
701
-$sql = mysql_query("SELECT * FROM kasir 
701
+    $sql = mysql_query("SELECT * FROM kasir 
702 702
 
703 703
                         WHERE id_kasir = '$k_ID' 
704 704
 
705 705
                         ");
706 706
 
707
-$r = mysql_fetch_array($sql);
707
+    $r = mysql_fetch_array($sql);
708 708
 
709
-$penjualan_barang = $r['id_kasir'];
709
+    $penjualan_barang = $r['id_kasir'];
710 710
 
711
-$shift = $r['id_shift'];
711
+    $shift = $r['id_shift'];
712 712
 
713
-$petugas = $r['petugas'];
713
+    $petugas = $r['petugas'];
714 714
 
715
-$status = $r['status'];
715
+    $status = $r['status'];
716 716
 
717
-$tanggal = $r['tanggal'];
717
+    $tanggal = $r['tanggal'];
718 718
 
719
-//$ID   = $r['id_kasir'];
719
+    //$ID   = $r['id_kasir'];
720 720
 
721
-?>
721
+    ?>
722 722
 
723 723
 
724 724
 
@@ -749,7 +749,7 @@  discard block
 block discarded – undo
749 749
           <button  type="button" onClick="location.href='<?php echo"?module=$module&id_module=$id_module&act=ubah&k_ID=$k_ID"; ?>'" 
750 750
 
751 751
           class="btn btn-success" <?php if ($status != '0') {
752
-    echo 'disabled';
752
+        echo 'disabled';
753 753
 } ?>>Ubah</button>
754 754
 
755 755
 
@@ -813,21 +813,21 @@  discard block
 block discarded – undo
813 813
 
814 814
  <?php
815 815
 
816
-   $query = mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift');
816
+       $query = mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift');
817
+
818
+        if ($query && mysql_num_rows($query) > 0) {
819
+            while ($row = mysql_fetch_object($query)) {
820
+                echo '<option value="'.$row->id_shift.'"';
817 821
 
818
-    if ($query && mysql_num_rows($query) > 0) {
819
-        while ($row = mysql_fetch_object($query)) {
820
-            echo '<option value="'.$row->id_shift.'"';
822
+                if ($row->id_shift == $shift) {
823
+                    echo ' selected';
824
+                }
821 825
 
822
-            if ($row->id_shift == $shift) {
823
-                echo ' selected';
826
+                echo '>'.$row->shift.'</option>';
824 827
             }
825
-
826
-            echo '>'.$row->shift.'</option>';
827 828
         }
828
-    }
829 829
 
830
- ?>  
830
+     ?>  
831 831
 
832 832
  </select>         
833 833
 
@@ -923,21 +923,21 @@  discard block
 block discarded – undo
923 923
 
924 924
      <?php
925 925
 
926
-       $query = mysql_query('SELECT * FROM jenis_transaksi WHERE aktif = "Y" ORDER BY id_jenis_transaksi');
926
+           $query = mysql_query('SELECT * FROM jenis_transaksi WHERE aktif = "Y" ORDER BY id_jenis_transaksi');
927 927
 
928
-        if ($query && mysql_num_rows($query) > 0) {
929
-            while ($row = mysql_fetch_object($query)) {
930
-                echo '<option value="'.$row->id_jenis_transaksi.'"';
928
+            if ($query && mysql_num_rows($query) > 0) {
929
+                while ($row = mysql_fetch_object($query)) {
930
+                    echo '<option value="'.$row->id_jenis_transaksi.'"';
931 931
 
932
-                if ($row->id_jenis_transaksi == @$data->id_jenis_transaksi) {
933
-                    echo ' selected';
934
-                }
932
+                    if ($row->id_jenis_transaksi == @$data->id_jenis_transaksi) {
933
+                        echo ' selected';
934
+                    }
935 935
 
936
-                echo '>'.$row->jenis_transaksi.'</option>';
936
+                    echo '>'.$row->jenis_transaksi.'</option>';
937
+                }
937 938
             }
938
-        }
939 939
 
940
-     ?>
940
+         ?>
941 941
 
942 942
      </select>
943 943
 
@@ -968,21 +968,21 @@  discard block
 block discarded – undo
968 968
   
969 969
      <?php
970 970
 
971
-       $query = mysql_query('SELECT * FROM jenis_pembayaran WHERE aktif = "Y" ORDER BY id_jenis_pembayaran');
971
+           $query = mysql_query('SELECT * FROM jenis_pembayaran WHERE aktif = "Y" ORDER BY id_jenis_pembayaran');
972 972
 
973
-        if ($query && mysql_num_rows($query) > 0) {
974
-            while ($row = mysql_fetch_object($query)) {
975
-                echo '<option value="'.$row->id_jenis_pembayaran.'"';
973
+            if ($query && mysql_num_rows($query) > 0) {
974
+                while ($row = mysql_fetch_object($query)) {
975
+                    echo '<option value="'.$row->id_jenis_pembayaran.'"';
976 976
 
977
-                if ($row->id_jenis_pembayaran == @$data->id_jenis_pembayaran) {
978
-                    echo ' selected';
979
-                }
977
+                    if ($row->id_jenis_pembayaran == @$data->id_jenis_pembayaran) {
978
+                        echo ' selected';
979
+                    }
980 980
 
981
-                echo '>'.$row->jenis_pembayaran.'</option>';
981
+                    echo '>'.$row->jenis_pembayaran.'</option>';
982
+                }
982 983
             }
983
-        }
984 984
 
985
-     ?>
985
+         ?>
986 986
 
987 987
      </select>
988 988
 
@@ -995,21 +995,21 @@  discard block
 block discarded – undo
995 995
   
996 996
      <?php
997 997
 
998
-       $query = mysql_query('SELECT * FROM penjamin WHERE aktif = "Y" ORDER BY id_penjamin');
998
+           $query = mysql_query('SELECT * FROM penjamin WHERE aktif = "Y" ORDER BY id_penjamin');
999 999
 
1000
-        if ($query && mysql_num_rows($query) > 0) {
1001
-            while ($row = mysql_fetch_object($query)) {
1002
-                echo '<option value="'.$row->id_penjamin.'"';
1000
+            if ($query && mysql_num_rows($query) > 0) {
1001
+                while ($row = mysql_fetch_object($query)) {
1002
+                    echo '<option value="'.$row->id_penjamin.'"';
1003 1003
 
1004
-                if ($row->id_penjamin == @$data->id_penjamin) {
1005
-                    echo ' selected';
1006
-                }
1004
+                    if ($row->id_penjamin == @$data->id_penjamin) {
1005
+                        echo ' selected';
1006
+                    }
1007 1007
 
1008
-                echo '>'.$row->penjamin.'</option>';
1008
+                    echo '>'.$row->penjamin.'</option>';
1009
+                }
1009 1010
             }
1010
-        }
1011 1011
 
1012
-     ?>
1012
+         ?>
1013 1013
 
1014 1014
      </select>
1015 1015
 
@@ -1043,13 +1043,13 @@  discard block
 block discarded – undo
1043 1043
 
1044 1044
 
1045 1045
 <?php //}?>
1046
-
1046
+    
1047 1047
 
1048 1048
 
1049 1049
  <?php
1050 1050
 
1051 1051
 
1052
-$dSQL = "SELECT a.*,b.jenis_transaksi,c.penjamin,d.jenis_pembayaran
1052
+    $dSQL = "SELECT a.*,b.jenis_transaksi,c.penjamin,d.jenis_pembayaran
1053 1053
 
1054 1054
 
1055 1055
          FROM kasir_detail a LEFT JOIN jenis_transaksi b
@@ -1072,81 +1072,81 @@  discard block
 block discarded – undo
1072 1072
 
1073 1073
          ";
1074 1074
 
1075
-$dtampil = mysql_query($dSQL);
1075
+    $dtampil = mysql_query($dSQL);
1076 1076
 
1077
-$no = 1;
1077
+    $no = 1;
1078 1078
 
1079
-while ($d = mysql_fetch_array($dtampil)) {
1080
-    $d_id = $d['id_kasir_detail'];
1079
+    while ($d = mysql_fetch_array($dtampil)) {
1080
+        $d_id = $d['id_kasir_detail'];
1081 1081
 
1082
-    $ijumlah = number_format($d['jumlah'], 0, '.', ',');
1082
+        $ijumlah = number_format($d['jumlah'], 0, '.', ',');
1083 1083
 
1084
-    $jumlah = number_format($d['jumlah'], 0, '.', '');
1084
+        $jumlah = number_format($d['jumlah'], 0, '.', '');
1085 1085
 
1086
-    $total = $total + $d['jumlah'];
1086
+        $total = $total + $d['jumlah'];
1087 1087
 
1088
-    $itotal = number_format($total, 0, '.', ',');
1088
+        $itotal = number_format($total, 0, '.', ',');
1089 1089
 
1090
-    echo'<tr>';
1090
+        echo'<tr>';
1091 1091
 
1092
-    echo' <td>';
1092
+        echo' <td>';
1093 1093
 
1094
-    echo $d['notrans'];
1094
+        echo $d['notrans'];
1095 1095
 
1096
-    echo'</td>';
1096
+        echo'</td>';
1097 1097
 
1098
-    echo' <td>';
1098
+        echo' <td>';
1099 1099
 
1100
-    echo $d['pasien'];
1100
+        echo $d['pasien'];
1101 1101
 
1102
-    echo'</td>';
1102
+        echo'</td>';
1103 1103
 
1104
-    echo' <td>';
1104
+        echo' <td>';
1105 1105
 
1106
-    echo $d['jenis_transaksi'];
1106
+        echo $d['jenis_transaksi'];
1107 1107
 
1108
-    echo'</td>';
1108
+        echo'</td>';
1109 1109
 
1110
-    echo" <td  style='text-align:right;'>";
1110
+        echo" <td  style='text-align:right;'>";
1111 1111
 
1112
-    echo $ijumlah;
1112
+        echo $ijumlah;
1113 1113
 
1114
-    echo'</td>';
1114
+        echo'</td>';
1115 1115
 
1116
-    echo' <td>';
1116
+        echo' <td>';
1117 1117
 
1118
-    echo $d['jenis_pembayaran'];
1118
+        echo $d['jenis_pembayaran'];
1119 1119
 
1120
-    echo'</td>';
1120
+        echo'</td>';
1121 1121
 
1122
-    echo' <td>';
1122
+        echo' <td>';
1123 1123
 
1124
-    echo $d['penjamin'];
1124
+        echo $d['penjamin'];
1125 1125
 
1126
-    echo'</td>';
1126
+        echo'</td>';
1127 1127
 
1128
-    echo' <td>';
1128
+        echo' <td>';
1129 1129
 
1130
-    echo $d['ket'];
1130
+        echo $d['ket'];
1131 1131
 
1132
-    echo'</td>';
1132
+        echo'</td>';
1133 1133
 
1134
-    echo" <td  style='text-align:center;'>";
1134
+        echo" <td  style='text-align:center;'>";
1135 1135
 
1136
-    if ($r_edit == 'Y') {
1137
-        echo"<a href='?module=$module&id_module=$_GET[id_module]&act=edit&k_ID=$k_ID&d_id=$d_id' title='Update'><span class='btn btn-success btn-xs'><i class='fa fa-pencil'></i></span></a>";
1138
-    }
1136
+        if ($r_edit == 'Y') {
1137
+            echo"<a href='?module=$module&id_module=$_GET[id_module]&act=edit&k_ID=$k_ID&d_id=$d_id' title='Update'><span class='btn btn-success btn-xs'><i class='fa fa-pencil'></i></span></a>";
1138
+        }
1139 1139
 
1140
-    if ($r_delete == 'Y') {
1141
-        echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&id_module=$_GET[id_module]&act=dhapus&id=$d_id&k_ID=$k_ID' onClick=\"return confirm('Hapus Data ?')\" title='Hapus $nmmodule'><span class='btn btn-danger btn-xs'><i class='fa fa-trash'></i></span></a>";
1142
-    }
1140
+        if ($r_delete == 'Y') {
1141
+            echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&id_module=$_GET[id_module]&act=dhapus&id=$d_id&k_ID=$k_ID' onClick=\"return confirm('Hapus Data ?')\" title='Hapus $nmmodule'><span class='btn btn-danger btn-xs'><i class='fa fa-trash'></i></span></a>";
1142
+        }
1143 1143
 
1144
-    echo'</td>';
1144
+        echo'</td>';
1145 1145
 
1146
-    echo'</tr>';
1146
+        echo'</tr>';
1147 1147
 }
1148 1148
 
1149
-?>
1149
+    ?>
1150 1150
 
1151 1151
 
1152 1152
  <tr>
@@ -1187,52 +1187,52 @@  discard block
 block discarded – undo
1187 1187
 
1188 1188
 <?php
1189 1189
 
1190
-break;
1190
+    break;
1191 1191
 
1192
-case 'ubah':
1192
+    case 'ubah':
1193 1193
 
1194
-$k_ID = $_GET['k_ID'];
1194
+    $k_ID = $_GET['k_ID'];
1195 1195
 
1196
-$sql = mysql_query("SELECT * FROM kasir 
1196
+    $sql = mysql_query("SELECT * FROM kasir 
1197 1197
 
1198 1198
                         WHERE id_kasir = '$k_ID' 
1199 1199
 
1200 1200
                         ");
1201 1201
 
1202
-$r = mysql_fetch_array($sql);
1202
+    $r = mysql_fetch_array($sql);
1203 1203
 
1204
-$ID = $r['id_kasir'];
1204
+    $ID = $r['id_kasir'];
1205 1205
 
1206
-$shift = $r['id_shift'];
1206
+    $shift = $r['id_shift'];
1207 1207
 
1208
-$petugas = $r['petugas'];
1208
+    $petugas = $r['petugas'];
1209 1209
 
1210
-$status = $r['status'];
1210
+    $status = $r['status'];
1211 1211
 
1212
-$tanggal = $r['tanggal'];
1212
+    $tanggal = $r['tanggal'];
1213 1213
 
1214
-$dsql = mysql_query("SELECT * FROM kasir_detail 
1214
+    $dsql = mysql_query("SELECT * FROM kasir_detail 
1215 1215
 
1216 1216
                         WHERE id_kasir = '$k_ID' ");
1217 1217
 
1218
-$jml = mysql_num_rows($dsql);
1218
+    $jml = mysql_num_rows($dsql);
1219 1219
 
1220
-if ($jml > 0) {
1220
+    if ($jml > 0) {
1221 1221
 
1222
-  // $readonly = 'readonly';
1222
+      // $readonly = 'readonly';
1223 1223
 
1224
-    // $disabled = 'disabled';
1224
+        // $disabled = 'disabled';
1225 1225
 
1226
-    $readonly = '';
1226
+        $readonly = '';
1227 1227
 
1228
-    $disabled = '';
1228
+        $disabled = '';
1229 1229
 } else {
1230
-    $readonly = '';
1230
+        $readonly = '';
1231 1231
 
1232
-    $disabled = '';
1232
+        $disabled = '';
1233 1233
 }
1234 1234
 
1235
-?>
1235
+    ?>
1236 1236
 
1237 1237
 
1238 1238
 
@@ -1339,21 +1339,21 @@  discard block
 block discarded – undo
1339 1339
 
1340 1340
  <?php
1341 1341
 
1342
-   $query = mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift');
1342
+       $query = mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift');
1343
+
1344
+        if ($query && mysql_num_rows($query) > 0) {
1345
+            while ($row = mysql_fetch_object($query)) {
1346
+                echo '<option value="'.$row->id_shift.'"';
1343 1347
 
1344
-    if ($query && mysql_num_rows($query) > 0) {
1345
-        while ($row = mysql_fetch_object($query)) {
1346
-            echo '<option value="'.$row->id_shift.'"';
1348
+                if ($row->id_shift == $shift) {
1349
+                    echo ' selected';
1350
+                }
1347 1351
 
1348
-            if ($row->id_shift == $shift) {
1349
-                echo ' selected';
1352
+                echo '>'.$row->shift.'</option>';
1350 1353
             }
1351
-
1352
-            echo '>'.$row->shift.'</option>';
1353 1354
         }
1354
-    }
1355 1355
 
1356
- ?>  
1356
+     ?>  
1357 1357
 
1358 1358
  </select>         
1359 1359
 
@@ -1410,7 +1410,7 @@  discard block
 block discarded – undo
1410 1410
  <?php
1411 1411
 
1412 1412
 
1413
-$dSQL = "SELECT a.*,b.jenis_transaksi,c.penjamin,d.jenis_pembayaran
1413
+    $dSQL = "SELECT a.*,b.jenis_transaksi,c.penjamin,d.jenis_pembayaran
1414 1414
 
1415 1415
 
1416 1416
          FROM kasir_detail a LEFT JOIN jenis_transaksi b
@@ -1433,69 +1433,69 @@  discard block
 block discarded – undo
1433 1433
 
1434 1434
          ";
1435 1435
 
1436
-$dtampil = mysql_query($dSQL);
1436
+    $dtampil = mysql_query($dSQL);
1437 1437
 
1438
-$no = 1;
1438
+    $no = 1;
1439 1439
 
1440
-while ($d = mysql_fetch_array($dtampil)) {
1441
-    $d_id = $d['id_kasir_detail'];
1440
+    while ($d = mysql_fetch_array($dtampil)) {
1441
+        $d_id = $d['id_kasir_detail'];
1442 1442
 
1443
-    $ijumlah = number_format($d['jumlah'], 0, '.', ',');
1443
+        $ijumlah = number_format($d['jumlah'], 0, '.', ',');
1444 1444
 
1445
-    $jumlah = number_format($d['jumlah'], 0, '.', '');
1445
+        $jumlah = number_format($d['jumlah'], 0, '.', '');
1446 1446
 
1447
-    $total = $total + $d['jumlah'];
1447
+        $total = $total + $d['jumlah'];
1448 1448
 
1449
-    $itotal = number_format($total, 0, '.', ',');
1449
+        $itotal = number_format($total, 0, '.', ',');
1450 1450
 
1451
-    echo'<tr>';
1451
+        echo'<tr>';
1452 1452
 
1453
-    echo' <td>';
1453
+        echo' <td>';
1454 1454
 
1455
-    echo $d['notrans'];
1455
+        echo $d['notrans'];
1456 1456
 
1457
-    echo'</td>';
1457
+        echo'</td>';
1458 1458
 
1459
-    echo' <td>';
1459
+        echo' <td>';
1460 1460
 
1461
-    echo $d['pasien'];
1461
+        echo $d['pasien'];
1462 1462
 
1463
-    echo'</td>';
1463
+        echo'</td>';
1464 1464
 
1465
-    echo' <td>';
1465
+        echo' <td>';
1466 1466
 
1467
-    echo $d['jenis_transaksi'];
1467
+        echo $d['jenis_transaksi'];
1468 1468
 
1469
-    echo'</td>';
1469
+        echo'</td>';
1470 1470
 
1471
-    echo" <td  style='text-align:right;'>";
1471
+        echo" <td  style='text-align:right;'>";
1472 1472
 
1473
-    echo $ijumlah;
1473
+        echo $ijumlah;
1474 1474
 
1475
-    echo'</td>';
1475
+        echo'</td>';
1476 1476
 
1477
-    echo' <td>';
1477
+        echo' <td>';
1478 1478
 
1479
-    echo $d['jenis_pembayaran'];
1479
+        echo $d['jenis_pembayaran'];
1480 1480
 
1481
-    echo'</td>';
1481
+        echo'</td>';
1482 1482
 
1483
-    echo' <td>';
1483
+        echo' <td>';
1484 1484
 
1485
-    echo $d['penjamin'];
1485
+        echo $d['penjamin'];
1486 1486
 
1487
-    echo'</td>';
1487
+        echo'</td>';
1488 1488
 
1489
-    echo' <td>';
1489
+        echo' <td>';
1490 1490
 
1491
-    echo $d['ket'];
1491
+        echo $d['ket'];
1492 1492
 
1493
-    echo'</td>';
1493
+        echo'</td>';
1494 1494
 
1495
-    echo'</tr>';
1495
+        echo'</tr>';
1496 1496
 }
1497 1497
 
1498
-?>
1498
+    ?>
1499 1499
 
1500 1500
 
1501 1501
 </table> 
@@ -1519,33 +1519,33 @@  discard block
 block discarded – undo
1519 1519
 
1520 1520
 <?php
1521 1521
 
1522
-break;
1522
+    break;
1523 1523
 
1524
-case 'edit':
1524
+    case 'edit':
1525 1525
 
1526
-$k_ID = $_GET['k_ID'];
1526
+    $k_ID = $_GET['k_ID'];
1527 1527
 
1528
-$sql = mysql_query("SELECT * FROM kasir 
1528
+    $sql = mysql_query("SELECT * FROM kasir 
1529 1529
 
1530 1530
                         WHERE id_kasir = '$k_ID' 
1531 1531
 
1532 1532
                         ");
1533 1533
 
1534
-$r = mysql_fetch_array($sql);
1534
+    $r = mysql_fetch_array($sql);
1535 1535
 
1536
-$penjualan_barang = $r['id_kasir'];
1536
+    $penjualan_barang = $r['id_kasir'];
1537 1537
 
1538
-$shift = $r['id_shift'];
1538
+    $shift = $r['id_shift'];
1539 1539
 
1540
-$petugas = $r['petugas'];
1540
+    $petugas = $r['petugas'];
1541 1541
 
1542
-$status = $r['status'];
1542
+    $status = $r['status'];
1543 1543
 
1544
-$tanggal = $r['tanggal'];
1544
+    $tanggal = $r['tanggal'];
1545 1545
 
1546
-//$ID   = $r['id_kasir'];
1546
+    //$ID   = $r['id_kasir'];
1547 1547
 
1548
-?>
1548
+    ?>
1549 1549
 
1550 1550
 
1551 1551
 
@@ -1633,21 +1633,21 @@  discard block
 block discarded – undo
1633 1633
 
1634 1634
  <?php
1635 1635
 
1636
-   $query = mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift');
1636
+       $query = mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift');
1637 1637
 
1638
-    if ($query && mysql_num_rows($query) > 0) {
1639
-        while ($row = mysql_fetch_object($query)) {
1640
-            echo '<option value="'.$row->id_shift.'"';
1638
+        if ($query && mysql_num_rows($query) > 0) {
1639
+            while ($row = mysql_fetch_object($query)) {
1640
+                echo '<option value="'.$row->id_shift.'"';
1641 1641
 
1642
-            if ($row->id_shift == $shift) {
1643
-                echo ' selected';
1644
-            }
1642
+                if ($row->id_shift == $shift) {
1643
+                    echo ' selected';
1644
+                }
1645 1645
 
1646
-            echo '>'.$row->shift.'</option>';
1646
+                echo '>'.$row->shift.'</option>';
1647
+            }
1647 1648
         }
1648
-    }
1649 1649
 
1650
- ?>  
1650
+     ?>  
1651 1651
 
1652 1652
  </select>         
1653 1653
 
@@ -1712,9 +1712,9 @@  discard block
 block discarded – undo
1712 1712
 
1713 1713
  <?php
1714 1714
 
1715
- $d_id = $_GET['d_id'];
1715
+     $d_id = $_GET['d_id'];
1716 1716
 
1717
-$dSQL = "SELECT a.*,b.jenis_transaksi,c.penjamin,d.jenis_pembayaran
1717
+    $dSQL = "SELECT a.*,b.jenis_transaksi,c.penjamin,d.jenis_pembayaran
1718 1718
 
1719 1719
 
1720 1720
          FROM kasir_detail a LEFT JOIN jenis_transaksi b
@@ -1737,185 +1737,185 @@  discard block
 block discarded – undo
1737 1737
 
1738 1738
          ";
1739 1739
 
1740
-$dtampil = mysql_query($dSQL);
1740
+    $dtampil = mysql_query($dSQL);
1741 1741
 
1742
-$no = 1;
1742
+    $no = 1;
1743 1743
 
1744
-while ($d = mysql_fetch_array($dtampil)) {
1745
-    $jid = $d['id_kasir_detail'];
1744
+    while ($d = mysql_fetch_array($dtampil)) {
1745
+        $jid = $d['id_kasir_detail'];
1746 1746
 
1747
-    $ijumlah = number_format($d['jumlah'], 0, '.', ',');
1747
+        $ijumlah = number_format($d['jumlah'], 0, '.', ',');
1748 1748
 
1749
-    $jumlah = number_format($d['jumlah'], 0, '.', '');
1749
+        $jumlah = number_format($d['jumlah'], 0, '.', '');
1750 1750
 
1751
-    if ($jid == $d_id) {
1752
-        echo '<form action="modul/mod_'.$module.'/aksi_'.$module.'.php?module='.$module.'&act=add method="post" name="formData" enctype="multipart/form-data">';
1751
+        if ($jid == $d_id) {
1752
+            echo '<form action="modul/mod_'.$module.'/aksi_'.$module.'.php?module='.$module.'&act=add method="post" name="formData" enctype="multipart/form-data">';
1753 1753
 
1754
-        echo '<input type="hidden" name="module" value="'.$module.'" />';
1754
+            echo '<input type="hidden" name="module" value="'.$module.'" />';
1755 1755
 
1756
-        echo '<input type="hidden" name="id_module" value=" '.$id_module.'" />';
1756
+            echo '<input type="hidden" name="id_module" value=" '.$id_module.'" />';
1757 1757
 
1758
-        echo '<input type="hidden" name="imodule" value="'.$imodule.'" />';
1758
+            echo '<input type="hidden" name="imodule" value="'.$imodule.'" />';
1759 1759
 
1760
-        echo '<input type="hidden" name="k_ID" value="'.$k_ID.'" />';
1760
+            echo '<input type="hidden" name="k_ID" value="'.$k_ID.'" />';
1761 1761
 
1762
-        echo  '<input type="hidden" name="ID" value="'.$jid.'" />';
1762
+            echo  '<input type="hidden" name="ID" value="'.$jid.'" />';
1763 1763
 
1764
-        echo '<tr>';
1764
+            echo '<tr>';
1765 1765
 
1766
-        echo '<td>';
1766
+            echo '<td>';
1767 1767
 
1768
-        echo '<input type="text" name="notrans" id="notrans" value=" '.$d['notrans'].'" autofocus required="required"  class="form-control">';
1768
+            echo '<input type="text" name="notrans" id="notrans" value=" '.$d['notrans'].'" autofocus required="required"  class="form-control">';
1769 1769
 
1770
-        echo '</td>';
1770
+            echo '</td>';
1771 1771
 
1772
-        echo '<td>';
1772
+            echo '<td>';
1773 1773
 
1774
-        echo '<input type="text" name="pasien" id="pasien" value="'.$d['pasien'].'" class="form-control">';
1774
+            echo '<input type="text" name="pasien" id="pasien" value="'.$d['pasien'].'" class="form-control">';
1775 1775
 
1776
-        echo '</td>';
1776
+            echo '</td>';
1777 1777
 
1778
-        echo '<td>';
1778
+            echo '<td>';
1779 1779
 
1780
-        echo '<select name="jenis_transaksi" id="jenis_transaksi" class="form-control">';
1780
+            echo '<select name="jenis_transaksi" id="jenis_transaksi" class="form-control">';
1781 1781
 
1782
-        $query = mysql_query('SELECT * FROM jenis_transaksi WHERE aktif = "Y" ORDER BY id_jenis_transaksi');
1782
+            $query = mysql_query('SELECT * FROM jenis_transaksi WHERE aktif = "Y" ORDER BY id_jenis_transaksi');
1783 1783
 
1784
-        if ($query && mysql_num_rows($query) > 0) {
1785
-            while ($row = mysql_fetch_object($query)) {
1786
-                $selected = ($row->id_jenis_transaksi == @$d['id_jenis_transaksi']) ? 'selected' : '';
1787
-                printf('<option value="%s" %s>%s</option>', $row->id_jenis_transaksi, $selected, $row->jenis_transaksi);
1784
+            if ($query && mysql_num_rows($query) > 0) {
1785
+                while ($row = mysql_fetch_object($query)) {
1786
+                    $selected = ($row->id_jenis_transaksi == @$d['id_jenis_transaksi']) ? 'selected' : '';
1787
+                    printf('<option value="%s" %s>%s</option>', $row->id_jenis_transaksi, $selected, $row->jenis_transaksi);
1788
+                }
1788 1789
             }
1789
-        }
1790 1790
 
1791
-        echo '</select>';
1791
+            echo '</select>';
1792 1792
 
1793
-        echo '</td>';
1793
+            echo '</td>';
1794 1794
 
1795
-        echo '<td>';
1795
+            echo '<td>';
1796 1796
 
1797
-        echo '<input type="text" name="ijumlah" id="ijumlah" min="1" value="'.$ijumlah.'" style="text-align:right;" required="required" class="form-control col-md-7 col-xs-12" onBlur="mask_jumlah()" onFocus="mask_clear_jumlah()"/>';
1797
+            echo '<input type="text" name="ijumlah" id="ijumlah" min="1" value="'.$ijumlah.'" style="text-align:right;" required="required" class="form-control col-md-7 col-xs-12" onBlur="mask_jumlah()" onFocus="mask_clear_jumlah()"/>';
1798 1798
 
1799
-        echo '<input type="hidden" name="jumlah" id="jumlah" value="'.$jumlah.'" style="text-align:right;" required="required" class="form-control col-md-7 col-xs-12">';
1799
+            echo '<input type="hidden" name="jumlah" id="jumlah" value="'.$jumlah.'" style="text-align:right;" required="required" class="form-control col-md-7 col-xs-12">';
1800 1800
 
1801
-        echo '</td>';
1801
+            echo '</td>';
1802 1802
 
1803
-        echo '<td>';
1803
+            echo '<td>';
1804 1804
 
1805
-        echo '<select name="jenis_pembayaran" id="jenis_pembayaran" class="form-control">';
1805
+            echo '<select name="jenis_pembayaran" id="jenis_pembayaran" class="form-control">';
1806 1806
 
1807
-        $query = mysql_query('SELECT * FROM jenis_pembayaran WHERE aktif = "Y" ORDER BY id_jenis_pembayaran');
1807
+            $query = mysql_query('SELECT * FROM jenis_pembayaran WHERE aktif = "Y" ORDER BY id_jenis_pembayaran');
1808 1808
 
1809
-        if ($query && mysql_num_rows($query) > 0) {
1810
-            while ($row = mysql_fetch_object($query)) {
1811
-                $selected = ($row->id_jenis_pembayaran == @$d['id_jenis_pembayaran']) ? 'selected' : '';
1812
-                printf('<option value="%s" %s>%s</option>', $row->id_jenis_pembayaran, $selected, $row->jenis_pembayaran);
1809
+            if ($query && mysql_num_rows($query) > 0) {
1810
+                while ($row = mysql_fetch_object($query)) {
1811
+                    $selected = ($row->id_jenis_pembayaran == @$d['id_jenis_pembayaran']) ? 'selected' : '';
1812
+                    printf('<option value="%s" %s>%s</option>', $row->id_jenis_pembayaran, $selected, $row->jenis_pembayaran);
1813
+                }
1813 1814
             }
1814
-        }
1815 1815
 
1816
-        echo '</select>';
1816
+            echo '</select>';
1817 1817
 
1818
-        echo '</td>';
1818
+            echo '</td>';
1819 1819
 
1820
-        echo '<td>';
1820
+            echo '<td>';
1821 1821
 
1822
-        echo '<select name="penjamin" id="penjamin" class="form-control">';
1823
-        echo '<option value="0"></option>';
1822
+            echo '<select name="penjamin" id="penjamin" class="form-control">';
1823
+            echo '<option value="0"></option>';
1824 1824
 
1825
-        $query = mysql_query('SELECT * FROM penjamin WHERE aktif = "Y" ORDER BY id_penjamin');
1825
+            $query = mysql_query('SELECT * FROM penjamin WHERE aktif = "Y" ORDER BY id_penjamin');
1826 1826
 
1827
-        if ($query && mysql_num_rows($query) > 0) {
1828
-            while ($row = mysql_fetch_object($query)) {
1829
-                $selected = ($row->id_penjamin == @$d['id_penjamin']) ? 'selected' : '';
1830
-                printf('<option value="%s" %s>%s</option>', $row->id_penjamin, $selected, $row->penjamin);
1827
+            if ($query && mysql_num_rows($query) > 0) {
1828
+                while ($row = mysql_fetch_object($query)) {
1829
+                    $selected = ($row->id_penjamin == @$d['id_penjamin']) ? 'selected' : '';
1830
+                    printf('<option value="%s" %s>%s</option>', $row->id_penjamin, $selected, $row->penjamin);
1831
+                }
1831 1832
             }
1832
-        }
1833 1833
 
1834
-        echo '</select>';
1834
+            echo '</select>';
1835 1835
 
1836
-        echo '</td>';
1836
+            echo '</td>';
1837 1837
 
1838
-        echo '<td>';
1838
+            echo '<td>';
1839 1839
 
1840
-        echo '<textarea  name="ket" id="ket" col=1>'.$d['ket'].'</textarea>';
1840
+            echo '<textarea  name="ket" id="ket" col=1>'.$d['ket'].'</textarea>';
1841 1841
 
1842
-        echo '</td>';
1842
+            echo '</td>';
1843 1843
 
1844
-        echo '<td>';
1844
+            echo '<td>';
1845 1845
 
1846
-        echo '<button type="submit"  class="btn btn-primary btn-xs">';
1846
+            echo '<button type="submit"  class="btn btn-primary btn-xs">';
1847 1847
 
1848
-        echo '<span class="glyphicon glyphicon-floppy-disk" aria-hidden="true"></span>';
1848
+            echo '<span class="glyphicon glyphicon-floppy-disk" aria-hidden="true"></span>';
1849 1849
 
1850
-        echo '</button>';
1850
+            echo '</button>';
1851 1851
 
1852
-        echo '</td>';
1852
+            echo '</td>';
1853 1853
 
1854
-        echo '</tr>';
1854
+            echo '</tr>';
1855 1855
 
1856
-        echo '</form>';
1857
-    } else {
1858
-        echo'<tr>';
1856
+            echo '</form>';
1857
+        } else {
1858
+            echo'<tr>';
1859 1859
 
1860
-        echo' <td>';
1860
+            echo' <td>';
1861 1861
 
1862
-        echo $d['notrans'];
1862
+            echo $d['notrans'];
1863 1863
 
1864
-        echo'</td>';
1864
+            echo'</td>';
1865 1865
 
1866
-        echo' <td>';
1866
+            echo' <td>';
1867 1867
 
1868
-        echo $d['pasien'];
1868
+            echo $d['pasien'];
1869 1869
 
1870
-        echo'</td>';
1870
+            echo'</td>';
1871 1871
 
1872
-        echo' <td>';
1872
+            echo' <td>';
1873 1873
 
1874
-        echo $d['jenis_transaksi'];
1874
+            echo $d['jenis_transaksi'];
1875 1875
 
1876
-        echo'</td>';
1876
+            echo'</td>';
1877 1877
 
1878
-        echo" <td  style='text-align:right;'>";
1878
+            echo" <td  style='text-align:right;'>";
1879 1879
 
1880
-        echo $ijumlah;
1880
+            echo $ijumlah;
1881 1881
 
1882
-        echo'</td>';
1882
+            echo'</td>';
1883 1883
 
1884
-        echo' <td>';
1884
+            echo' <td>';
1885 1885
 
1886
-        echo $d['jenis_pembayaran'];
1886
+            echo $d['jenis_pembayaran'];
1887 1887
 
1888
-        echo'</td>';
1888
+            echo'</td>';
1889 1889
 
1890
-        echo' <td>';
1890
+            echo' <td>';
1891 1891
 
1892
-        echo $d['penjamin'];
1892
+            echo $d['penjamin'];
1893 1893
 
1894
-        echo'</td>';
1894
+            echo'</td>';
1895 1895
 
1896
-        echo' <td>';
1896
+            echo' <td>';
1897 1897
 
1898
-        echo $d['ket'];
1898
+            echo $d['ket'];
1899 1899
 
1900
-        echo'</td>';
1900
+            echo'</td>';
1901 1901
 
1902
-        echo" <td  style='text-align:center;'>";
1902
+            echo" <td  style='text-align:center;'>";
1903 1903
 
1904
-        if ($r_edit == 'Y') {
1905
-            echo"<span class='btn btn-success btn-sm' disabled><i class='fa fa-pencil'></i></span>";
1906
-        }
1904
+            if ($r_edit == 'Y') {
1905
+                echo"<span class='btn btn-success btn-sm' disabled><i class='fa fa-pencil'></i></span>";
1906
+            }
1907 1907
 
1908
-        if ($r_delete == 'Y') {
1909
-            echo"<span class='btn btn-danger btn-sm' disabled><i class='fa fa-trash'></i></span>";
1910
-        }
1908
+            if ($r_delete == 'Y') {
1909
+                echo"<span class='btn btn-danger btn-sm' disabled><i class='fa fa-trash'></i></span>";
1910
+            }
1911 1911
 
1912
-        echo'</td>';
1912
+            echo'</td>';
1913 1913
 
1914
-        echo'</tr>';
1915
-    }
1914
+            echo'</tr>';
1915
+        }
1916 1916
 }
1917 1917
 
1918
-?>
1918
+    ?>
1919 1919
 
1920 1920
 
1921 1921
 
@@ -1940,6 +1940,6 @@  discard block
 block discarded – undo
1940 1940
 
1941 1941
 <?php
1942 1942
 
1943
-endswitch;
1943
+    endswitch;
1944 1944
 
1945 1945
 ?>
1946 1946
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -330,13 +330,13 @@  discard block
 block discarded – undo
330 330
          while ($r = mysql_fetch_array($tampil)) {
331 331
              $tgl = date('d/m/Y', strtotime($r['tanggal']));
332 332
 
333
-             if ($r['status'] == '0') {
333
+             if ($r['status']=='0') {
334 334
                  $istatus = 'Baru';
335
-             } elseif ($r['status'] == '1') {
335
+             } elseif ($r['status']=='1') {
336 336
                  $istatus = 'Disetujui';
337
-             } elseif ($r['status'] == '2') {
337
+             } elseif ($r['status']=='2') {
338 338
                  $istatus = 'Ditolak';
339
-             } elseif ($r['status'] == '9') {
339
+             } elseif ($r['status']=='9') {
340 340
                  $istatus = 'Posting';
341 341
              } else {
342 342
                  $istatus = 'Dibatalkan';
@@ -358,11 +358,11 @@  discard block
 block discarded – undo
358 358
 
359 359
              echo"<td style='text-align:center;'>";
360 360
 
361
-             if ($r_edit == 'Y') {
361
+             if ($r_edit=='Y') {
362 362
                  echo"<a href='?module=$module&id_module=$id&act=save&ID=$ID' title='Update'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
363 363
              }
364 364
 
365
-             if ($r_delete == 'Y' and $r['status'] == '0') {
365
+             if ($r_delete=='Y' and $r['status']=='0') {
366 366
                  echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$ID&id_module=$id&id_module=$id' onClick=\"return confirm('Hapus Data ?')\" title='Hapus $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
367 367
              } else {
368 368
                  echo"<i class='fa fa-trash'></i></span>";
@@ -503,13 +503,13 @@  discard block
 block discarded – undo
503 503
 
504 504
           <button  type="button" onClick="location.href='<?php echo"?module=$module&id_module=$id_module&act=ubah&prd=$prd&notrans=$notrans&kode=$kode&outlet=$outlet"; ?>'" 
505 505
 
506
-          class="btn btn-success" <?php if ($status != '0') {
506
+          class="btn btn-success" <?php if ($status!='0') {
507 507
     echo 'disabled';
508 508
 } ?>>Ubah</button>
509 509
 
510 510
 
511 511
 
512
-           <?php if ($status == '0') {
512
+           <?php if ($status=='0') {
513 513
     ?>
514 514
 
515 515
             <?php
@@ -591,11 +591,11 @@  discard block
 block discarded – undo
591 591
 
592 592
    $query = mysql_query('SELECT * FROM shift WHERE  aktif = "Y" ORDER BY id_shift');
593 593
 
594
-    if ($query && mysql_num_rows($query) > 0) {
594
+    if ($query && mysql_num_rows($query)>0) {
595 595
         while ($row = mysql_fetch_object($query)) {
596 596
             echo '<option value="'.$row->id_shift.'"';
597 597
 
598
-            if ($row->id_shift == $shift) {
598
+            if ($row->id_shift==$shift) {
599 599
                 echo ' selected';
600 600
             }
601 601
 
@@ -748,7 +748,7 @@  discard block
 block discarded – undo
748 748
 
749 749
           <button  type="button" onClick="location.href='<?php echo"?module=$module&id_module=$id_module&act=ubah&k_ID=$k_ID"; ?>'" 
750 750
 
751
-          class="btn btn-success" <?php if ($status != '0') {
751
+          class="btn btn-success" <?php if ($status!='0') {
752 752
     echo 'disabled';
753 753
 } ?>>Ubah</button>
754 754
 
@@ -815,11 +815,11 @@  discard block
 block discarded – undo
815 815
 
816 816
    $query = mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift');
817 817
 
818
-    if ($query && mysql_num_rows($query) > 0) {
818
+    if ($query && mysql_num_rows($query)>0) {
819 819
         while ($row = mysql_fetch_object($query)) {
820 820
             echo '<option value="'.$row->id_shift.'"';
821 821
 
822
-            if ($row->id_shift == $shift) {
822
+            if ($row->id_shift==$shift) {
823 823
                 echo ' selected';
824 824
             }
825 825
 
@@ -925,11 +925,11 @@  discard block
 block discarded – undo
925 925
 
926 926
        $query = mysql_query('SELECT * FROM jenis_transaksi WHERE aktif = "Y" ORDER BY id_jenis_transaksi');
927 927
 
928
-        if ($query && mysql_num_rows($query) > 0) {
928
+        if ($query && mysql_num_rows($query)>0) {
929 929
             while ($row = mysql_fetch_object($query)) {
930 930
                 echo '<option value="'.$row->id_jenis_transaksi.'"';
931 931
 
932
-                if ($row->id_jenis_transaksi == @$data->id_jenis_transaksi) {
932
+                if ($row->id_jenis_transaksi==@$data->id_jenis_transaksi) {
933 933
                     echo ' selected';
934 934
                 }
935 935
 
@@ -970,11 +970,11 @@  discard block
 block discarded – undo
970 970
 
971 971
        $query = mysql_query('SELECT * FROM jenis_pembayaran WHERE aktif = "Y" ORDER BY id_jenis_pembayaran');
972 972
 
973
-        if ($query && mysql_num_rows($query) > 0) {
973
+        if ($query && mysql_num_rows($query)>0) {
974 974
             while ($row = mysql_fetch_object($query)) {
975 975
                 echo '<option value="'.$row->id_jenis_pembayaran.'"';
976 976
 
977
-                if ($row->id_jenis_pembayaran == @$data->id_jenis_pembayaran) {
977
+                if ($row->id_jenis_pembayaran==@$data->id_jenis_pembayaran) {
978 978
                     echo ' selected';
979 979
                 }
980 980
 
@@ -997,11 +997,11 @@  discard block
 block discarded – undo
997 997
 
998 998
        $query = mysql_query('SELECT * FROM penjamin WHERE aktif = "Y" ORDER BY id_penjamin');
999 999
 
1000
-        if ($query && mysql_num_rows($query) > 0) {
1000
+        if ($query && mysql_num_rows($query)>0) {
1001 1001
             while ($row = mysql_fetch_object($query)) {
1002 1002
                 echo '<option value="'.$row->id_penjamin.'"';
1003 1003
 
1004
-                if ($row->id_penjamin == @$data->id_penjamin) {
1004
+                if ($row->id_penjamin==@$data->id_penjamin) {
1005 1005
                     echo ' selected';
1006 1006
                 }
1007 1007
 
@@ -1133,11 +1133,11 @@  discard block
 block discarded – undo
1133 1133
 
1134 1134
     echo" <td  style='text-align:center;'>";
1135 1135
 
1136
-    if ($r_edit == 'Y') {
1136
+    if ($r_edit=='Y') {
1137 1137
         echo"<a href='?module=$module&id_module=$_GET[id_module]&act=edit&k_ID=$k_ID&d_id=$d_id' title='Update'><span class='btn btn-success btn-xs'><i class='fa fa-pencil'></i></span></a>";
1138 1138
     }
1139 1139
 
1140
-    if ($r_delete == 'Y') {
1140
+    if ($r_delete=='Y') {
1141 1141
         echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&id_module=$_GET[id_module]&act=dhapus&id=$d_id&k_ID=$k_ID' onClick=\"return confirm('Hapus Data ?')\" title='Hapus $nmmodule'><span class='btn btn-danger btn-xs'><i class='fa fa-trash'></i></span></a>";
1142 1142
     }
1143 1143
 
@@ -1217,7 +1217,7 @@  discard block
 block discarded – undo
1217 1217
 
1218 1218
 $jml = mysql_num_rows($dsql);
1219 1219
 
1220
-if ($jml > 0) {
1220
+if ($jml>0) {
1221 1221
 
1222 1222
   // $readonly = 'readonly';
1223 1223
 
@@ -1341,11 +1341,11 @@  discard block
 block discarded – undo
1341 1341
 
1342 1342
    $query = mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift');
1343 1343
 
1344
-    if ($query && mysql_num_rows($query) > 0) {
1344
+    if ($query && mysql_num_rows($query)>0) {
1345 1345
         while ($row = mysql_fetch_object($query)) {
1346 1346
             echo '<option value="'.$row->id_shift.'"';
1347 1347
 
1348
-            if ($row->id_shift == $shift) {
1348
+            if ($row->id_shift==$shift) {
1349 1349
                 echo ' selected';
1350 1350
             }
1351 1351
 
@@ -1635,11 +1635,11 @@  discard block
 block discarded – undo
1635 1635
 
1636 1636
    $query = mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift');
1637 1637
 
1638
-    if ($query && mysql_num_rows($query) > 0) {
1638
+    if ($query && mysql_num_rows($query)>0) {
1639 1639
         while ($row = mysql_fetch_object($query)) {
1640 1640
             echo '<option value="'.$row->id_shift.'"';
1641 1641
 
1642
-            if ($row->id_shift == $shift) {
1642
+            if ($row->id_shift==$shift) {
1643 1643
                 echo ' selected';
1644 1644
             }
1645 1645
 
@@ -1748,7 +1748,7 @@  discard block
 block discarded – undo
1748 1748
 
1749 1749
     $jumlah = number_format($d['jumlah'], 0, '.', '');
1750 1750
 
1751
-    if ($jid == $d_id) {
1751
+    if ($jid==$d_id) {
1752 1752
         echo '<form action="modul/mod_'.$module.'/aksi_'.$module.'.php?module='.$module.'&act=add method="post" name="formData" enctype="multipart/form-data">';
1753 1753
 
1754 1754
         echo '<input type="hidden" name="module" value="'.$module.'" />';
@@ -1781,9 +1781,9 @@  discard block
 block discarded – undo
1781 1781
 
1782 1782
         $query = mysql_query('SELECT * FROM jenis_transaksi WHERE aktif = "Y" ORDER BY id_jenis_transaksi');
1783 1783
 
1784
-        if ($query && mysql_num_rows($query) > 0) {
1784
+        if ($query && mysql_num_rows($query)>0) {
1785 1785
             while ($row = mysql_fetch_object($query)) {
1786
-                $selected = ($row->id_jenis_transaksi == @$d['id_jenis_transaksi']) ? 'selected' : '';
1786
+                $selected = ($row->id_jenis_transaksi==@$d['id_jenis_transaksi']) ? 'selected' : '';
1787 1787
                 printf('<option value="%s" %s>%s</option>', $row->id_jenis_transaksi, $selected, $row->jenis_transaksi);
1788 1788
             }
1789 1789
         }
@@ -1806,9 +1806,9 @@  discard block
 block discarded – undo
1806 1806
 
1807 1807
         $query = mysql_query('SELECT * FROM jenis_pembayaran WHERE aktif = "Y" ORDER BY id_jenis_pembayaran');
1808 1808
 
1809
-        if ($query && mysql_num_rows($query) > 0) {
1809
+        if ($query && mysql_num_rows($query)>0) {
1810 1810
             while ($row = mysql_fetch_object($query)) {
1811
-                $selected = ($row->id_jenis_pembayaran == @$d['id_jenis_pembayaran']) ? 'selected' : '';
1811
+                $selected = ($row->id_jenis_pembayaran==@$d['id_jenis_pembayaran']) ? 'selected' : '';
1812 1812
                 printf('<option value="%s" %s>%s</option>', $row->id_jenis_pembayaran, $selected, $row->jenis_pembayaran);
1813 1813
             }
1814 1814
         }
@@ -1824,9 +1824,9 @@  discard block
 block discarded – undo
1824 1824
 
1825 1825
         $query = mysql_query('SELECT * FROM penjamin WHERE aktif = "Y" ORDER BY id_penjamin');
1826 1826
 
1827
-        if ($query && mysql_num_rows($query) > 0) {
1827
+        if ($query && mysql_num_rows($query)>0) {
1828 1828
             while ($row = mysql_fetch_object($query)) {
1829
-                $selected = ($row->id_penjamin == @$d['id_penjamin']) ? 'selected' : '';
1829
+                $selected = ($row->id_penjamin==@$d['id_penjamin']) ? 'selected' : '';
1830 1830
                 printf('<option value="%s" %s>%s</option>', $row->id_penjamin, $selected, $row->penjamin);
1831 1831
             }
1832 1832
         }
@@ -1901,11 +1901,11 @@  discard block
 block discarded – undo
1901 1901
 
1902 1902
         echo" <td  style='text-align:center;'>";
1903 1903
 
1904
-        if ($r_edit == 'Y') {
1904
+        if ($r_edit=='Y') {
1905 1905
             echo"<span class='btn btn-success btn-sm' disabled><i class='fa fa-pencil'></i></span>";
1906 1906
         }
1907 1907
 
1908
-        if ($r_delete == 'Y') {
1908
+        if ($r_delete=='Y') {
1909 1909
             echo"<span class='btn btn-danger btn-sm' disabled><i class='fa fa-trash'></i></span>";
1910 1910
         }
1911 1911
 
Please login to merge, or discard this patch.
modul/mod_kasir/xcetak_kasir.php 3 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -359,9 +359,9 @@  discard block
 block discarded – undo
359 359
 
360 360
 $outlet = $_GET['outlet'];
361 361
 
362
- $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
362
+    $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
363 363
 
364
- $g = mysql_fetch_array($gtampil);
364
+    $g = mysql_fetch_array($gtampil);
365 365
 
366 366
 if ($g['pict']) {
367 367
     $pict = $g['pict'];
@@ -371,11 +371,11 @@  discard block
 block discarded – undo
371 371
 
372 372
 $company = ucwords($g['company']);
373 373
 
374
- $otampil = mysql_query("SELECT * FROM  outlet where id_outlet = '$outlet'");
374
+    $otampil = mysql_query("SELECT * FROM  outlet where id_outlet = '$outlet'");
375 375
 
376
- $o = mysql_fetch_array($otampil);
376
+    $o = mysql_fetch_array($otampil);
377 377
 
378
- ?>
378
+    ?>
379 379
 
380 380
 
381 381
 
Please login to merge, or discard this patch.
Switch Indentation   +205 added lines, -205 removed lines patch added patch discarded remove patch
@@ -1,48 +1,48 @@  discard block
 block discarded – undo
1
-<?php
1
+    <?php
2 2
 
3
-session_start();
3
+    session_start();
4 4
 
5
-include './../../config/koneksi.php';
5
+    include './../../config/koneksi.php';
6 6
 
7
-include './../../config/fungsi_indobulan.php';
7
+    include './../../config/fungsi_indobulan.php';
8 8
 
9
-$SQL = 'SELECT* FROM periode ';
9
+    $SQL = 'SELECT* FROM periode ';
10 10
 
11
-$tampil = mysql_query($SQL);
11
+    $tampil = mysql_query($SQL);
12 12
 
13
-$p = mysql_fetch_array($tampil);
13
+    $p = mysql_fetch_array($tampil);
14 14
 
15
-$prd = $_GET['prd'];
15
+    $prd = $_GET['prd'];
16 16
 
17
-$tampil = mysql_query("SELECT * FROM modul WHERE id_modul ='".$_GET[report_id]."'");
17
+    $tampil = mysql_query("SELECT * FROM modul WHERE id_modul ='".$_GET[report_id]."'");
18 18
 
19
-$r = mysql_fetch_array($tampil);
19
+    $r = mysql_fetch_array($tampil);
20 20
 
21
-$module = $_GET['module'];
21
+    $module = $_GET['module'];
22 22
 
23
-$imodule = ucwords($r['nama_modul']);
23
+    $imodule = ucwords($r['nama_modul']);
24 24
 
25
-$nmmodule = ucwords($r['nama_modul']);
25
+    $nmmodule = ucwords($r['nama_modul']);
26 26
 
27
-$id = $r['id_modul'];
27
+    $id = $r['id_modul'];
28 28
 
29
-$fa_icon = $r['fa_icon'];
29
+    $fa_icon = $r['fa_icon'];
30 30
 
31
-// if($r[orientation] == 'P') {
31
+    // if($r[orientation] == 'P') {
32 32
 
33
-// 	$orientation = 'portrait';
33
+    // 	$orientation = 'portrait';
34 34
 
35
-// } else {
35
+    // } else {
36 36
 
37
-// 	$orientation = 'landscape';
37
+    // 	$orientation = 'landscape';
38 38
 
39
-// }
39
+    // }
40 40
 
41
-$orientation = 'portrait';
41
+    $orientation = 'portrait';
42 42
 
43
-$status = $_GET['status'];
43
+    $status = $_GET['status'];
44 44
 
45
-?>
45
+    ?>
46 46
 
47 47
 
48 48
 
@@ -282,30 +282,30 @@  discard block
 block discarded – undo
282 282
 <?php
283 283
 
284 284
 
285
-function Terbilang($x)
286
-{
287
-    $abil = ['', 'satu', 'dua', 'tiga', 'empat', 'lima', 'enam', 'tujuh', 'delapan', 'sembilan', 'sepuluh', 'sebelas'];
288
-
289
-    if ($x < 12) {
290
-        return ' '.$abil[$x];
291
-    } elseif ($x < 20) {
292
-        return Terbilang($x - 10).'belas';
293
-    } elseif ($x < 100) {
294
-        return Terbilang($x / 10).' puluh'.Terbilang($x % 10);
295
-    } elseif ($x < 200) {
296
-        return ' seratus'.Terbilang($x - 100);
297
-    } elseif ($x < 1000) {
298
-        return Terbilang($x / 100).' ratus'.Terbilang($x % 100);
299
-    } elseif ($x < 2000) {
300
-        return ' seribu'.Terbilang($x - 1000);
301
-    } elseif ($x < 1000000) {
302
-        return Terbilang($x / 1000).' ribu'.Terbilang($x % 1000);
303
-    } elseif ($x < 1000000000) {
304
-        return Terbilang($x / 1000000).' juta'.Terbilang($x % 1000000);
305
-    }
285
+    function Terbilang($x)
286
+    {
287
+        $abil = ['', 'satu', 'dua', 'tiga', 'empat', 'lima', 'enam', 'tujuh', 'delapan', 'sembilan', 'sepuluh', 'sebelas'];
288
+
289
+        if ($x < 12) {
290
+            return ' '.$abil[$x];
291
+        } elseif ($x < 20) {
292
+            return Terbilang($x - 10).'belas';
293
+        } elseif ($x < 100) {
294
+            return Terbilang($x / 10).' puluh'.Terbilang($x % 10);
295
+        } elseif ($x < 200) {
296
+            return ' seratus'.Terbilang($x - 100);
297
+        } elseif ($x < 1000) {
298
+            return Terbilang($x / 100).' ratus'.Terbilang($x % 100);
299
+        } elseif ($x < 2000) {
300
+            return ' seribu'.Terbilang($x - 1000);
301
+        } elseif ($x < 1000000) {
302
+            return Terbilang($x / 1000).' ribu'.Terbilang($x % 1000);
303
+        } elseif ($x < 1000000000) {
304
+            return Terbilang($x / 1000000).' juta'.Terbilang($x % 1000000);
305
+        }
306 306
 }
307 307
 
308
-?>
308
+    ?>
309 309
 
310 310
 
311 311
 
@@ -351,31 +351,31 @@  discard block
 block discarded – undo
351 351
 
352 352
 <?php
353 353
 
354
-$time = time() - (1 * 1 * 60 * 60);
354
+    $time = time() - (1 * 1 * 60 * 60);
355 355
 
356
-$datetime = date('d/m/Y G:i:s', $time);
356
+    $datetime = date('d/m/Y G:i:s', $time);
357 357
 
358
-$tgl = tgl_indo(date('Y-m-d', $time));
358
+    $tgl = tgl_indo(date('Y-m-d', $time));
359 359
 
360
-$outlet = $_GET['outlet'];
360
+    $outlet = $_GET['outlet'];
361 361
 
362
- $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
362
+     $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
363 363
 
364
- $g = mysql_fetch_array($gtampil);
364
+     $g = mysql_fetch_array($gtampil);
365 365
 
366
-if ($g['pict']) {
367
-    $pict = $g['pict'];
366
+    if ($g['pict']) {
367
+        $pict = $g['pict'];
368 368
 } else {
369
-    $pict = '';
369
+        $pict = '';
370 370
 }
371 371
 
372
-$company = ucwords($g['company']);
372
+    $company = ucwords($g['company']);
373 373
 
374
- $otampil = mysql_query("SELECT * FROM  outlet where id_outlet = '$outlet'");
374
+     $otampil = mysql_query("SELECT * FROM  outlet where id_outlet = '$outlet'");
375 375
 
376
- $o = mysql_fetch_array($otampil);
376
+     $o = mysql_fetch_array($otampil);
377 377
 
378
- ?>
378
+     ?>
379 379
 
380 380
 
381 381
 
@@ -396,8 +396,8 @@  discard block
 block discarded – undo
396 396
 <td style="text-align:center;" width='100%'>
397 397
 
398 398
 <?php echo "<br><span class='h1'>".$nmmodule.'</span><br>'; ?>
399
-
400
-<?php //echo "<span class='h3'>".$g['address']."<br>".$g['city']."</span>";?>
399
+    
400
+    <?php //echo "<span class='h3'>".$g['address']."<br>".$g['city']."</span>";?>
401 401
 
402 402
 </td>
403 403
 
@@ -419,15 +419,15 @@  discard block
 block discarded – undo
419 419
 
420 420
 <?php
421 421
 
422
-$prd = $_GET['prd'];
422
+    $prd = $_GET['prd'];
423 423
 
424
-$notrans = $_GET['notrans'];
424
+    $notrans = $_GET['notrans'];
425 425
 
426
-$kode = $_GET['kode'];
426
+    $kode = $_GET['kode'];
427 427
 
428
-$Outlet = $_GET['outlet'];
428
+    $Outlet = $_GET['outlet'];
429 429
 
430
-$SQL = 'SELECT a.*,b.outlet,c.supplier,d.mata_uang,d.ket as cnote 
430
+    $SQL = 'SELECT a.*,b.outlet,c.supplier,d.mata_uang,d.ket as cnote 
431 431
 
432 432
 	 FROM pemesanan_barang a left join outlet b
433 433
 
@@ -457,31 +457,31 @@  discard block
 block discarded – undo
457 457
 
458 458
      ';
459 459
 
460
-$tampil = mysql_query($SQL);
460
+    $tampil = mysql_query($SQL);
461 461
 
462
-$r = mysql_fetch_array($tampil);
462
+    $r = mysql_fetch_array($tampil);
463 463
 
464
-$curr = $r['mata_uang'];
464
+    $curr = $r['mata_uang'];
465 465
 
466
-$mata_uang = $r['id_mata_uang'];
466
+    $mata_uang = $r['id_mata_uang'];
467 467
 
468
-$cnote = $r['cnote'];
468
+    $cnote = $r['cnote'];
469 469
 
470
-$tgl = date('d/m/Y', strtotime($r['tanggal']));
470
+    $tgl = date('d/m/Y', strtotime($r['tanggal']));
471 471
 
472
-if ($r['status'] == '0') {
473
-    $istatus = 'Baru';
472
+    if ($r['status'] == '0') {
473
+        $istatus = 'Baru';
474 474
 } elseif ($r['status'] == '1') {
475
-    $istatus = 'Disetujui';
475
+        $istatus = 'Disetujui';
476 476
 } elseif ($r['status'] == '2') {
477
-    $istatus = 'Ditolak';
477
+        $istatus = 'Ditolak';
478 478
 } elseif ($r['status'] == '9') {
479
-    $istatus = 'Posting';
479
+        $istatus = 'Posting';
480 480
 } else {
481
-    $istatus = 'Dibatalkan';
481
+        $istatus = 'Dibatalkan';
482 482
 }
483 483
 
484
-?>
484
+    ?>
485 485
 
486 486
 
487 487
 
@@ -492,14 +492,14 @@  discard block
 block discarded – undo
492 492
 <td rowspan='4' valign="top" width="50%">
493 493
 
494 494
 <?php echo "<span style='padding-top:4px;font-weight:bold;'>".$g['company'].'</span><br>'; ?>
495
-
496
-<?php echo "<span style='padding-top:8px;'>".$g['address'].' '.$g['city'].'</span><br>'; ?>
497
-
498
-<?php echo "<span style='padding-top:4px;'>".$g['state'].' - '.$g['zip'].'</span><br>'; ?>
499
-
500
-<?php echo "<span style='padding-top:4px;'>Telepon : ".$g['Telepon'].' | Fax : '.$g['fax'].'</span><br>'; ?>
501
-
502
-<?php echo "<span style='padding-top:4px;'>NPWP : ".$g['npwp'].'</span><br>'; ?>
495
+    
496
+    <?php echo "<span style='padding-top:8px;'>".$g['address'].' '.$g['city'].'</span><br>'; ?>
497
+    
498
+    <?php echo "<span style='padding-top:4px;'>".$g['state'].' - '.$g['zip'].'</span><br>'; ?>
499
+    
500
+    <?php echo "<span style='padding-top:4px;'>Telepon : ".$g['Telepon'].' | Fax : '.$g['fax'].'</span><br>'; ?>
501
+    
502
+    <?php echo "<span style='padding-top:4px;'>NPWP : ".$g['npwp'].'</span><br>'; ?>
503 503
 
504 504
 <td>
505 505
 
@@ -507,21 +507,21 @@  discard block
 block discarded – undo
507 507
 
508 508
 <?php
509 509
 
510
-    echo"<table width='100%' border=0 cellpadding=0 cellspacing=0>";
510
+        echo"<table width='100%' border=0 cellpadding=0 cellspacing=0>";
511 511
 
512
-    echo'<tr>';
512
+        echo'<tr>';
513 513
 
514
-    echo"<td width='72%' style='text-align:right;'>No. Pemesanan</td>";
514
+        echo"<td width='72%' style='text-align:right;'>No. Pemesanan</td>";
515 515
 
516
-    echo"<td width='1%'>:</td>";
516
+        echo"<td width='1%'>:</td>";
517 517
 
518
-    echo"<td width='27%' style='text-align:left;'>".$r['kode'].''.$r['notrans'].'</td>';
518
+        echo"<td width='27%' style='text-align:left;'>".$r['kode'].''.$r['notrans'].'</td>';
519 519
 
520
-    echo'</tr>';
520
+        echo'</tr>';
521 521
 
522
-    echo'</table>';
522
+        echo'</table>';
523 523
 
524
-?>	
524
+    ?>	
525 525
 
526 526
 </td>
527 527
 
@@ -531,21 +531,21 @@  discard block
 block discarded – undo
531 531
 
532 532
  <?php
533 533
 
534
-    echo"<table width='100%' border=0 cellpadding=0 cellspacing=0>";
534
+        echo"<table width='100%' border=0 cellpadding=0 cellspacing=0>";
535 535
 
536
-    echo'<tr>';
536
+        echo'<tr>';
537 537
 
538
-    echo"<td width='72%' style='text-align:right;'>Tanggal</td>";
538
+        echo"<td width='72%' style='text-align:right;'>Tanggal</td>";
539 539
 
540
-    echo"<td width='1%'>:</td>";
540
+        echo"<td width='1%'>:</td>";
541 541
 
542
-    echo"<td width='27%' style='text-align:left;'>".$tgl.'</td>';
542
+        echo"<td width='27%' style='text-align:left;'>".$tgl.'</td>';
543 543
 
544
-    echo'</tr>';
544
+        echo'</tr>';
545 545
 
546
-    echo'</table>';
546
+        echo'</table>';
547 547
 
548
-?>	
548
+    ?>	
549 549
 
550 550
 </td>
551 551
 
@@ -559,21 +559,21 @@  discard block
 block discarded – undo
559 559
 
560 560
 <?php
561 561
 
562
-    echo"<table width='100%' border=0 cellpadding=0 cellspacing=0>";
562
+        echo"<table width='100%' border=0 cellpadding=0 cellspacing=0>";
563 563
 
564
-    echo'<tr>';
564
+        echo'<tr>';
565 565
 
566
-    echo"<td width='72%' style='text-align:right;'>Term</td>";
566
+        echo"<td width='72%' style='text-align:right;'>Term</td>";
567 567
 
568
-    echo"<td width='1%'>:</td>";
568
+        echo"<td width='1%'>:</td>";
569 569
 
570
-    echo"<td width='27%' style='text-align:left;'>".$r['term'].' Hari</td>';
570
+        echo"<td width='27%' style='text-align:left;'>".$r['term'].' Hari</td>';
571 571
 
572
-    echo'</tr>';
572
+        echo'</tr>';
573 573
 
574
-    echo'</table>';
574
+        echo'</table>';
575 575
 
576
-?>	
576
+    ?>	
577 577
 
578 578
 </td>
579 579
 
@@ -595,7 +595,7 @@  discard block
 block discarded – undo
595 595
 
596 596
 <?php
597 597
 
598
-$sSQL = 'SELECT c.*
598
+    $sSQL = 'SELECT c.*
599 599
 
600 600
 	 FROM pemesanan_barang a left join outlet b
601 601
 
@@ -625,11 +625,11 @@  discard block
 block discarded – undo
625 625
 
626 626
      ';
627 627
 
628
-$stampil = mysql_query($sSQL);
628
+    $stampil = mysql_query($sSQL);
629 629
 
630
-$s = mysql_fetch_array($stampil);
630
+    $s = mysql_fetch_array($stampil);
631 631
 
632
-?>
632
+    ?>
633 633
 
634 634
  <table width="100%" cellpadding='0' cellspacing='0' border="0">
635 635
 
@@ -651,7 +651,7 @@  discard block
 block discarded – undo
651 651
 
652 652
 <?php
653 653
 
654
-$cSQL = 'SELECT b.*
654
+    $cSQL = 'SELECT b.*
655 655
 
656 656
 	 FROM pemesanan_barang a left join outlet b
657 657
 
@@ -681,11 +681,11 @@  discard block
 block discarded – undo
681 681
 
682 682
      ';
683 683
 
684
-$ctampil = mysql_query($cSQL);
684
+    $ctampil = mysql_query($cSQL);
685 685
 
686
-$c = mysql_fetch_array($ctampil);
686
+    $c = mysql_fetch_array($ctampil);
687 687
 
688
-?>
688
+    ?>
689 689
 
690 690
  <table width="100%" cellpadding='0' cellspacing='0'>
691 691
 
@@ -740,13 +740,13 @@  discard block
 block discarded – undo
740 740
      <th width='15%'  class="iborder" style="text-align: right">Harga</th> 
741 741
 
742 742
      <?php if ($mata_uang == '1') {
743
-    ?> 
743
+        ?> 
744 744
 
745 745
      <th width='15%'  class="lborder" style="text-align: right">Total</th>
746 746
 
747 747
      <?php
748 748
 } else {
749
-        ?>
749
+            ?>
750 750
 
751 751
      <th width='10%'  class="iborder" style="text-align: right">Total (<?php echo $curr; ?>)</th>
752 752
 
@@ -763,7 +763,7 @@  discard block
 block discarded – undo
763 763
 <?php
764 764
 
765 765
 
766
-$dSQL = "SELECT a.*,c.unit_barang,b.kode as kode_bar,b.barang
766
+    $dSQL = "SELECT a.*,c.unit_barang,b.kode as kode_bar,b.barang
767 767
 
768 768
          FROM pemesanan_barang_detail a inner join barang b
769 769
 
@@ -783,93 +783,93 @@  discard block
 block discarded – undo
783 783
 
784 784
          ";
785 785
 
786
-        $dtampil = mysql_query($dSQL);
786
+            $dtampil = mysql_query($dSQL);
787 787
 
788
-        $no = 1;
788
+            $no = 1;
789 789
 
790
-        while ($d = mysql_fetch_array($dtampil)) {
791
-            $d_id = $d['id_pemesanan_barang_detail'];
790
+            while ($d = mysql_fetch_array($dtampil)) {
791
+                $d_id = $d['id_pemesanan_barang_detail'];
792 792
 
793
-            $ibarang = $d['kode_bar'].'&nbsp&nbsp&nbsp&nbsp'.$d['barang'];
793
+                $ibarang = $d['kode_bar'].'&nbsp&nbsp&nbsp&nbsp'.$d['barang'];
794 794
 
795
-            $iqty = number_format($d['qty'], 2, '.', ',');
795
+                $iqty = number_format($d['qty'], 2, '.', ',');
796 796
 
797
-            $qty = number_format($d['qty'], 2, '.', '');
797
+                $qty = number_format($d['qty'], 2, '.', '');
798 798
 
799
-            $harga = number_format($d['harga'], 0, '.', ',');
799
+                $harga = number_format($d['harga'], 0, '.', ',');
800 800
 
801
-            $total = number_format($d['total'], 0, '.', ',');
801
+                $total = number_format($d['total'], 0, '.', ',');
802 802
 
803
-            $ctotal = number_format($d['ctotal'], 2, '.', ',');
803
+                $ctotal = number_format($d['ctotal'], 2, '.', ',');
804 804
 
805
-            echo'<tr>';
805
+                echo'<tr>';
806
+
807
+                echo" <td class='border' style='text-align: center;'>";
806 808
 
807
-            echo" <td class='border' style='text-align: center;'>";
809
+                echo $no.'.';
808 810
 
809
-            echo $no.'.';
811
+                echo'</td>';
810 812
 
811
-            echo'</td>';
813
+                echo" <td class='border'>";
812 814
 
813
-            echo" <td class='border'>";
815
+                echo $ibarang;
814 816
 
815
-            echo $ibarang;
817
+                echo'</td>';
816 818
 
817
-            echo'</td>';
819
+                echo" <td  class='border' style='text-align:right;'>";
818 820
 
819
-            echo" <td  class='border' style='text-align:right;'>";
821
+                echo $iqty;
820 822
 
821
-            echo $iqty;
823
+                echo'</td>';
822 824
 
823
-            echo'</td>';
825
+                echo" <td class='border'>";
824 826
 
825
-            echo" <td class='border'>";
827
+                echo $d['unit_barang'];
826 828
 
827
-            echo $d['unit_barang'];
829
+                echo'</td>';
828 830
 
829
-            echo'</td>';
831
+                echo" <td  class='border' style='text-align:right;'>";
830 832
 
831
-            echo" <td  class='border' style='text-align:right;'>";
833
+                echo $harga;
832 834
 
833
-            echo $harga;
835
+                echo'</td>';
834 836
 
835
-            echo'</td>';
837
+                if ($mata_uang == '1') {
838
+                    echo" <td  class='border' style='text-align:right;'>";
836 839
 
837
-            if ($mata_uang == '1') {
838
-                echo" <td  class='border' style='text-align:right;'>";
840
+                    echo $total;
839 841
 
840
-                echo $total;
842
+                    echo'</td>';
843
+                } else {
844
+                    echo" <td  class='border' style='text-align:right;'>";
841 845
 
842
-                echo'</td>';
843
-            } else {
844
-                echo" <td  class='border' style='text-align:right;'>";
846
+                    echo $ctotal;
845 847
 
846
-                echo $ctotal;
848
+                    echo'</td>';
847 849
 
848
-                echo'</td>';
850
+                    echo" <td  class='border' style='text-align:right;'>";
849 851
 
850
-                echo" <td  class='border' style='text-align:right;'>";
852
+                    echo $total;
851 853
 
852
-                echo $total;
854
+                    echo'</td>';
855
+                }
853 856
 
854
-                echo'</td>';
857
+                $no++;
855 858
             }
856 859
 
857
-            $no++;
858
-        }
859
-
860
-        if ($no < 10) {
861
-            while ($no < 10) {
862
-                echo '<tr>';
860
+            if ($no < 10) {
861
+                while ($no < 10) {
862
+                    echo '<tr>';
863 863
 
864
-                echo'<td colspan=4>&nbsp</td>';
864
+                    echo'<td colspan=4>&nbsp</td>';
865 865
 
866
-                echo'</tr>';
866
+                    echo'</tr>';
867 867
 
868
-                $no++;
868
+                    $no++;
869
+                }
869 870
             }
870
-        }
871 871
 
872
-        $sql = mysql_query("SELECT * FROM pemesanan_barang 
872
+            $sql = mysql_query("SELECT * FROM pemesanan_barang 
873 873
 
874 874
                         WHERE prd = '$prd' and notrans = '$notrans' and kode = '$kode'
875 875
 
@@ -877,33 +877,33 @@  discard block
 block discarded – undo
877 877
 
878 878
                         ");
879 879
 
880
-        $r = mysql_fetch_array($sql);
880
+            $r = mysql_fetch_array($sql);
881 881
 
882
-        $total = number_format($r['total'], 0, '.', ',');
882
+            $total = number_format($r['total'], 0, '.', ',');
883 883
 
884
-        $ppn = number_format($r['totaltax'], 0, '.', ',');
884
+            $ppn = number_format($r['totaltax'], 0, '.', ',');
885 885
 
886
-        $gtotal = number_format($r['gtotal'], 0, '.', ',');
886
+            $gtotal = number_format($r['gtotal'], 0, '.', ',');
887 887
 
888
-        $igtotal = $r['gtotal'];
888
+            $igtotal = $r['gtotal'];
889 889
 
890
-        $ctotal = number_format($r['ctotal'], 2, '.', ',');
890
+            $ctotal = number_format($r['ctotal'], 2, '.', ',');
891 891
 
892
-        $cppn = number_format($r['ctotaltax'], 2, '.', ',');
892
+            $cppn = number_format($r['ctotaltax'], 2, '.', ',');
893 893
 
894
-        $cgtotal = number_format($r['cgtotal'], 2, '.', ',');
894
+            $cgtotal = number_format($r['cgtotal'], 2, '.', ',');
895 895
 
896
-        $icgtotal = $r['cgtotal'];
896
+            $icgtotal = $r['cgtotal'];
897 897
 
898
-        if ($mata_uang == '1') {
899
-            $rterbilang = ucwords(Terbilang($igtotal)).' Rupiah';
900
-        } else {
901
-            $rterbilang = ucwords(Terbilang($icgtotal)).' '.$cnote;
902
-        }
898
+            if ($mata_uang == '1') {
899
+                $rterbilang = ucwords(Terbilang($igtotal)).' Rupiah';
900
+            } else {
901
+                $rterbilang = ucwords(Terbilang($icgtotal)).' '.$cnote;
902
+            }
903 903
 
904
-        echo'<tr>';
904
+            echo'<tr>';
905 905
 
906
-        echo"<td colspan='3' rowspan='3' style='border:1px black solid;padding-left:10px;'><br>#".$rterbilang.' #</td>'; ?>
906
+            echo"<td colspan='3' rowspan='3' style='border:1px black solid;padding-left:10px;'><br>#".$rterbilang.' #</td>'; ?>
907 907
 
908 908
 
909 909
 
@@ -926,7 +926,7 @@  discard block
 block discarded – undo
926 926
 </td>
927 927
 
928 928
 <?php if ($mata_uang != '1') {
929
-            ?> 
929
+                ?> 
930 930
 
931 931
 <td style="text-align:right;border-bottom:1px black solid;">
932 932
 
@@ -935,7 +935,7 @@  discard block
 block discarded – undo
935 935
 </td>
936 936
 
937 937
 <?php
938
-        } ?> 	
938
+            } ?> 	
939 939
 
940 940
 </tr>
941 941
 
@@ -949,11 +949,11 @@  discard block
 block discarded – undo
949 949
 
950 950
 <?php
951 951
 
952
-$pg_sql = mysql_query('SELECT * FROM pg_lainnya');
952
+    $pg_sql = mysql_query('SELECT * FROM pg_lainnya');
953 953
 
954
-        $pg = mysql_fetch_array($pg_sql);
954
+            $pg = mysql_fetch_array($pg_sql);
955 955
 
956
-        $ippn = $pg['ppn']; ?>
956
+            $ippn = $pg['ppn']; ?>
957 957
 
958 958
 PPN <?php echo $ippn; ?> %
959 959
 
@@ -966,7 +966,7 @@  discard block
 block discarded – undo
966 966
 </td>
967 967
 
968 968
 <?php if ($mata_uang != '1') {
969
-            ?> 
969
+                ?> 
970 970
 
971 971
 <td style="text-align:right;border-bottom:1px black solid;">
972 972
 
@@ -975,7 +975,7 @@  discard block
 block discarded – undo
975 975
 </td>
976 976
 
977 977
 <?php
978
-        } ?> 
978
+            } ?> 
979 979
 
980 980
 </tr>
981 981
 
@@ -996,7 +996,7 @@  discard block
 block discarded – undo
996 996
 </td>
997 997
 
998 998
 <?php if ($mata_uang != '1') {
999
-            ?> 
999
+                ?> 
1000 1000
 
1001 1001
 <td style="text-align:right;border-bottom:1px black solid;">
1002 1002
 
@@ -1005,7 +1005,7 @@  discard block
 block discarded – undo
1005 1005
 </td>
1006 1006
 
1007 1007
 <?php
1008
-        } ?> 
1008
+            } ?> 
1009 1009
 
1010 1010
 </tr>
1011 1011
 
@@ -1022,19 +1022,19 @@  discard block
 block discarded – undo
1022 1022
 	<?php
1023 1023
 
1024 1024
 
1025
-    $tanda_tangan = mysql_query("SELECT a.judul,a.penanda_tangan FROM tanda_tangan a LEFT JOIN kode_transaksi b 
1025
+        $tanda_tangan = mysql_query("SELECT a.judul,a.penanda_tangan FROM tanda_tangan a LEFT JOIN kode_transaksi b 
1026 1026
 
1027 1027
 							ON a.id_kode_transaksi = b.id_kode_transaksi
1028 1028
 
1029 1029
 							WHERE b.kode = '$kode' AND a.aktif = 'Y'");
1030 1030
 
1031
-        $jml = mysql_num_rows($tanda_tangan);
1031
+            $jml = mysql_num_rows($tanda_tangan);
1032 1032
 
1033
-        $cp = $jml + 1;
1033
+            $cp = $jml + 1;
1034 1034
 
1035
-        $ps = 100 / $cp;
1035
+            $ps = 100 / $cp;
1036 1036
 
1037
-        $user = $_SESSION['userid']; ?> 
1037
+            $user = $_SESSION['userid']; ?> 
1038 1038
 
1039 1039
     
1040 1040
 
@@ -1053,12 +1053,12 @@  discard block
 block discarded – undo
1053 1053
     
1054 1054
 
1055 1055
     <?php while ($s = mysql_fetch_array($tanda_tangan)) {
1056
-            ?>
1056
+                ?>
1057 1057
 
1058 1058
     <td align="center" width="<?php echo $ps?>%" valign="bottom"><?php echo $s['judul']?></td>
1059 1059
 
1060 1060
      <?php
1061
-        } ?>
1061
+            } ?>
1062 1062
 
1063 1063
     
1064 1064
 
@@ -1074,19 +1074,19 @@  discard block
 block discarded – undo
1074 1074
 
1075 1075
     <?php
1076 1076
 
1077
-    $tanda_tangan = mysql_query("SELECT a.judul,a.penanda_tangan FROM tanda_tangan a LEFT JOIN kode_transaksi b 
1077
+        $tanda_tangan = mysql_query("SELECT a.judul,a.penanda_tangan FROM tanda_tangan a LEFT JOIN kode_transaksi b 
1078 1078
 
1079 1079
 							ON a.id_kode_transaksi = b.id_kode_transaksi
1080 1080
 
1081 1081
 							WHERE b.kode = '$kode' AND a.aktif = 'Y'"); ?>    
1082 1082
 
1083 1083
     <?php while ($s = mysql_fetch_array($tanda_tangan)) {
1084
-        ?>
1084
+            ?>
1085 1085
 
1086 1086
     <td align="center" width="<?php echo $ps?>%" valign="bottom" style="padding-top:60px;">(<span style="padding-left:10px; padding-right:10px;";><?php echo $s['penanda_tangan']?></span>)</td>
1087 1087
 
1088 1088
     <?php
1089
-    } ?>
1089
+        } ?>
1090 1090
 
1091 1091
     </tr>
1092 1092
 
@@ -1105,4 +1105,4 @@  discard block
 block discarded – undo
1105 1105
 </body></html>
1106 1106
 
1107 1107
 <?php
1108
-    }
1108
+        }
Please login to merge, or discard this patch.
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -286,21 +286,21 @@  discard block
 block discarded – undo
286 286
 {
287 287
     $abil = ['', 'satu', 'dua', 'tiga', 'empat', 'lima', 'enam', 'tujuh', 'delapan', 'sembilan', 'sepuluh', 'sebelas'];
288 288
 
289
-    if ($x < 12) {
289
+    if ($x<12) {
290 290
         return ' '.$abil[$x];
291
-    } elseif ($x < 20) {
291
+    } elseif ($x<20) {
292 292
         return Terbilang($x - 10).'belas';
293
-    } elseif ($x < 100) {
293
+    } elseif ($x<100) {
294 294
         return Terbilang($x / 10).' puluh'.Terbilang($x % 10);
295
-    } elseif ($x < 200) {
295
+    } elseif ($x<200) {
296 296
         return ' seratus'.Terbilang($x - 100);
297
-    } elseif ($x < 1000) {
297
+    } elseif ($x<1000) {
298 298
         return Terbilang($x / 100).' ratus'.Terbilang($x % 100);
299
-    } elseif ($x < 2000) {
299
+    } elseif ($x<2000) {
300 300
         return ' seribu'.Terbilang($x - 1000);
301
-    } elseif ($x < 1000000) {
301
+    } elseif ($x<1000000) {
302 302
         return Terbilang($x / 1000).' ribu'.Terbilang($x % 1000);
303
-    } elseif ($x < 1000000000) {
303
+    } elseif ($x<1000000000) {
304 304
         return Terbilang($x / 1000000).' juta'.Terbilang($x % 1000000);
305 305
     }
306 306
 }
@@ -469,13 +469,13 @@  discard block
 block discarded – undo
469 469
 
470 470
 $tgl = date('d/m/Y', strtotime($r['tanggal']));
471 471
 
472
-if ($r['status'] == '0') {
472
+if ($r['status']=='0') {
473 473
     $istatus = 'Baru';
474
-} elseif ($r['status'] == '1') {
474
+} elseif ($r['status']=='1') {
475 475
     $istatus = 'Disetujui';
476
-} elseif ($r['status'] == '2') {
476
+} elseif ($r['status']=='2') {
477 477
     $istatus = 'Ditolak';
478
-} elseif ($r['status'] == '9') {
478
+} elseif ($r['status']=='9') {
479 479
     $istatus = 'Posting';
480 480
 } else {
481 481
     $istatus = 'Dibatalkan';
@@ -739,7 +739,7 @@  discard block
 block discarded – undo
739 739
 
740 740
      <th width='15%'  class="iborder" style="text-align: right">Harga</th> 
741 741
 
742
-     <?php if ($mata_uang == '1') {
742
+     <?php if ($mata_uang=='1') {
743 743
     ?> 
744 744
 
745 745
      <th width='15%'  class="lborder" style="text-align: right">Total</th>
@@ -834,7 +834,7 @@  discard block
 block discarded – undo
834 834
 
835 835
             echo'</td>';
836 836
 
837
-            if ($mata_uang == '1') {
837
+            if ($mata_uang=='1') {
838 838
                 echo" <td  class='border' style='text-align:right;'>";
839 839
 
840 840
                 echo $total;
@@ -857,8 +857,8 @@  discard block
 block discarded – undo
857 857
             $no++;
858 858
         }
859 859
 
860
-        if ($no < 10) {
861
-            while ($no < 10) {
860
+        if ($no<10) {
861
+            while ($no<10) {
862 862
                 echo '<tr>';
863 863
 
864 864
                 echo'<td colspan=4>&nbsp</td>';
@@ -895,7 +895,7 @@  discard block
 block discarded – undo
895 895
 
896 896
         $icgtotal = $r['cgtotal'];
897 897
 
898
-        if ($mata_uang == '1') {
898
+        if ($mata_uang=='1') {
899 899
             $rterbilang = ucwords(Terbilang($igtotal)).' Rupiah';
900 900
         } else {
901 901
             $rterbilang = ucwords(Terbilang($icgtotal)).' '.$cnote;
@@ -925,7 +925,7 @@  discard block
 block discarded – undo
925 925
 
926 926
 </td>
927 927
 
928
-<?php if ($mata_uang != '1') {
928
+<?php if ($mata_uang!='1') {
929 929
             ?> 
930 930
 
931 931
 <td style="text-align:right;border-bottom:1px black solid;">
@@ -965,7 +965,7 @@  discard block
 block discarded – undo
965 965
 
966 966
 </td>
967 967
 
968
-<?php if ($mata_uang != '1') {
968
+<?php if ($mata_uang!='1') {
969 969
             ?> 
970 970
 
971 971
 <td style="text-align:right;border-bottom:1px black solid;">
@@ -995,7 +995,7 @@  discard block
 block discarded – undo
995 995
 
996 996
 </td>
997 997
 
998
-<?php if ($mata_uang != '1') {
998
+<?php if ($mata_uang!='1') {
999 999
             ?> 
1000 1000
 
1001 1001
 <td style="text-align:right;border-bottom:1px black solid;">
Please login to merge, or discard this patch.
modul/mod_home/xxhome.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 default:
6 6
 
7 7
  $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
8
- $g = mysql_fetch_array($gtampil);
8
+    $g = mysql_fetch_array($gtampil);
9 9
 
10 10
 if ($g['pict']) {
11 11
     $pict = $g['pict'];
Please login to merge, or discard this patch.
Switch Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,19 +1,19 @@
 block discarded – undo
1
-
2
-<?php
1
+    
2
+    <?php
3 3
 switch ($_GET[act]) {
4 4
 
5
-default:
5
+        default:
6 6
 
7
- $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
8
- $g = mysql_fetch_array($gtampil);
7
+         $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
8
+         $g = mysql_fetch_array($gtampil);
9 9
 
10
-if ($g['pict']) {
11
-    $pict = $g['pict'];
10
+        if ($g['pict']) {
11
+            $pict = $g['pict'];
12 12
 } else {
13
-    $pict = '';
13
+            $pict = '';
14 14
 }
15 15
 
16
-?>
16
+        ?>
17 17
 <div class="col-md-12 col-sm-12 col-xs-12 ">
18 18
 <div class="x_panel">
19 19
    <div class="x_title">
Please login to merge, or discard this patch.
modul/mod_home/xhome.php 2 patches
Indentation   +277 added lines, -277 removed lines patch added patch discarded remove patch
@@ -119,16 +119,16 @@  discard block
 block discarded – undo
119 119
 							                 <select name="room_type" class="form-control1" required onChange="document.myform.submit();">
120 120
 							                 	<option value="">--------- Room Type ---------</option>
121 121
 							                    <?php
122
-                                                  $query = mysql_query('SELECT * FROM room_type ORDER BY room_type');
123
-                                                   if ($query && mysql_num_rows($query) > 0) {
124
-                                                       while ($row = mysql_fetch_object($query)) {
125
-                                                           echo '<option value="'.$row->id_room_type.'"';
126
-                                                           if ($row->id_room_type == $_GET['room_type']) {
127
-                                                               echo ' selected';
128
-                                                           }
129
-                                                           echo '>'.$row->room_type.'</option>';
130
-                                                       }
131
-                                                   }
122
+                                                    $query = mysql_query('SELECT * FROM room_type ORDER BY room_type');
123
+                                                    if ($query && mysql_num_rows($query) > 0) {
124
+                                                        while ($row = mysql_fetch_object($query)) {
125
+                                                            echo '<option value="'.$row->id_room_type.'"';
126
+                                                            if ($row->id_room_type == $_GET['room_type']) {
127
+                                                                echo ' selected';
128
+                                                            }
129
+                                                            echo '>'.$row->room_type.'</option>';
130
+                                                        }
131
+                                                    }
132 132
                                                 ?>
133 133
 							                    </select>
134 134
 							              </div>   
@@ -270,110 +270,110 @@  discard block
 block discarded – undo
270 270
 									
271 271
                             
272 272
                          <?php	
273
-                                 $tSQL = 'SELECT * FROM room_type ';
273
+                                    $tSQL = 'SELECT * FROM room_type ';
274 274
 
275
-                                 if ($_GET['room_type']) {
276
-                                     $tSQL .= "WHERE id_room_type = '$_GET[room_type]'";
277
-                                 }
275
+                                    if ($_GET['room_type']) {
276
+                                        $tSQL .= "WHERE id_room_type = '$_GET[room_type]'";
277
+                                    }
278 278
 
279
-                                 $tSQL .= 'ORDER BY room_type';
279
+                                    $tSQL .= 'ORDER BY room_type';
280 280
 
281
-                                 $type = mysql_query($tSQL);
281
+                                    $type = mysql_query($tSQL);
282 282
 
283
-                                 while ($t = mysql_fetch_array($type)) {
284
-                                     $id_room_type = $t['id_room_type'];
283
+                                    while ($t = mysql_fetch_array($type)) {
284
+                                        $id_room_type = $t['id_room_type'];
285 285
 
286
-                                     echo'<tr>';
287
-                                     echo"<td style='background-color: #1ABB9C;color: #E7E7E7;'>".$t['room_type'].'</td>';
286
+                                        echo'<tr>';
287
+                                        echo"<td style='background-color: #1ABB9C;color: #E7E7E7;'>".$t['room_type'].'</td>';
288 288
 
289
-                                     if ($lmonth == $fmonth and $lyear == $fyear) {
290
-                                         for ($i = $fday; $i <= $lday; $i++) {
291
-                                             if (strlen($i) == '1') {
292
-                                                 $tgl = '0'.$i;
293
-                                             } else {
294
-                                                 $tgl = $i;
295
-                                             }
289
+                                        if ($lmonth == $fmonth and $lyear == $fyear) {
290
+                                            for ($i = $fday; $i <= $lday; $i++) {
291
+                                                if (strlen($i) == '1') {
292
+                                                    $tgl = '0'.$i;
293
+                                                } else {
294
+                                                    $tgl = $i;
295
+                                                }
296 296
 
297
-                                             $tanggal = $fyear.'-'.$fmonth.'-'.$tgl;
297
+                                                $tanggal = $fyear.'-'.$fmonth.'-'.$tgl;
298 298
 
299
-                                             echo"<td style='background-color: #1ABB9C;color: #E7E7E7;'>
299
+                                                echo"<td style='background-color: #1ABB9C;color: #E7E7E7;'>
300 300
 										</td>";
301
-                                         }
302
-                                     } else {
303
-                                         for ($i = $fday; $i <= $f_lastday; $i++) {
304
-                                             if (strlen($i) == '1') {
305
-                                                 $tgl = '0'.$i;
306
-                                             } else {
307
-                                                 $tgl = $i;
308
-                                             }
301
+                                            }
302
+                                        } else {
303
+                                            for ($i = $fday; $i <= $f_lastday; $i++) {
304
+                                                if (strlen($i) == '1') {
305
+                                                    $tgl = '0'.$i;
306
+                                                } else {
307
+                                                    $tgl = $i;
308
+                                                }
309 309
 
310
-                                             $tanggal = $fyear.'-'.$fmonth.'-'.$tgl;
310
+                                                $tanggal = $fyear.'-'.$fmonth.'-'.$tgl;
311 311
 
312
-                                             $DayName = date('D', strtotime($tanggal));
312
+                                                $DayName = date('D', strtotime($tanggal));
313 313
 
314
-                                             echo"<td style='background-color: #1ABB9C;color: #E7E7E7;'>
314
+                                                echo"<td style='background-color: #1ABB9C;color: #E7E7E7;'>
315 315
 										</td>";
316
-                                         }
316
+                                            }
317 317
 
318
-                                         for ($i = 1; $i <= $lday; $i++) {
319
-                                             if (strlen($i) == '1') {
320
-                                                 $tgl = '0'.$i;
321
-                                             } else {
322
-                                                 $tgl = $i;
323
-                                             }
318
+                                            for ($i = 1; $i <= $lday; $i++) {
319
+                                                if (strlen($i) == '1') {
320
+                                                    $tgl = '0'.$i;
321
+                                                } else {
322
+                                                    $tgl = $i;
323
+                                                }
324 324
 
325
-                                             $tanggal = $lyear.'-'.$lmonth.'-'.$tgl;
325
+                                                $tanggal = $lyear.'-'.$lmonth.'-'.$tgl;
326 326
 
327
-                                             $DayName = date('D', strtotime($tanggal));
327
+                                                $DayName = date('D', strtotime($tanggal));
328 328
 
329
-                                             echo"<td style='background-color: #1ABB9C;color: #E7E7E7;'>
329
+                                                echo"<td style='background-color: #1ABB9C;color: #E7E7E7;'>
330 330
 										</td>";
331
-                                         }
332
-                                     }
331
+                                            }
332
+                                        }
333 333
 
334
-                                     echo'</tr>';
334
+                                        echo'</tr>';
335 335
 
336
-                                     $rSQL = "SELECT * FROM room WHERE id_room_type = '$id_room_type' ORDER BY room_no";
336
+                                        $rSQL = "SELECT * FROM room WHERE id_room_type = '$id_room_type' ORDER BY room_no";
337 337
 
338
-                                     $room = mysql_query($rSQL);
338
+                                        $room = mysql_query($rSQL);
339 339
 
340
-                                     $no = 1;
341
-                                     while ($r = mysql_fetch_array($room)) {
342
-                                         $aktif = $r['aktif'];
340
+                                        $no = 1;
341
+                                        while ($r = mysql_fetch_array($room)) {
342
+                                            $aktif = $r['aktif'];
343 343
 
344
-                                         if (($no % 2) == 0) {
345
-                                             $sty = 'ftd';
346
-                                         } else {
347
-                                             $sty = 'ltd';
348
-                                         }
344
+                                            if (($no % 2) == 0) {
345
+                                                $sty = 'ftd';
346
+                                            } else {
347
+                                                $sty = 'ltd';
348
+                                            }
349 349
 
350
-                                         $id_room = $r['id_room'];
350
+                                            $id_room = $r['id_room'];
351 351
 
352
-                                         echo'<tr>';
353
-                                         echo"<td style='padding-left:20px;text-align:left;' class=$sty>".$r['room_no'].'</td>';
352
+                                            echo'<tr>';
353
+                                            echo"<td style='padding-left:20px;text-align:left;' class=$sty>".$r['room_no'].'</td>';
354 354
 
355
-                                         if ($lmonth == $fmonth and $lyear == $fyear) {
356
-                                             for ($i = $fday; $i <= $lday; $i++) {
357
-                                                 if (strlen($i) == '1') {
358
-                                                     $tgl = '0'.$i;
359
-                                                 } else {
360
-                                                     $tgl = $i;
361
-                                                 }
355
+                                            if ($lmonth == $fmonth and $lyear == $fyear) {
356
+                                                for ($i = $fday; $i <= $lday; $i++) {
357
+                                                    if (strlen($i) == '1') {
358
+                                                        $tgl = '0'.$i;
359
+                                                    } else {
360
+                                                        $tgl = $i;
361
+                                                    }
362 362
 
363
-                                                 $tanggal = $fyear.'-'.$fmonth.'-'.$tgl;
363
+                                                    $tanggal = $fyear.'-'.$fmonth.'-'.$tgl;
364 364
 
365
-                                                 echo"<td class=$sty style='padding:0;'>";
365
+                                                    echo"<td class=$sty style='padding:0;'>";
366 366
 
367
-                                                 if ($aktif == 'T') {
368
-                                                     echo"
367
+                                                    if ($aktif == 'T') {
368
+                                                        echo"
369 369
 												<i class='fa fa-warning' style='color: red;font-size:18px' onMouseover=\"ddrivetip('Out of Order')\"; onMouseout=\"hideddrivetip()\"></i>
370 370
 												";
371
-                                                 }
371
+                                                    }
372 372
 
373
-                                                 echo"<table cellpadding='0' cellspacing='0' border='0' width='100%'>";
374
-                                                 echo'<tr>';
373
+                                                    echo"<table cellpadding='0' cellspacing='0' border='0' width='100%'>";
374
+                                                    echo'<tr>';
375 375
 
376
-                                                 $cSQL = "SELECT a.id_room,a.room_no,b.rdate,b.status,a.aktif,c.guest,c.initial,d.legend
376
+                                                    $cSQL = "SELECT a.id_room,a.room_no,b.rdate,b.status,a.aktif,c.guest,c.initial,d.legend
377 377
 													FROM room a left join room_reservation b
378 378
 													 ON a.id_room = b.id_room
379 379
 													 and b.status in ('0','1')
@@ -385,131 +385,131 @@  discard block
 block discarded – undo
385 385
 													 AND b.rdate = '$tanggal'												
386 386
 													 ORDER BY a.room_no,b.id_reservation";
387 387
 
388
-                                                 $croom = mysql_query($cSQL);
388
+                                                    $croom = mysql_query($cSQL);
389 389
 
390
-                                                 $jml = mysql_num_rows($croom);
390
+                                                    $jml = mysql_num_rows($croom);
391 391
 
392
-                                                 //$c=mysql_fetch_array($croom);
393
-                                                 while ($c = mysql_fetch_array($croom)) {
394
-                                                     $rdate = $c['rdate'];
392
+                                                    //$c=mysql_fetch_array($croom);
393
+                                                    while ($c = mysql_fetch_array($croom)) {
394
+                                                        $rdate = $c['rdate'];
395 395
 
396
-                                                     $lSQL = "SELECT '$rdate' - INTERVAL 1 DAY as ldate, '$rdate' + INTERVAL 1 DAY as ndate ";
397
-                                                     //echo $lSQL;
398
-                                                     $ld = mysql_query($lSQL);
396
+                                                        $lSQL = "SELECT '$rdate' - INTERVAL 1 DAY as ldate, '$rdate' + INTERVAL 1 DAY as ndate ";
397
+                                                        //echo $lSQL;
398
+                                                        $ld = mysql_query($lSQL);
399 399
 
400
-                                                     $l = mysql_fetch_array($ld);
400
+                                                        $l = mysql_fetch_array($ld);
401 401
 
402
-                                                     $ldate = $l['ldate'];
402
+                                                        $ldate = $l['ldate'];
403 403
 
404
-                                                     $ndate = $l['ndate'];
404
+                                                        $ndate = $l['ndate'];
405 405
 
406
-                                                     $cSQL1 = "SELECT * from room_reservation 
406
+                                                        $cSQL1 = "SELECT * from room_reservation 
407 407
 													 WHERE id_room = '$id_room' 
408 408
 													 AND rdate = '$ldate'";
409 409
 
410
-                                                     $lroom = mysql_query($cSQL1);
410
+                                                        $lroom = mysql_query($cSQL1);
411 411
 
412
-                                                     if ($ldate) {
413
-                                                         $ljml = mysql_num_rows($lroom);
414
-                                                     } else {
415
-                                                         $ljml = '0';
416
-                                                     }
412
+                                                        if ($ldate) {
413
+                                                            $ljml = mysql_num_rows($lroom);
414
+                                                        } else {
415
+                                                            $ljml = '0';
416
+                                                        }
417 417
 
418
-                                                     $cSQL2 = "SELECT * from room_reservation 
418
+                                                        $cSQL2 = "SELECT * from room_reservation 
419 419
 													 WHERE id_room = '$id_room' 
420 420
 													 AND rdate = '$ndate'";
421 421
 
422
-                                                     $nroom = mysql_query($cSQL2);
422
+                                                        $nroom = mysql_query($cSQL2);
423 423
 
424
-                                                     $njml = mysql_num_rows($nroom);
424
+                                                        $njml = mysql_num_rows($nroom);
425 425
 
426
-                                                     if ($ndate) {
427
-                                                         $njml = mysql_num_rows($nroom);
428
-                                                     } else {
429
-                                                         $njml = '0';
430
-                                                     }
426
+                                                        if ($ndate) {
427
+                                                            $njml = mysql_num_rows($nroom);
428
+                                                        } else {
429
+                                                            $njml = '0';
430
+                                                        }
431 431
 
432
-                                                     $guest = $c['guest'];
432
+                                                        $guest = $c['guest'];
433 433
 
434
-                                                     $legend = $c['legend'];
435
-                                                     $status = $c['status'];
434
+                                                        $legend = $c['legend'];
435
+                                                        $status = $c['status'];
436 436
 
437
-                                                     if ($status == 0) {
438
-                                                         $icolor = '#fff';
439
-                                                     } else {
440
-                                                         $icolor = '#fff';
441
-                                                     }
437
+                                                        if ($status == 0) {
438
+                                                            $icolor = '#fff';
439
+                                                        } else {
440
+                                                            $icolor = '#fff';
441
+                                                        }
442 442
 
443
-                                                     if ($status == 0) {
444
-                                                         $istatus = 'Reserved';
445
-                                                     } elseif ($status == 1) {
446
-                                                         $istatus = 'Check In';
447
-                                                     } else {
448
-                                                         $istatus = 'Check Out';
449
-                                                     }
443
+                                                        if ($status == 0) {
444
+                                                            $istatus = 'Reserved';
445
+                                                        } elseif ($status == 1) {
446
+                                                            $istatus = 'Check In';
447
+                                                        } else {
448
+                                                            $istatus = 'Check Out';
449
+                                                        }
450 450
 
451
-                                                     $iguest = trim($c['initial']).'. '.trim($c['guest']).' | '.$istatus;
451
+                                                        $iguest = trim($c['initial']).'. '.trim($c['guest']).' | '.$istatus;
452 452
 
453
-                                                     if ($c['initial'] == 'Mr ') {
454
-                                                         $icon = 'fa fa-male';
455
-                                                     } else {
456
-                                                         $icon = 'fa fa-female';
457
-                                                     }
453
+                                                        if ($c['initial'] == 'Mr ') {
454
+                                                            $icon = 'fa fa-male';
455
+                                                        } else {
456
+                                                            $icon = 'fa fa-female';
457
+                                                        }
458 458
 
459
-                                                     echo $ljml.'-'.$jml.'-'.$njml;
459
+                                                        echo $ljml.'-'.$jml.'-'.$njml;
460 460
 
461
-                                                     //if ($jml == '1') {
461
+                                                        //if ($jml == '1') {
462 462
 
463
-                                                     if ($ljml == '0' and $jml == '1' and $njml == '1') {
464
-                                                         echo"<td width='50%'>
463
+                                                        if ($ljml == '0' and $jml == '1' and $njml == '1') {
464
+                                                            echo"<td width='50%'>
465 465
 														</td>";
466
-                                                     }
466
+                                                        }
467 467
 
468
-                                                     if ($guest) {
469
-                                                         if ($guest) {
470
-                                                             echo"<td style='background-color:$legend;'  width='50%'>
468
+                                                        if ($guest) {
469
+                                                            if ($guest) {
470
+                                                                echo"<td style='background-color:$legend;'  width='50%'>
471 471
 														<a href='' onMouseover=\"ddrivetip('$iguest')\"; onMouseout=\"hideddrivetip()\" title=''><i class='$icon' style='color: $icolor;font-size:15px'></i></a>
472 472
 														</td>";
473
-                                                         } else {
474
-                                                             echo"<td style='background-color:$legend;'  width='50%'>
473
+                                                            } else {
474
+                                                                echo"<td style='background-color:$legend;'  width='50%'>
475 475
 														</td>";
476
-                                                         }
477
-                                                     }
478
-                                                 }
476
+                                                            }
477
+                                                        }
478
+                                                    }
479 479
 
480
-                                                 if ($ljml != '0' and $jml == '1') {
481
-                                                     echo"<td width='50%'>
480
+                                                    if ($ljml != '0' and $jml == '1') {
481
+                                                        echo"<td width='50%'>
482 482
 														</td>";
483
-                                                 }
483
+                                                    }
484 484
 
485
-                                                 //}
485
+                                                    //}
486 486
 
487
-                                                 echo'</tr>';
488
-                                                 echo'</table>';
489
-                                                 echo'</td>';
490
-                                             }
491
-                                         } else {
492
-                                             for ($i = $fday; $i <= $f_lastday; $i++) {
493
-                                                 if (strlen($i) == '1') {
494
-                                                     $tgl = '0'.$i;
495
-                                                 } else {
496
-                                                     $tgl = $i;
497
-                                                 }
487
+                                                    echo'</tr>';
488
+                                                    echo'</table>';
489
+                                                    echo'</td>';
490
+                                                }
491
+                                            } else {
492
+                                                for ($i = $fday; $i <= $f_lastday; $i++) {
493
+                                                    if (strlen($i) == '1') {
494
+                                                        $tgl = '0'.$i;
495
+                                                    } else {
496
+                                                        $tgl = $i;
497
+                                                    }
498 498
 
499
-                                                 $tanggal = $fyear.'-'.$fmonth.'-'.$tgl;
499
+                                                    $tanggal = $fyear.'-'.$fmonth.'-'.$tgl;
500 500
 
501
-                                                 echo"<td class=$sty style='padding:0;'>";
501
+                                                    echo"<td class=$sty style='padding:0;'>";
502 502
 
503
-                                                 if ($aktif == 'T') {
504
-                                                     echo"
503
+                                                    if ($aktif == 'T') {
504
+                                                        echo"
505 505
 												<i class='fa fa-warning' style='color: red;font-size:18px' onMouseover=\"ddrivetip('Out of Order')\"; onMouseout=\"hideddrivetip()\"></i>
506 506
 												";
507
-                                                 }
507
+                                                    }
508 508
 
509
-                                                 echo"<table cellpadding='0' cellspacing='0' border='0' width='100%'>";
510
-                                                 echo'<tr>';
509
+                                                    echo"<table cellpadding='0' cellspacing='0' border='0' width='100%'>";
510
+                                                    echo'<tr>';
511 511
 
512
-                                                 $cSQL = "SELECT a.id_room,a.room_no,b.rdate,b.status,a.aktif,c.guest,c.initial,d.legend
512
+                                                    $cSQL = "SELECT a.id_room,a.room_no,b.rdate,b.status,a.aktif,c.guest,c.initial,d.legend
513 513
 													FROM room a left join room_reservation b
514 514
 													 ON a.id_room = b.id_room
515 515
 													 and b.status in ('0','1')
@@ -521,82 +521,82 @@  discard block
 block discarded – undo
521 521
 													 AND b.rdate = '$tanggal'												
522 522
 													 ORDER BY a.room_no";
523 523
 
524
-                                                 $croom = mysql_query($cSQL);
524
+                                                    $croom = mysql_query($cSQL);
525 525
 
526
-                                                 $jml = mysql_num_rows($croom);
526
+                                                    $jml = mysql_num_rows($croom);
527 527
 
528
-                                                 //$c=mysql_fetch_array($croom);
529
-                                                 while ($c = mysql_fetch_array($croom)) {
530
-                                                     $guest = $c['guest'];
528
+                                                    //$c=mysql_fetch_array($croom);
529
+                                                    while ($c = mysql_fetch_array($croom)) {
530
+                                                        $guest = $c['guest'];
531 531
 
532
-                                                     $legend = $c['legend'];
533
-                                                     $status = $c['status'];
532
+                                                        $legend = $c['legend'];
533
+                                                        $status = $c['status'];
534 534
 
535
-                                                     if ($status == 0) {
536
-                                                         $icolor = '#fff';
537
-                                                     } else {
538
-                                                         $icolor = '#fff';
539
-                                                     }
535
+                                                        if ($status == 0) {
536
+                                                            $icolor = '#fff';
537
+                                                        } else {
538
+                                                            $icolor = '#fff';
539
+                                                        }
540 540
 
541
-                                                     if ($status == 0) {
542
-                                                         $istatus = 'Reserved';
543
-                                                     } elseif ($status == 1) {
544
-                                                         $istatus = 'Check In';
545
-                                                     } else {
546
-                                                         $istatus = 'Check Out';
547
-                                                     }
541
+                                                        if ($status == 0) {
542
+                                                            $istatus = 'Reserved';
543
+                                                        } elseif ($status == 1) {
544
+                                                            $istatus = 'Check In';
545
+                                                        } else {
546
+                                                            $istatus = 'Check Out';
547
+                                                        }
548 548
 
549
-                                                     $iguest = trim($c['initial']).'. '.trim($c['guest']).' | '.$istatus;
549
+                                                        $iguest = trim($c['initial']).'. '.trim($c['guest']).' | '.$istatus;
550 550
 
551
-                                                     if ($c['initial'] == 'Mr ') {
552
-                                                         $icon = 'fa fa-male';
553
-                                                     } else {
554
-                                                         $icon = 'fa fa-female';
555
-                                                     }
551
+                                                        if ($c['initial'] == 'Mr ') {
552
+                                                            $icon = 'fa fa-male';
553
+                                                        } else {
554
+                                                            $icon = 'fa fa-female';
555
+                                                        }
556 556
 
557
-                                                     if ($guest) {
558
-                                                         if ($guest) {
559
-                                                             echo"<td style='background-color:$legend;'  width='50%'>
557
+                                                        if ($guest) {
558
+                                                            if ($guest) {
559
+                                                                echo"<td style='background-color:$legend;'  width='50%'>
560 560
 												<a href='' onMouseover=\"ddrivetip('$iguest')\"; onMouseout=\"hideddrivetip()\" title=''><i class='$icon' style='color: $icolor;font-size:15px'></i></a>
561 561
 												</td>";
562
-                                                         } else {
563
-                                                             echo"<td style='background-color:$legend;'  width='50%'>
562
+                                                            } else {
563
+                                                                echo"<td style='background-color:$legend;'  width='50%'>
564 564
 												</td>";
565
-                                                         }
566
-                                                     }
567
-                                                 }
565
+                                                            }
566
+                                                        }
567
+                                                    }
568 568
 
569
-                                                 if ($jml == '1') {
570
-                                                     echo"<td width='50%'>
569
+                                                    if ($jml == '1') {
570
+                                                        echo"<td width='50%'>
571 571
 												</td>";
572
-                                                 }
572
+                                                    }
573 573
 
574
-                                                 echo'</tr>';
575
-                                                 echo'</table>';
576
-                                                 echo'</td>';
577
-                                             }
574
+                                                    echo'</tr>';
575
+                                                    echo'</table>';
576
+                                                    echo'</td>';
577
+                                                }
578 578
 
579
-                                             for ($i = 1; $i <= $lday; $i++) {
580
-                                                 if (strlen($i) == '1') {
581
-                                                     $tgl = '0'.$i;
582
-                                                 } else {
583
-                                                     $tgl = $i;
584
-                                                 }
579
+                                                for ($i = 1; $i <= $lday; $i++) {
580
+                                                    if (strlen($i) == '1') {
581
+                                                        $tgl = '0'.$i;
582
+                                                    } else {
583
+                                                        $tgl = $i;
584
+                                                    }
585 585
 
586
-                                                 $tanggal = $lyear.'-'.$lmonth.'-'.$tgl;
586
+                                                    $tanggal = $lyear.'-'.$lmonth.'-'.$tgl;
587 587
 
588
-                                                 echo"<td class=$sty style='padding:0;'>";
588
+                                                    echo"<td class=$sty style='padding:0;'>";
589 589
 
590
-                                                 if ($aktif == 'T') {
591
-                                                     echo"
590
+                                                    if ($aktif == 'T') {
591
+                                                        echo"
592 592
 												<i class='fa fa-warning' style='color: red;font-size:18px' onMouseover=\"ddrivetip('Out of Order')\"; onMouseout=\"hideddrivetip()\"></i>
593 593
 												";
594
-                                                 }
594
+                                                    }
595 595
 
596
-                                                 echo"<table cellpadding='0' cellspacing='0' border='0' width='100%'>";
597
-                                                 echo'<tr>';
596
+                                                    echo"<table cellpadding='0' cellspacing='0' border='0' width='100%'>";
597
+                                                    echo'<tr>';
598 598
 
599
-                                                 $cSQL = "SELECT a.id_room,a.room_no,b.rdate,b.status,a.aktif,c.guest,c.initial,d.legend
599
+                                                    $cSQL = "SELECT a.id_room,a.room_no,b.rdate,b.status,a.aktif,c.guest,c.initial,d.legend
600 600
 													FROM room a left join room_reservation b
601 601
 													 ON a.id_room = b.id_room
602 602
 													 and b.status in ('0','1')
@@ -608,66 +608,66 @@  discard block
 block discarded – undo
608 608
 													 AND b.rdate = '$tanggal'												
609 609
 													 ORDER BY a.room_no";
610 610
 
611
-                                                 $croom = mysql_query($cSQL);
611
+                                                    $croom = mysql_query($cSQL);
612 612
 
613
-                                                 $jml = mysql_num_rows($croom);
613
+                                                    $jml = mysql_num_rows($croom);
614 614
 
615
-                                                 //$c=mysql_fetch_array($croom);
616
-                                                 while ($c = mysql_fetch_array($croom)) {
617
-                                                     $guest = $c['guest'];
615
+                                                    //$c=mysql_fetch_array($croom);
616
+                                                    while ($c = mysql_fetch_array($croom)) {
617
+                                                        $guest = $c['guest'];
618 618
 
619
-                                                     $legend = $c['legend'];
620
-                                                     $status = $c['status'];
619
+                                                        $legend = $c['legend'];
620
+                                                        $status = $c['status'];
621 621
 
622
-                                                     if ($status == 0) {
623
-                                                         $icolor = '#fff';
624
-                                                     } else {
625
-                                                         $icolor = '#fff';
626
-                                                     }
622
+                                                        if ($status == 0) {
623
+                                                            $icolor = '#fff';
624
+                                                        } else {
625
+                                                            $icolor = '#fff';
626
+                                                        }
627 627
 
628
-                                                     if ($status == 0) {
629
-                                                         $istatus = 'Reserved';
630
-                                                     } elseif ($status == 1) {
631
-                                                         $istatus = 'Check In';
632
-                                                     } else {
633
-                                                         $istatus = 'Check Out';
634
-                                                     }
628
+                                                        if ($status == 0) {
629
+                                                            $istatus = 'Reserved';
630
+                                                        } elseif ($status == 1) {
631
+                                                            $istatus = 'Check In';
632
+                                                        } else {
633
+                                                            $istatus = 'Check Out';
634
+                                                        }
635 635
 
636
-                                                     $iguest = trim($c['initial']).'. '.trim($c['guest']).' | '.$istatus;
636
+                                                        $iguest = trim($c['initial']).'. '.trim($c['guest']).' | '.$istatus;
637 637
 
638
-                                                     if ($c['initial'] == 'Mr ') {
639
-                                                         $icon = 'fa fa-male';
640
-                                                     } else {
641
-                                                         $icon = 'fa fa-female';
642
-                                                     }
638
+                                                        if ($c['initial'] == 'Mr ') {
639
+                                                            $icon = 'fa fa-male';
640
+                                                        } else {
641
+                                                            $icon = 'fa fa-female';
642
+                                                        }
643 643
 
644
-                                                     if ($guest) {
645
-                                                         if ($guest) {
646
-                                                             echo"<td style='background-color:$legend;'  width='50%'>
644
+                                                        if ($guest) {
645
+                                                            if ($guest) {
646
+                                                                echo"<td style='background-color:$legend;'  width='50%'>
647 647
 												<a href='' onMouseover=\"ddrivetip('$iguest')\"; onMouseout=\"hideddrivetip()\" title=''><i class='$icon' style='color: $icolor;font-size:15px'></i></a>
648 648
 												</td>";
649
-                                                         } else {
650
-                                                             echo"<td style='background-color:$legend;'  width='50%'>
649
+                                                            } else {
650
+                                                                echo"<td style='background-color:$legend;'  width='50%'>
651 651
 												</td>";
652
-                                                         }
653
-                                                     }
654
-                                                 }
652
+                                                            }
653
+                                                        }
654
+                                                    }
655 655
 
656
-                                                 if ($jml == '1') {
657
-                                                     echo"<td width='50%'>
656
+                                                    if ($jml == '1') {
657
+                                                        echo"<td width='50%'>
658 658
 												</td>";
659
-                                                 }
660
-
661
-                                                 echo'</tr>';
662
-                                                 echo'</table>';
663
-                                                 echo'</td>';
664
-                                             }
665
-                                         }
666
-                                         echo'</tr>';
667
-
668
-                                         $no++;
669
-                                     }
670
-                                 }
659
+                                                    }
660
+
661
+                                                    echo'</tr>';
662
+                                                    echo'</table>';
663
+                                                    echo'</td>';
664
+                                                }
665
+                                            }
666
+                                            echo'</tr>';
667
+
668
+                                            $no++;
669
+                                        }
670
+                                    }
671 671
                                 ?>
672 672
 
673 673
 					                         </tbody>
@@ -682,13 +682,13 @@  discard block
 block discarded – undo
682 682
 										<tr>
683 683
 										<td style='padding-right:3px;'>Room Status : </td>	
684 684
 										<?php
685
-                                             $SQL = "SELECT * FROM room_status where aktif ='Y' ORDER BY id_room_status";
686
-                                             $tampil = mysql_query($SQL);
685
+                                                $SQL = "SELECT * FROM room_status where aktif ='Y' ORDER BY id_room_status";
686
+                                                $tampil = mysql_query($SQL);
687 687
 
688
-                                             while ($r = mysql_fetch_array($tampil)) {
689
-                                                 echo"<td style='width:20px;background-color:".$r['legend'].";'>&nbsp</td>";
690
-                                                 echo"<td style='padding-left:3px;'>".$r['room_status'].'&nbsp</td>';
691
-                                             }
688
+                                                while ($r = mysql_fetch_array($tampil)) {
689
+                                                    echo"<td style='width:20px;background-color:".$r['legend'].";'>&nbsp</td>";
690
+                                                    echo"<td style='padding-left:3px;'>".$r['room_status'].'&nbsp</td>';
691
+                                                }
692 692
 
693 693
                                         ?>
694 694
 										</tr>
@@ -701,12 +701,12 @@  discard block
 block discarded – undo
701 701
 										<td style='padding-right:3px;'>Day Status : </td>	
702 702
 										<?php
703 703
 
704
-                                             echo"<td style='width:20px;background-color:#eba51c;'>&nbsp</td>";
705
-                                             echo"<td style='padding-left:3px;'>Spesial Day&nbsp</td>";
706
-                                             echo"<td style='width:20px;background-color:#eb1c41;'>&nbsp</td>";
707
-                                             echo"<td style='padding-left:3px;'>Weekend&nbsp</td>";
708
-                                             echo"<td style='width:20px;background-color:#2A3F54;;'>&nbsp</td>";
709
-                                             echo"<td style='padding-left:3px;'>Weekday&nbsp</td>";
704
+                                                echo"<td style='width:20px;background-color:#eba51c;'>&nbsp</td>";
705
+                                                echo"<td style='padding-left:3px;'>Spesial Day&nbsp</td>";
706
+                                                echo"<td style='width:20px;background-color:#eb1c41;'>&nbsp</td>";
707
+                                                echo"<td style='padding-left:3px;'>Weekend&nbsp</td>";
708
+                                                echo"<td style='width:20px;background-color:#2A3F54;;'>&nbsp</td>";
709
+                                                echo"<td style='padding-left:3px;'>Weekday&nbsp</td>";
710 710
 
711 711
                                         ?>
712 712
 										</tr>
Please login to merge, or discard this patch.
Spacing   +47 added lines, -47 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
     $jml = ($lday - $fday) + 1;
92 92
 
93 93
 if ($_GET['ldate']) {
94
-    if ($lmonth == $fmonth and $lyear == $fyear) {
94
+    if ($lmonth==$fmonth and $lyear==$fyear) {
95 95
         $jcol = $jml;
96 96
     } else {
97 97
         $jcol = $f_jml + $l_jml;
@@ -120,10 +120,10 @@  discard block
 block discarded – undo
120 120
 							                 	<option value="">--------- Room Type ---------</option>
121 121
 							                    <?php
122 122
                                                   $query = mysql_query('SELECT * FROM room_type ORDER BY room_type');
123
-                                                   if ($query && mysql_num_rows($query) > 0) {
123
+                                                   if ($query && mysql_num_rows($query)>0) {
124 124
                                                        while ($row = mysql_fetch_object($query)) {
125 125
                                                            echo '<option value="'.$row->id_room_type.'"';
126
-                                                           if ($row->id_room_type == $_GET['room_type']) {
126
+                                                           if ($row->id_room_type==$_GET['room_type']) {
127 127
                                                                echo ' selected';
128 128
                                                            }
129 129
                                                            echo '>'.$row->room_type.'</option>';
@@ -156,9 +156,9 @@  discard block
 block discarded – undo
156 156
 		                        	<?php
157 157
                                     $col = (83 / $jcol);
158 158
 
159
-                                    if ($lmonth == $fmonth and $lyear == $fyear) {
160
-                                        for ($i = $fday; $i <= $lday; $i++) {
161
-                                            if (strlen($i) == '1') {
159
+                                    if ($lmonth==$fmonth and $lyear==$fyear) {
160
+                                        for ($i = $fday; $i<=$lday; $i++) {
161
+                                            if (strlen($i)=='1') {
162 162
                                                 $tgl = '0'.$i;
163 163
                                             } else {
164 164
                                                 $tgl = $i;
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
 
177 177
                                             if ($s['sdate']) {
178 178
                                                 $bg = '#eba51c';
179
-                                            } elseif ($nday == '6' or $nday == '7') {
179
+                                            } elseif ($nday=='6' or $nday=='7') {
180 180
                                                 $bg = '#eb1c41';
181 181
                                             } else {
182 182
                                                 $bg = '';
@@ -191,8 +191,8 @@  discard block
 block discarded – undo
191 191
 										</th>";
192 192
                                         }
193 193
                                     } else {
194
-                                        for ($i = $fday; $i <= $f_lastday; $i++) {
195
-                                            if (strlen($i) == '1') {
194
+                                        for ($i = $fday; $i<=$f_lastday; $i++) {
195
+                                            if (strlen($i)=='1') {
196 196
                                                 $tgl = '0'.$i;
197 197
                                             } else {
198 198
                                                 $tgl = $i;
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
 
211 211
                                             if ($s['sdate']) {
212 212
                                                 $bg = '#eba51c';
213
-                                            } elseif ($nday == '6' or $nday == '7') {
213
+                                            } elseif ($nday=='6' or $nday=='7') {
214 214
                                                 $bg = '#eb1c41';
215 215
                                             } else {
216 216
                                                 $bg = '';
@@ -225,8 +225,8 @@  discard block
 block discarded – undo
225 225
 										</th>";
226 226
                                         }
227 227
 
228
-                                        for ($i = 1; $i <= $lday; $i++) {
229
-                                            if (strlen($i) == '1') {
228
+                                        for ($i = 1; $i<=$lday; $i++) {
229
+                                            if (strlen($i)=='1') {
230 230
                                                 $tgl = '0'.$i;
231 231
                                             } else {
232 232
                                                 $tgl = $i;
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
 
245 245
                                             if ($s['sdate']) {
246 246
                                                 $bg = '#eba51c';
247
-                                            } elseif ($nday == '6' or $nday == '7') {
247
+                                            } elseif ($nday=='6' or $nday=='7') {
248 248
                                                 $bg = '#eb1c41';
249 249
                                             } else {
250 250
                                                 $bg = '';
@@ -286,9 +286,9 @@  discard block
 block discarded – undo
286 286
                                      echo'<tr>';
287 287
                                      echo"<td style='background-color: #1ABB9C;color: #E7E7E7;'>".$t['room_type'].'</td>';
288 288
 
289
-                                     if ($lmonth == $fmonth and $lyear == $fyear) {
290
-                                         for ($i = $fday; $i <= $lday; $i++) {
291
-                                             if (strlen($i) == '1') {
289
+                                     if ($lmonth==$fmonth and $lyear==$fyear) {
290
+                                         for ($i = $fday; $i<=$lday; $i++) {
291
+                                             if (strlen($i)=='1') {
292 292
                                                  $tgl = '0'.$i;
293 293
                                              } else {
294 294
                                                  $tgl = $i;
@@ -300,8 +300,8 @@  discard block
 block discarded – undo
300 300
 										</td>";
301 301
                                          }
302 302
                                      } else {
303
-                                         for ($i = $fday; $i <= $f_lastday; $i++) {
304
-                                             if (strlen($i) == '1') {
303
+                                         for ($i = $fday; $i<=$f_lastday; $i++) {
304
+                                             if (strlen($i)=='1') {
305 305
                                                  $tgl = '0'.$i;
306 306
                                              } else {
307 307
                                                  $tgl = $i;
@@ -315,8 +315,8 @@  discard block
 block discarded – undo
315 315
 										</td>";
316 316
                                          }
317 317
 
318
-                                         for ($i = 1; $i <= $lday; $i++) {
319
-                                             if (strlen($i) == '1') {
318
+                                         for ($i = 1; $i<=$lday; $i++) {
319
+                                             if (strlen($i)=='1') {
320 320
                                                  $tgl = '0'.$i;
321 321
                                              } else {
322 322
                                                  $tgl = $i;
@@ -341,7 +341,7 @@  discard block
 block discarded – undo
341 341
                                      while ($r = mysql_fetch_array($room)) {
342 342
                                          $aktif = $r['aktif'];
343 343
 
344
-                                         if (($no % 2) == 0) {
344
+                                         if (($no % 2)==0) {
345 345
                                              $sty = 'ftd';
346 346
                                          } else {
347 347
                                              $sty = 'ltd';
@@ -352,9 +352,9 @@  discard block
 block discarded – undo
352 352
                                          echo'<tr>';
353 353
                                          echo"<td style='padding-left:20px;text-align:left;' class=$sty>".$r['room_no'].'</td>';
354 354
 
355
-                                         if ($lmonth == $fmonth and $lyear == $fyear) {
356
-                                             for ($i = $fday; $i <= $lday; $i++) {
357
-                                                 if (strlen($i) == '1') {
355
+                                         if ($lmonth==$fmonth and $lyear==$fyear) {
356
+                                             for ($i = $fday; $i<=$lday; $i++) {
357
+                                                 if (strlen($i)=='1') {
358 358
                                                      $tgl = '0'.$i;
359 359
                                                  } else {
360 360
                                                      $tgl = $i;
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
 
365 365
                                                  echo"<td class=$sty style='padding:0;'>";
366 366
 
367
-                                                 if ($aktif == 'T') {
367
+                                                 if ($aktif=='T') {
368 368
                                                      echo"
369 369
 												<i class='fa fa-warning' style='color: red;font-size:18px' onMouseover=\"ddrivetip('Out of Order')\"; onMouseout=\"hideddrivetip()\"></i>
370 370
 												";
@@ -434,15 +434,15 @@  discard block
 block discarded – undo
434 434
                                                      $legend = $c['legend'];
435 435
                                                      $status = $c['status'];
436 436
 
437
-                                                     if ($status == 0) {
437
+                                                     if ($status==0) {
438 438
                                                          $icolor = '#fff';
439 439
                                                      } else {
440 440
                                                          $icolor = '#fff';
441 441
                                                      }
442 442
 
443
-                                                     if ($status == 0) {
443
+                                                     if ($status==0) {
444 444
                                                          $istatus = 'Reserved';
445
-                                                     } elseif ($status == 1) {
445
+                                                     } elseif ($status==1) {
446 446
                                                          $istatus = 'Check In';
447 447
                                                      } else {
448 448
                                                          $istatus = 'Check Out';
@@ -450,7 +450,7 @@  discard block
 block discarded – undo
450 450
 
451 451
                                                      $iguest = trim($c['initial']).'. '.trim($c['guest']).' | '.$istatus;
452 452
 
453
-                                                     if ($c['initial'] == 'Mr ') {
453
+                                                     if ($c['initial']=='Mr ') {
454 454
                                                          $icon = 'fa fa-male';
455 455
                                                      } else {
456 456
                                                          $icon = 'fa fa-female';
@@ -460,7 +460,7 @@  discard block
 block discarded – undo
460 460
 
461 461
                                                      //if ($jml == '1') {
462 462
 
463
-                                                     if ($ljml == '0' and $jml == '1' and $njml == '1') {
463
+                                                     if ($ljml=='0' and $jml=='1' and $njml=='1') {
464 464
                                                          echo"<td width='50%'>
465 465
 														</td>";
466 466
                                                      }
@@ -477,7 +477,7 @@  discard block
 block discarded – undo
477 477
                                                      }
478 478
                                                  }
479 479
 
480
-                                                 if ($ljml != '0' and $jml == '1') {
480
+                                                 if ($ljml!='0' and $jml=='1') {
481 481
                                                      echo"<td width='50%'>
482 482
 														</td>";
483 483
                                                  }
@@ -489,8 +489,8 @@  discard block
 block discarded – undo
489 489
                                                  echo'</td>';
490 490
                                              }
491 491
                                          } else {
492
-                                             for ($i = $fday; $i <= $f_lastday; $i++) {
493
-                                                 if (strlen($i) == '1') {
492
+                                             for ($i = $fday; $i<=$f_lastday; $i++) {
493
+                                                 if (strlen($i)=='1') {
494 494
                                                      $tgl = '0'.$i;
495 495
                                                  } else {
496 496
                                                      $tgl = $i;
@@ -500,7 +500,7 @@  discard block
 block discarded – undo
500 500
 
501 501
                                                  echo"<td class=$sty style='padding:0;'>";
502 502
 
503
-                                                 if ($aktif == 'T') {
503
+                                                 if ($aktif=='T') {
504 504
                                                      echo"
505 505
 												<i class='fa fa-warning' style='color: red;font-size:18px' onMouseover=\"ddrivetip('Out of Order')\"; onMouseout=\"hideddrivetip()\"></i>
506 506
 												";
@@ -532,15 +532,15 @@  discard block
 block discarded – undo
532 532
                                                      $legend = $c['legend'];
533 533
                                                      $status = $c['status'];
534 534
 
535
-                                                     if ($status == 0) {
535
+                                                     if ($status==0) {
536 536
                                                          $icolor = '#fff';
537 537
                                                      } else {
538 538
                                                          $icolor = '#fff';
539 539
                                                      }
540 540
 
541
-                                                     if ($status == 0) {
541
+                                                     if ($status==0) {
542 542
                                                          $istatus = 'Reserved';
543
-                                                     } elseif ($status == 1) {
543
+                                                     } elseif ($status==1) {
544 544
                                                          $istatus = 'Check In';
545 545
                                                      } else {
546 546
                                                          $istatus = 'Check Out';
@@ -548,7 +548,7 @@  discard block
 block discarded – undo
548 548
 
549 549
                                                      $iguest = trim($c['initial']).'. '.trim($c['guest']).' | '.$istatus;
550 550
 
551
-                                                     if ($c['initial'] == 'Mr ') {
551
+                                                     if ($c['initial']=='Mr ') {
552 552
                                                          $icon = 'fa fa-male';
553 553
                                                      } else {
554 554
                                                          $icon = 'fa fa-female';
@@ -566,7 +566,7 @@  discard block
 block discarded – undo
566 566
                                                      }
567 567
                                                  }
568 568
 
569
-                                                 if ($jml == '1') {
569
+                                                 if ($jml=='1') {
570 570
                                                      echo"<td width='50%'>
571 571
 												</td>";
572 572
                                                  }
@@ -576,8 +576,8 @@  discard block
 block discarded – undo
576 576
                                                  echo'</td>';
577 577
                                              }
578 578
 
579
-                                             for ($i = 1; $i <= $lday; $i++) {
580
-                                                 if (strlen($i) == '1') {
579
+                                             for ($i = 1; $i<=$lday; $i++) {
580
+                                                 if (strlen($i)=='1') {
581 581
                                                      $tgl = '0'.$i;
582 582
                                                  } else {
583 583
                                                      $tgl = $i;
@@ -587,7 +587,7 @@  discard block
 block discarded – undo
587 587
 
588 588
                                                  echo"<td class=$sty style='padding:0;'>";
589 589
 
590
-                                                 if ($aktif == 'T') {
590
+                                                 if ($aktif=='T') {
591 591
                                                      echo"
592 592
 												<i class='fa fa-warning' style='color: red;font-size:18px' onMouseover=\"ddrivetip('Out of Order')\"; onMouseout=\"hideddrivetip()\"></i>
593 593
 												";
@@ -619,15 +619,15 @@  discard block
 block discarded – undo
619 619
                                                      $legend = $c['legend'];
620 620
                                                      $status = $c['status'];
621 621
 
622
-                                                     if ($status == 0) {
622
+                                                     if ($status==0) {
623 623
                                                          $icolor = '#fff';
624 624
                                                      } else {
625 625
                                                          $icolor = '#fff';
626 626
                                                      }
627 627
 
628
-                                                     if ($status == 0) {
628
+                                                     if ($status==0) {
629 629
                                                          $istatus = 'Reserved';
630
-                                                     } elseif ($status == 1) {
630
+                                                     } elseif ($status==1) {
631 631
                                                          $istatus = 'Check In';
632 632
                                                      } else {
633 633
                                                          $istatus = 'Check Out';
@@ -635,7 +635,7 @@  discard block
 block discarded – undo
635 635
 
636 636
                                                      $iguest = trim($c['initial']).'. '.trim($c['guest']).' | '.$istatus;
637 637
 
638
-                                                     if ($c['initial'] == 'Mr ') {
638
+                                                     if ($c['initial']=='Mr ') {
639 639
                                                          $icon = 'fa fa-male';
640 640
                                                      } else {
641 641
                                                          $icon = 'fa fa-female';
@@ -653,7 +653,7 @@  discard block
 block discarded – undo
653 653
                                                      }
654 654
                                                  }
655 655
 
656
-                                                 if ($jml == '1') {
656
+                                                 if ($jml=='1') {
657 657
                                                      echo"<td width='50%'>
658 658
 												</td>";
659 659
                                                  }
Please login to merge, or discard this patch.