Passed
Pull Request — master (#7)
by Saepul
16:24 queued 12:15
created
modul/mod_home/xxhome.php 1 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_rujukan_pasien/rujukan_pasien.php 1 patch
Switch Indentation   +26 added lines, -26 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
                    
@@ -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>
@@ -131,4 +131,4 @@  discard block
 block discarded – undo
131 131
 
132 132
     <?php
133 133
 }
134
-?>
134
+    ?>
Please login to merge, or discard this patch.
modul/mod_rujukan_pasien/aksi_rujukan_pasien.php 1 patch
Switch Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -1,32 +1,32 @@  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
-    if ($module == 'rujukan_pasien' and $act == 'update') {
20
-        $id_module = $_POST['id_module'];
19
+        if ($module == 'rujukan_pasien' and $act == 'update') {
20
+            $id_module = $_POST['id_module'];
21 21
 
22
-        mysql_query("UPDATE kunjungan_berobat SET id_rujukan_rs   = '$_POST[rujukan_rs]'
22
+            mysql_query("UPDATE kunjungan_berobat SET id_rujukan_rs   = '$_POST[rujukan_rs]'
23 23
                     ,id_rujukan_lab   = '$_POST[rujukan_lab]'
24 24
                     ,upddt   = '$datetime' 
25 25
                     ,updby   = '$userid' 
26 26
                     ,status     = '1'  
27 27
                  WHERE id_kunjungan_berobat    = '$_POST[ID]'");
28 28
 
29
-        //header('location:../../main.php?module='.$module.'&id_module='.$id_module);?>
29
+            //header('location:../../main.php?module='.$module.'&id_module='.$id_module);?>
30 30
    
31 31
   <script language="javascript">
32 32
      window.parent.location.href = "<?php echo"./../../main.php?module=$module&id_module=$id_module"; ?>";  
@@ -34,6 +34,6 @@  discard block
 block discarded – undo
34 34
    </script>
35 35
   
36 36
   <?php
37
-    }
37
+        }
38 38
 }
39
-?>
39
+    ?>
Please login to merge, or discard this patch.
modul/mod_kunjungan_berobat/kunjungan_berobat.php 1 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,45 +56,45 @@  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
-                $tgl = date('d/m/Y', strtotime($r[tanggal]));
63
-                $tgl_lahir = date('d/m/Y', strtotime($r[tgl_lahir]));
64
-                $status = $r[status];
61
+                    while ($r = mysql_fetch_array($tampil)) {
62
+                        $tgl = date('d/m/Y', strtotime($r[tanggal]));
63
+                        $tgl_lahir = date('d/m/Y', strtotime($r[tgl_lahir]));
64
+                        $status = $r[status];
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[ktp]</td>";
72
-                echo"<td>$tgl_lahir</td>";
73
-                echo"<td>$r[kategori]</td>";
74
-                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[ktp]</td>";
72
+                        echo"<td>$tgl_lahir</td>";
73
+                        echo"<td>$r[kategori]</td>";
74
+                        echo" <td  style='text-align:center;'>";
75 75
 
76
-                if ($r_edit == 'Y') {
77
-                    //if ($status == '0') {
78
-                    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>";
79
-                    // } else {
80
-              //  echo"<span class='icon'><i class='fa fa-pencil'></i></span>";
81
-              // }
82
-                }
76
+                        if ($r_edit == 'Y') {
77
+                            //if ($status == '0') {
78
+                            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>";
79
+                            // } else {
80
+                      //  echo"<span class='icon'><i class='fa fa-pencil'></i></span>";
81
+                      // }
82
+                        }
83 83
 
84
-                if ($r_delete == 'Y') {
85
-                    //if ($status == '0') {
86
-                    echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_kunjungan_berobat]&id_module=$id' onClick=\"return confirm('Delete this record ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
84
+                        if ($r_delete == 'Y') {
85
+                            //if ($status == '0') {
86
+                            echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_kunjungan_berobat]&id_module=$id' onClick=\"return confirm('Delete this record ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
87 87
 
88
-                    // }else {
89
-                //   echo"<span class='icon'><i class='fa fa-trash'></i></span>";
88
+                            // }else {
89
+                        //   echo"<span class='icon'><i class='fa fa-trash'></i></span>";
90 90
 
91
-                // }
92
-                }
93
-                echo'</td>';
94
-                echo'</tr>';
95
-                $no++;
96
-            }
97
-                                ?>
91
+                        // }
92
+                        }
93
+                        echo'</td>';
94
+                        echo'</tr>';
95
+                        $no++;
96
+                    }
97
+                                        ?>
98 98
                          </tbody>
