Passed
Pull Request — master (#7)
by Saepul
04:54
created
modul/mod_poli/poli.php 1 patch
Switch Indentation   +20 added lines, -20 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
                    
@@ -43,31 +43,31 @@  discard block
 block discarded – undo
43 43
                             
44 44
                          <?
45 45
                         
46
-            $tampil=mysql_query("SELECT * FROM poli ORDER BY id_poli");
46
+                $tampil=mysql_query("SELECT * FROM poli ORDER BY id_poli");
47 47
             
48
-            $no = 1;
48
+                $no = 1;
49 49
             
50
-            while ($r=mysql_fetch_array($tampil)){  
50
+                while ($r=mysql_fetch_array($tampil)){  
51 51
             
52
-            echo"<tr>";
53
-            echo"<td>$r[poli]</td>";
54
-            echo"<td style='text-align:center;'>$r[aktif]</td>";  
55
-            echo" <td  style='text-align:center;'>";
52
+                echo"<tr>";
53
+                echo"<td>$r[poli]</td>";
54
+                echo"<td style='text-align:center;'>$r[aktif]</td>";  
55
+                echo" <td  style='text-align:center;'>";
56 56
 
57
-            if($r_edit == 'Y') {
58
-               echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_poli=$r[id_poli]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
59
-               }
57
+                if($r_edit == 'Y') {
58
+                   echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_poli=$r[id_poli]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
59
+                   }
60 60
 
61 61
                
62
-               // if($r_delete == 'Y') {
63
-               // echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_poli]&id_module=$id' onClick=\"return confirm('Hapus data ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
64
-               // }  
65
-            echo"</td>";              
66
-                                echo"</tr>";
67
-                                $no++;
62
+                   // if($r_delete == 'Y') {
63
+                   // echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_poli]&id_module=$id' onClick=\"return confirm('Hapus data ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
64
+                   // }  
65
+                echo"</td>";              
66
+                                    echo"</tr>";
67
+                                    $no++;
68 68
                                 
69
-                                }
70
-                                ?>
69
+                                    }
70
+                                    ?>
71 71
                          </tbody>
72 72
                     </table>
73 73
                   </div>
Please login to merge, or discard this patch.
modul/mod_modul/modul.php 1 patch
Switch Indentation   +40 added lines, -40 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
                    
@@ -44,63 +44,63 @@  discard block
 block discarded – undo
44 44
                             
45 45
                          <?
46 46
                         
47
-            $tampil=mysql_query("SELECT * FROM modul WHERE status_menu = 'M' ORDER BY urutan ASC");
47
+                $tampil=mysql_query("SELECT * FROM modul WHERE status_menu = 'M' ORDER BY urutan ASC");
48 48
             
49
-                $no = 1;
50
-                                while ($r=mysql_fetch_array($tampil)){  
51
-                                echo"<tr>";
52
-                                echo"<td><b>$r[nama_modul]</b></td>";
53
-                echo"<td>$r[link]</td>";
49
+                    $no = 1;
50
+                                    while ($r=mysql_fetch_array($tampil)){  
51
+                                    echo"<tr>";
52
+                                    echo"<td><b>$r[nama_modul]</b></td>";
53
+                    echo"<td>$r[link]</td>";
54 54
 
55 55
                 
56
-                echo"<td style='text-align:center;'>$r[aktif]</td>";  
57
-                echo"<td style='text-align:center;'>";
58
-  if($r_input == 'Y') {             
59
-  echo"<a class='thickbox' href='modul/mod_$module/form_sub$module.php?parentid=$r[id_modul]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Sub $nmmodule Baru'><span class='icon'><i class='fa fa-pencil-square-o'></i></span></a>"; 
60
-  }
56
+                    echo"<td style='text-align:center;'>$r[aktif]</td>";  
57
+                    echo"<td style='text-align:center;'>";
58
+      if($r_input == 'Y') {             
59
+      echo"<a class='thickbox' href='modul/mod_$module/form_sub$module.php?parentid=$r[id_modul]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Sub $nmmodule Baru'><span class='icon'><i class='fa fa-pencil-square-o'></i></span></a>"; 
60
+      }
61 61
 
62
-   if($r_edit == 'Y') {
63
-   echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_modul=$r[id_modul]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule '><span class='icon'><i class='fa fa-pencil'></i></span></a>";
64
-   }
62
+       if($r_edit == 'Y') {
63
+       echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_modul=$r[id_modul]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule '><span class='icon'><i class='fa fa-pencil'></i></span></a>";
64
+       }
65 65
 
66 66
    
67
-   if($r_delete == 'Y') {
68
-   echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapusmod&id=$r[id_modul]&id_module=$id' onClick=\"return confirm('Hapus data ?')\"><span class='icon'><i class='fa fa-trash'></i></span></a>";
69
-   }  
70
-    echo"</td>";
67
+       if($r_delete == 'Y') {
68
+       echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapusmod&id=$r[id_modul]&id_module=$id' onClick=\"return confirm('Hapus data ?')\"><span class='icon'><i class='fa fa-trash'></i></span></a>";
69
+       }  
70
+        echo"</td>";
71 71
           
72
-            echo"</tr>";
72
+                echo"</tr>";
73 73
                 
74
-                $dtampil=mysql_query("SELECT * FROM modul
74
+                    $dtampil=mysql_query("SELECT * FROM modul
75 75
                             WHERE status_menu = 'c'
76 76
                             AND parentid = '$r[id_modul]' and aktif = 'Y' ORDER BY urutan ASC");
77 77
             
78 78
             
79
-                                while ($d=mysql_fetch_array($dtampil)){ 
79
+                                    while ($d=mysql_fetch_array($dtampil)){ 
80 80
                 
81 81
 
82
-                                echo"<tr>";
83
-                echo"<td style='padding-left:15px;'>$d[nama_modul]</td>";
84
-                echo"<td style='text-transform:lowercase;'>$d[link]</td>";
82
+                                    echo"<tr>";
83
+                    echo"<td style='padding-left:15px;'>$d[nama_modul]</td>";
84
+                    echo"<td style='text-transform:lowercase;'>$d[link]</td>";
85 85
               
86
-                echo"<td style='text-align:center;'>$d[aktif]</td>";
87
-                echo" <td style='text-align:right;'>";
88
-   if($r_edit == 'Y') {
89
-   echo"<a class='thickbox' href='modul/mod_$module/form_sub$module.php?id_modul=$d[id_modul]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update Sub $imodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
90
-   }
86
+                    echo"<td style='text-align:center;'>$d[aktif]</td>";
87
+                    echo" <td style='text-align:right;'>";
88
+       if($r_edit == 'Y') {
89
+       echo"<a class='thickbox' href='modul/mod_$module/form_sub$module.php?id_modul=$d[id_modul]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update Sub $imodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
90
+       }
91 91
   
92
-   if($r_delete == 'Y') {
93
-   echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$d[id_modul]&id_module=$id' onClick=\"return confirm('Hapus data ?')\"><span class='icon'><i class='fa fa-trash'></i></span></a>";
94
-   }
95
-   echo"</td>";             
96
-                                echo"</tr>";
92
+       if($r_delete == 'Y') {
93
+       echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$d[id_modul]&id_module=$id' onClick=\"return confirm('Hapus data ?')\"><span class='icon'><i class='fa fa-trash'></i></span></a>";
94
+       }
95
+       echo"</td>";             
96
+                                    echo"</tr>";
97 97
                 
98
-                }
98
+                    }
99 99
                 
100
-                                $no++;
100
+                                    $no++;
101 101
                                 
102
-                                }
103
-                                ?>
102
+                                    }
103
+                                    ?>
104 104
                          </tbody>
105 105
                     </table>
106 106
                   </div>
Please login to merge, or discard this patch.
modul/mod_home/xxhome.php 1 patch
Switch Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -2,19 +2,19 @@  discard block
 block discarded – undo
2 2
 <?php
3 3
 switch($_GET[act]){
4 4
 
5
-default:  
5
+    default:  
6 6
 
7 7
 
8
- $gtampil=mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
9
- $g=mysql_fetch_array($gtampil);
8
+     $gtampil=mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
9
+     $g=mysql_fetch_array($gtampil);
10 10
 
11
-if ($g['pict']) {
12
-	$pict = $g['pict'];
11
+    if ($g['pict']) {
12
+	    $pict = $g['pict'];
13 13
 } else {
14
-	$pict = '';
14
+	    $pict = '';
15 15
 }
16 16
 
17
-?>
17
+    ?>
18 18
 <div class="col-md-12 col-sm-12 col-xs-12 ">
19 19
 <div class="x_panel">
20 20
    <div class="x_title">
@@ -28,6 +28,6 @@  discard block
 block discarded – undo
28 28
 </div>
29 29
 </div>    
30 30
 <?
31
-//}
31
+    //}
32 32
 }
33 33
 ?>
34 34
\ No newline at end of file
Please login to merge, or discard this patch.
modul/mod_home/home.php 1 patch
Switch Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -2,19 +2,19 @@  discard block
 block discarded – undo
2 2
 <?php
3 3
 switch($_GET[act]){
4 4
 
5
-default:  
5
+    default:  
6 6
 
7 7
 
8
- $gtampil=mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
9
- $g=mysql_fetch_array($gtampil);
8
+     $gtampil=mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
9
+     $g=mysql_fetch_array($gtampil);
10 10
 
11
-if ($g['pict']) {
12
-	$pict = $g['pict'];
11
+    if ($g['pict']) {
12
+	    $pict = $g['pict'];
13 13
 } else {
14
-	$pict = '';
14
+	    $pict = '';
15 15
 }
16 16
 
17
-?>
17
+    ?>
18 18
 <div class="col-md-12 col-sm-12 col-xs-12 center-block">
19 19
 <div class="x_panel">
20 20
    <div class="x_title">
@@ -28,6 +28,6 @@  discard block
 block discarded – undo
28 28
 </div>
29 29
 </div>    
30 30
 <?
31
-//}
31
+    //}
32 32
 }
33 33
 ?>
34 34
\ No newline at end of file
Please login to merge, or discard this patch.
modul/mod_rekam_medis/rekam_medis.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 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
                          <?
50 50
                         
51
-            $tampil=mysql_query("SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori                                  
51
+                $tampil=mysql_query("SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori                                  
52 52
                                 FROM kunjungan_berobat a left join pasien b 
53 53
                                  ON a.id_pasien = b.id_pasien
54 54
                                  left join poli c 
@@ -57,37 +57,37 @@  discard block
 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)){  
62
+                while ($r=mysql_fetch_array($tampil)){  
63 63
 
64
-            $tgl       = DATE('d/m/Y',strtotime($r[tanggal]));
65
-            $tgl_lahir = DATE('d/m/Y',strtotime($r[tgl_lahir]));
64
+                $tgl       = DATE('d/m/Y',strtotime($r[tanggal]));
65
+                $tgl_lahir = DATE('d/m/Y',strtotime($r[tgl_lahir]));
66 66
 
67
-            echo"<tr>";
68
-            echo"<td>$tgl</td>";
69
-            echo"<td>$r[poli]</td>";
70
-            echo"<td>$r[no_urut]</td>";            
71
-            echo"<td>$r[nama]</td>";
72
-            echo"<td>$r[kategori]</td>";
73
-            echo"<td>$r[keluhan]</td>";
74
-            echo"<td>$r[diagnosa]</td>";
75
-            echo"<td>$r[pemeriksaan]</td>";
76
-            echo"<td>$r[tindakan]</td>";
77
-            echo" <td  style='text-align:center;'>";
67
+                echo"<tr>";
68
+                echo"<td>$tgl</td>";
69
+                echo"<td>$r[poli]</td>";
70
+                echo"<td>$r[no_urut]</td>";            
71
+                echo"<td>$r[nama]</td>";
72
+                echo"<td>$r[kategori]</td>";
73
+                echo"<td>$r[keluhan]</td>";
74
+                echo"<td>$r[diagnosa]</td>";
75
+                echo"<td>$r[pemeriksaan]</td>";
76
+                echo"<td>$r[tindakan]</td>";
77
+                echo" <td  style='text-align:center;'>";
78 78
 
79
-            if($r_edit == 'Y') {
80
-               echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_kunjungan_berobat=$r[id_kunjungan_berobat]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
81
-               }
79
+                if($r_edit == 'Y') {
80
+                   echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_kunjungan_berobat=$r[id_kunjungan_berobat]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
81
+                   }
82 82
 
83 83
                
84 84
                
85
-            echo"</td>";              
86
-                                echo"</tr>";
87
-                                $no++;
85
+                echo"</td>";              
86
+                                    echo"</tr>";
87
+                                    $no++;
88 88
                                 
89
-                                }
90
-                                ?>
89
+                                    }
90
+                                    ?>
91 91
                          </tbody>
92 92
                     </table>
93 93
                   </div>
Please login to merge, or discard this patch.
modul/mod_groupmodul/groupmodul.php 1 patch
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
                    
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
                         <tbody>
44 44
                          <?
45 45
                         
46
-            $tampil=mysql_query("SELECT a.*,b.groups,c.nama_modul,c.status_menu FROM groupmodul a INNER JOIN groups b
46
+                $tampil=mysql_query("SELECT a.*,b.groups,c.nama_modul,c.status_menu FROM groupmodul a INNER JOIN groups b
47 47
                        ON a.id_groups = b.id_groups
48 48
                        INNER JOIN modul c
49 49
                        ON a.id_modul = c.id_modul
@@ -51,28 +51,28 @@  discard block
 block discarded – undo
51 51
                        ORDER BY a.id_groups,a.id_modul");
52 52
             
53 53
            
54
-                $no = 1;
55
-                                while ($r=mysql_fetch_array($tampil)){  
54
+                    $no = 1;
55
+                                    while ($r=mysql_fetch_array($tampil)){  
56 56
                 
57 57
 
58
-                                echo"<tr>";
59
-                                echo"<td><b>$r[groups]</b></td>";
60
-                echo"<td><b>$r[nama_modul]</b></td>";
61
-                echo"<td style='text-align:center;'>$r[aktif]</td>";  
62
-                echo" <td  style='text-align:center;'>";
63
-   if($r_edit == 'Y') {
64
-   echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_groupmodul=$r[id_groupmodul]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
65
-   }            
58
+                                    echo"<tr>";
59
+                                    echo"<td><b>$r[groups]</b></td>";
60
+                    echo"<td><b>$r[nama_modul]</b></td>";
61
+                    echo"<td style='text-align:center;'>$r[aktif]</td>";  
62
+                    echo" <td  style='text-align:center;'>";
63
+       if($r_edit == 'Y') {
64
+       echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_groupmodul=$r[id_groupmodul]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
65
+       }            
66 66
    
67
-    if($r_delete == 'Y') {
68
-   echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_groupmodul]&id_module=$id' onClick=\"return confirm('Hapus Data ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
69
-    }
67
+        if($r_delete == 'Y') {
68
+       echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_groupmodul]&id_module=$id' onClick=\"return confirm('Hapus Data ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
69
+        }
70 70
 
71
-    echo"</td>";              
72
-                                echo"</tr>";
71
+        echo"</td>";              
72
+                                    echo"</tr>";
73 73
                 
74 74
             
75
-            $dtampil=mysql_query("SELECT a.*,b.groups,c.nama_modul,c.status_menu FROM groupmodul a INNER JOIN groups b
75
+                $dtampil=mysql_query("SELECT a.*,b.groups,c.nama_modul,c.status_menu FROM groupmodul a INNER JOIN groups b
76 76
                        ON a.id_groups = b.id_groups
77 77
                        INNER JOIN modul c
78 78
                        ON a.id_modul = c.id_modul
@@ -82,32 +82,32 @@  discard block
 block discarded – undo
82 82
                        ORDER BY a.id_groupmodul");
83 83
             
84 84
             
85
-                                while ($d=mysql_fetch_array($dtampil)){ 
85
+                                    while ($d=mysql_fetch_array($dtampil)){ 
86 86
                 
87 87
 
88
-                                echo"<tr>";
89
-                                echo"<td></td>";
90
-                echo"<td>$d[nama_modul]</td>";
88
+                                    echo"<tr>";
89
+                                    echo"<td></td>";
90
+                    echo"<td>$d[nama_modul]</td>";
91 91
                  
92
-                echo"<td style='text-align:center;'>$d[aktif]</td>";  
93
-   echo"<td style='text-align:right;'>";
94
-   if($r_delete == 'Y') {
95
-   echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$d[id_groupmodul]&id_module=$id' onClick=\"return confirm('Delete this record ?')\"><span class='icon'><i class='fa fa-trash'></i></span></a>";
92
+                    echo"<td style='text-align:center;'>$d[aktif]</td>";  
93
+       echo"<td style='text-align:right;'>";
94
+       if($r_delete == 'Y') {
95
+       echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$d[id_groupmodul]&id_module=$id' onClick=\"return confirm('Delete this record ?')\"><span class='icon'><i class='fa fa-trash'></i></span></a>";
96 96
    
97
-   }
98
-    echo"</td>";              
97
+       }
98
+        echo"</td>";              
99 99
 
100
-                                echo"</tr>";
100
+                                    echo"</tr>";
101 101
                 
102 102
                                 
103
-                                }
103
+                                    }
104 104
                 
105 105
                 
106 106
                 
107
-                                $no++;
107
+                                    $no++;
108 108
                                 
109
-                                }
110
-                                ?>
109
+                                    }
110
+                                    ?>
111 111
                          </tbody>
112 112
                     </table>
113 113
                   </div>
Please login to merge, or discard this patch.
modul/mod_rujukan_pasien/rujukan_pasien.php 1 patch
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
                          <?
48 48
                         
49
-            $tampil=mysql_query("SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori    
49
+                $tampil=mysql_query("SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori    
50 50
                                     ,e.rujukan as rujukan_rs
51 51
                                     ,f.rujukan as rujukan_lab                              
52 52
                                 FROM kunjungan_berobat a left join pasien b 
@@ -62,35 +62,35 @@  discard block
 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)){  
67
+                while ($r=mysql_fetch_array($tampil)){  
68 68
 
69
-            $tgl       = DATE('d/m/Y',strtotime($r[tanggal]));
70
-            $tgl_lahir = DATE('d/m/Y',strtotime($r[tgl_lahir]));
69
+                $tgl       = DATE('d/m/Y',strtotime($r[tanggal]));
70
+                $tgl_lahir = DATE('d/m/Y',strtotime($r[tgl_lahir]));
71 71
 
72
-            echo"<tr>";
73
-            echo"<td>$tgl</td>";
74
-            echo"<td>$r[poli]</td>";
75
-            echo"<td>$r[no_urut]</td>";            
76
-            echo"<td>$r[nama]</td>";
77
-            echo"<td>$r[kategori]</td>";
78
-            echo"<td>$r[rujukan_rs]</td>";
79
-            echo"<td>$r[rujukan_lab]</td>";
80
-            echo" <td  style='text-align:center;'>";
72
+                echo"<tr>";
73
+                echo"<td>$tgl</td>";
74
+                echo"<td>$r[poli]</td>";
75
+                echo"<td>$r[no_urut]</td>";            
76
+                echo"<td>$r[nama]</td>";
77
+                echo"<td>$r[kategori]</td>";
78
+                echo"<td>$r[rujukan_rs]</td>";
79
+                echo"<td>$r[rujukan_lab]</td>";
80
+                echo" <td  style='text-align:center;'>";
81 81
 
82
-            if($r_edit == 'Y') {
83
-               echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_kunjungan_berobat=$r[id_kunjungan_berobat]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
84
-               }
82
+                if($r_edit == 'Y') {
83
+                   echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_kunjungan_berobat=$r[id_kunjungan_berobat]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
84
+                   }
85 85
 
86 86
                
87 87
                
88
-            echo"</td>";              
89
-                                echo"</tr>";
90
-                                $no++;
88
+                echo"</td>";              
89
+                                    echo"</tr>";
90
+                                    $no++;
91 91
                                 
92
-                                }
93
-                                ?>
92
+                                    }
93
+                                    ?>
94 94
                          </tbody>
95 95
                     </table>
96 96
                   </div>
Please login to merge, or discard this patch.
modul/mod_satuan/satuan.php 1 patch
Switch Indentation   +20 added lines, -20 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
                    
@@ -43,31 +43,31 @@  discard block
 block discarded – undo
43 43
                             
44 44
                          <?
45 45
                         
46
-            $tampil=mysql_query("SELECT * FROM satuan ORDER BY id_satuan");
46
+                $tampil=mysql_query("SELECT * FROM satuan ORDER BY id_satuan");
47 47
             
48
-            $no = 1;
48
+                $no = 1;
49 49
             
50
-            while ($r=mysql_fetch_array($tampil)){  
50
+                while ($r=mysql_fetch_array($tampil)){  
51 51
             
52
-            echo"<tr>";
53
-            echo"<td>$r[satuan]</td>";
54
-            echo"<td style='text-align:center;'>$r[aktif]</td>";  
55
-            echo" <td  style='text-align:center;'>";
52
+                echo"<tr>";
53
+                echo"<td>$r[satuan]</td>";
54
+                echo"<td style='text-align:center;'>$r[aktif]</td>";  
55
+                echo" <td  style='text-align:center;'>";
56 56
 
57
-            if($r_edit == 'Y') {
58
-               echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_satuan=$r[id_satuan]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
59
-               }
57
+                if($r_edit == 'Y') {
58
+                   echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_satuan=$r[id_satuan]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
59
+                   }
60 60
 
61 61
                
62
-               // if($r_delete == 'Y') {
63
-               // echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_satuan]&id_module=$id' onClick=\"return confirm('Hapus data ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
64
-               // }  
65
-            echo"</td>";              
66
-                                echo"</tr>";
67
-                                $no++;
62
+                   // if($r_delete == 'Y') {
63
+                   // echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_satuan]&id_module=$id' onClick=\"return confirm('Hapus data ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
64
+                   // }  
65
+                echo"</td>";              
66
+                                    echo"</tr>";
67
+                                    $no++;
68 68
                                 
69
-                                }
70
-                                ?>
69
+                                    }
70
+                                    ?>
71 71
                          </tbody>
72 72
                     </table>
73 73
                   </div>
Please login to merge, or discard this patch.
modul/mod_obat/obat.php 1 patch
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,38 +45,38 @@  discard block
 block discarded – undo
45 45
                             
46 46
                          <?
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)){  
55
+                while ($r=mysql_fetch_array($tampil)){  
56 56
 
57
-                $jumlah = number_format($r[jumlah],0,'','.');
57
+                    $jumlah = number_format($r[jumlah],0,'','.');
58 58
             
59
-            echo"<tr>";
60
-            echo"<td>$r[obat]</td>";
61
-            echo"<td>$r[satuan]</td>";
62
-            echo"<td style='text-align:right;'>$jumlah</td>";
63
-            echo"<td style='text-align:center;'>$r[aktif]</td>";  
64
-            echo" <td  style='text-align:center;'>";
59
+                echo"<tr>";
60
+                echo"<td>$r[obat]</td>";
61
+                echo"<td>$r[satuan]</td>";
62
+                echo"<td style='text-align:right;'>$jumlah</td>";
63
+                echo"<td style='text-align:center;'>$r[aktif]</td>";  
64
+                echo" <td  style='text-align:center;'>";
65 65
 
66
-            if($r_edit == 'Y') {
67
-               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>";
68
-               }
66
+                if($r_edit == 'Y') {
67
+                   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>";
68
+                   }
69 69
 
70 70
                
71
-               // if($r_delete == 'Y') {
72
-               // 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>";
73
-               // }  
74
-            echo"</td>";              
75
-                                echo"</tr>";
76
-                                $no++;
71
+                   // if($r_delete == 'Y') {
72
+                   // 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>";
73
+                   // }  
74
+                echo"</td>";              
75
+                                    echo"</tr>";
76
+                                    $no++;
77 77
                                 
78
-                                }
79
-                                ?>
78
+                                    }
79
+                                    ?>
80 80
                          </tbody>
81 81
                     </table>
82 82
                   </div>
Please login to merge, or discard this patch.