Passed
Push — master ( d91862...237c42 )
by Saepul
04:48
created
modul/mod_report_stok/print_report_stok.php 3 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
 
167 167
 <?php
168 168
 $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
169
- $g = mysql_fetch_array($gtampil);
169
+    $g = mysql_fetch_array($gtampil);
170 170
 
171 171
 if ($g['pict']) {
172 172
     $pict = $g['pict'];
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
                             
213 213
                          <?php
214 214
 
215
-             $tampil = mysql_query("SELECT a.obat,b.satuan,a.jumlah,ifnull(sum(d.qty),0) as keluar
215
+                $tampil = mysql_query("SELECT a.obat,b.satuan,a.jumlah,ifnull(sum(d.qty),0) as keluar
216 216
                                 FROM obat a left join satuan b 
217 217
                                  ON a.id_satuan = b.id_satuan
218 218
                                  left join kunjungan_berobat c 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 $id = $r['id_modul'];
13 13
 $fa_icon = $r['fa_icon'];
14 14
 
15
-if ($r[orientation] == 'P') {
15
+if ($r[orientation]=='P') {
16 16
     $orientation = 'portrait';
17 17
 } else {
18 18
     $orientation = 'landscape';
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 
140 140
 <!--<body onload="cetakspk()">-->
141 141
 
142
-<?php if ($_GET['printto'] == '2') {
142
+<?php if ($_GET['printto']=='2') {
143 143
     ?>
144 144
 <body onload="icetak()">
145 145
 <?php
Please login to merge, or discard this patch.
Switch Indentation   +59 added lines, -59 removed lines patch added patch discarded remove patch
@@ -1,30 +1,30 @@  discard block
 block discarded – undo
1
-<?php
2
-include './../../config/koneksi.php';
3
-include './../../config/fungsi_indobulan.php';
1
+    <?php
2
+    include './../../config/koneksi.php';
3
+    include './../../config/fungsi_indobulan.php';
4 4
 
5
-$tampil = mysql_query("SELECT * FROM modul WHERE id_modul ='".$_GET[report_id]."'");
5
+    $tampil = mysql_query("SELECT * FROM modul WHERE id_modul ='".$_GET[report_id]."'");
6 6
 
7
-$r = mysql_fetch_array($tampil);
7
+    $r = mysql_fetch_array($tampil);
8 8
 
9
-$module = $_GET['module'];
10
-$imodule = ucwords($r['nama_modul']);
11
-$nmmodule = ucwords($r['nama_modul']);
12
-$id = $r['id_modul'];
13
-$fa_icon = $r['fa_icon'];
9
+    $module = $_GET['module'];
10
+    $imodule = ucwords($r['nama_modul']);
11
+    $nmmodule = ucwords($r['nama_modul']);
12
+    $id = $r['id_modul'];
13
+    $fa_icon = $r['fa_icon'];
14 14
 
15
-if ($r[orientation] == 'P') {
16
-    $orientation = 'portrait';
15
+    if ($r[orientation] == 'P') {
16
+        $orientation = 'portrait';
17 17
 } else {
18
-    $orientation = 'landscape';
18
+        $orientation = 'landscape';
19 19
 }
20 20
 
21
-$fdate = $_GET['fdate'];
22
-$ldate = $_GET['ldate'];
21
+    $fdate = $_GET['fdate'];
22
+    $ldate = $_GET['ldate'];
23 23
 
24
-$ftgl = date('d/m/Y', strtotime($_GET['fdate']));
25
-$ltgl = date('d/m/Y', strtotime($_GET['ldate']));
24
+    $ftgl = date('d/m/Y', strtotime($_GET['fdate']));
25
+    $ltgl = date('d/m/Y', strtotime($_GET['ldate']));
26 26
 
27
-?>
27
+    ?>
28 28
 
29 29
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
30 30
 <html xmlns="http://www.w3.org/1999/xhtml"><head>
@@ -140,14 +140,14 @@  discard block
 block discarded – undo
140 140
 <!--<body onload="cetakspk()">-->
141 141
 
142 142
 <?php if ($_GET['printto'] == '2') {
143
-    ?>
144
-<body onload="icetak()">
145
-<?php
146
-} else {
147 143
         ?>
148
-<body>
149
-<?php
150
-    } ?>
144
+    <body onload="icetak()">
145
+    <?php
146
+} else {
147
+            ?>
148
+    <body>
149
+    <?php
150
+        } ?>
151 151
 
152 152
 
153 153
    <div class="noprint themeborderleft themeborderright themebordertop themeborderbottom"  >
@@ -165,17 +165,17 @@  discard block
 block discarded – undo
165 165
 
166 166
 
167 167
 <?php
168
-$gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
169
- $g = mysql_fetch_array($gtampil);
168
+    $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
169
+     $g = mysql_fetch_array($gtampil);
170 170
 
171
-if ($g['pict']) {
172
-    $pict = $g['pict'];
171
+    if ($g['pict']) {
172
+        $pict = $g['pict'];
173 173
 } else {
174
-    $pict = '';
174
+        $pict = '';
175 175
 }
176 176
 
177
-$company = ucwords($g['company']);
178
-?>
177
+    $company = ucwords($g['company']);
178
+    ?>
179 179
 
180 180
  <table width='100%' style="padding-top:10px;">
181 181
 <tr>
@@ -184,8 +184,8 @@  discard block
 block discarded – undo
184 184
 </td>
185 185
 <td style="text-align:center;" width='80%'>
186 186
 <span class='h1'><?=$nmmodule; ?></span>
187
-<?php echo "<span class='h2'>".$g['company'].'</span><br>'; ?>
188
-<br>Periode : <?=$ftgl; ?> - <?=$ltgl; ?>
187
+    <?php echo "<span class='h2'>".$g['company'].'</span><br>'; ?>
188
+    <br>Periode : <?=$ftgl; ?> - <?=$ltgl; ?>
189 189
 </td>
190 190
 <td width='10%'>
191 191
 &nbsp
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
                             
213 213
                          <?php
214 214
 
215
-             $tampil = mysql_query("SELECT a.obat,b.satuan,a.jumlah,ifnull(sum(d.qty),0) as keluar
215
+                 $tampil = mysql_query("SELECT a.obat,b.satuan,a.jumlah,ifnull(sum(d.qty),0) as keluar
216 216
                                 FROM obat a left join satuan b 
217 217
                                  ON a.id_satuan = b.id_satuan
218 218
                                  left join kunjungan_berobat c 
@@ -224,33 +224,33 @@  discard block
 block discarded – undo
224 224
                                  AND a.id_obat = d.id_obat
225 225
                                  GROUP BY a.obat,b.satuan,a.jumlah ");
226 226
 
227
-            $no = 1;
227
+                $no = 1;
228 228
 
229
-            while ($r = mysql_fetch_array($tampil)) {
230
-                $tgl = date('d/m/Y', strtotime($r[tanggal]));
229
+                while ($r = mysql_fetch_array($tampil)) {
230
+                    $tgl = date('d/m/Y', strtotime($r[tanggal]));
231 231
 
232
-                $id_pasien = $r[id_pasien];
232
+                    $id_pasien = $r[id_pasien];
233 233
 
234
-                $stok = $r[jumlah] + $r[keluar];
234
+                    $stok = $r[jumlah] + $r[keluar];
235 235
 
236
-                echo'<tr>';
237
-                echo"<td style='text-align:center;'>$no</td>";
238
-                echo"<td>$r[obat]</td>";
239
-                echo"<td>$r[satuan]</td>";
240
-                echo"<td style='text-align:right;'>$stok</td>";
241
-                echo"<td style='text-align:right;'>$r[keluar]</td>";
242
-                echo"<td style='text-align:right;'>$r[jumlah]</td>";
243
-                echo'</tr>';
244
-                $no++;
245
-            }
246
-            ?>
236
+                    echo'<tr>';
237
+                    echo"<td style='text-align:center;'>$no</td>";
238
+                    echo"<td>$r[obat]</td>";
239
+                    echo"<td>$r[satuan]</td>";
240
+                    echo"<td style='text-align:right;'>$stok</td>";
241
+                    echo"<td style='text-align:right;'>$r[keluar]</td>";
242
+                    echo"<td style='text-align:right;'>$r[jumlah]</td>";
243
+                    echo'</tr>';
244
+                    $no++;
245
+                }
246
+                ?>
247 247
 
248 248
             <tfoot>
249 249
                             <tr>                               
250 250
                                 <th colspan= '3'>TOTAL</th>
251 251
 
252 252
                                 <?php
253
-                                $dtampil = mysql_query("SELECT sum(a.jumlah) as jumlah,ifnull(sum(d.qty),0) as keluar
253
+                                    $dtampil = mysql_query("SELECT sum(a.jumlah) as jumlah,ifnull(sum(d.qty),0) as keluar
254 254
                                 FROM obat a left join satuan b 
255 255
                                  ON a.id_satuan = b.id_satuan
256 256
                                  left join kunjungan_berobat c 
@@ -261,16 +261,16 @@  discard block
 block discarded – undo
261 261
                                  ON c.id_kunjungan_berobat = d.id_kunjungan_berobat
262 262
                                  AND a.id_obat = d.id_obat");
263 263
 
264
-                                $d = mysql_fetch_array($dtampil);
264
+                                    $d = mysql_fetch_array($dtampil);
265 265
 
266
-                                $tstok = $d[jumlah] + $d[keluar];
266
+                                    $tstok = $d[jumlah] + $d[keluar];
267 267
 
268
-                                echo"<td style='text-align:right;'>$tstok</td>";
269
-                                echo"<td style='text-align:right;'>$d[keluar]</td>";
270
-                                echo"<td style='text-align:right;'>$d[jumlah]</td>";
268
+                                    echo"<td style='text-align:right;'>$tstok</td>";
269
+                                    echo"<td style='text-align:right;'>$d[keluar]</td>";
270
+                                    echo"<td style='text-align:right;'>$d[jumlah]</td>";
271 271
 
272
-                                //}
273
-                                ?>
272
+                                    //}
273
+                                    ?>
274 274
 
275 275
                             </tr>
276 276
                         </tfoot>
Please login to merge, or discard this patch.
modul/mod_report_rekam_medis/print_report_rekam_medis.php 3 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
 
168 168
 <?php
169 169
 $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
170
- $g = mysql_fetch_array($gtampil);
170
+    $g = mysql_fetch_array($gtampil);
171 171
 
172 172
 if ($g['pict']) {
173 173
     $pict = $g['pict'];
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 <hr>
197 197
 
198 198
 <?php
199
- $tampil = mysql_query("SELECT a.*,b.agama,c.kategori
199
+    $tampil = mysql_query("SELECT a.*,b.agama,c.kategori
200 200
           FROM pasien a left join agama b 
201 201
            ON a.id_agama = b.id_agama
202 202
            left join kategori c
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 $id = $r['id_modul'];
13 13
 $fa_icon = $r['fa_icon'];
14 14
 
15
-if ($r[orientation] == 'P') {
15
+if ($r[orientation]=='P') {
16 16
     $orientation = 'portrait';
17 17
 } else {
18 18
     $orientation = 'landscape';
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 
141 141
 <!--<body onload="cetakspk()">-->
142 142
 
143
-<?php if ($_GET['printto'] == '2') {
143
+<?php if ($_GET['printto']=='2') {
144 144
     ?>
145 145
 <body onload="icetak()">
146 146
 <?php
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
 
208 208
 $tgl_lahir = date('d/m/Y', strtotime($r[tgl_lahir]));
209 209
 
210
-if ($r['gender'] == 'L') {
210
+if ($r['gender']=='L') {
211 211
     $gender = 'Laki-laki';
212 212
 } else {
213 213
     $gender = 'Perempuan';
Please login to merge, or discard this patch.
Switch Indentation   +54 added lines, -54 removed lines patch added patch discarded remove patch
@@ -1,31 +1,31 @@  discard block
 block discarded – undo
1
-<?php
2
-include './../../config/koneksi.php';
3
-include './../../config/fungsi_indobulan.php';
1
+    <?php
2
+    include './../../config/koneksi.php';
3
+    include './../../config/fungsi_indobulan.php';
4 4
 
5
-$tampil = mysql_query("SELECT * FROM modul WHERE id_modul ='".$_GET[report_id]."'");
5
+    $tampil = mysql_query("SELECT * FROM modul WHERE id_modul ='".$_GET[report_id]."'");
6 6
 
7
-$r = mysql_fetch_array($tampil);
7
+    $r = mysql_fetch_array($tampil);
8 8
 
9
-$module = $_GET['module'];
10
-$imodule = ucwords($r['nama_modul']);
11
-$nmmodule = ucwords($r['nama_modul']);
12
-$id = $r['id_modul'];
13
-$fa_icon = $r['fa_icon'];
9
+    $module = $_GET['module'];
10
+    $imodule = ucwords($r['nama_modul']);
11
+    $nmmodule = ucwords($r['nama_modul']);
12
+    $id = $r['id_modul'];
13
+    $fa_icon = $r['fa_icon'];
14 14
 
15
-if ($r[orientation] == 'P') {
16
-    $orientation = 'portrait';
15
+    if ($r[orientation] == 'P') {
16
+        $orientation = 'portrait';
17 17
 } else {
18
-    $orientation = 'landscape';
18
+        $orientation = 'landscape';
19 19
 }
20 20
 
21
-$pasien = $_GET['pasien'];
22
-$ldate = $_GET['ldate'];
23
-$ldate = $_GET['ldate'];
21
+    $pasien = $_GET['pasien'];
22
+    $ldate = $_GET['ldate'];
23
+    $ldate = $_GET['ldate'];
24 24
 
25
-$ftgl = date('d/m/Y', strtotime($_GET['fdate']));
26
-$ltgl = date('d/m/Y', strtotime($_GET['ldate']));
25
+    $ftgl = date('d/m/Y', strtotime($_GET['fdate']));
26
+    $ltgl = date('d/m/Y', strtotime($_GET['ldate']));
27 27
 
28
-?>
28
+    ?>
29 29
 
30 30
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
31 31
 <html xmlns="http://www.w3.org/1999/xhtml"><head>
@@ -141,14 +141,14 @@  discard block
 block discarded – undo
141 141
 <!--<body onload="cetakspk()">-->
142 142
 
143 143
 <?php if ($_GET['printto'] == '2') {
144
-    ?>
145
-<body onload="icetak()">
146
-<?php
147
-} else {
148 144
         ?>
149
-<body>
150
-<?php
151
-    } ?>
145
+    <body onload="icetak()">
146
+    <?php
147
+} else {
148
+            ?>
149
+    <body>
150
+    <?php
151
+        } ?>
152 152
 
153 153
 
154 154
    <div class="noprint themeborderleft themeborderright themebordertop themeborderbottom"  >
@@ -166,17 +166,17 @@  discard block
 block discarded – undo
166 166
 
167 167
 
168 168
 <?php
169
-$gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
170
- $g = mysql_fetch_array($gtampil);
169
+    $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
170
+     $g = mysql_fetch_array($gtampil);
171 171
 
172
-if ($g['pict']) {
173
-    $pict = $g['pict'];
172
+    if ($g['pict']) {
173
+        $pict = $g['pict'];
174 174
 } else {
175
-    $pict = '';
175
+        $pict = '';
176 176
 }
177 177
 
178
-$company = ucwords($g['company']);
179
-?>
178
+    $company = ucwords($g['company']);
179
+    ?>
180 180
 
181 181
  <table width='100%' style="padding-top:10px;">
182 182
 <tr>
@@ -185,8 +185,8 @@  discard block
 block discarded – undo
185 185
 </td>
186 186
 <td style="text-align:center;" width='80%'>
187 187
 <span class='h1'><?=$nmmodule; ?></span><br>
188
-<?php echo "<span class='h2'>".$g['company'].'</span><br>'; ?>
189
-<br>Periode : <?=$ftgl; ?> - <?=$ltgl; ?>
188
+    <?php echo "<span class='h2'>".$g['company'].'</span><br>'; ?>
189
+    <br>Periode : <?=$ftgl; ?> - <?=$ltgl; ?>
190 190
 </td>
191 191
 <td width='10%'>
192 192
 &nbsp
@@ -196,23 +196,23 @@  discard block
 block discarded – undo
196 196
 <hr>
197 197
 
198 198
 <?php
199
- $tampil = mysql_query("SELECT a.*,b.agama,c.kategori
199
+     $tampil = mysql_query("SELECT a.*,b.agama,c.kategori
200 200
           FROM pasien a left join agama b 
201 201
            ON a.id_agama = b.id_agama
202 202
            left join kategori c
203 203
            ON a.id_kategori = c.id_kategori
204 204
            WHERE a.id_pasien = '$pasien' ");
205 205
 
206
-$r = mysql_fetch_array($tampil);
206
+    $r = mysql_fetch_array($tampil);
207 207
 
208
-$tgl_lahir = date('d/m/Y', strtotime($r[tgl_lahir]));
208
+    $tgl_lahir = date('d/m/Y', strtotime($r[tgl_lahir]));
209 209
 
210
-if ($r['gender'] == 'L') {
211
-    $gender = 'Laki-laki';
210
+    if ($r['gender'] == 'L') {
211
+        $gender = 'Laki-laki';
212 212
 } else {
213
-    $gender = 'Perempuan';
213
+        $gender = 'Perempuan';
214 214
 }
215
-?>      
215
+    ?>      
216 216
 
217 217
 <table style="width: 100%;">
218 218
 <tr><td style="width: 20%;">NIP</td><td style="width: 1%;">:</td><td><?=$r[ktp]; ?></td></tr>
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
 
233 233
     <?php
234 234
 
235
-$tampil = mysql_query("SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori          
235
+    $tampil = mysql_query("SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori          
236 236
         FROM kunjungan_berobat a left join pasien b 
237 237
          ON a.id_pasien = b.id_pasien
238 238
          left join poli c 
@@ -241,20 +241,20 @@  discard block
 block discarded – undo
241 241
          ON b.id_kategori = d.id_kategori        
242 242
          WHERE a.id_pasien = '$pasien'");
243 243
 
244
-while ($r = mysql_fetch_array($tampil)) {
245
-    $tgl = date('d/m/Y', strtotime($r[tanggal]));
244
+    while ($r = mysql_fetch_array($tampil)) {
245
+        $tgl = date('d/m/Y', strtotime($r[tanggal]));
246 246
 
247
-    echo'<tr>';
248
-    echo"<td>$tgl</td>";
249
-    echo"<td>$r[keluhan]</td>";
250
-    echo"<td>$r[diagnosa]</td>";
251
-    echo"<td>$r[pemeriksaan]</td>";
252
-    echo"<td>$r[tindakan]</td>";
247
+        echo'<tr>';
248
+        echo"<td>$tgl</td>";
249
+        echo"<td>$r[keluhan]</td>";
250
+        echo"<td>$r[diagnosa]</td>";
251
+        echo"<td>$r[pemeriksaan]</td>";
252
+        echo"<td>$r[tindakan]</td>";
253 253
 
254
-    echo'</td>';
255
-    echo'</tr>';
254
+        echo'</td>';
255
+        echo'</tr>';
256 256
 }
257
-?>
257
+    ?>
258 258
 
259 259
  
260 260
     
Please login to merge, or discard this patch.
modul/mod_obat/form_obat.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
               <div class="col-md-6 col-sm-6 col-xs-12" >
85 85
                  <select name="satuan" class="form-control">                
86 86
                     <?php
87
-                      $query = mysql_query('SELECT * FROM satuan ORDER BY satuan');
87
+                        $query = mysql_query('SELECT * FROM satuan ORDER BY satuan');
88 88
     if ($query && mysql_num_rows($query) > 0) {
89 89
         while ($row = mysql_fetch_object($query)) {
90 90
             echo '<option value="'.$row->id_satuan.'"';
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
     if ($id) {
46 46
         $query = mysql_query('SELECT * FROM obat WHERE id_obat = "'.$id.'"');
47
-        if ($query && mysql_num_rows($query) == 1) {
47
+        if ($query && mysql_num_rows($query)==1) {
48 48
             $data = mysql_fetch_object($query);
49 49
         } else {
50 50
             die('Data modul tidak ditemukan');
@@ -85,10 +85,10 @@  discard block
 block discarded – undo
85 85
                  <select name="satuan" class="form-control">                
86 86
                     <?php
87 87
                       $query = mysql_query('SELECT * FROM satuan ORDER BY satuan');
88
-    if ($query && mysql_num_rows($query) > 0) {
88
+    if ($query && mysql_num_rows($query)>0) {
89 89
         while ($row = mysql_fetch_object($query)) {
90 90
             echo '<option value="'.$row->id_satuan.'"';
91
-            if ($row->id_satuan == @$data->id_satuan) {
91
+            if ($row->id_satuan==@$data->id_satuan) {
92 92
                 echo ' selected';
93 93
             }
94 94
             echo '>'.$row->satuan.'</option>';
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
           <?php if ($id) {
109 109
         ?>  
110 110
     
111
-            <?php if (@$data->aktif == 'Y') {
111
+            <?php if (@$data->aktif=='Y') {
112 112
             ?>
113 113
               
114 114
                 <div class="form-group">
Please login to merge, or discard this patch.
Switch Indentation   +46 added lines, -46 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  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'; ?>
6
+        include './../../config/koneksi.php'; ?>
7 7
 <!doctype html>
8 8
 <html>
9 9
 <head>
@@ -33,35 +33,35 @@  discard block
 block discarded – undo
33 33
 <body style='background-color:#fff;'>
34 34
 <?php
35 35
 
36
-$modul = $_GET['module'];
37
-    $title = $_GET['title'];
38
-    $business_type = $_SESSION['business_type'];
39
-    $role = $_SESSION['role'];
36
+    $modul = $_GET['module'];
37
+        $title = $_GET['title'];
38
+        $business_type = $_SESSION['business_type'];
39
+        $role = $_SESSION['role'];
40 40
 
41
-    $id_module = $_GET['id_module'];
41
+        $id_module = $_GET['id_module'];
42 42
 
43
-    $id = isset($_GET['id_obat']) ? intval($_GET['id_obat']) : false;
43
+        $id = isset($_GET['id_obat']) ? intval($_GET['id_obat']) : false;
44 44
 
45
-    if ($id) {
46
-        $query = mysql_query('SELECT * FROM obat WHERE id_obat = "'.$id.'"');
47
-        if ($query && mysql_num_rows($query) == 1) {
48
-            $data = mysql_fetch_object($query);
49
-        } else {
50
-            die('Data modul tidak ditemukan');
45
+        if ($id) {
46
+            $query = mysql_query('SELECT * FROM obat WHERE id_obat = "'.$id.'"');
47
+            if ($query && mysql_num_rows($query) == 1) {
48
+                $data = mysql_fetch_object($query);
49
+            } else {
50
+                die('Data modul tidak ditemukan');
51
+            }
51 52
         }
52
-    }
53 53
 
54
-    if ($_GET['igroup']) {
55
-        $group = $_GET['igroup'];
56
-    } else {
57
-        $group = $data->id_obat;
58
-    }
54
+        if ($_GET['igroup']) {
55
+            $group = $_GET['igroup'];
56
+        } else {
57
+            $group = $data->id_obat;
58
+        }
59 59
 
60
-    if ($_GET['imenu']) {
61
-        $imenu = $_GET['imenu'];
62
-    } else {
63
-        $imenu = $data->id_modul;
64
-    } ?>
60
+        if ($_GET['imenu']) {
61
+            $imenu = $_GET['imenu'];
62
+        } else {
63
+            $imenu = $data->id_modul;
64
+        } ?>
65 65
 
66 66
 
67 67
 <div class="ix_panel">
@@ -84,16 +84,16 @@  discard block
 block discarded – undo
84 84
               <div class="col-md-6 col-sm-6 col-xs-12" >
85 85
                  <select name="satuan" class="form-control">                
86 86
                     <?php
87
-                      $query = mysql_query('SELECT * FROM satuan ORDER BY satuan');
88
-    if ($query && mysql_num_rows($query) > 0) {
89
-        while ($row = mysql_fetch_object($query)) {
90
-            echo '<option value="'.$row->id_satuan.'"';
91
-            if ($row->id_satuan == @$data->id_satuan) {
92
-                echo ' selected';
87
+                          $query = mysql_query('SELECT * FROM satuan ORDER BY satuan');
88
+        if ($query && mysql_num_rows($query) > 0) {
89
+            while ($row = mysql_fetch_object($query)) {
90
+                echo '<option value="'.$row->id_satuan.'"';
91
+                if ($row->id_satuan == @$data->id_satuan) {
92
+                    echo ' selected';
93
+                }
94
+                echo '>'.$row->satuan.'</option>';
93 95
             }
94
-            echo '>'.$row->satuan.'</option>';
95
-        }
96
-    } ?>
96
+        } ?>
97 97
                     </select>
98 98
               </div>
99 99
 
@@ -106,10 +106,10 @@  discard block
 block discarded – undo
106 106
 
107 107
         
108 108
           <?php if ($id) {
109
-        ?>  
109
+            ?>  
110 110
     
111 111
             <?php if (@$data->aktif == 'Y') {
112
-            ?>
112
+                ?>
113 113
               
114 114
                 <div class="form-group">
115 115
 	               <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Aktif:</label>
@@ -119,8 +119,8 @@  discard block
 block discarded – undo
119 119
                   </div>
120 120
               </div>  
121 121
             <?php
122
-        } else {
123
-            ?>  
122
+            } else {
123
+                ?>  
124 124
               
125 125
                 <div class="form-group">
126 126
 	               <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Aktif:</label>
@@ -130,11 +130,11 @@  discard block
 block discarded – undo
130 130
                   </div>
131 131
               </div>  
132 132
              <?php
133
-        } ?>
134
-
133
+            } ?>
134
+    
135 135
         <?php
136
-    } else {
137
-        ?>  
136
+        } else {
137
+            ?>  
138 138
 
139 139
            
140 140
                 <div class="form-group">
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
               </div>  
147 147
 
148 148
         <?php
149
-    } ?>
149
+        } ?>
150 150
 
151 151
 
152 152
 
Please login to merge, or discard this patch.
modul/mod_obat/aksi_obat.php 2 patches
Spacing   +2 added lines, -2 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 == 'obat' and $act == 'hapus') {
20
+    if ($module=='obat' and $act=='hapus') {
21 21
         $id = $_GET['id'];
22 22
         $id_module = $_GET['id_module'];
23 23
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     }
35 35
 
36 36
     // Input group
37
-    elseif ($module == 'obat' and $act == 'input') {
37
+    elseif ($module=='obat' and $act=='input') {
38 38
         $id_module = $_POST['id_module'];
39 39
 
40 40
         if ($_POST['ID']) {
Please login to merge, or discard this patch.
Switch Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -1,29 +1,29 @@  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 == 'obat' and $act == 'hapus') {
21
-        $id = $_GET['id'];
22
-        $id_module = $_GET['id_module'];
19
+        // Hapus modul
20
+        if ($module == 'obat' and $act == 'hapus') {
21
+            $id = $_GET['id'];
22
+            $id_module = $_GET['id_module'];
23 23
 
24
-        mysql_query('DELETE FROM '.$module.' WHERE id_'.$module." = $id");
24
+            mysql_query('DELETE FROM '.$module.' WHERE id_'.$module." = $id");
25 25
 
26
-        //header('location:../../main.php?module='.$module.'&id_module='.$id_module);?>
26
+            //header('location:../../main.php?module='.$module.'&id_module='.$id_module);?>
27 27
    
28 28
   <script language="javascript">
29 29
      window.parent.location.href = "<?php echo"./../../main.php?module=$module&id_module=$id_module"; ?>";  
@@ -31,22 +31,22 @@  discard block
 block discarded – undo
31 31
    </script>
32 32
   
33 33
   <?php
34
-    }
34
+        }
35 35
 
36
-    // Input group
37
-    elseif ($module == 'obat' and $act == 'input') {
38
-        $id_module = $_POST['id_module'];
36
+        // Input group
37
+        elseif ($module == 'obat' and $act == 'input') {
38
+            $id_module = $_POST['id_module'];
39 39
 
40
-        if ($_POST['ID']) {
41
-            mysql_query("UPDATE obat SET obat   = '$_POST[obat]'
40
+            if ($_POST['ID']) {
41
+                mysql_query("UPDATE obat SET obat   = '$_POST[obat]'
42 42
                     ,id_satuan   = '$_POST[satuan]'
43 43
                     ,jumlah   = '$_POST[jumlah]'    
44 44
                     ,upddt   = '$datetime' 
45 45
                     ,updby   = '$userid' 
46 46
                     ,aktif     = '$_POST[aktif]'  
47 47
                  WHERE id_obat    = '$_POST[ID]'");
48
-        } else {
49
-            mysql_query("INSERT INTO obat(obat
48
+            } else {
49
+                mysql_query("INSERT INTO obat(obat
50 50
                    ,id_satuan
51 51
                    ,jumlah
52 52
                    ,crtdt
@@ -62,9 +62,9 @@  discard block
 block discarded – undo
62 62
                   ,'$datetime'
63 63
                   ,'$userid'
64 64
                     ,'$_POST[aktif]')");
65
-        }
65
+            }
66 66
 
67
-        //header('location:../../main.php?module='.$module.'&id_module='.$id_module);?>
67
+            //header('location:../../main.php?module='.$module.'&id_module='.$id_module);?>
68 68
    
69 69
   <script language="javascript">
70 70
      window.parent.location.href = "<?php echo"./../../main.php?module=$module&id_module=$id_module"; ?>";  
@@ -72,6 +72,6 @@  discard block
 block discarded – undo
72 72
    </script>
73 73
   
74 74
   <?php
75
-    }
75
+        }
76 76
 }
77
-?>
77
+    ?>
Please login to merge, or discard this patch.
modul/mod_report_rekap_harian/eprint_report_rekap_harian.php 3 patches
Indentation   +109 added lines, -109 removed lines patch added patch discarded remove patch
@@ -139,46 +139,46 @@  discard block
 block discarded – undo
139 139
 
140 140
       <?php
141 141
 
142
-       $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
142
+        $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
143 143
 
144
-       $g = mysql_fetch_array($gtampil);
144
+        $g = mysql_fetch_array($gtampil);
145 145
 
146
-      if ($g['pict']) {
147
-          $pict = $g['pict'];
148
-      } else {
149
-          $pict = '';
150
-      }
146
+        if ($g['pict']) {
147
+            $pict = $g['pict'];
148
+        } else {
149
+            $pict = '';
150
+        }
151 151
 
152
-      $company = ucwords($g['company']);
152
+        $company = ucwords($g['company']);
153 153
 
154
-      $jsql = mysql_query("SELECT * FROM jenis_transaksi
154
+        $jsql = mysql_query("SELECT * FROM jenis_transaksi
155 155
                             WHERE id_jenis_transaksi = '$jenis_transaksi' 
156 156
 
157 157
                            ");
158 158
 
159
-      $j = mysql_fetch_array($jsql);
159
+        $j = mysql_fetch_array($jsql);
160 160
 
161
-      $jenis_transaksi = $j['jenis_transaksi'];
161
+        $jenis_transaksi = $j['jenis_transaksi'];
162 162
 
163
-      $sql = mysql_query("SELECT a.*,b.shift FROM kasir  a LEFT JOIN shift b 
163
+        $sql = mysql_query("SELECT a.*,b.shift FROM kasir  a LEFT JOIN shift b 
164 164
                             ON a.id_shift = b.id_shift
165 165
                             WHERE a.id_kasir = '$k_ID' 
166 166
 
167 167
                            ");
168 168
 
169
-      $r = mysql_fetch_array($sql);
169
+        $r = mysql_fetch_array($sql);
170 170
 
171
-      $penjualan_barang = $r['id_kasir'];
171
+        $penjualan_barang = $r['id_kasir'];
172 172
 
173
-      $shift = $r['shift'];
173
+        $shift = $r['shift'];
174 174
 
175
-      $petugas = $r['petugas'];
175
+        $petugas = $r['petugas'];
176 176
 
177
-      $status = $r['status'];
177
+        $status = $r['status'];
178 178
 
179
-      $tanggal = date('d/m/Y', strtotime($r['tanggal']));
179
+        $tanggal = date('d/m/Y', strtotime($r['tanggal']));
180 180
 
181
-      ?>
181
+        ?>
182 182
 
183 183
       <table width="100%">
184 184
       <tr>
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
                     echo "<th colspan='2'>".$h['penjamin'].'</th>';
213 213
                 }
214 214
 
215
-               ?> 	
215
+                ?> 	
216 216
 
217 217
                <th colspan ="4" >UMUM</th>  
218 218
                <th rowspan="2" >PIC</th>  
@@ -227,11 +227,11 @@  discard block
 block discarded – undo
227 227
             <tr>
228 228
 
229 229
                <?php 
230
-                   for ($j = 1; $j <= $hjml; $j++) {
231
-                       echo '<th>JML</th>';
232
-                       echo '<th>RUPIAH</th>';
233
-                   }
234
-               ?>	
230
+                    for ($j = 1; $j <= $hjml; $j++) {
231
+                        echo '<th>JML</th>';
232
+                        echo '<th>RUPIAH</th>';
233
+                    }
234
+                ?>	
235 235
 
236 236
 
237 237
                <th>JML</th>  
@@ -253,18 +253,18 @@  discard block
 block discarded – undo
253 253
       	<tbody>
254 254
 
255 255
       	  <?php for ($i = 1; $i <= 31; $i++) {
256
-                   echo'<tr>';
256
+                    echo'<tr>';
257 257
 
258
-                   echo"<td style='text-align:center;'>$i</td>";
258
+                    echo"<td style='text-align:center;'>$i</td>";
259 259
 
260
-                   if (strlen($i) == '1') {
261
-                       $tgl = $prd.'-0'.$i;
262
-                   } else {
263
-                       $tgl = $prd.'-'.$i;
264
-                   }
260
+                    if (strlen($i) == '1') {
261
+                        $tgl = $prd.'-0'.$i;
262
+                    } else {
263
+                        $tgl = $prd.'-'.$i;
264
+                    }
265 265
 
266
-                   //transaksi asuransi
267
-                   $dtampil1 = mysql_query("SELECT a.id_penjamin
266
+                    //transaksi asuransi
267
+                    $dtampil1 = mysql_query("SELECT a.id_penjamin
268 268
 										,	COUNT(c.jumlah) as jml 
269 269
 										,	IFNULL(SUM(c.jumlah),0) as rp  
270 270
 									FROM penjamin a LEFT JOIN kasir b
@@ -280,13 +280,13 @@  discard block
 block discarded – undo
280 280
 									GROUP BY a.id_penjamin
281 281
 									ORDER BY a.id_penjamin");
282 282
 
283
-                   while ($d1 = mysql_fetch_array($dtampil1)) {
284
-                       echo '<th>'.$d1['jml'].'</th>';
285
-                       echo "<th style='text-align:right;'>".number_format($d1['rp'], 0, '.', ',').'</th>';
286
-                   }
283
+                    while ($d1 = mysql_fetch_array($dtampil1)) {
284
+                        echo '<th>'.$d1['jml'].'</th>';
285
+                        echo "<th style='text-align:right;'>".number_format($d1['rp'], 0, '.', ',').'</th>';
286
+                    }
287 287
 
288
-                   //transaksi umum tunai
289
-                   $dtampil2 = mysql_query("SELECT COUNT(c.jumlah) as jml 
288
+                    //transaksi umum tunai
289
+                    $dtampil2 = mysql_query("SELECT COUNT(c.jumlah) as jml 
290 290
 										,	IFNULL(SUM(c.jumlah),0) as rp  
291 291
 									FROM kasir b LEFT JOIN kasir_detail c
292 292
 									ON  b.id_kasir = c.id_kasir
@@ -296,13 +296,13 @@  discard block
 block discarded – undo
296 296
 									WHERE b.tanggal = '$tgl'
297 297
 									AND b.status != '4'");
298 298
 
299
-                   $d2 = mysql_fetch_array($dtampil2);
299
+                    $d2 = mysql_fetch_array($dtampil2);
300 300
 
301
-                   echo '<th>'.$d2['jml'].'</th>';
302
-                   echo "<th style='text-align:right;'>".number_format($d2['rp'], 0, '.', ',').'</th>';
301
+                    echo '<th>'.$d2['jml'].'</th>';
302
+                    echo "<th style='text-align:right;'>".number_format($d2['rp'], 0, '.', ',').'</th>';
303 303
 
304
-                   //transaksi umum tunai
305
-                   $dtampil3 = mysql_query("SELECT COUNT(c.jumlah) as jml 
304
+                    //transaksi umum tunai
305
+                    $dtampil3 = mysql_query("SELECT COUNT(c.jumlah) as jml 
306 306
 										,	IFNULL(SUM(c.jumlah),0) as rp  
307 307
 									FROM kasir b LEFT JOIN kasir_detail c
308 308
 									ON  b.id_kasir = c.id_kasir
@@ -312,21 +312,21 @@  discard block
 block discarded – undo
312 312
 									WHERE b.tanggal = '$tgl'
313 313
 									AND b.status != '4'");
314 314
 
315
-                   $d3 = mysql_fetch_array($dtampil3);
315
+                    $d3 = mysql_fetch_array($dtampil3);
316 316
 
317
-                   echo '<th>'.$d3['jml'].'</th>';
318
-                   echo "<th style='text-align:right;'>".number_format($d3['rp'], 0, '.', ',').'</th>';
317
+                    echo '<th>'.$d3['jml'].'</th>';
318
+                    echo "<th style='text-align:right;'>".number_format($d3['rp'], 0, '.', ',').'</th>';
319 319
 
320
-                   echo '<th></th>';
321
-                   echo '<th></th>';
322
-                   echo '<th></th>';
320
+                    echo '<th></th>';
321
+                    echo '<th></th>';
322
+                    echo '<th></th>';
323 323
 
324
-                   echo '<th></th>';
325
-                   echo '<th></th>';
326
-                   echo '<th></th>';
324
+                    echo '<th></th>';
325
+                    echo '<th></th>';
326
+                    echo '<th></th>';
327 327
 
328
-                   //total jml
329
-                   $dtampil4 = mysql_query("SELECT COUNT(c.jumlah) as jml 
328
+                    //total jml
329
+                    $dtampil4 = mysql_query("SELECT COUNT(c.jumlah) as jml 
330 330
 									FROM kasir b LEFT JOIN kasir_detail c
331 331
 									ON  b.id_kasir = c.id_kasir
332 332
 									AND c.status != '4'
@@ -334,12 +334,12 @@  discard block
 block discarded – undo
334 334
 									WHERE b.tanggal = '$tgl'
335 335
 									AND b.status != '4'");
336 336
 
337
-                   $d4 = mysql_fetch_array($dtampil4);
337
+                    $d4 = mysql_fetch_array($dtampil4);
338 338
 
339
-                   echo '<th>'.$d4['jml'].'</th>';
339
+                    echo '<th>'.$d4['jml'].'</th>';
340 340
 
341
-                   //total pembayaran
342
-                   $dtampil5 = mysql_query("SELECT a.groups
341
+                    //total pembayaran
342
+                    $dtampil5 = mysql_query("SELECT a.groups
343 343
 										,	IFNULL(SUM(c.jumlah),0) as rp  
344 344
 									FROM jenis_pembayaran a LEFT JOIN kasir b
345 345
 									ON  b.tanggal = '$tgl'
@@ -352,23 +352,23 @@  discard block
 block discarded – undo
352 352
 									GROUP BY a.groups
353 353
 									ORDER BY a.groups");
354 354
 
355
-                   while ($d5 = mysql_fetch_array($dtampil5)) {
356
-                       echo "<th style='text-align:right;'>".number_format($d5['rp'], 0, '.', ',').'</th>';
357
-                   }
355
+                    while ($d5 = mysql_fetch_array($dtampil5)) {
356
+                        echo "<th style='text-align:right;'>".number_format($d5['rp'], 0, '.', ',').'</th>';
357
+                    }
358 358
 
359
-                   echo'</tr>';
360
-               } ?>
359
+                    echo'</tr>';
360
+                } ?>
361 361
 
362 362
       	</tbody>
363 363
 
364 364
       	<?php 
365 365
 
366
-               echo'<tr>';
366
+                echo'<tr>';
367 367
 
368
-             echo"<th style='text-align:center;'>TOTAL</th>";
368
+                echo"<th style='text-align:center;'>TOTAL</th>";
369 369
 
370
-             //transaksi asuransi
371
-             $dtampil1 = mysql_query("SELECT a.id_penjamin
370
+                //transaksi asuransi
371
+                $dtampil1 = mysql_query("SELECT a.id_penjamin
372 372
 										,	COUNT(c.jumlah) as jml 
373 373
 										,	IFNULL(SUM(c.jumlah),0) as rp  
374 374
 									FROM penjamin a LEFT JOIN kasir b
@@ -384,13 +384,13 @@  discard block
 block discarded – undo
384 384
 									GROUP BY a.id_penjamin
385 385
 									ORDER BY a.id_penjamin");
386 386
 
387
-             while ($d1 = mysql_fetch_array($dtampil1)) {
388
-                 echo '<th>'.$d1['jml'].'</th>';
389
-                 echo "<th style='text-align:right;'>".number_format($d1['rp'], 0, '.', ',').'</th>';
390
-             }
387
+                while ($d1 = mysql_fetch_array($dtampil1)) {
388
+                    echo '<th>'.$d1['jml'].'</th>';
389
+                    echo "<th style='text-align:right;'>".number_format($d1['rp'], 0, '.', ',').'</th>';
390
+                }
391 391
 
392
-              //transaksi umum tunai
393
-              $dtampil2 = mysql_query("SELECT COUNT(c.jumlah) as jml 
392
+                //transaksi umum tunai
393
+                $dtampil2 = mysql_query("SELECT COUNT(c.jumlah) as jml 
394 394
 										,	IFNULL(SUM(c.jumlah),0) as rp  
395 395
 									FROM kasir b LEFT JOIN kasir_detail c
396 396
 									ON  b.id_kasir = c.id_kasir
@@ -400,13 +400,13 @@  discard block
 block discarded – undo
400 400
 									AND  b.tanggal LIKE '$prd%'
401 401
 									AND b.status != '4'");
402 402
 
403
-             $d2 = mysql_fetch_array($dtampil2);
403
+                $d2 = mysql_fetch_array($dtampil2);
404 404
 
405
-             echo '<th>'.$d2['jml'].'</th>';
406
-             echo "<th style='text-align:right;'>".number_format($d2['rp'], 0, '.', ',').'</th>';
405
+                echo '<th>'.$d2['jml'].'</th>';
406
+                echo "<th style='text-align:right;'>".number_format($d2['rp'], 0, '.', ',').'</th>';
407 407
 
408
-              //transaksi umum tunai
409
-              $dtampil3 = mysql_query("SELECT COUNT(c.jumlah) as jml 
408
+                //transaksi umum tunai
409
+                $dtampil3 = mysql_query("SELECT COUNT(c.jumlah) as jml 
410 410
 										,	IFNULL(SUM(c.jumlah),0) as rp  
411 411
 									FROM kasir b LEFT JOIN kasir_detail c
412 412
 									ON  b.id_kasir = c.id_kasir
@@ -416,33 +416,33 @@  discard block
 block discarded – undo
416 416
 									WHERE b.tanggal LIKE '$prd%'
417 417
 									AND b.status != '4'");
418 418
 
419
-             $d3 = mysql_fetch_array($dtampil3);
419
+                $d3 = mysql_fetch_array($dtampil3);
420 420
 
421
-             echo '<th>'.$d3['jml'].'</th>';
422
-             echo "<th style='text-align:right;'>".number_format($d3['rp'], 0, '.', ',').'</th>';
421
+                echo '<th>'.$d3['jml'].'</th>';
422
+                echo "<th style='text-align:right;'>".number_format($d3['rp'], 0, '.', ',').'</th>';
423 423
 
424
-             echo '<th></th>';
425
-             echo '<th></th>';
426
-             echo '<th></th>';
424
+                echo '<th></th>';
425
+                echo '<th></th>';
426
+                echo '<th></th>';
427 427
 
428
-             echo '<th></th>';
429
-             echo '<th></th>';
430
-             echo '<th></th>';
428
+                echo '<th></th>';
429
+                echo '<th></th>';
430
+                echo '<th></th>';
431 431
 
432
-             //total jml
433
-              $dtampil4 = mysql_query("SELECT COUNT(c.jumlah) as jml 
432
+                //total jml
433
+                $dtampil4 = mysql_query("SELECT COUNT(c.jumlah) as jml 
434 434
 									FROM kasir b LEFT JOIN kasir_detail c
435 435
 									ON  b.id_kasir = c.id_kasir
436 436
 									AND c.status != '4'
437 437
 									WHERE b.tanggal LIKE '$prd%'
438 438
 									AND b.status != '4'");
439 439
 
440
-             $d4 = mysql_fetch_array($dtampil4);
440
+                $d4 = mysql_fetch_array($dtampil4);
441 441
 
442
-             echo '<th>'.$d4['jml'].'</th>';
442
+                echo '<th>'.$d4['jml'].'</th>';
443 443
 
444
-             //total pembayaran
445
-             $dtampil5 = mysql_query("SELECT a.groups
444
+                //total pembayaran
445
+                $dtampil5 = mysql_query("SELECT a.groups
446 446
 										,	IFNULL(SUM(c.jumlah),0) as rp  
447 447
 									FROM jenis_pembayaran a LEFT JOIN kasir b
448 448
 									ON  b.tanggal LIKE '$prd%'
@@ -455,18 +455,18 @@  discard block
 block discarded – undo
455 455
 									GROUP BY a.groups
456 456
 									ORDER BY a.groups");
457 457
 
458
-             while ($d5 = mysql_fetch_array($dtampil5)) {
459
-                 echo "<th style='text-align:right;'>".number_format($d5['rp'], 0, '.', ',').'</th>';
460
-             }
458
+                while ($d5 = mysql_fetch_array($dtampil5)) {
459
+                    echo "<th style='text-align:right;'>".number_format($d5['rp'], 0, '.', ',').'</th>';
460
+                }
461 461
 
462
-             echo'</tr>';
462
+                echo'</tr>';
463 463
 
464
-             echo'<tr>';
464
+                echo'<tr>';
465 465
 
466
-             echo"<th style='text-align:center;' colspan='23'>TOTAL REVENUE</th>";
466
+                echo"<th style='text-align:center;' colspan='23'>TOTAL REVENUE</th>";
467 467
 
468
-             //total jml
469
-              $dtampil4 = mysql_query("SELECT COUNT(c.jumlah) as jml 
468
+                //total jml
469
+                $dtampil4 = mysql_query("SELECT COUNT(c.jumlah) as jml 
470 470
 									FROM kasir b LEFT JOIN kasir_detail c
471 471
 									ON  b.id_kasir = c.id_kasir
472 472
 									AND c.status != '4'
@@ -474,12 +474,12 @@  discard block
 block discarded – undo
474 474
 									WHERE b.tanggal LIKE '$prd%'
475 475
 									AND b.status != '4'");
476 476
 
477
-             $d4 = mysql_fetch_array($dtampil4);
477
+                $d4 = mysql_fetch_array($dtampil4);
478 478
 
479
-             echo '<th>'.$d4['jml'].'</th>';
479
+                echo '<th>'.$d4['jml'].'</th>';
480 480
 
481
-             //total pembayaran
482
-             $dtampil5 = mysql_query("SELECT IFNULL(SUM(c.jumlah),0) as rp  
481
+                //total pembayaran
482
+                $dtampil5 = mysql_query("SELECT IFNULL(SUM(c.jumlah),0) as rp  
483 483
 									FROM  kasir b LEFT JOIN kasir_detail c
484 484
 									ON  b.id_kasir = c.id_kasir
485 485
 									AND c.status != '4'
@@ -487,9 +487,9 @@  discard block
 block discarded – undo
487 487
 									WHERE b.tanggal LIKE '$prd%'
488 488
 									AND b.status != '4'");
489 489
 
490
-             $d5 = mysql_fetch_array($dtampil5);
490
+                $d5 = mysql_fetch_array($dtampil5);
491 491
 
492
-                  echo "<th style='text-align:right;' colspan='2'>".number_format($d5['rp'], 0, '.', ',').'</th>';
492
+                    echo "<th style='text-align:right;' colspan='2'>".number_format($d5['rp'], 0, '.', ',').'</th>';
493 493
 
494 494
             ?>
495 495
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -323,7 +323,7 @@  discard block
 block discarded – undo
323 323
             <tr>
324 324
 
325 325
                <?php 
326
-                   for ($j = 1; $j <= $hjml; $j++) {
326
+                   for ($j = 1; $j<=$hjml; $j++) {
327 327
                        echo '<th>JML</th>';
328 328
                        echo '<th>RUPIAH</th>';
329 329
                    }
@@ -348,12 +348,12 @@  discard block
 block discarded – undo
348 348
 
349 349
       	<tbody>
350 350
 
351
-      	  <?php for ($i = 1; $i <= 31; $i++) {
351
+      	  <?php for ($i = 1; $i<=31; $i++) {
352 352
                    echo'<tr>';
353 353
 
354 354
                    echo"<td style='text-align:center;'>$i</td>";
355 355
 
356
-                   if (strlen($i) == '1') {
356
+                   if (strlen($i)=='1') {
357 357
                        $tgl = $prd.'-0'.$i;
358 358
                    } else {
359 359
                        $tgl = $prd.'-'.$i;
@@ -602,7 +602,7 @@  discard block
 block discarded – undo
602 602
 
603 603
     $month = date('m', strtotime($iprd)) * 1;
604 604
 
605
-    if ($month == '1') {
605
+    if ($month=='1') {
606 606
         $imonth = 12;
607 607
     } else {
608 608
         $imonth = $month - 1;
Please login to merge, or discard this patch.
Switch Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@  discard block
 block discarded – undo
1
-<?php
2
-include './../../config/koneksi.php';
3
-//include "./../../config/fungsi_indobulan.php";
1
+    <?php
2
+    include './../../config/koneksi.php';
3
+    //include "./../../config/fungsi_indobulan.php";
4 4
 
5
-function getBulan1($bln1)
6
-{
7
-    switch ($bln1) {
5
+    function getBulan1($bln1)
6
+    {
7
+        switch ($bln1) {
8 8
 
9 9
                     case 1:
10 10
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
                         break;
80 80
 
81
-                }
81
+                    }
82 82
 }
83 83
 
84 84
 $report_id = $_GET[report_id];
Please login to merge, or discard this patch.
main.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
     $tampil = mysql_query("SELECT orientation FROM modul WHERE link='".$mod."'");
195 195
     $r = mysql_fetch_array($tampil);
196 196
 
197
-    if ($r[orientation] == 'P') {
197
+    if ($r[orientation]=='P') {
198 198
         ?>
199 199
         
200 200
 <SCRIPT TYPE="text/javascript">
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
 </SCRIPT>
211 211
 
212 212
 <?php
213
-    } elseif ($r[orientation] == 'A') {
213
+    } elseif ($r[orientation]=='A') {
214 214
         ?>
215 215
 
216 216
 <SCRIPT TYPE="text/javascript">
Please login to merge, or discard this patch.
cek_login.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 $r = mysql_fetch_array($login);
23 23
 
24 24
 // Apabila userid dan password ditemukan
25
-if ($find > 0) {
25
+if ($find>0) {
26 26
     session_start();
27 27
     //session_register("userid");
28 28
     //  session_register("username");
Please login to merge, or discard this patch.
config/fungsi_combobox.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 {
4 4
     echo "<select name=$var>";
5 5
     echo "<option value=0 selected>$default</option>";
6
-    for ($i = $awal; $i <= $akhir; $i++) {
6
+    for ($i = $awal; $i<=$akhir; $i++) {
7 7
         echo "<option value=$i>$i</option>";
8 8
     }
9 9
     echo '</select> ';
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
     include '../config/library.php';
15 15
     echo "<select name=$var>";
16 16
     echo "<option value=0 selected>$default</option>";
17
-    for ($bln = $awal; $bln <= $akhir; $bln++) {
17
+    for ($bln = $awal; $bln<=$akhir; $bln++) {
18 18
         echo "<option value=$bln>$nama_bln[$bln]</option>";
19 19
     }
20 20
     echo '</select> ';
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
23 23
 function combotgl2($awal, $akhir, $var, $terpilih)
24 24
 {
25 25
     echo "<select name=$var class='tselect_tgl'>";
26
-    for ($i = $awal; $i <= $akhir; $i++) {
27
-        if ($i == $terpilih) {
26
+    for ($i = $awal; $i<=$akhir; $i++) {
27
+        if ($i==$terpilih) {
28 28
             echo "<option value=$i selected>$i</option>";
29 29
         } else {
30 30
             echo "<option value=$i>$i</option>";
@@ -37,8 +37,8 @@  discard block
 block discarded – undo
37 37
 {
38 38
     include '../config/library.php';
39 39
     echo "<select name=$var  class='tselect_bln'>";
40
-    for ($bln = $awal; $bln <= $akhir; $bln++) {
41
-        if ($bln == $terpilih) {
40
+    for ($bln = $awal; $bln<=$akhir; $bln++) {
41
+        if ($bln==$terpilih) {
42 42
             echo "<option value=$bln selected>$nama_bln[$bln]</option>";
43 43
         } else {
44 44
             echo "<option value=$bln>$nama_bln[$bln]</option>";
@@ -50,8 +50,8 @@  discard block
 block discarded – undo
50 50
 function combothn($awal, $akhir, $var, $terpilih)
51 51
 {
52 52
     echo "<select name=$var class='tselect_thn'>";
53
-    for ($i = $awal; $i <= $akhir; $i++) {
54
-        if ($i == $terpilih) {
53
+    for ($i = $awal; $i<=$akhir; $i++) {
54
+        if ($i==$terpilih) {
55 55
             echo "<option value=$i selected>$i</option>";
56 56
         } else {
57 57
             echo "<option value=$i>$i</option>";
Please login to merge, or discard this patch.
config/functions.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -84,28 +84,28 @@
 block discarded – undo
84 84
     }
85 85
 
86 86
     switch ($size[2]) {
87
-       case 1:       //GIF
87
+        case 1:       //GIF
88 88
            $src = imagecreatefromgif($srcFile);
89
-           break;
90
-       case 2:       //JPEG
89
+            break;
90
+        case 2:       //JPEG
91 91
            $src = imagecreatefromjpeg($srcFile);
92
-           break;
93
-       case 3:       //PNG
92
+            break;
93
+        case 3:       //PNG
94 94
            $src = imagecreatefrompng($srcFile);
95
-           break;
96
-       default:
95
+            break;
96
+        default:
97 97
            return false;
98
-           break;
98
+            break;
99 99
     }
100 100
 
101 101
     imagecopyresampled($dest, $src, 0, 0, 0, 0, $w, $h, $size[0], $size[1]);
102 102
 
103 103
     switch ($size[2]) {
104
-       case 1:
104
+        case 1:
105 105
        case 2:
106 106
            imagejpeg($dest, $destFile, $quality);
107
-           break;
108
-       case 3:
107
+            break;
108
+        case 3:
109 109
            imagepng($dest, $destFile);
110 110
     }
111 111
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
     $thumbnailPath = '';
14 14
 
15 15
     // if a file is given
16
-    if (trim($image['tmp_name']) != '') {
16
+    if (trim($image['tmp_name'])!='') {
17 17
         $ext = substr(strrchr($image['name'], '.'), 1);
18 18
 
19 19
         // generate a random new file name to avoid name conflict
@@ -72,11 +72,11 @@  discard block
 block discarded – undo
72 72
     $tmpDest = pathinfo(strtolower($destFile));
73 73
     $size = getimagesize($srcFile);
74 74
 
75
-    if ($tmpDest['extension'] == 'gif' || $tmpDest['extension'] == 'jpg') {
75
+    if ($tmpDest['extension']=='gif' || $tmpDest['extension']=='jpg') {
76 76
         $destFile = substr_replace($destFile, 'jpg', -3);
77 77
         $dest = imagecreatetruecolor($w, $h);
78 78
     //imageantialias($dest, TRUE);
79
-    } elseif ($tmpDest['extension'] == 'png') {
79
+    } elseif ($tmpDest['extension']=='png') {
80 80
         $dest = imagecreatetruecolor($w, $h);
81 81
     //imageantialias($dest, TRUE);
82 82
     } else {
Please login to merge, or discard this patch.