Passed
Pull Request — master (#7)
by Saepul
04:10
created
modul/mod_report_rekap_harian/report_rekap_harian.php 3 patches
Indentation   +14 added lines, -14 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,14 +101,14 @@  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
                         <?
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') echo ' selected';
109
-                              echo '>'.$row->jenis_transaksi.'</option>';
110
-                              }
111
-                           }        
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') echo ' selected';
109
+                                echo '>'.$row->jenis_transaksi.'</option>';
110
+                                }
111
+                            }        
112 112
                         ?>  
113 113
                         </select>                
114 114
                 </div>
@@ -130,12 +130,12 @@  discard block
 block discarded – undo
130 130
 
131 131
              <?
132 132
 
133
-             $module = '?module='.$_GET['module'];          
134
-             $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
135
-             $r=mysql_fetch_array($tampil);
133
+                $module = '?module='.$_GET['module'];          
134
+                $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
135
+                $r=mysql_fetch_array($tampil);
136 136
 
137
-             echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
138
-             echo"<input type='hidden' name='module' value=".$_GET[module].">";
137
+                echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
138
+                echo"<input type='hidden' name='module' value=".$_GET[module].">";
139 139
             ?>
140 140
             </form>    
141 141
                    
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
   }
36 36
 
37
-  xmlhttp.open("GET","<?php echo"./modul/mod_$module/getlokasi.php?q=";?>"+str,true);
37
+  xmlhttp.open("GET","<?php echo"./modul/mod_$module/getlokasi.php?q="; ?>"+str,true);
38 38
 
39 39
   xmlhttp.send();
40 40
 
@@ -54,28 +54,28 @@  discard block
 block discarded – undo
54 54
 
55 55
 
56 56
 <?php
57
-switch($_GET[act]){
57
+switch ($_GET[act]) {
58 58
 
59 59
 default:  
60 60
 
61 61
 $fdate   = date("Y-m-01");
62 62
 $ldate   = date("Y-m-d");
63 63
 
64
-$prd   = date("Y-m");
64
+$prd = date("Y-m");
65 65
 
66
-$userid   = $_SESSION['userid'];  
66
+$userid = $_SESSION['userid'];  
67 67
   ?>
68 68
 
69 69
  <div class="">
70 70
                    
71 71
         <div class="row">
72 72
 
73
-          <form name="myform" id="myform" method="get" action="<? echo"modul/mod_$module/print_$module.php";?>"  onSubmit="popup<?=$module?>(this, 'join')"> 
73
+          <form name="myform" id="myform" method="get" action="<? echo"modul/mod_$module/print_$module.php"; ?>"  onSubmit="popup<?=$module?>(this, 'join')"> 
74 74
   
75 75
                 <div class="col-md-12 col-sm-12 col-xs-12">
76 76
                     <div class="x_panel">
77 77
                         <div class="x_title">
78
-                               <h2><?=$nmmodule;?></h2>
78
+                               <h2><?=$nmmodule; ?></h2>
79 79
                                <div class='pull-right'>
80 80
                                 <Button type="submit" class="btn btn-primary">
81 81
                                  <span class="glyphicon glyphicon-print" style='color:#fff;'></span>
@@ -102,10 +102,10 @@  discard block
 block discarded – undo
102 102
                      <select name="jenis_transaksi" class="form-control">
103 103
                         <?
104 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)){
105
+                           if ($query && mysql_num_rows($query)>0) {
106
+                              while ($row = mysql_fetch_object($query)) {
107 107
                               echo '<option value="'.$row->id_jenis_transaksi.'"';
108
-                              if($row->id_jenis_transaksi == '1') echo ' selected';
108
+                              if ($row->id_jenis_transaksi=='1') echo ' selected';
109 109
                               echo '>'.$row->jenis_transaksi.'</option>';
110 110
                               }
111 111
                            }        
@@ -131,8 +131,8 @@  discard block
 block discarded – undo
131 131
              <?
132 132
 
133 133
              $module = '?module='.$_GET['module'];          
134
-             $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
135
-             $r=mysql_fetch_array($tampil);
134
+             $tampil = mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
135
+             $r = mysql_fetch_array($tampil);
136 136
 
137 137
              echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
138 138
              echo"<input type='hidden' name='module' value=".$_GET[module].">";
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
             </form>    
141 141
                    
142 142
                 </div>
143
-                <?for($i = 0; $i <= 20; $i++)  { 
143
+                <?for ($i = 0; $i<=20; $i++) { 
144 144
                     ?>
145 145
                     <br />
146 146
                     <?
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,9 @@
 block discarded – undo
105 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') echo ' selected';
108
+                              if($row->id_jenis_transaksi == '1') {
109
+                                  echo ' selected';
110
+                              }
109 111
                               echo '>'.$row->jenis_transaksi.'</option>';
110 112
                               }
111 113
                            }        
Please login to merge, or discard this patch.
modul/mod_user/user.php 3 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -98,13 +98,13 @@
 block discarded – undo
98 98
                                 echo"<td style='text-align:center;'>$r[aktif]</td>";    
99 99
                                 echo" <td  style='text-align:center;'>";
100 100
                                 if($r_edit == 'Y') {
101
-                                   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>";
102
-                                   }
101
+                                    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>";
102
+                                    }
103 103
 
104 104
                                    
105
-                                   // if($r_delete == 'Y') {
106
-                                   // 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>";
107
-                                   // }  
105
+                                    // if($r_delete == 'Y') {
106
+                                    // 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>";
107
+                                    // }  
108 108
                                 echo"</td>";                        
109 109
                                 echo"</tr>";
110 110
                                 $no++;
Please login to merge, or discard this patch.
Switch Indentation   +46 added lines, -46 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@  discard block
 block discarded – undo
