Passed
Push — master ( d91862...237c42 )
by Saepul
04:48
created
modul/mod_obat/obat.php 2 patches
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.
Switch Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 block discarded – undo
1
-  
2
-<?php
1
+      
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.
modul/mod_report_kunjungan_pasien/report_kunjungan_pasien.php 3 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 $prd = date('Y-m');
65 65
 
66 66
 $userid = $_SESSION['userid'];
67
-  ?>
67
+    ?>
68 68
 
69 69
  <div class="">
70 70
                    
@@ -115,12 +115,12 @@  discard block
 block discarded – undo
115 115
 
116 116
              <?php
117 117
 
118
-             $module = '?module='.$_GET['module'];
119
-             $tampil = mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");
120
-             $r = mysql_fetch_array($tampil);
118
+                $module = '?module='.$_GET['module'];
119
+                $tampil = mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");
120
+                $r = mysql_fetch_array($tampil);
121 121
 
122
-             echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].'>';
123
-             echo"<input type='hidden' name='module' value=".$_GET[module].'>';
122
+                echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].'>';
123
+                echo"<input type='hidden' name='module' value=".$_GET[module].'>';
124 124
             ?>
125 125
             </form>    
126 126
                    
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
             </form>    
126 126
                    
127 127
                 </div>
128
-                <?php for ($i = 0; $i <= 20; $i++) {
128
+                <?php for ($i = 0; $i<=20; $i++) {
129 129
                 ?>
130 130
                     <br />
131 131
                     <?php
Please login to merge, or discard this patch.
Switch Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -139,5 +139,5 @@
 block discarded – undo
139 139
 
140 140
     <?php
141 141
 }
142
-?>
143
-
142
+    ?>
143
+    
Please login to merge, or discard this patch.
modul/mod_user/user.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -59,25 +59,25 @@  discard block
 block discarded – undo
59 59
 
60 60
                                 $no = 1;
61 61
                                 while ($r = mysql_fetch_array($tampil)) {
62
-                                    if ($r[r_input] == 'Y') {
62
+                                    if ($r[r_input]=='Y') {
63 63
                                         $input = "<img src='images/cek.png' border=0> Input";
64 64
                                     } else {
65 65
                                         $input = "<img src='images/del.gif' width='20' border=0> Input";
66 66
                                     }
67 67
 
68
-                                    if ($r[r_edit] == 'Y') {
68
+                                    if ($r[r_edit]=='Y') {
69 69
                                         $edit = "<img src='images/cek.png' border=0> Edit";
70 70
                                     } else {
71 71
                                         $edit = "<img src='images/del.gif' width='20' border=0> Edit";
72 72
                                     }
73 73
 
74
-                                    if ($r[r_delete] == 'Y') {
74
+                                    if ($r[r_delete]=='Y') {
75 75
                                         $delete = "<img src='images/cek.png' border=0> Delete";
76 76
                                     } else {
77 77
                                         $delete = "<img src='images/del.gif' width='20' border=0> Delete";
78 78
                                     }
79 79
 
80
-                                    if ($r[outlet] == '') {
80
+                                    if ($r[outlet]=='') {
81 81
                                         $outlet = 'Semua Outlet';
82 82
                                     } else {
83 83
                                         $outlet = $r['outlet'];
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
                                     echo"<td>$r[r_delete]</td>";
94 94
                                     echo"<td style='text-align:center;'>$r[aktif]</td>";
95 95
                                     echo" <td  style='text-align:center;'>";
96
-                                    if ($r_edit == 'Y') {
96
+                                    if ($r_edit=='Y') {
97 97
                                         echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_user=$r[id_user]&id_module=$id&width=720&height=580&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
98 98
                                     }
99 99
 
Please login to merge, or discard this patch.
Switch Indentation   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1
-<?php
1
+    <?php
2 2
 
3
-$outlet = $df_outlet;
3
+    $outlet = $df_outlet;
4 4
 
5 5
 switch ($_GET[act]) {
6 6
 
7
-default:
8
-  ?>
7
+        default:
8
+          ?>
9 9
 
10 10
  <div class="">
11 11
                    
@@ -52,59 +52,59 @@  discard block
 block discarded – undo
52 52
                          <?php
53 53
 
54 54
 
55
-                        $tampil = mysql_query("SELECT a.*,b.groups FROM user a INNER JOIN groups b 
55
+                                $tampil = mysql_query("SELECT a.*,b.groups FROM user a INNER JOIN groups b 
56 56
                                              ON a.id_groups=b.id_groups                                           
57 57
                                              WHERE a.role != 'SA'
58 58
                                              ORDER BY a.id_user DESC ");
59 59
 
60
-                                $no = 1;
61
-                                while ($r = mysql_fetch_array($tampil)) {
62
-                                    if ($r[r_input] == 'Y') {
63
-                                        $input = "<img src='images/cek.png' border=0> Input";
64
-                                    } else {
65
-                                        $input = "<img src='images/del.gif' width='20' border=0> Input";
66
-                                    }
60
+                                        $no = 1;
61
+                                        while ($r = mysql_fetch_array($tampil)) {
62
+                                            if ($r[r_input] == 'Y') {
63
+                                                $input = "<img src='images/cek.png' border=0> Input";
64
+                                            } else {
65
+                                                $input = "<img src='images/del.gif' width='20' border=0> Input";
66
+                                            }
67 67
 
68
-                                    if ($r[r_edit] == 'Y') {
69
-                                        $edit = "<img src='images/cek.png' border=0> Edit";
70
-                                    } else {
71
-                                        $edit = "<img src='images/del.gif' width='20' border=0> Edit";
72
-                                    }
68
+                                            if ($r[r_edit] == 'Y') {
69
+                                                $edit = "<img src='images/cek.png' border=0> Edit";
70
+                                            } else {
71
+                                                $edit = "<img src='images/del.gif' width='20' border=0> Edit";
72
+                                            }
73 73
 
74
-                                    if ($r[r_delete] == 'Y') {
75
-                                        $delete = "<img src='images/cek.png' border=0> Delete";
76
-                                    } else {
77
-                                        $delete = "<img src='images/del.gif' width='20' border=0> Delete";
78
-                                    }
74
+                                            if ($r[r_delete] == 'Y') {
75
+                                                $delete = "<img src='images/cek.png' border=0> Delete";
76
+                                            } else {
77
+                                                $delete = "<img src='images/del.gif' width='20' border=0> Delete";
78
+                                            }
79 79
 
80
-                                    if ($r[outlet] == '') {
81
-                                        $outlet = 'Semua Outlet';
82
-                                    } else {
83
-                                        $outlet = $r['outlet'];
84
-                                    }
80
+                                            if ($r[outlet] == '') {
81
+                                                $outlet = 'Semua Outlet';
82
+                                            } else {
83
+                                                $outlet = $r['outlet'];
84
+                                            }
85 85
 
86
-                                    echo'<tr>';
87
-                                    echo"<td>$r[id_user]</td>";
88
-                                    echo"<td>$r[username]</td>";
89
-                                    echo"<td>$r[nik]</td>";
90
-                                    echo"<td>$r[groups]</td>";
91
-                                    echo"<td>$r[r_input]</td>";
92
-                                    echo"<td>$r[r_edit]</td>";
93
-                                    echo"<td>$r[r_delete]</td>";
94
-                                    echo"<td style='text-align:center;'>$r[aktif]</td>";
95
-                                    echo" <td  style='text-align:center;'>";
96
-                                    if ($r_edit == 'Y') {
97
-                                        echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_user=$r[id_user]&id_module=$id&width=720&height=580&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
98
-                                    }
86
+                                            echo'<tr>';
87
+                                            echo"<td>$r[id_user]</td>";
88
+                                            echo"<td>$r[username]</td>";
89
+                                            echo"<td>$r[nik]</td>";
90
+                                            echo"<td>$r[groups]</td>";
91
+                                            echo"<td>$r[r_input]</td>";
92
+                                            echo"<td>$r[r_edit]</td>";
93
+                                            echo"<td>$r[r_delete]</td>";
94
+                                            echo"<td style='text-align:center;'>$r[aktif]</td>";
95
+                                            echo" <td  style='text-align:center;'>";
96
+                                            if ($r_edit == 'Y') {
97
+                                                echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_user=$r[id_user]&id_module=$id&width=720&height=580&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
98
+                                            }
99 99
 
100
-                                    // if($r_delete == 'Y') {
101
-                                    // echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_user]&id_module=$id' onClick=\"return confirm('Hapus data ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
102
-                                    // }
103
-                                    echo'</td>';
104
-                                    echo'</tr>';
105
-                                    $no++;
106
-                                }
107
-                                ?>
100
+                                            // if($r_delete == 'Y') {
101
+                                            // echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_user]&id_module=$id' onClick=\"return confirm('Hapus data ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
102
+                                            // }
103
+                                            echo'</td>';
104
+                                            echo'</tr>';
105
+                                            $no++;
106
+                                        }
107
+                                        ?>
108 108
                          </tbody>
109 109
                     </table>
110 110
                   </div>
Please login to merge, or discard this patch.
modul/mod_groupmodul/groupmodul.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,11 +57,11 @@  discard block
 block discarded – undo
57 57
                                     echo"<td><b>$r[nama_modul]</b></td>";
58 58
                                     echo"<td style='text-align:center;'>$r[aktif]</td>";
59 59
                                     echo" <td  style='text-align:center;'>";
60
-                                    if ($r_edit == 'Y') {
60
+                                    if ($r_edit=='Y') {
61 61
                                         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>";
62 62
                                     }
63 63
 
64
-                                    if ($r_delete == 'Y') {
64
+                                    if ($r_delete=='Y') {
65 65
                                         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>";
66 66
                                     }
67 67
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
                                         echo"<td style='text-align:center;'>$d[aktif]</td>";
86 86
                                         echo"<td style='text-align:right;'>";
87
-                                        if ($r_delete == 'Y') {
87
+                                        if ($r_delete=='Y') {
88 88
                                             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>";
89 89
                                         }
90 90
                                         echo'</td>';
Please login to merge, or discard this patch.
Switch Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 block discarded – undo
1
-  
2
-<?php
1
+      
2
+    <?php
3 3
 switch ($_GET[act]) {
4 4
 
5
-default:
6
-  ?>
5
+        default:
6
+          ?>
7 7
 
8 8
  <div class="">
9 9
                    
@@ -43,32 +43,32 @@  discard block
 block discarded – undo
43 43
                         <tbody>
44 44
                          <?php
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
50 50
                        WHERE c.status_menu = 'M'
51 51
                        ORDER BY a.id_groups,a.id_modul");
52 52
 
53
-                $no = 1;
54
-                                while ($r = mysql_fetch_array($tampil)) {
55
-                                    echo'<tr>';
56
-                                    echo"<td><b>$r[groups]</b></td>";
57
-                                    echo"<td><b>$r[nama_modul]</b></td>";
58
-                                    echo"<td style='text-align:center;'>$r[aktif]</td>";
59
-                                    echo" <td  style='text-align:center;'>";
60
-                                    if ($r_edit == 'Y') {
61
-                                        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>";
62
-                                    }
53
+                        $no = 1;
54
+                                        while ($r = mysql_fetch_array($tampil)) {
55
+                                            echo'<tr>';
56
+                                            echo"<td><b>$r[groups]</b></td>";
57
+                                            echo"<td><b>$r[nama_modul]</b></td>";
58
+                                            echo"<td style='text-align:center;'>$r[aktif]</td>";
59
+                                            echo" <td  style='text-align:center;'>";
60
+                                            if ($r_edit == 'Y') {
61
+                                                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>";
62
+                                            }
63 63
 
64
-                                    if ($r_delete == 'Y') {
65
-                                        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>";
66
-                                    }
64
+                                            if ($r_delete == 'Y') {
65
+                                                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>";
66
+                                            }
67 67
 
68
-                                    echo'</td>';
69
-                                    echo'</tr>';
68
+                                            echo'</td>';
69
+                                            echo'</tr>';
70 70
 
71
-                                    $dtampil = mysql_query("SELECT a.*,b.groups,c.nama_modul,c.status_menu FROM groupmodul a INNER JOIN groups b
71
+                                            $dtampil = mysql_query("SELECT a.*,b.groups,c.nama_modul,c.status_menu FROM groupmodul a INNER JOIN groups b
72 72
                        ON a.id_groups = b.id_groups
73 73
                        INNER JOIN modul c
74 74
                        ON a.id_modul = c.id_modul
@@ -77,24 +77,24 @@  discard block
 block discarded – undo
77 77
                        AND a.id_groups  = '$r[id_groups]'
78 78
                        ORDER BY a.id_groupmodul");
79 79
 
80
-                                    while ($d = mysql_fetch_array($dtampil)) {
81
-                                        echo'<tr>';
82
-                                        echo'<td></td>';
83
-                                        echo"<td>$d[nama_modul]</td>";
80
+                                            while ($d = mysql_fetch_array($dtampil)) {
81
+                                                echo'<tr>';
82
+                                                echo'<td></td>';
83
+                                                echo"<td>$d[nama_modul]</td>";
84 84
 
85
-                                        echo"<td style='text-align:center;'>$d[aktif]</td>";
86
-                                        echo"<td style='text-align:right;'>";
87
-                                        if ($r_delete == 'Y') {
88
-                                            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>";
89
-                                        }
90
-                                        echo'</td>';
85
+                                                echo"<td style='text-align:center;'>$d[aktif]</td>";
86
+                                                echo"<td style='text-align:right;'>";
87
+                                                if ($r_delete == 'Y') {
88
+                                                    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>";
89
+                                                }
90
+                                                echo'</td>';
91 91
 
92
-                                        echo'</tr>';
93
-                                    }
92
+                                                echo'</tr>';
93
+                                            }
94 94
 
95
-                                    $no++;
96
-                                }
97
-                                ?>
95
+                                            $no++;
96
+                                        }
97
+                                        ?>
98 98
                          </tbody>
99 99
                     </table>
100 100
                   </div>
Please login to merge, or discard this patch.
modul/mod_modul/modul.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -54,15 +54,15 @@  discard block
 block discarded – undo
54 54
 
55 55
                                     echo"<td style='text-align:center;'>$r[aktif]</td>";
56 56
                                     echo"<td style='text-align:center;'>";
57
-                                    if ($r_input == 'Y') {
57
+                                    if ($r_input=='Y') {
58 58
                                         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>";
59 59
                                     }
60 60
 
61
-                                    if ($r_edit == 'Y') {
61
+                                    if ($r_edit=='Y') {
62 62
                                         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>";
63 63
                                     }
64 64
 
65
-                                    if ($r_delete == 'Y') {
65
+                                    if ($r_delete=='Y') {
66 66
                                         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>";
67 67
                                     }
68 68
                                     echo'</td>';
@@ -80,11 +80,11 @@  discard block
 block discarded – undo
80 80
 
81 81
                                         echo"<td style='text-align:center;'>$d[aktif]</td>";
82 82
                                         echo" <td style='text-align:right;'>";
83
-                                        if ($r_edit == 'Y') {
83
+                                        if ($r_edit=='Y') {
84 84
                                             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>";
85 85
                                         }
86 86
 
87
-                                        if ($r_delete == 'Y') {
87
+                                        if ($r_delete=='Y') {
88 88
                                             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>";
89 89
                                         }
90 90
                                         echo'</td>';
Please login to merge, or discard this patch.
Switch Indentation   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 block discarded – undo
1
-  
2
-<?php
1
+      
2
+    <?php
3 3
 switch ($_GET[act]) {
4 4
 
5
-default:
6
-  ?>
5
+        default:
6
+          ?>
7 7
 
8 8
  <div class="">
9 9
                    
@@ -44,56 +44,56 @@  discard block
 block discarded – undo
44 44
                             
45 45
                          <?php
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
-                                    echo"<td style='text-align:center;'>$r[aktif]</td>";
56
-                                    echo"<td style='text-align:center;'>";
57
-                                    if ($r_input == 'Y') {
58
-                                        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>";
59
-                                    }
55
+                                            echo"<td style='text-align:center;'>$r[aktif]</td>";
56
+                                            echo"<td style='text-align:center;'>";
57
+                                            if ($r_input == 'Y') {
58
+                                                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>";
59
+                                            }
60 60
 
61
-                                    if ($r_edit == 'Y') {
62
-                                        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>";
63
-                                    }
61
+                                            if ($r_edit == 'Y') {
62
+                                                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>";
63
+                                            }
64 64
 
65
-                                    if ($r_delete == 'Y') {
66
-                                        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>";
67
-                                    }
68
-                                    echo'</td>';
65
+                                            if ($r_delete == 'Y') {
66
+                                                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>";
67
+                                            }
68
+                                            echo'</td>';
69 69
 
70
-                                    echo'</tr>';
70
+                                            echo'</tr>';
71 71
 
72
-                                    $dtampil = mysql_query("SELECT * FROM modul
72
+                                            $dtampil = mysql_query("SELECT * FROM modul
73 73
                             WHERE status_menu = 'c'
74 74
                             AND parentid = '$r[id_modul]' and aktif = 'Y' ORDER BY urutan ASC");
75 75
 
76
-                                    while ($d = mysql_fetch_array($dtampil)) {
77
-                                        echo'<tr>';
78
-                                        echo"<td style='padding-left:15px;'>$d[nama_modul]</td>";
79
-                                        echo"<td style='text-transform:lowercase;'>$d[link]</td>";
76
+                                            while ($d = mysql_fetch_array($dtampil)) {
77
+                                                echo'<tr>';
78
+                                                echo"<td style='padding-left:15px;'>$d[nama_modul]</td>";
79
+                                                echo"<td style='text-transform:lowercase;'>$d[link]</td>";
80 80
 
81
-                                        echo"<td style='text-align:center;'>$d[aktif]</td>";
82
-                                        echo" <td style='text-align:right;'>";
83
-                                        if ($r_edit == 'Y') {
84
-                                            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>";
85
-                                        }
81
+                                                echo"<td style='text-align:center;'>$d[aktif]</td>";
82
+                                                echo" <td style='text-align:right;'>";
83
+                                                if ($r_edit == 'Y') {
84
+                                                    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>";
85
+                                                }
86 86
 
87
-                                        if ($r_delete == 'Y') {
88
-                                            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>";
89
-                                        }
90
-                                        echo'</td>';
91
-                                        echo'</tr>';
92
-                                    }
87
+                                                if ($r_delete == 'Y') {
88
+                                                    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>";
89
+                                                }
90
+                                                echo'</td>';
91
+                                                echo'</tr>';
92
+                                            }
93 93
 
94
-                                    $no++;
95
-                                }
96
-                                ?>
94
+                                            $no++;
95
+                                        }
96
+                                        ?>
97 97
                          </tbody>
98 98
                     </table>
99 99
                   </div>
Please login to merge, or discard this patch.
modul/mod_groups/groups.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,11 +58,11 @@
 block discarded – undo
58 58
                 echo"<td style='text-align:center;'>$r[aktif]</td>";
59 59
                 echo" <td  style='text-align:center;'>";
60 60
 
61
-                if ($r_edit == 'Y') {
61
+                if ($r_edit=='Y') {
62 62
                     echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_groups=$r[id_groups]&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>";
63 63
                 }
64 64
 
65
-                if ($r_delete == 'Y') {
65
+                if ($r_delete=='Y') {
66 66
                     echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_groups]&id_module=$id' onClick=\"return confirm('Delete this record ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
67 67
                 }
68 68
                 echo'</td>';
Please login to merge, or discard this patch.
Switch Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 block discarded – undo
1
-  
2
-<?php
1
+      
2
+    <?php
3 3
 switch ($_GET[act]) {
4 4
 
5
-default:
6
-  ?>
5
+        default:
6
+          ?>
7 7
 
8 8
  <div class="">
9 9
                    
@@ -45,31 +45,31 @@  discard block
 block discarded – undo
45 45
                             
46 46
                          <?php
47 47
 
48
-            $tampil = mysql_query('SELECT * FROM groups a 
48
+                    $tampil = mysql_query('SELECT * FROM groups a 
49 49
                                  ORDER BY id_groups');
50 50
 
51
-            $no = 1;
51
+                    $no = 1;
52 52
 
53
-            while ($r = mysql_fetch_array($tampil)) {
54
-                echo'<tr>';
55
-                echo"<td>$r[groups]</td>";
56
-                // echo"<td>$r[main_page]</td>";
57
-                // echo"<td>$r[tipe_sales]</td>";
58
-                echo"<td style='text-align:center;'>$r[aktif]</td>";
59
-                echo" <td  style='text-align:center;'>";
53
+                    while ($r = mysql_fetch_array($tampil)) {
54
+                        echo'<tr>';
55
+                        echo"<td>$r[groups]</td>";
56
+                        // echo"<td>$r[main_page]</td>";
57
+                        // echo"<td>$r[tipe_sales]</td>";
58
+                        echo"<td style='text-align:center;'>$r[aktif]</td>";
59
+                        echo" <td  style='text-align:center;'>";
60 60
 
61
-                if ($r_edit == 'Y') {
62
-                    echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_groups=$r[id_groups]&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>";
63
-                }
61
+                        if ($r_edit == 'Y') {
62
+                            echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_groups=$r[id_groups]&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>";
63
+                        }
64 64
 
65
-                if ($r_delete == 'Y') {
66
-                    echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_groups]&id_module=$id' onClick=\"return confirm('Delete this record ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
67
-                }
68
-                echo'</td>';
69
-                echo'</tr>';
70
-                $no++;
71
-            }
72
-                                ?>
65
+                        if ($r_delete == 'Y') {
66
+                            echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_groups]&id_module=$id' onClick=\"return confirm('Delete this record ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
67
+                        }
68
+                        echo'</td>';
69
+                        echo'</tr>';
70
+                        $no++;
71
+                    }
72
+                                        ?>
73 73
                          </tbody>
74 74
                     </table>
75 75
                   </div>
Please login to merge, or discard this patch.
modul/mod_poli/poli.php 2 patches
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,28 +43,28 @@  discard block
 block discarded – undo
43 43
                             
44 44
                          <?php
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)) {
51
-                echo'<tr>';
52
-                echo"<td>$r[poli]</td>";
53
-                echo"<td style='text-align:center;'>$r[aktif]</td>";
54
-                echo" <td  style='text-align:center;'>";
50
+                while ($r = mysql_fetch_array($tampil)) {
51
+                    echo'<tr>';
52
+                    echo"<td>$r[poli]</td>";
53
+                    echo"<td style='text-align:center;'>$r[aktif]</td>";
54
+                    echo" <td  style='text-align:center;'>";
55 55
 
56
-                if ($r_edit == 'Y') {
57
-                    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>";
58
-                }
56
+                    if ($r_edit == 'Y') {
57
+                        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>";
58
+                    }
59 59
 
60
-                // if($r_delete == 'Y') {
61
-                // 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>";
62
-                // }
63
-                echo'</td>';
64
-                echo'</tr>';
65
-                $no++;
66
-            }
67
-                                ?>
60
+                    // if($r_delete == 'Y') {
61
+                    // 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>";
62
+                    // }
63
+                    echo'</td>';
64
+                    echo'</tr>';
65
+                    $no++;
66
+                }
67
+                                    ?>
68 68
                          </tbody>
69 69
                     </table>
70 70
                   </div>
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
                 echo"<td style='text-align:center;'>$r[aktif]</td>";
54 54
                 echo" <td  style='text-align:center;'>";
55 55
 
56
-                if ($r_edit == 'Y') {
56
+                if ($r_edit=='Y') {
57 57
                     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>";
58 58
                 }
59 59
 
Please login to merge, or discard this patch.
modul/mod_kunjungan_berobat/kunjungan_berobat.php 3 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,8 +77,8 @@
 block discarded – undo
77 77
                     //if ($status == '0') {
78 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 79
                     // } else {
80
-              //  echo"<span class='icon'><i class='fa fa-pencil'></i></span>";
81
-              // }
80
+                //  echo"<span class='icon'><i class='fa fa-pencil'></i></span>";
81
+                // }
82 82
                 }
83 83
 
84 84
                 if ($r_delete == 'Y') {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
                 echo"<td>$r[kategori]</td>";
74 74
                 echo" <td  style='text-align:center;'>";
75 75
 
76
-                if ($r_edit == 'Y') {
76
+                if ($r_edit=='Y') {
77 77
                     //if ($status == '0') {
78 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 79
                     // } else {
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
               // }
82 82
                 }
83 83
 
84
-                if ($r_delete == 'Y') {
84
+                if ($r_delete=='Y') {
85 85
                     //if ($status == '0') {
86 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
 
Please login to merge, or discard this patch.
Switch Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1
-<?php
1
+    <?php
2 2
 switch ($_GET[act]) {
3 3
 
4
-default:
5
-  ?>
4
+        default:
5
+          ?>
6 6
 
7 7
  <div class="">
8 8
                    
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
                             
48 48
                          <?php
49 49
 
50
-            $tampil = mysql_query('SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori 
50
+                    $tampil = mysql_query('SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori 
51 51
                                 FROM kunjungan_berobat a left join pasien b 
52 52
                                  ON a.id_pasien = b.id_pasien
53 53
                                  left join poli c 
@@ -56,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_report_rekap_harian/report_rekap_harian.php 3 patches
Indentation   +16 added lines, -16 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
                    
@@ -101,16 +101,16 @@  discard block
 block discarded – undo
101 101
                 <div class="col-md-9 col-sm-9 col-xs-9 form-group"> 
102 102
                      <select name="jenis_transaksi" class="form-control">
103 103
                         <?php
104
-                          $query = mysql_query('SELECT * FROM jenis_transaksi ORDER BY id_jenis_transaksi');
105
-                           if ($query && mysql_num_rows($query) > 0) {
106
-                               while ($row = mysql_fetch_object($query)) {
107
-                                   echo '<option value="'.$row->id_jenis_transaksi.'"';
108
-                                   if ($row->id_jenis_transaksi == '1') {
109
-                                       echo ' selected';
110
-                                   }
111
-                                   echo '>'.$row->jenis_transaksi.'</option>';
112
-                               }
113
-                           }
104
+                            $query = mysql_query('SELECT * FROM jenis_transaksi ORDER BY id_jenis_transaksi');
105
+                            if ($query && mysql_num_rows($query) > 0) {
106
+                                while ($row = mysql_fetch_object($query)) {
107
+                                    echo '<option value="'.$row->id_jenis_transaksi.'"';
108
+                                    if ($row->id_jenis_transaksi == '1') {
109
+                                        echo ' selected';
110
+                                    }
111
+                                    echo '>'.$row->jenis_transaksi.'</option>';
112
+                                }
113
+                            }
114 114
                         ?>  
115 115
                         </select>                
116 116
                 </div>
@@ -132,12 +132,12 @@  discard block
 block discarded – undo
132 132
 
133 133
              <?php
134 134
 
135
-             $module = '?module='.$_GET['module'];
136
-             $tampil = mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");
137
-             $r = mysql_fetch_array($tampil);
135
+                $module = '?module='.$_GET['module'];
136
+                $tampil = mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");
137
+                $r = mysql_fetch_array($tampil);
138 138
 
139
-             echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].'>';
140
-             echo"<input type='hidden' name='module' value=".$_GET[module].'>';
139
+                echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].'>';
140
+                echo"<input type='hidden' name='module' value=".$_GET[module].'>';
141 141
             ?>
142 142
             </form>    
143 143
                    
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -102,10 +102,10 @@  discard block
 block discarded – undo
102 102
                      <select name="jenis_transaksi" class="form-control">
103 103
                         <?php
104 104
                           $query = mysql_query('SELECT * FROM jenis_transaksi ORDER BY id_jenis_transaksi');
105
-                           if ($query && mysql_num_rows($query) > 0) {
105
+                           if ($query && mysql_num_rows($query)>0) {
106 106
                                while ($row = mysql_fetch_object($query)) {
107 107
                                    echo '<option value="'.$row->id_jenis_transaksi.'"';
108
-                                   if ($row->id_jenis_transaksi == '1') {
108
+                                   if ($row->id_jenis_transaksi=='1') {
109 109
                                        echo ' selected';
110 110
                                    }
111 111
                                    echo '>'.$row->jenis_transaksi.'</option>';
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
             </form>    
143 143
                    
144 144
                 </div>
145
-                <?php for ($i = 0; $i <= 20; $i++) {
145
+                <?php for ($i = 0; $i<=20; $i++) {
146 146
                 ?>
147 147
                     <br />
148 148
                     <?php
Please login to merge, or discard this patch.
Switch Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -56,15 +56,15 @@  discard block
 block discarded – undo
56 56
 <?php
57 57
 switch ($_GET[act]) {
58 58
 
59
-default:
59
+        default:
60 60
 
61
-$fdate = date('Y-m-01');
62
-$ldate = date('Y-m-d');
61
+        $fdate = date('Y-m-01');
62
+        $ldate = date('Y-m-d');
63 63
 
64
-$prd = date('Y-m');
64
+        $prd = date('Y-m');
65 65
 
66
-$userid = $_SESSION['userid'];
67
-  ?>
66
+        $userid = $_SESSION['userid'];
67
+          ?>
68 68
 
69 69
  <div class="">
70 70
                    
@@ -101,17 +101,17 @@  discard block
 block discarded – undo
101 101
                 <div class="col-md-9 col-sm-9 col-xs-9 form-group"> 
102 102
                      <select name="jenis_transaksi" class="form-control">
103 103
                         <?php
104
-                          $query = mysql_query('SELECT * FROM jenis_transaksi ORDER BY id_jenis_transaksi');
105
-                           if ($query && mysql_num_rows($query) > 0) {
106
-                               while ($row = mysql_fetch_object($query)) {
107
-                                   echo '<option value="'.$row->id_jenis_transaksi.'"';
108
-                                   if ($row->id_jenis_transaksi == '1') {
109
-                                       echo ' selected';
104
+                                  $query = mysql_query('SELECT * FROM jenis_transaksi ORDER BY id_jenis_transaksi');
105
+                                   if ($query && mysql_num_rows($query) > 0) {
106
+                                       while ($row = mysql_fetch_object($query)) {
107
+                                           echo '<option value="'.$row->id_jenis_transaksi.'"';
108
+                                           if ($row->id_jenis_transaksi == '1') {
109
+                                               echo ' selected';
110
+                                           }
111
+                                           echo '>'.$row->jenis_transaksi.'</option>';
112
+                                       }
110 113
                                    }
111
-                                   echo '>'.$row->jenis_transaksi.'</option>';
112
-                               }
113
-                           }
114
-                        ?>  
114
+                                ?>  
115 115
                         </select>                
116 116
                 </div>
117 117
                
@@ -124,30 +124,30 @@  discard block
 block discarded – undo
124 124
                 <div class="col-md-9 col-sm-9 col-xs-9 form-group"> 
125 125
                  <label class="control-label">
126 126
                     <?php
127
-                    echo"<input type=radio name='printto' value='1' class='flat' checked>&nbsp Preview &nbsp</label>";
128
-                    echo"<input type=radio name='printto' value='2' class='flat'>&nbsp Print</label> ";
129
-                    ?>      
127
+                            echo"<input type=radio name='printto' value='1' class='flat' checked>&nbsp Preview &nbsp</label>";
128
+                            echo"<input type=radio name='printto' value='2' class='flat'>&nbsp Print</label> ";
129
+                            ?>      
130 130
                  </label>             
131 131
                 </div> 
132 132
 
133 133
              <?php
134 134
 
135
-             $module = '?module='.$_GET['module'];
136
-             $tampil = mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");
137
-             $r = mysql_fetch_array($tampil);
135
+                     $module = '?module='.$_GET['module'];
136
+                     $tampil = mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");
137
+                     $r = mysql_fetch_array($tampil);
138 138
 
139
-             echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].'>';
140
-             echo"<input type='hidden' name='module' value=".$_GET[module].'>';
141
-            ?>
139
+                     echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].'>';
140
+                     echo"<input type='hidden' name='module' value=".$_GET[module].'>';
141
+                    ?>
142 142
             </form>    
143 143
                    
144 144
                 </div>
145 145
                 <?php for ($i = 0; $i <= 20; $i++) {
146
-                ?>
147
-                    <br />
146
+                        ?>
147
+                            <br />
148 148
                     <?php
149
-            }
150
-                    ?>
149
+                    }
150
+                            ?>
151 151
                  </div>
152 152
                    
153 153
                   
@@ -156,5 +156,5 @@  discard block
 block discarded – undo
156 156
 
157 157
     <?php
158 158
 }
159
-?>
160
-
159
+    ?>
160
+    
Please login to merge, or discard this patch.