99 99
                     </table>
100 100
                   </div>
@@ -139,4 +139,4 @@  discard block
 block discarded – undo
139 139
 
140 140
     <?php
141 141
 }
142
-?>
142
+    ?>
Please login to merge, or discard this patch.
modul/mod_kunjungan_berobat/aksi_kunjungan_berobat.php 1 patch
Switch Indentation   +39 added lines, -39 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 == 'kunjungan_berobat' and $act == 'hapus') {
21
-        $id = $_GET['id'];
22
-        $id_module = $_GET['id_module'];
19
+        // Hapus modul
20
+        if ($module == 'kunjungan_berobat' 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,34 +31,34 @@  discard block
 block discarded – undo
31 31
    </script>
32 32
   
33 33
   <?php
34
-    }
34
+        }
35 35
 
36
-    // Input group
37
-    elseif ($module == 'kunjungan_berobat' and $act == 'input') {
38
-        $id_module = $_POST['id_module'];
36
+        // Input group
37
+        elseif ($module == 'kunjungan_berobat' and $act == 'input') {
38
+            $id_module = $_POST['id_module'];
39 39
 
40
-        if ($_POST['ID']) {
41
-            mysql_query("UPDATE kunjungan_berobat SET tanggal   = '$_POST[tanggal]'
40
+            if ($_POST['ID']) {
41
+                mysql_query("UPDATE kunjungan_berobat SET tanggal   = '$_POST[tanggal]'
42 42
                     ,id_pasien   = '$_POST[pasien]'
43 43
                     ,id_poli   = '$_POST[poli]'    
44 44
                     ,upddt   = '$datetime' 
45 45
                     ,updby   = '$userid' 
46 46
                     ,aktif     = '$_POST[aktif]'  
47 47
                  WHERE id_kunjungan_berobat    = '$_POST[ID]'");
48
-        } else {
49
-            $sql = mysql_query("select no_urut from kunjungan_berobat 
48
+            } else {
49
+                $sql = mysql_query("select no_urut from kunjungan_berobat 
50 50
                      where tanggal='$_POST[tanggal]' 
51 51
                      and id_poli   = '$_POST[poli]'   ");
52 52
 
53
-            $r = mysql_fetch_array($sql);
53
+                $r = mysql_fetch_array($sql);
54 54
 
55
-            if ($r['no_urut']) {
56
-                $no_urut = $r['no_urut'] + 1;
57
-            } else {
58
-                $no_urut = 1;
59
-            }
55
+                if ($r['no_urut']) {
56
+                    $no_urut = $r['no_urut'] + 1;
57
+                } else {
58
+                    $no_urut = 1;
59
+                }
60 60
 
61
-            mysql_query("INSERT INTO kunjungan_berobat(tanggal
61
+                mysql_query("INSERT INTO kunjungan_berobat(tanggal
62 62
                     ,no_urut
63 63
                    ,id_pasien
64 64
                    ,id_poli
@@ -74,9 +74,9 @@  discard block
 block discarded – undo
74 74
                   ,'$userid'
75 75
                   ,'$datetime'
76 76
                   ,'$userid')");
77
-        }
77
+            }
78 78
 
79
-        //header('location:../../main.php?module='.$module.'&id_module='.$id_module);?>
79
+            //header('location:../../main.php?module='.$module.'&id_module='.$id_module);?>
80 80
    
81 81
   <script language="javascript">
82 82
      window.parent.location.href = "<?php echo"./../../main.php?module=$module&id_module=$id_module"; ?>";  
@@ -84,6 +84,6 @@  discard block
 block discarded – undo
84 84
    </script>
85 85
   
86 86
   <?php
87
-    }
87
+        }
88 88
 }
89
-?>
89
+    ?>
Please login to merge, or discard this patch.