5 5
 switch($_GET[act]){
6 6
   
7 7
 
8
-default:  
9
-  ?>
8
+    default:  
9
+      ?>
10 10
 
11 11
  <div class="">
12 12
                    
@@ -53,64 +53,64 @@  discard block
 block discarded – undo
53 53
                          <?
54 54
                       
55 55
         
56
-                        $tampil=mysql_query("SELECT a.*,b.groups FROM user a INNER JOIN groups b 
56
+                            $tampil=mysql_query("SELECT a.*,b.groups FROM user a INNER JOIN groups b 
57 57
                                              ON a.id_groups=b.id_groups                                           
58 58
                                              WHERE a.role != 'SA'
59 59
                                              ORDER BY a.id_user DESC ");
60 60
                                             
61 61
     
62
-                                $no = 1;
63
-                                while ($r=mysql_fetch_array($tampil)){  
62
+                                    $no = 1;
63
+                                    while ($r=mysql_fetch_array($tampil)){  
64 64
                                 
65
-                                if($r[r_input] == 'Y') {
66
-                                    $input =    "<img src='images/cek.png' border=0> Input";
67
-                                } else {
68
-                                    $input =    "<img src='images/del.gif' width='20' border=0> Input"; 
69
-                                }
65
+                                    if($r[r_input] == 'Y') {
66
+                                        $input =    "<img src='images/cek.png' border=0> Input";
67
+                                    } else {
68
+                                        $input =    "<img src='images/del.gif' width='20' border=0> Input"; 
69
+                                    }
70 70
                                 
71
-                                if($r[r_edit] == 'Y') {
72
-                                    $edit = "<img src='images/cek.png' border=0> Edit";
73
-                                } else {
74
-                                    $edit = "<img src='images/del.gif' width='20' border=0> Edit";  
75
-                                }
71
+                                    if($r[r_edit] == 'Y') {
72
+                                        $edit = "<img src='images/cek.png' border=0> Edit";
73
+                                    } else {
74
+                                        $edit = "<img src='images/del.gif' width='20' border=0> Edit";  
75
+                                    }
76 76
                                 
77
-                                if($r[r_delete] == 'Y') {
78
-                                    $delete =   "<img src='images/cek.png' border=0> Delete";
79
-                                } else {
80
-                                    $delete =   "<img src='images/del.gif' width='20' border=0> Delete";    
81
-                                }
77
+                                    if($r[r_delete] == 'Y') {
78
+                                        $delete =   "<img src='images/cek.png' border=0> Delete";
79
+                                    } else {
80
+                                        $delete =   "<img src='images/del.gif' width='20' border=0> Delete";    
81
+                                    }
82 82
 
83
-                                if($r[outlet] == '') {
84
-                                    $outlet =   "Semua Outlet";
85
-                                } else {
86
-                                    $outlet =   $r['outlet'];    
87
-                                }
83
+                                    if($r[outlet] == '') {
84
+                                        $outlet =   "Semua Outlet";
85
+                                    } else {
86
+                                        $outlet =   $r['outlet'];    
87
+                                    }
88 88
                                 
89 89
                                 
90
-                                echo"<tr>";
91
-                                echo"<td>$r[id_user]</td>";
92
-                                echo"<td>$r[username]</td>";
93
-                                echo"<td>$r[nik]</td>";
94
-                                echo"<td>$r[groups]</td>";
95
-                                echo"<td>$r[r_input]</td>";
96
-                                echo"<td>$r[r_edit]</td>";
97
-                                echo"<td>$r[r_delete]</td>";
98
-                                echo"<td style='text-align:center;'>$r[aktif]</td>";    
99
-                                echo" <td  style='text-align:center;'>";
100
-                                if($r_edit == 'Y') {
101
-                                   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>";
102
-                                   }
90
+                                    echo"<tr>";
91
+                                    echo"<td>$r[id_user]</td>";
92
+                                    echo"<td>$r[username]</td>";
93
+                                    echo"<td>$r[nik]</td>";
94
+                                    echo"<td>$r[groups]</td>";
95
+                                    echo"<td>$r[r_input]</td>";
96
+                                    echo"<td>$r[r_edit]</td>";
97
+                                    echo"<td>$r[r_delete]</td>";
98
+                                    echo"<td style='text-align:center;'>$r[aktif]</td>";    
99
+                                    echo" <td  style='text-align:center;'>";
100
+                                    if($r_edit == 'Y') {
101
+                                       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>";
102
+                                       }
103 103
 
104 104
                                    
105
-                                   // if($r_delete == 'Y') {
106
-                                   // 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>";
107
-                                   // }  
108
-                                echo"</td>";                        
109
-                                echo"</tr>";
110
-                                $no++;
105
+                                       // if($r_delete == 'Y') {
106
+                                       // 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>";
107
+                                       // }  
108
+                                    echo"</td>";                        
109
+                                    echo"</tr>";
110
+                                    $no++;
111 111
                                 
112
-                                }
113
-                                ?>
112
+                                    }
113
+                                    ?>
114 114
                          </tbody>
115 115
                     </table>
116 116
                   </div>
Please login to merge, or discard this patch.
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-$outlet = $df_outlet ;  
3
+$outlet = $df_outlet;  
4 4
 
5
-switch($_GET[act]){
5
+switch ($_GET[act]) {
6 6
   
7 7
 
8 8
 default:  
@@ -15,8 +15,8 @@  discard block
 block discarded – undo
15 15
                         <div class="col-md-12 col-sm-12 col-xs-12">
16 16
                             <div class="x_panel">
17 17
                                 <div class="x_title">
18
-                                    <h2><?php echo $nmmodule;?></h2>
19
-                                      <p class="pull-right"><a href='<?php echo"modul/mod_$module/form_$module.php?width=720&height=580&module=$module&id_module=$id_module&TB_iframe=true";?>' title='<?php echo $nmmodule;?> Baru' class='thickbox btn btn-sm btn-success'><i class="fa fa-plus"></i> Baru</a></p>
18
+                                    <h2><?php echo $nmmodule; ?></h2>
19
+                                      <p class="pull-right"><a href='<?php echo"modul/mod_$module/form_$module.php?width=720&height=580&module=$module&id_module=$id_module&TB_iframe=true"; ?>' title='<?php echo $nmmodule; ?> Baru' class='thickbox btn btn-sm btn-success'><i class="fa fa-plus"></i> Baru</a></p>
20 20
                                     <div class="clearfix"></div>
21 21
                                 </div>
22 22
                                 <div class="x_content">
@@ -53,37 +53,37 @@  discard block
 block discarded – undo
53 53
                          <?
54 54
                       
55 55
         
56
-                        $tampil=mysql_query("SELECT a.*,b.groups FROM user a INNER JOIN groups b 
56
+                        $tampil = mysql_query("SELECT a.*,b.groups FROM user a INNER JOIN groups b 
57 57
                                              ON a.id_groups=b.id_groups                                           
58 58
                                              WHERE a.role != 'SA'
59 59
                                              ORDER BY a.id_user DESC ");
60 60
                                             
61 61
     
62 62
                                 $no = 1;
63
-                                while ($r=mysql_fetch_array($tampil)){  
63
+                                while ($r = mysql_fetch_array($tampil)) {  
64 64
                                 
65
-                                if($r[r_input] == 'Y') {
66
-                                    $input =    "<img src='images/cek.png' border=0> Input";
65
+                                if ($r[r_input]=='Y') {
66
+                                    $input = "<img src='images/cek.png' border=0> Input";
67 67
                                 } else {
68
-                                    $input =    "<img src='images/del.gif' width='20' border=0> Input"; 
68
+                                    $input = "<img src='images/del.gif' width='20' border=0> Input"; 
69 69
                                 }
70 70
                                 
71
-                                if($r[r_edit] == 'Y') {
71
+                                if ($r[r_edit]=='Y') {
72 72
                                     $edit = "<img src='images/cek.png' border=0> Edit";
73 73
                                 } else {
74 74
                                     $edit = "<img src='images/del.gif' width='20' border=0> Edit";  
75 75
                                 }
76 76
                                 
77
-                                if($r[r_delete] == 'Y') {
78
-                                    $delete =   "<img src='images/cek.png' border=0> Delete";
77
+                                if ($r[r_delete]=='Y') {
78
+                                    $delete = "<img src='images/cek.png' border=0> Delete";
79 79
                                 } else {
80
-                                    $delete =   "<img src='images/del.gif' width='20' border=0> Delete";    
80
+                                    $delete = "<img src='images/del.gif' width='20' border=0> Delete";    
81 81
                                 }
82 82
 
83
-                                if($r[outlet] == '') {
84
-                                    $outlet =   "Semua Outlet";
83
+                                if ($r[outlet]=='') {
84
+                                    $outlet = "Semua Outlet";
85 85
                                 } else {
86
-                                    $outlet =   $r['outlet'];    
86
+                                    $outlet = $r['outlet'];    
87 87
                                 }
88 88
                                 
89 89
                                 
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
                                 echo"<td>$r[r_delete]</td>";
98 98
                                 echo"<td style='text-align:center;'>$r[aktif]</td>";    
99 99
                                 echo" <td  style='text-align:center;'>";
100
-                                if($r_edit == 'Y') {
100
+                                if ($r_edit=='Y') {
101 101
                                    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>";
102 102
                                    }
103 103
 
Please login to merge, or discard this patch.
modul/mod_report_list_pasien/report_list_pasien.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 $fdate   = date("Y-m-d");
14 14
 $ldate   = date("Y-m-d");
15 15
 
16
-  ?>
16
+    ?>
17 17
 
18 18
  <div class="">
19 19
                    
@@ -63,12 +63,12 @@  discard block
 block discarded – undo
63 63
 
64 64
              <?
65 65
 
66
-             $module = '?module='.$_GET['module'];          
67
-             $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
68
-             $r=mysql_fetch_array($tampil);
66
+                $module = '?module='.$_GET['module'];          
67
+                $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
68
+                $r=mysql_fetch_array($tampil);
69 69
 
70
-             echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
71
-             echo"<input type='hidden' name='module' value=".$_GET[module].">";
70
+                echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
71
+                echo"<input type='hidden' name='module' value=".$_GET[module].">";
72 72
             ?>
73 73
             </form>    
74 74
                    
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
      }
7 7
    </script>  
8 8
 <?php
9
-switch($_GET[act]){
9
+switch ($_GET[act]) {
10 10
 
11 11
 default:  
12 12
 
@@ -19,12 +19,12 @@  discard block
 block discarded – undo
19 19
                    
20 20
         <div class="row">
21 21
 
22
-          <form name="myform" id="myform" method="get" action="<? echo"modul/mod_$module/print_$module.php";?>"  onSubmit="popup<?=$module?>(this, 'join')"> 
22
+          <form name="myform" id="myform" method="get" action="<? echo"modul/mod_$module/print_$module.php"; ?>"  onSubmit="popup<?=$module?>(this, 'join')"> 
23 23
   
24 24
                 <div class="col-md-12 col-sm-12 col-xs-12">
25 25
                     <div class="x_panel">
26 26
                         <div class="x_title">
27
-                               <h2><?=$nmmodule;?></h2>
27
+                               <h2><?=$nmmodule; ?></h2>
28 28
                                <div class='pull-right'>
29 29
                                 <Button type="submit" class="btn btn-primary">
30 30
                                  <span class="glyphicon glyphicon-print" style='color:#fff;'></span>
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
                      <select name="tipe" class="form-control">
44 44
                      <option value='%'>Semua</option>
45 45
 
46
-                     <? for ($x = 'A'; $x <= 'Z'; $x++) { ?>
47
-                        <option value= '<?=$x;?>'><?=$x;?></option>
46
+                     <? for ($x = 'A'; $x<='Z'; $x++) { ?>
47
+                        <option value= '<?=$x; ?>'><?=$x; ?></option>
48 48
                      <? } ?>
49 49
 
50 50
                      </select>   
@@ -64,8 +64,8 @@  discard block
 block discarded – undo
64 64
              <?
65 65
 
66 66
              $module = '?module='.$_GET['module'];          
67
-             $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
68
-             $r=mysql_fetch_array($tampil);
67
+             $tampil = mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
68
+             $r = mysql_fetch_array($tampil);
69 69
 
70 70
              echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
71 71
              echo"<input type='hidden' name='module' value=".$_GET[module].">";
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
             </form>    
74 74
                    
75 75
                 </div>
76
-                <?for($i = 0; $i <= 20; $i++)  { 
76
+                <?for ($i = 0; $i<=20; $i++) { 
77 77
                     ?>
78 78
                     <br />
79 79
                     <?
Please login to merge, or discard this patch.
modul/mod_report_rekam_medis/report_rekam_medis.php 3 patches
Indentation   +14 added lines, -14 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
                    
@@ -93,17 +93,17 @@  discard block
 block discarded – undo
93 93
                     <select required name="pasien" class="form-control">
94 94
                      <option>--Pilih Pasien--</option>                
95 95
                         <?
96
-                          $query = mysql_query('SELECT * FROM pasien ORDER BY nama');
97
-                           if($query && mysql_num_rows($query) > 0){
98
-                              while($row = mysql_fetch_object($query)){
96
+                            $query = mysql_query('SELECT * FROM pasien ORDER BY nama');
97
+                            if($query && mysql_num_rows($query) > 0){
98
+                                while($row = mysql_fetch_object($query)){
99 99
 
100 100
                                 $pasien = $row->ktp.'-'.$row->nama;
101 101
 
102
-                                 echo '<option value="'.$row->id_pasien.'"';
103
-                                 if($row->id_pasien == @$data->id_pasien) echo ' selected';
104
-                                 echo '>'.$pasien.'</option>';
105
-                              }
106
-                           }        
102
+                                    echo '<option value="'.$row->id_pasien.'"';
103
+                                    if($row->id_pasien == @$data->id_pasien) echo ' selected';
104
+                                    echo '>'.$pasien.'</option>';
105
+                                }
106
+                            }        
107 107
                     ?>
108 108
                     </select>
109 109
                 </div> 
@@ -137,12 +137,12 @@  discard block
 block discarded – undo
137 137
 
138 138
              <?
139 139
 
140
-             $module = '?module='.$_GET['module'];          
141
-             $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
142
-             $r=mysql_fetch_array($tampil);
140
+                $module = '?module='.$_GET['module'];          
141
+                $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
142
+                $r=mysql_fetch_array($tampil);
143 143
 
144
-             echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
145
-             echo"<input type='hidden' name='module' value=".$_GET[module].">";
144
+                echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
145
+                echo"<input type='hidden' name='module' value=".$_GET[module].">";
146 146
             ?>
147 147
             </form>    
148 148
                    
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
   }
36 36
 
37
-  xmlhttp.open("GET","<?php echo"./modul/mod_$module/getlokasi.php?q=";?>"+str,true);
37
+  xmlhttp.open("GET","<?php echo"./modul/mod_$module/getlokasi.php?q="; ?>"+str,true);
38 38
 
39 39
   xmlhttp.send();
40 40
 
@@ -54,28 +54,28 @@  discard block
 block discarded – undo
54 54
 
55 55
 
56 56
 <?php
57
-switch($_GET[act]){
57
+switch ($_GET[act]) {
58 58
 
59 59
 default:  
60 60
 
61 61
 $fdate   = date("Y-m-01");
62 62
 $ldate   = date("Y-m-d");
63 63
 
64
-$prd   = date("Y-m");
64
+$prd = date("Y-m");
65 65
 
66
-$userid   = $_SESSION['userid'];  
66
+$userid = $_SESSION['userid'];  
67 67
   ?>
68 68
 
69 69
  <div class="">
70 70
                    
71 71
         <div class="row">
72 72
 
73
-          <form name="myform" id="myform" method="get" action="<? echo"modul/mod_$module/print_$module.php";?>"  onSubmit="popup<?=$module?>(this, 'join');"> 
73
+          <form name="myform" id="myform" method="get" action="<? echo"modul/mod_$module/print_$module.php"; ?>"  onSubmit="popup<?=$module?>(this, 'join');"> 
74 74
   
75 75
                 <div class="col-md-12 col-sm-12 col-xs-12">
76 76
                     <div class="x_panel">
77 77
                         <div class="x_title">
78
-                               <h2><?=$nmmodule;?></h2>
78
+                               <h2><?=$nmmodule; ?></h2>
79 79
                                <div class='pull-right'>
80 80
                                 <Button type="submit" class="btn btn-primary">
81 81
                                  <span class="glyphicon glyphicon-print" style='color:#fff;'></span>
@@ -94,13 +94,13 @@  discard block
 block discarded – undo
94 94
                      <option>--Pilih Pasien--</option>                
95 95
                         <?
96 96
                           $query = mysql_query('SELECT * FROM pasien ORDER BY nama');
97
-                           if($query && mysql_num_rows($query) > 0){
98
-                              while($row = mysql_fetch_object($query)){
97
+                           if ($query && mysql_num_rows($query)>0) {
98
+                              while ($row = mysql_fetch_object($query)) {
99 99
 
100 100
                                 $pasien = $row->ktp.'-'.$row->nama;
101 101
 
102 102
                                  echo '<option value="'.$row->id_pasien.'"';
103
-                                 if($row->id_pasien == @$data->id_pasien) echo ' selected';
103
+                                 if ($row->id_pasien==@$data->id_pasien) echo ' selected';
104 104
                                  echo '>'.$pasien.'</option>';
105 105
                               }
106 106
                            }        
@@ -138,8 +138,8 @@  discard block
 block discarded – undo
138 138
              <?
139 139
 
140 140
              $module = '?module='.$_GET['module'];          
141
-             $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
142
-             $r=mysql_fetch_array($tampil);
141
+             $tampil = mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
142
+             $r = mysql_fetch_array($tampil);
143 143
 
144 144
              echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
145 145
              echo"<input type='hidden' name='module' value=".$_GET[module].">";
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
             </form>    
148 148
                    
149 149
                 </div>
150
-                <?for($i = 0; $i <= 20; $i++)  { 
150
+                <?for ($i = 0; $i<=20; $i++) { 
151 151
                     ?>
152 152
                     <br />
153 153
                     <?
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,9 @@
 block discarded – undo
100 100
                                 $pasien = $row->ktp.'-'.$row->nama;
101 101
 
102 102
                                  echo '<option value="'.$row->id_pasien.'"';
103
-                                 if($row->id_pasien == @$data->id_pasien) echo ' selected';
103
+                                 if($row->id_pasien == @$data->id_pasien) {
104
+                                     echo ' selected';
105
+                                 }
104 106
                                  echo '>'.$pasien.'</option>';
105 107
                               }
106 108
                            }        
Please login to merge, or discard this patch.
modul/mod_report_revenue/report_revenue.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 $prd   = date("Y-m");
65 65
 
66 66
 $userid   = $_SESSION['userid'];  
67
-  ?>
67
+    ?>
68 68
 
69 69
  <div class="">
70 70
                    
@@ -115,12 +115,12 @@  discard block
 block discarded – undo
115 115
 
116 116
              <?
117 117
 
118
-             $module = '?module='.$_GET['module'];          
119
-             $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
120
-             $r=mysql_fetch_array($tampil);
118
+                $module = '?module='.$_GET['module'];          
119
+                $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
120
+                $r=mysql_fetch_array($tampil);
121 121
 
122
-             echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
123
-             echo"<input type='hidden' name='module' value=".$_GET[module].">";
122
+                echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
123
+                echo"<input type='hidden' name='module' value=".$_GET[module].">";
124 124
             ?>
125 125
             </form>    
126 126
                    
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
   }
36 36
 
37
-  xmlhttp.open("GET","<?php echo"./modul/mod_$module/getlokasi.php?q=";?>"+str,true);
37
+  xmlhttp.open("GET","<?php echo"./modul/mod_$module/getlokasi.php?q="; ?>"+str,true);
38 38
 
39 39
   xmlhttp.send();
40 40
 
@@ -54,28 +54,28 @@  discard block
 block discarded – undo
54 54
 
55 55
 
56 56
 <?php
57
-switch($_GET[act]){
57
+switch ($_GET[act]) {
58 58
 
59 59
 default:  
60 60
 
61 61
 $fdate   = date("Y-m-01");
62 62
 $ldate   = date("Y-m-d");
63 63
 
64
-$prd   = date("Y-m");
64
+$prd = date("Y-m");
65 65
 
66
-$userid   = $_SESSION['userid'];  
66
+$userid = $_SESSION['userid'];  
67 67
   ?>
68 68
 
69 69
  <div class="">
70 70
                    
71 71
         <div class="row">
72 72
 
73
-          <form name="myform" id="myform" method="get" action="<? echo"modul/mod_$module/print_$module.php";?>"  onSubmit="popup<?=$module?>(this, 'join')"> 
73
+          <form name="myform" id="myform" method="get" action="<? echo"modul/mod_$module/print_$module.php"; ?>"  onSubmit="popup<?=$module?>(this, 'join')"> 
74 74
   
75 75
                 <div class="col-md-12 col-sm-12 col-xs-12">
76 76
                     <div class="x_panel">
77 77
                         <div class="x_title">
78
-                               <h2><?=$nmmodule;?></h2>
78
+                               <h2><?=$nmmodule; ?></h2>
79 79
                                <div class='pull-right'>
80 80
                                 <Button type="submit" class="btn btn-primary">
81 81
                                  <span class="glyphicon glyphicon-print" style='color:#fff;'></span>
@@ -116,8 +116,8 @@  discard block
 block discarded – undo
116 116
              <?
117 117
 
118 118
              $module = '?module='.$_GET['module'];          
119
-             $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
120
-             $r=mysql_fetch_array($tampil);
119
+             $tampil = mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
120
+             $r = mysql_fetch_array($tampil);
121 121
 
122 122
              echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
123 123
              echo"<input type='hidden' name='module' value=".$_GET[module].">";
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
             </form>    
126 126
                    
127 127
                 </div>
128
-                <?for($i = 0; $i <= 20; $i++)  { 
128
+                <?for ($i = 0; $i<=20; $i++) { 
129 129
                     ?>
130 130
                     <br />
131 131
                     <?
Please login to merge, or discard this patch.
modul/mod_report_pengeluaran_obat/report_pengeluaran_obat.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
              <?
117 117
 
118
-             $module = '?module='.$_GET['module'];          
119
-             $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
120
-             $r=mysql_fetch_array($tampil);
118
+                $module = '?module='.$_GET['module'];          
119
+                $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
120
+                $r=mysql_fetch_array($tampil);
121 121
 
122
-             echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
123
-             echo"<input type='hidden' name='module' value=".$_GET[module].">";
122
+                echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
123
+                echo"<input type='hidden' name='module' value=".$_GET[module].">";
124 124
             ?>
125 125
             </form>    
126 126
                    
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
   }
36 36
 
37
-  xmlhttp.open("GET","<?php echo"./modul/mod_$module/getlokasi.php?q=";?>"+str,true);
37
+  xmlhttp.open("GET","<?php echo"./modul/mod_$module/getlokasi.php?q="; ?>"+str,true);
38 38
 
39 39
   xmlhttp.send();
40 40
 
@@ -54,28 +54,28 @@  discard block
 block discarded – undo
54 54
 
55 55
 
56 56
 <?php
57
-switch($_GET[act]){
57
+switch ($_GET[act]) {
58 58
 
59 59
 default:  
60 60
 
61 61
 $fdate   = date("Y-m-01");
62 62
 $ldate   = date("Y-m-d");
63 63
 
64
-$prd   = date("Y-m");
64
+$prd = date("Y-m");
65 65
 
66
-$userid   = $_SESSION['userid'];  
66
+$userid = $_SESSION['userid'];  
67 67
   ?>
68 68
 
69 69
  <div class="">
70 70
                    
71 71
         <div class="row">
72 72
 
73
-          <form name="myform" id="myform" method="get" action="<? echo"modul/mod_$module/print_$module.php";?>"  onSubmit="popup<?=$module?>(this, 'join')"> 
73
+          <form name="myform" id="myform" method="get" action="<? echo"modul/mod_$module/print_$module.php"; ?>"  onSubmit="popup<?=$module?>(this, 'join')"> 
74 74
   
75 75
                 <div class="col-md-12 col-sm-12 col-xs-12">
76 76
                     <div class="x_panel">
77 77
                         <div class="x_title">
78
-                               <h2><?=$nmmodule;?></h2>
78
+                               <h2><?=$nmmodule; ?></h2>
79 79
                                <div class='pull-right'>
80 80
                                 <Button type="submit" class="btn btn-primary">
81 81
                                  <span class="glyphicon glyphicon-print" style='color:#fff;'></span>
@@ -116,8 +116,8 @@  discard block
 block discarded – undo
116 116
              <?
117 117
 
118 118
              $module = '?module='.$_GET['module'];          
119
-             $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
120
-             $r=mysql_fetch_array($tampil);
119
+             $tampil = mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
120
+             $r = mysql_fetch_array($tampil);
121 121
 
122 122
              echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
123 123
              echo"<input type='hidden' name='module' value=".$_GET[module].">";
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
             </form>    
126 126
                    
127 127
                 </div>
128
-                <?for($i = 0; $i <= 20; $i++)  { 
128
+                <?for ($i = 0; $i<=20; $i++) { 
129 129
                     ?>
130 130
                     <br />
131 131
                     <?
Please login to merge, or discard this patch.
Switch Indentation   +19 added lines, -19 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
                    
@@ -107,30 +107,30 @@  discard block
 block discarded – undo
107 107
                 <div class="col-md-9 col-sm-9 col-xs-9 form-group"> 
108 108
                  <label class="control-label">
109 109
                     <?
110
-                    echo"<input type=radio name='printto' value='1' class='flat' checked>&nbsp Preview &nbsp</label>";
111
-                    echo"<input type=radio name='printto' value='2' class='flat'>&nbsp Print</label> ";
112
-                    ?>      
110
+                        echo"<input type=radio name='printto' value='1' class='flat' checked>&nbsp Preview &nbsp</label>";
111
+                        echo"<input type=radio name='printto' value='2' class='flat'>&nbsp Print</label> ";
112
+                        ?>      
113 113
                  </label>             
114 114
                 </div> 
115 115
 
116 116
              <?
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].">";
124
-            ?>
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
+                ?>
125 125
             </form>    
126 126
                    
127 127
                 </div>
128 128
                 <?for($i = 0; $i <= 20; $i++)  { 
129
-                    ?>
130
-                    <br />
129
+                        ?>
130
+                        <br />
131 131
                     <?
132
-                    }
133
-                    ?>
132
+                        }
133
+                        ?>
134 134
                  </div>
135 135
                    
136 136
                   
Please login to merge, or discard this patch.
modul/mod_report_rujukan_pasien/report_rujukan_pasien.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 $prd   = date("Y-m");
65 65
 
66 66
 $userid   = $_SESSION['userid'];  
67
-  ?>
67
+    ?>
68 68
 
69 69
  <div class="">
70 70
                    
@@ -115,12 +115,12 @@  discard block
 block discarded – undo
115 115
 
116 116
              <?
117 117
 
118
-             $module = '?module='.$_GET['module'];          
119
-             $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
120
-             $r=mysql_fetch_array($tampil);
118
+                $module = '?module='.$_GET['module'];          
119
+                $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
120
+                $r=mysql_fetch_array($tampil);
121 121
 
122
-             echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
123
-             echo"<input type='hidden' name='module' value=".$_GET[module].">";
122
+                echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
123
+                echo"<input type='hidden' name='module' value=".$_GET[module].">";
124 124
             ?>
125 125
             </form>    
126 126
                    
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
   }
36 36
 
37
-  xmlhttp.open("GET","<?php echo"./modul/mod_$module/getlokasi.php?q=";?>"+str,true);
37
+  xmlhttp.open("GET","<?php echo"./modul/mod_$module/getlokasi.php?q="; ?>"+str,true);
38 38
 
39 39
   xmlhttp.send();
40 40
 
@@ -54,28 +54,28 @@  discard block
 block discarded – undo
54 54
 
55 55
 
56 56
 <?php
57
-switch($_GET[act]){
57
+switch ($_GET[act]) {
58 58
 
59 59
 default:  
60 60
 
61 61
 $fdate   = date("Y-m-01");
62 62
 $ldate   = date("Y-m-d");
63 63
 
64
-$prd   = date("Y-m");
64
+$prd = date("Y-m");
65 65
 
66
-$userid   = $_SESSION['userid'];  
66
+$userid = $_SESSION['userid'];  
67 67
   ?>
68 68
 
69 69
  <div class="">
70 70
                    
71 71
         <div class="row">
72 72
 
73
-          <form name="myform" id="myform" method="get" action="<? echo"modul/mod_$module/print_$module.php";?>"  onSubmit="popup<?=$module?>(this, 'join')"> 
73
+          <form name="myform" id="myform" method="get" action="<? echo"modul/mod_$module/print_$module.php"; ?>"  onSubmit="popup<?=$module?>(this, 'join')"> 
74 74
   
75 75
                 <div class="col-md-12 col-sm-12 col-xs-12">
76 76
                     <div class="x_panel">
77 77
                         <div class="x_title">
78
-                               <h2><?=$nmmodule;?></h2>
78
+                               <h2><?=$nmmodule; ?></h2>
79 79
                                <div class='pull-right'>
80 80
                                 <Button type="submit" class="btn btn-primary">
81 81
                                  <span class="glyphicon glyphicon-print" style='color:#fff;'></span>
@@ -116,8 +116,8 @@  discard block
 block discarded – undo
116 116
              <?
117 117
 
118 118
              $module = '?module='.$_GET['module'];          
119
-             $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
120
-             $r=mysql_fetch_array($tampil);
119
+             $tampil = mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
120
+             $r = mysql_fetch_array($tampil);
121 121
 
122 122
              echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
123 123
              echo"<input type='hidden' name='module' value=".$_GET[module].">";
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
             </form>    
126 126
                    
127 127
                 </div>
128
-                <?for($i = 0; $i <= 20; $i++)  { 
128
+                <?for ($i = 0; $i<=20; $i++) { 
129 129
                     ?>
130 130
                     <br />
131 131
                     <?
Please login to merge, or discard this patch.
modul/mod_report_kunjungan_pasien/report_kunjungan_pasien.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 $prd   = date("Y-m");
65 65
 
66 66
 $userid   = $_SESSION['userid'];  
67
-  ?>
67
+    ?>
68 68
 
69 69
  <div class="">
70 70
                    
@@ -115,12 +115,12 @@  discard block
 block discarded – undo
115 115
 
116 116
              <?
117 117
 
118
-             $module = '?module='.$_GET['module'];          
119
-             $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
120
-             $r=mysql_fetch_array($tampil);
118
+                $module = '?module='.$_GET['module'];          
119
+                $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
120
+                $r=mysql_fetch_array($tampil);
121 121
 
122
-             echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
123
-             echo"<input type='hidden' name='module' value=".$_GET[module].">";
122
+                echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
123
+                echo"<input type='hidden' name='module' value=".$_GET[module].">";
124 124
             ?>
125 125
             </form>    
126 126
                    
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
   }
36 36
 
37
-  xmlhttp.open("GET","<?php echo"./modul/mod_$module/getlokasi.php?q=";?>"+str,true);
37
+  xmlhttp.open("GET","<?php echo"./modul/mod_$module/getlokasi.php?q="; ?>"+str,true);
38 38
 
39 39
   xmlhttp.send();
40 40
 
@@ -54,28 +54,28 @@  discard block
 block discarded – undo
54 54
 
55 55
 
56 56
 <?php
57
-switch($_GET[act]){
57
+switch ($_GET[act]) {
58 58
 
59 59
 default:  
60 60
 
61 61
 $fdate   = date("Y-m-01");
62 62
 $ldate   = date("Y-m-d");
63 63
 
64
-$prd   = date("Y-m");
64
+$prd = date("Y-m");
65 65
 
66
-$userid   = $_SESSION['userid'];  
66
+$userid = $_SESSION['userid'];  
67 67
   ?>
68 68
 
69 69
  <div class="">
70 70
                    
71 71
         <div class="row">
72 72
 
73
-          <form name="myform" id="myform" method="get" action="<? echo"modul/mod_$module/print_$module.php";?>"  onSubmit="popup<?=$module?>(this, 'join')"> 
73
+          <form name="myform" id="myform" method="get" action="<? echo"modul/mod_$module/print_$module.php"; ?>"  onSubmit="popup<?=$module?>(this, 'join')"> 
74 74
   
75 75
                 <div class="col-md-12 col-sm-12 col-xs-12">
76 76
                     <div class="x_panel">
77 77
                         <div class="x_title">
78
-                               <h2><?=$nmmodule;?></h2>
78
+                               <h2><?=$nmmodule; ?></h2>
79 79
                                <div class='pull-right'>
80 80
                                 <Button type="submit" class="btn btn-primary">
81 81
                                  <span class="glyphicon glyphicon-print" style='color:#fff;'></span>
@@ -116,8 +116,8 @@  discard block
 block discarded – undo
116 116
              <?
117 117
 
118 118
              $module = '?module='.$_GET['module'];          
119
-             $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
120
-             $r=mysql_fetch_array($tampil);
119
+             $tampil = mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
120
+             $r = mysql_fetch_array($tampil);
121 121
 
122 122
              echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
123 123
              echo"<input type='hidden' name='module' value=".$_GET[module].">";
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
             </form>    
126 126
                    
127 127
                 </div>
128
-                <?for($i = 0; $i <= 20; $i++)  { 
128
+                <?for ($i = 0; $i<=20; $i++) { 
129 129
                     ?>
130 130
                     <br />
131 131
                     <?
Please login to merge, or discard this patch.
menu.php 2 patches
Indentation   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -2,39 +2,39 @@  discard block
 block discarded – undo
2 2
 session_start();
3 3
 include 'config/koneksi.php';
4 4
 
5
-  if ($_SESSION['role'] == 'SA') {
6
-      $sql = mysql_query("select * from modul where aktif='Y' and status_menu = 'M' order by urutan");
5
+    if ($_SESSION['role'] == 'SA') {
6
+        $sql = mysql_query("select * from modul where aktif='Y' and status_menu = 'M' order by urutan");
7 7
 
8
-      $gjml = '1';
9
-  } else {
10
-      $sql = mysql_query("select distinct c.* from groupmodul b
8
+        $gjml = '1';
9
+    } else {
10
+        $sql = mysql_query("select distinct c.* from groupmodul b
11 11
                                                      inner join modul c
12 12
                                                      on b.id_modul = c.id_modul 
13 13
                                                      where b.id_groups = '$groups'  and c.aktif='Y' and status_menu='M'
14 14
                                                      order by c.urutan");
15 15
 
16
-      $gsql = mysql_query("select * 
16
+        $gsql = mysql_query("select * 
17 17
                                                       from modul a inner join groupmodul b
18 18
                                                       on a.id_modul = b.id_modul
19 19
                                                        where link = 'general_setting'
20 20
                                                        and b.id_groups = '$groups' 
21 21
                                                        ");
22
-      $gjml = mysql_num_rows($gsql);
23
-  }
24
-
25
-                             while ($r = mysql_fetch_array($sql)) {
26
-                                 if ($r[status_menu] == 'M' and !empty($r[link])) {
27
-                                     echo "<li><a href='$r[link]&id_module=$r[id_modul]'><i class='$r[icon]'></i> $r[nama_modul]</a>";
28
-                                 } elseif ($r[status_menu] == 'M' and empty($r[link])) {
29
-                                     echo "<li><a href='#'><i class='$r[icon]'></i> $r[nama_modul] <span class='fa fa-chevron-down'></span></a>";
30
-                                 }
31
-
32
-                                 echo'<ul class="nav child_menu" style="display: none">';
33
-
34
-                                 if ($_SESSION['role'] == 'SA') {
35
-                                     $detil = mysql_query("select * from modul where aktif='Y' and status_menu = 'C' and parentid = '$r[id_modul]' order by urutan");
36
-                                 } else {
37
-                                     $detil = mysql_query("select distinct c.* 
22
+        $gjml = mysql_num_rows($gsql);
23
+    }
24
+
25
+                                while ($r = mysql_fetch_array($sql)) {
26
+                                    if ($r[status_menu] == 'M' and !empty($r[link])) {
27
+                                        echo "<li><a href='$r[link]&id_module=$r[id_modul]'><i class='$r[icon]'></i> $r[nama_modul]</a>";
28
+                                    } elseif ($r[status_menu] == 'M' and empty($r[link])) {
29
+                                        echo "<li><a href='#'><i class='$r[icon]'></i> $r[nama_modul] <span class='fa fa-chevron-down'></span></a>";
30
+                                    }
31
+
32
+                                    echo'<ul class="nav child_menu" style="display: none">';
33
+
34
+                                    if ($_SESSION['role'] == 'SA') {
35
+                                        $detil = mysql_query("select * from modul where aktif='Y' and status_menu = 'C' and parentid = '$r[id_modul]' order by urutan");
36
+                                    } else {
37
+                                        $detil = mysql_query("select distinct c.* 
38 38
                                                          from groupmodul b
39 39
                                                          inner join modul c
40 40
                                                          on b.id_modul = c.id_modul    
@@ -43,17 +43,17 @@  discard block
 block discarded – undo
43 43
                                                          and c.status_menu='C'
44 44
                                                          and c.parentid = '$r[id_modul]'
45 45
                                                          order by c.urutan");
46
-                                 }
47
-                                 while ($d = mysql_fetch_array($detil)) {
48
-                                     if ($d[is_form] == 'Y') {
49
-                                         echo"<li><a href='modul/mod_$d[link]/form_$d[link].php?width=$d[f_width]&height=$d[f_height]&module=$d[link]&imodule=$imodule&id_module=$id&imenu=$imenu&isub=$isub&TB_iframe=true' title='$d[nama_modul]' class='thickbox' ><i class='$d[fa_icon]'></i>&nbsp&nbsp$d[nama_modul]</a></li>";
50
-                                     } else {
51
-                                         echo"<li><a href='$d[link]&id_module=$d[id_modul]'><i class='$d[fa_icon]'></i>&nbsp&nbsp$d[nama_modul]</a></li>";
52
-                                     }
53
-                                 }
54
-
55
-                                 echo'</ul>';
56
-                             }
46
+                                    }
47
+                                    while ($d = mysql_fetch_array($detil)) {
48
+                                        if ($d[is_form] == 'Y') {
49
+                                            echo"<li><a href='modul/mod_$d[link]/form_$d[link].php?width=$d[f_width]&height=$d[f_height]&module=$d[link]&imodule=$imodule&id_module=$id&imenu=$imenu&isub=$isub&TB_iframe=true' title='$d[nama_modul]' class='thickbox' ><i class='$d[fa_icon]'></i>&nbsp&nbsp$d[nama_modul]</a></li>";
50
+                                        } else {
51
+                                            echo"<li><a href='$d[link]&id_module=$d[id_modul]'><i class='$d[fa_icon]'></i>&nbsp&nbsp$d[nama_modul]</a></li>";
52
+                                        }
53
+                                    }
54
+
55
+                                    echo'</ul>';
56
+                                }
57 57
 
58 58
 ?>
59 59
 
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 session_start();
3 3
 include 'config/koneksi.php';
4 4
 
5
-  if ($_SESSION['role'] == 'SA') {
5
+  if ($_SESSION['role']=='SA') {
6 6
       $sql = mysql_query("select * from modul where aktif='Y' and status_menu = 'M' order by urutan");
7 7
 
8 8
       $gjml = '1';
@@ -23,15 +23,15 @@  discard block
 block discarded – undo
23 23
   }
24 24
 
25 25
                              while ($r = mysql_fetch_array($sql)) {
26
-                                 if ($r[status_menu] == 'M' and !empty($r[link])) {
26
+                                 if ($r[status_menu]=='M' and !empty($r[link])) {
27 27
                                      echo "<li><a href='$r[link]&id_module=$r[id_modul]'><i class='$r[icon]'></i> $r[nama_modul]</a>";
28
-                                 } elseif ($r[status_menu] == 'M' and empty($r[link])) {
28
+                                 } elseif ($r[status_menu]=='M' and empty($r[link])) {
29 29
                                      echo "<li><a href='#'><i class='$r[icon]'></i> $r[nama_modul] <span class='fa fa-chevron-down'></span></a>";
30 30
                                  }
31 31
 
32 32
                                  echo'<ul class="nav child_menu" style="display: none">';
33 33
 
34
-                                 if ($_SESSION['role'] == 'SA') {
34
+                                 if ($_SESSION['role']=='SA') {
35 35
                                      $detil = mysql_query("select * from modul where aktif='Y' and status_menu = 'C' and parentid = '$r[id_modul]' order by urutan");
36 36
                                  } else {
37 37
                                      $detil = mysql_query("select distinct c.* 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
                                                          order by c.urutan");
46 46
                                  }
47 47
                                  while ($d = mysql_fetch_array($detil)) {
48
-                                     if ($d[is_form] == 'Y') {
48
+                                     if ($d[is_form]=='Y') {
49 49
                                          echo"<li><a href='modul/mod_$d[link]/form_$d[link].php?width=$d[f_width]&height=$d[f_height]&module=$d[link]&imodule=$imodule&id_module=$id&imenu=$imenu&isub=$isub&TB_iframe=true' title='$d[nama_modul]' class='thickbox' ><i class='$d[fa_icon]'></i>&nbsp&nbsp$d[nama_modul]</a></li>";
50 50
                                      } else {
51 51
                                          echo"<li><a href='$d[link]&id_module=$d[id_modul]'><i class='$d[fa_icon]'></i>&nbsp&nbsp$d[nama_modul]</a></li>";
Please login to merge, or discard this patch.