@@ -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> |
@@ -102,10 +102,10 @@ discard block |
||
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 |
||
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 |
||
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 | <? |
@@ -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 |
@@ -6,7 +6,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | <? |
@@ -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 | <? |
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 | <? |
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 | - <?for($i = 0; $i <= 20; $i++) { |
|
150 | + <?for ($i = 0; $i<=20; $i++) { |
|
151 | 151 | ?> |
152 | 152 | <br /> |
153 | 153 | <? |
@@ -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> |
@@ -116,8 +116,8 @@ discard block |
||
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 |
||
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 | <? |
@@ -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> |
@@ -116,8 +116,8 @@ discard block |
||
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 |
||
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 | <? |
@@ -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> |
@@ -116,8 +116,8 @@ discard block |
||
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 |
||
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 | <? |
@@ -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> |
@@ -116,8 +116,8 @@ discard block |
||
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 |
||
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 | <? |
@@ -1,12 +1,12 @@ |
||
1 | 1 | |
2 | 2 | <?php |
3 | -switch($_GET[act]){ |
|
3 | +switch ($_GET[act]) { |
|
4 | 4 | |
5 | 5 | default: |
6 | 6 | |
7 | 7 | |
8 | - $gtampil=mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'"); |
|
9 | - $g=mysql_fetch_array($gtampil); |
|
8 | + $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'"); |
|
9 | + $g = mysql_fetch_array($gtampil); |
|
10 | 10 | |
11 | 11 | if ($g['pict']) { |
12 | 12 | $pict = $g['pict']; |