@@ -98,13 +98,13 @@ |
||
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++; |
@@ -5,8 +5,8 @@ discard block |
||
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 |
||
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> |
@@ -1,8 +1,8 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
@@ -100,7 +100,9 @@ |
||
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 | } |
@@ -64,7 +64,7 @@ discard block |
||
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 |
||
93 | 93 | <select required name="pasien" class="form-control"> |
94 | 94 | <option>--Pilih Pasien--</option> |
95 | 95 | <?php |
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 |
||
137 | 137 | |
138 | 138 | <?php |
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 |
@@ -56,15 +56,15 @@ discard block |
||
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 | |
@@ -93,18 +93,18 @@ discard block |
||
93 | 93 | <select required name="pasien" class="form-control"> |
94 | 94 | <option>--Pilih Pasien--</option> |
95 | 95 | <?php |
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 | - |
|
100 | - $pasien = $row->ktp.'-'.$row->nama; |
|
101 | - |
|
102 | - echo '<option value="'.$row->id_pasien.'"'; |
|
103 | - if($row->id_pasien == @$data->id_pasien) echo ' selected'; |
|
104 | - echo '>'.$pasien.'</option>'; |
|
105 | - } |
|
106 | - } |
|
107 | - ?> |
|
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 | + |
|
100 | + $pasien = $row->ktp.'-'.$row->nama; |
|
101 | + |
|
102 | + echo '<option value="'.$row->id_pasien.'"'; |
|
103 | + if($row->id_pasien == @$data->id_pasien) echo ' selected'; |
|
104 | + echo '>'.$pasien.'</option>'; |
|
105 | + } |
|
106 | + } |
|
107 | + ?> |
|
108 | 108 | </select> |
109 | 109 | </div> |
110 | 110 | |
@@ -129,30 +129,30 @@ discard block |
||
129 | 129 | <div class="col-md-9 col-sm-9 col-xs-9 form-group"> |
130 | 130 | <label class="control-label"> |
131 | 131 | <? |
132 | - echo"<input type=radio name='printto' value='1' class='flat' checked>  Preview  </label>"; |
|
133 | - echo"<input type=radio name='printto' value='2' class='flat'>  Print</label> "; |
|
134 | - ?> |
|
132 | + echo"<input type=radio name='printto' value='1' class='flat' checked>  Preview  </label>"; |
|
133 | + echo"<input type=radio name='printto' value='2' class='flat'>  Print</label> "; |
|
134 | + ?> |
|
135 | 135 | </label> |
136 | 136 | </div> |
137 | 137 | |
138 | 138 | <?php |
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].">"; |
|
146 | - ?> |
|
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 | + ?> |
|
147 | 147 | </form> |
148 | 148 | |
149 | 149 | </div> |
150 | 150 | <?php for($i = 0; $i <= 20; $i++) { |
151 | - ?> |
|
152 | - <br /> |
|
151 | + ?> |
|
152 | + <br /> |
|
153 | 153 | <?php |
154 | - } |
|
155 | - ?> |
|
154 | + } |
|
155 | + ?> |
|
156 | 156 | </div> |
157 | 157 | |
158 | 158 |
@@ -34,7 +34,7 @@ discard block |
||
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 |
||
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 |
||
94 | 94 | <option>--Pilih Pasien--</option> |
95 | 95 | <?php |
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 |
||
138 | 138 | <?php |
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 |
||
147 | 147 | </form> |
148 | 148 | |
149 | 149 | </div> |
150 | - <?php for($i = 0; $i <= 20; $i++) { |
|
150 | + <?php for ($i = 0; $i<=20; $i++) { |
|
151 | 151 | ?> |
152 | 152 | <br /> |
153 | 153 | <?php |
@@ -2,39 +2,39 @@ discard block |
||
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 |
||
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>  $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>  $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>  $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>  $d[nama_modul]</a></li>"; |
|
52 | + } |
|
53 | + } |
|
54 | + |
|
55 | + echo'</ul>'; |
|
56 | + } |
|
57 | 57 | |
58 | 58 | ?> |
59 | 59 |
@@ -2,7 +2,7 @@ discard block |
||
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 |
||
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 |
||
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>  $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>  $d[nama_modul]</a></li>"; |
@@ -1,13 +1,13 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | - session_start(); |
|
3 | + session_start(); |
|
4 | 4 | |
5 | - session_destroy(); |
|
5 | + session_destroy(); |
|
6 | 6 | |
7 | - $userid = $_GET['userid']; |
|
8 | - $module = $_GET['module']; |
|
7 | + $userid = $_GET['userid']; |
|
8 | + $module = $_GET['module']; |
|
9 | 9 | |
10 | - header('location:index.php?userid='.$userid.'&module='.$module.''); |
|
10 | + header('location:index.php?userid='.$userid.'&module='.$module.''); |
|
11 | 11 | |
12 | 12 | // Apabila setelah logout langsung menuju halaman utama website, aktifkan baris di bawah ini: |
13 | 13 |
@@ -47,8 +47,8 @@ discard block |
||
47 | 47 | function fnReadDir(&$aReturn, $path) |
48 | 48 | { |
49 | 49 | $rDir = opendir($path); |
50 | - while (($file = readdir($rDir)) !== false) { |
|
51 | - if ($file == '.' || $file == '..' || $file == '.DS_Store') { |
|
50 | + while (($file = readdir($rDir))!==false) { |
|
51 | + if ($file=='.' || $file=='..' || $file=='.DS_Store') { |
|
52 | 52 | continue; |
53 | 53 | } elseif (is_dir($path.'/'.$file)) { |
54 | 54 | fnReadDir($aReturn, $path.'/'.$file); |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | $aFiles = []; |
64 | 64 | fnReadDir($aFiles, 'tests'); |
65 | 65 | |
66 | - for ($i = 0; $i < count($aFiles); $i++) { |
|
66 | + for ($i = 0; $i<count($aFiles); $i++) { |
|
67 | 67 | $sTemplate; |
68 | 68 | $fp = fopen($aFiles[$i], 'r'); |
69 | 69 | fscanf($fp, '// DATA_TEMPLATE: %s', $sTemplate); |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | - /* MySQL connection */ |
|
2 | + /* MySQL connection */ |
|
3 | 3 | include $_SERVER['DOCUMENT_ROOT'].'/datatables/mysql.php'; /* ;-) */ |
4 | 4 | |
5 | 5 | $gaSql['link'] = mysql_pconnect($gaSql['server'], $gaSql['user'], $gaSql['password']) or |
@@ -20,7 +20,7 @@ |
||
20 | 20 | <script type="text/javascript" src="../unit_test.js"></script> |
21 | 21 | <?php |
22 | 22 | $aScripts = explode(':', $_GET['scripts']); |
23 | - for ($i = 0; $i < count($aScripts); $i++) { |
|
23 | + for ($i = 0; $i<count($aScripts); $i++) { |
|
24 | 24 | echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n"; |
25 | 25 | } |
26 | 26 | ?> |
@@ -82,7 +82,7 @@ |
||
82 | 82 | </script> |
83 | 83 | <?php |
84 | 84 | $aScripts = explode(':', $_GET['scripts']); |
85 | - for ($i = 0; $i < count($aScripts); $i++) { |
|
85 | + for ($i = 0; $i<count($aScripts); $i++) { |
|
86 | 86 | echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n"; |
87 | 87 | } |
88 | 88 | ?> |
@@ -2,22 +2,22 @@ |
||
2 | 2 | |
3 | 3 | include 'config/koneksi.php'; |
4 | 4 | |
5 | - $tampil = mysql_query("SELECT * FROM modul where link !='' ORDER BY urutan"); |
|
5 | + $tampil = mysql_query("SELECT * FROM modul where link !='' ORDER BY urutan"); |
|
6 | 6 | |
7 | - while ($r = mysql_fetch_array($tampil)) { |
|
8 | - $p = strlen($r['link']); |
|
9 | - $mod = substr($r['link'], 8, $p); |
|
7 | + while ($r = mysql_fetch_array($tampil)) { |
|
8 | + $p = strlen($r['link']); |
|
9 | + $mod = substr($r['link'], 8, $p); |
|
10 | 10 | |
11 | - // echo"$mod<br>"; |
|
12 | - // echo"$_GET[module]<br>"; |
|
13 | - // echo"modul/mod_$mod.php<br>"; |
|
11 | + // echo"$mod<br>"; |
|
12 | + // echo"$_GET[module]<br>"; |
|
13 | + // echo"modul/mod_$mod.php<br>"; |
|
14 | 14 | // |
15 | 15 | |
16 | - if ($_GET['module'] == $mod) { |
|
17 | - //include "modul/mod_$mod.php"; |
|
18 | - include "modul/mod_$mod/$mod.php"; |
|
19 | - } |
|
20 | - } |
|
16 | + if ($_GET['module'] == $mod) { |
|
17 | + //include "modul/mod_$mod.php"; |
|
18 | + include "modul/mod_$mod/$mod.php"; |
|
19 | + } |
|
20 | + } |
|
21 | 21 | |
22 | 22 | // Apabila modul tidak ditemukan |
23 | 23 | //else{ |
@@ -13,7 +13,7 @@ |
||
13 | 13 | // echo"modul/mod_$mod.php<br>"; |
14 | 14 | // |
15 | 15 | |
16 | - if ($_GET['module'] == $mod) { |
|
16 | + if ($_GET['module']==$mod) { |
|
17 | 17 | //include "modul/mod_$mod.php"; |
18 | 18 | include "modul/mod_$mod/$mod.php"; |
19 | 19 | } |