Passed
Pull Request — master (#7)
by Saepul
06:59 queued 02:20
created
modul/mod_report_rekap_harian/eprint_report_rekap_harian.php 1 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.
modul/mod_report_pengeluaran_obat/report_pengeluaran_obat.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   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
   }
36 36
 
37
-  xmlhttp.open("GET","<?php echo"./modul/mod_$module/getlokasi.php?q=";?>"+str,true);
37
+  xmlhttp.open("GET","<?php echo"./modul/mod_$module/getlokasi.php?q="; ?>"+str,true);
38 38
 
39 39
   xmlhttp.send();
40 40
 
@@ -54,28 +54,28 @@  discard block
 block discarded – undo
54 54
 
55 55
 
56 56
 <?php
57
-switch($_GET[act]){
57
+switch ($_GET[act]) {
58 58
 
59 59
 default:  
60 60
 
61 61
 $fdate   = date("Y-m-01");
62 62
 $ldate   = date("Y-m-d");
63 63
 
64
-$prd   = date("Y-m");
64
+$prd = date("Y-m");
65 65
 
66
-$userid   = $_SESSION['userid'];  
66
+$userid = $_SESSION['userid'];  
67 67
   ?>
68 68
 
69 69
  <div class="">
70 70
                    
71 71
         <div class="row">
72 72
 
73
-          <form name="myform" id="myform" method="get" action="<? echo"modul/mod_$module/print_$module.php";?>"  onSubmit="popup<?=$module?>(this, 'join')"> 
73
+          <form name="myform" id="myform" method="get" action="<? echo"modul/mod_$module/print_$module.php"; ?>"  onSubmit="popup<?=$module?>(this, 'join')"> 
74 74
   
75 75
                 <div class="col-md-12 col-sm-12 col-xs-12">
76 76
                     <div class="x_panel">
77 77
                         <div class="x_title">
78
-                               <h2><?=$nmmodule;?></h2>
78
+                               <h2><?=$nmmodule; ?></h2>
79 79
                                <div class='pull-right'>
80 80
                                 <Button type="submit" class="btn btn-primary">
81 81
                                  <span class="glyphicon glyphicon-print" style='color:#fff;'></span>
@@ -116,8 +116,8 @@  discard block
 block discarded – undo
116 116
              <?php
117 117
 
118 118
              $module = '?module='.$_GET['module'];          
119
-             $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
120
-             $r=mysql_fetch_array($tampil);
119
+             $tampil = mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
120
+             $r = mysql_fetch_array($tampil);
121 121
 
122 122
              echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
123 123
              echo"<input type='hidden' name='module' value=".$_GET[module].">";
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
             </form>    
126 126
                    
127 127
                 </div>
128
-                <?for($i = 0; $i <= 20; $i++)  { 
128
+                <?for ($i = 0; $i<=20; $i++) { 
129 129
                     ?>
130 130
                     <br />
131 131
                     <?php
Please login to merge, or discard this patch.
modul/mod_report_list_pasien/report_list_pasien.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 $fdate   = date("Y-m-d");
14 14
 $ldate   = date("Y-m-d");
15 15
 
16
-  ?>
16
+    ?>
17 17
 
18 18
  <div class="">
19 19
                    
@@ -63,12 +63,12 @@  discard block
 block discarded – undo
63 63
 
64 64
              <?php
65 65
 
66
-             $module = '?module='.$_GET['module'];          
67
-             $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
68
-             $r=mysql_fetch_array($tampil);
66
+                $module = '?module='.$_GET['module'];          
67
+                $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
68
+                $r=mysql_fetch_array($tampil);
69 69
 
70
-             echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
71
-             echo"<input type='hidden' name='module' value=".$_GET[module].">";
70
+                echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
71
+                echo"<input type='hidden' name='module' value=".$_GET[module].">";
72 72
             ?>
73 73
             </form>    
74 74
                    
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
      }
7 7
    </script>  
8 8
 <?php
9
-switch($_GET[act]){
9
+switch ($_GET[act]) {
10 10
 
11 11
 default:  
12 12
 
@@ -19,12 +19,12 @@  discard block
 block discarded – undo
19 19
                    
20 20
         <div class="row">
21 21
 
22
-          <form name="myform" id="myform" method="get" action="<? echo"modul/mod_$module/print_$module.php";?>"  onSubmit="popup<?=$module?>(this, 'join')"> 
22
+          <form name="myform" id="myform" method="get" action="<? echo"modul/mod_$module/print_$module.php"; ?>"  onSubmit="popup<?=$module?>(this, 'join')"> 
23 23
   
24 24
                 <div class="col-md-12 col-sm-12 col-xs-12">
25 25
                     <div class="x_panel">
26 26
                         <div class="x_title">
27
-                               <h2><?=$nmmodule;?></h2>
27
+                               <h2><?=$nmmodule; ?></h2>
28 28
                                <div class='pull-right'>
29 29
                                 <Button type="submit" class="btn btn-primary">
30 30
                                  <span class="glyphicon glyphicon-print" style='color:#fff;'></span>
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
                      <select name="tipe" class="form-control">
44 44
                      <option value='%'>Semua</option>
45 45
 
46
-                     <?php for ($x = 'A'; $x <= 'Z'; $x++) { ?>
47
-                        <option value= '<?=$x;?>'><?=$x;?></option>
46
+                     <?php for ($x = 'A'; $x<='Z'; $x++) { ?>
47
+                        <option value= '<?=$x; ?>'><?=$x; ?></option>
48 48
                      <? } ?>
49 49
 
50 50
                      </select>   
@@ -64,8 +64,8 @@  discard block
 block discarded – undo
64 64
              <?php
65 65
 
66 66
              $module = '?module='.$_GET['module'];          
67
-             $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
68
-             $r=mysql_fetch_array($tampil);
67
+             $tampil = mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
68
+             $r = mysql_fetch_array($tampil);
69 69
 
70 70
              echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
71 71
              echo"<input type='hidden' name='module' value=".$_GET[module].">";
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
             </form>    
74 74
                    
75 75
                 </div>
76
-                <?php for($i = 0; $i <= 20; $i++)  { 
76
+                <?php for ($i = 0; $i<=20; $i++) { 
77 77
                     ?>
78 78
                     <br />
79 79
                     <?php
Please login to merge, or discard this patch.
modul/mod_rujukan_pasien/rujukan_pasien.php 2 patches
Switch Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 switch ($_GET[act]) {
3 3
 
4
-default:
5
-  ?>
4
+    default:
5
+      ?>
6 6
 
7 7
  <div class="">
8 8
                    
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
                             
47 47
                          <?php
48 48
 
49
-            $tampil = mysql_query("SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori    
49
+                $tampil = mysql_query("SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori    
50 50
                                     ,e.rujukan as rujukan_rs
51 51
                                     ,f.rujukan as rujukan_lab                              
52 52
                                 FROM kunjungan_berobat a left join pasien b 
@@ -62,31 +62,31 @@  discard block
 block discarded – undo
62 62
                                  WHERE a.rujukan = 'Y'                    
63 63
                                  ORDER BY a.tanggal,a.id_poli,a.no_urut ASC");
64 64
 
65
-            $no = 1;
65
+                $no = 1;
66 66
 
67
-            while ($r = mysql_fetch_array($tampil)) {
68
-                $tgl = date('d/m/Y', strtotime($r[tanggal]));
69
-                $tgl_lahir = date('d/m/Y', strtotime($r[tgl_lahir]));
67
+                while ($r = mysql_fetch_array($tampil)) {
68
+                    $tgl = date('d/m/Y', strtotime($r[tanggal]));
69
+                    $tgl_lahir = date('d/m/Y', strtotime($r[tgl_lahir]));
70 70
 
71
-                echo'<tr>';
72
-                echo"<td>$tgl</td>";
73
-                echo"<td>$r[poli]</td>";
74
-                echo"<td>$r[no_urut]</td>";
75
-                echo"<td>$r[nama]</td>";
76
-                echo"<td>$r[kategori]</td>";
77
-                echo"<td>$r[rujukan_rs]</td>";
78
-                echo"<td>$r[rujukan_lab]</td>";
79
-                echo" <td  style='text-align:center;'>";
71
+                    echo'<tr>';
72
+                    echo"<td>$tgl</td>";
73
+                    echo"<td>$r[poli]</td>";
74
+                    echo"<td>$r[no_urut]</td>";
75
+                    echo"<td>$r[nama]</td>";
76
+                    echo"<td>$r[kategori]</td>";
77
+                    echo"<td>$r[rujukan_rs]</td>";
78
+                    echo"<td>$r[rujukan_lab]</td>";
79
+                    echo" <td  style='text-align:center;'>";
80 80
 
81
-                if ($r_edit == 'Y') {
82
-                    echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_kunjungan_berobat=$r[id_kunjungan_berobat]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
83
-                }
81
+                    if ($r_edit == 'Y') {
82
+                        echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_kunjungan_berobat=$r[id_kunjungan_berobat]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
83
+                    }
84 84
 
85
-                echo'</td>';
86
-                echo'</tr>';
87
-                $no++;
88
-            }
89
-                                ?>
85
+                    echo'</td>';
86
+                    echo'</tr>';
87
+                    $no++;
88
+                }
89
+                                    ?>
90 90
                          </tbody>
91 91
                     </table>
92 92
                   </div>
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
                 echo"<td>$r[rujukan_lab]</td>";
79 79
                 echo" <td  style='text-align:center;'>";
80 80
 
81
-                if ($r_edit == 'Y') {
81
+                if ($r_edit=='Y') {
82 82
                     echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_kunjungan_berobat=$r[id_kunjungan_berobat]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
83 83
                 }
84 84
 
Please login to merge, or discard this patch.
modul/mod_rekam_medis/rekam_medis.php 2 patches
Switch Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 switch ($_GET[act]) {
3 3
 
4
-default:
5
-  ?>
4
+    default:
5
+      ?>
6 6
 
7 7
  <div class="">
8 8
                    
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
                             
49 49
                          <?php
50 50
 
51
-            $tampil = mysql_query('SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori                                  
51
+                $tampil = mysql_query('SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori                                  
52 52
                                 FROM kunjungan_berobat a left join pasien b 
53 53
                                  ON a.id_pasien = b.id_pasien
54 54
                                  left join poli c 
@@ -57,33 +57,33 @@  discard block
 block discarded – undo
57 57
                                  ON b.id_kategori = d.id_kategori                                
58 58
                                  ORDER BY a.tanggal,a.id_poli,a.no_urut ASC');
59 59
 
60
-            $no = 1;
60
+                $no = 1;
61 61
 
62
-            while ($r = mysql_fetch_array($tampil)) {
63
-                $tgl = date('d/m/Y', strtotime($r[tanggal]));
64
-                $tgl_lahir = date('d/m/Y', strtotime($r[tgl_lahir]));
62
+                while ($r = mysql_fetch_array($tampil)) {
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>$r[pemeriksaan]</td>";
75
-                echo"<td>$r[tindakan]</td>";
76
-                echo" <td  style='text-align:center;'>";
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>$r[pemeriksaan]</td>";
75
+                    echo"<td>$r[tindakan]</td>";
76
+                    echo" <td  style='text-align:center;'>";
77 77
 
78
-                if ($r_edit == 'Y') {
79
-                    echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_kunjungan_berobat=$r[id_kunjungan_berobat]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
80
-                }
78
+                    if ($r_edit == 'Y') {
79
+                        echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_kunjungan_berobat=$r[id_kunjungan_berobat]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
80
+                    }
81 81
 
82
-                echo'</td>';
83
-                echo'</tr>';
84
-                $no++;
85
-            }
86
-                                ?>
82
+                    echo'</td>';
83
+                    echo'</tr>';
84
+                    $no++;
85
+                }
86
+                                    ?>
87 87
                          </tbody>
88 88
                     </table>
89 89
                   </div>
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
                 echo"<td>$r[tindakan]</td>";
76 76
                 echo" <td  style='text-align:center;'>";
77 77
 
78
-                if ($r_edit == 'Y') {
78
+                if ($r_edit=='Y') {
79 79
                     echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_kunjungan_berobat=$r[id_kunjungan_berobat]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
80 80
                 }
81 81
 
Please login to merge, or discard this patch.
modul/mod_pasien/pasien.php 2 patches
Switch Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@  discard block
 block discarded – undo
2 2
 <?php
3 3
 switch ($_GET[act]) {
4 4
 
5
-default:
6
-  ?>
5
+    default:
6
+      ?>
7 7
 
8 8
  <div class="">
9 9
                    
@@ -51,36 +51,36 @@  discard block
 block discarded – undo
51 51
                          <?php
52 52
 
53 53
 
54
-                            $tampil = mysql_query('SELECT a.*,b.agama,c.kategori
54
+                                $tampil = mysql_query('SELECT a.*,b.agama,c.kategori
55 55
                                                 FROM pasien a left join agama b 
56 56
                                                  ON a.id_agama = b.id_agama
57 57
                                                  left join kategori c
58 58
                                                  ON a.id_kategori = c.id_kategori
59 59
                                                  ORDER BY a.nama ');
60 60
 
61
-                            $no = 1;
61
+                                $no = 1;
62 62
 
63
-                            while ($r = mysql_fetch_array($tampil)) {
64
-                                $tgl_lahir = date('d/m/Y', strtotime($r[tgl_lahir]));
63
+                                while ($r = mysql_fetch_array($tampil)) {
64
+                                    $tgl_lahir = date('d/m/Y', strtotime($r[tgl_lahir]));
65 65
 
66
-                                if ($r['gender'] == 'L') {
67
-                                    $gender = 'Laki-laki';
68
-                                } else {
69
-                                    $gender = 'Perempuan';
70
-                                }
66
+                                    if ($r['gender'] == 'L') {
67
+                                        $gender = 'Laki-laki';
68
+                                    } else {
69
+                                        $gender = 'Perempuan';
70
+                                    }
71 71
 
72
-                                echo'<tr>';
73
-                                echo"<td>$r[nama]</td>";
74
-                                echo"<td>$r[ktp]</td>";
75
-                                echo"<td>$tgl_lahir</td>";
76
-                                echo"<td>$gender</td>";
77
-                                echo"<td>$r[agama]</td>";
78
-                                echo"<td>$r[kategori]</td>";
79
-                                echo"<td>$r[telp]</td>";
80
-                                echo"<td>$r[alamat]</td>";
81
-                                echo"<td style='text-align:center;'>$r[aktif]</td>";
82
-                                echo" <td  style='text-align:center;'>"; ?>
83
-                            <a href='#' title='Cetak' onclick="window.open('./modul/mod_<?php echo $module; ?>/cetak_pasien.php?id_pasien=<?php echo $r[id_pasien]; ?>', '', 'height=500,width=600,resizable=1,scrollbars=1,addressbars=0,directories=no,location=no')">
72
+                                    echo'<tr>';
73
+                                    echo"<td>$r[nama]</td>";
74
+                                    echo"<td>$r[ktp]</td>";
75
+                                    echo"<td>$tgl_lahir</td>";
76
+                                    echo"<td>$gender</td>";
77
+                                    echo"<td>$r[agama]</td>";
78
+                                    echo"<td>$r[kategori]</td>";
79
+                                    echo"<td>$r[telp]</td>";
80
+                                    echo"<td>$r[alamat]</td>";
81
+                                    echo"<td style='text-align:center;'>$r[aktif]</td>";
82
+                                    echo" <td  style='text-align:center;'>"; ?>
83
+                                <a href='#' title='Cetak' onclick="window.open('./modul/mod_<?php echo $module; ?>/cetak_pasien.php?id_pasien=<?php echo $r[id_pasien]; ?>', '', 'height=500,width=600,resizable=1,scrollbars=1,addressbars=0,directories=no,location=no')">
84 84
 
85 85
                             <span class='icon'><i class='fa fa-print'></i></span>
86 86
 
@@ -88,18 +88,18 @@  discard block
 block discarded – undo
88 88
 
89 89
                             <?php
90 90
 
91
-                            if ($r_edit == 'Y') {
92
-                                echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_pasien=$r[id_pasien]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
93
-                            }
91
+                                if ($r_edit == 'Y') {
92
+                                    echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_pasien=$r[id_pasien]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
93
+                                }
94 94
 
95
-                                // if($r_delete == 'Y') {
96
-                                // echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_pasien]&id_module=$id' onClick=\"return confirm('Delete this record ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
97
-                                // }
98
-                                echo'</td>';
99
-                                echo'</tr>';
100
-                                $no++;
101
-                            }
102
-                                ?>
95
+                                    // if($r_delete == 'Y') {
96
+                                    // echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_pasien]&id_module=$id' onClick=\"return confirm('Delete this record ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
97
+                                    // }
98
+                                    echo'</td>';
99
+                                    echo'</tr>';
100
+                                    $no++;
101
+                                }
102
+                                    ?>
103 103
                          </tbody>
104 104
                     </table>
105 105
                   </div>
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
                             while ($r = mysql_fetch_array($tampil)) {
64 64
                                 $tgl_lahir = date('d/m/Y', strtotime($r[tgl_lahir]));
65 65
 
66
-                                if ($r['gender'] == 'L') {
66
+                                if ($r['gender']=='L') {
67 67
                                     $gender = 'Laki-laki';
68 68
                                 } else {
69 69
                                     $gender = 'Perempuan';
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 
89 89
                             <?php
90 90
 
91
-                            if ($r_edit == 'Y') {
91
+                            if ($r_edit=='Y') {
92 92
                                 echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_pasien=$r[id_pasien]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
93 93
                             }
94 94
 
Please login to merge, or discard this patch.
modul/mod_obat/obat.php 2 patches
Switch Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@  discard block
 block discarded – undo
2 2
 <?php
3 3
 switch ($_GET[act]) {
4 4
 
5
-default:
6
-  ?>
5
+    default:
6
+      ?>
7 7
 
8 8
  <div class="">
9 9
                    
@@ -45,35 +45,35 @@  discard block
 block discarded – undo
45 45
                             
46 46
                          <?php
47 47
 
48
-            $tampil = mysql_query('SELECT a.*,b.satuan 
48
+                $tampil = mysql_query('SELECT a.*,b.satuan 
49 49
                                 FROM obat a left join satuan b 
50 50
                                  ON a.id_satuan = b.id_satuan
51 51
                                  ORDER BY a.obat ');
52 52
 
53
-            $no = 1;
53
+                $no = 1;
54 54
 
55
-            while ($r = mysql_fetch_array($tampil)) {
56
-                $jumlah = number_format($r[jumlah], 0, '', '.');
55
+                while ($r = mysql_fetch_array($tampil)) {
56
+                    $jumlah = number_format($r[jumlah], 0, '', '.');
57 57
 
58
-                echo'<tr>';
59
-                echo"<td>$r[obat]</td>";
60
-                echo"<td>$r[satuan]</td>";
61
-                echo"<td style='text-align:right;'>$jumlah</td>";
62
-                echo"<td style='text-align:center;'>$r[aktif]</td>";
63
-                echo" <td  style='text-align:center;'>";
58
+                    echo'<tr>';
59
+                    echo"<td>$r[obat]</td>";
60
+                    echo"<td>$r[satuan]</td>";
61
+                    echo"<td style='text-align:right;'>$jumlah</td>";
62
+                    echo"<td style='text-align:center;'>$r[aktif]</td>";
63
+                    echo" <td  style='text-align:center;'>";
64 64
 
65
-                if ($r_edit == 'Y') {
66
-                    echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_obat=$r[id_obat]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
67
-                }
65
+                    if ($r_edit == 'Y') {
66
+                        echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_obat=$r[id_obat]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
67
+                    }
68 68
 
69
-                // if($r_delete == 'Y') {
70
-                // echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_obat]&id_module=$id' onClick=\"return confirm('Delete this record ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
71
-                // }
72
-                echo'</td>';
73
-                echo'</tr>';
74
-                $no++;
75
-            }
76
-                                ?>
69
+                    // if($r_delete == 'Y') {
70
+                    // echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_obat]&id_module=$id' onClick=\"return confirm('Delete this record ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
71
+                    // }
72
+                    echo'</td>';
73
+                    echo'</tr>';
74
+                    $no++;
75
+                }
76
+                                    ?>
77 77
                          </tbody>
78 78
                     </table>
79 79
                   </div>
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
                 echo"<td style='text-align:center;'>$r[aktif]</td>";
63 63
                 echo" <td  style='text-align:center;'>";
64 64
 
65
-                if ($r_edit == 'Y') {
65
+                if ($r_edit=='Y') {
66 66
                     echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_obat=$r[id_obat]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
67 67
                 }
68 68
 
Please login to merge, or discard this patch.
modul/mod_report_kunjungan_pasien/report_kunjungan_pasien.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_report_rujukan_pasien/report_rujukan_pasien.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.