@@ -56,15 +56,15 @@ discard block |
||
56 | 56 | <?php |
57 | 57 | switch (isset($_GET['act']) && $_GET['act']) { |
58 | 58 | |
59 | - default: |
|
59 | + default: |
|
60 | 60 | |
61 | - $fdate = date('Y-m-01'); |
|
62 | - $ldate = date('Y-m-d'); |
|
61 | + $fdate = date('Y-m-01'); |
|
62 | + $ldate = date('Y-m-d'); |
|
63 | 63 | |
64 | - $prd = date('Y-m'); |
|
64 | + $prd = date('Y-m'); |
|
65 | 65 | |
66 | - $userid = $_SESSION['userid']; |
|
67 | - ?> |
|
66 | + $userid = $_SESSION['userid']; |
|
67 | + ?> |
|
68 | 68 | |
69 | 69 | <div class=""> |
70 | 70 | |
@@ -101,17 +101,17 @@ discard block |
||
101 | 101 | <div class="col-md-9 col-sm-9 col-xs-9 form-group"> |
102 | 102 | <select name="jenis_transaksi" class="form-control"> |
103 | 103 | <?php |
104 | - $query = mysql_query('SELECT * FROM jenis_transaksi ORDER BY id_jenis_transaksi'); |
|
105 | - if ($query && mysql_num_rows($query) > 0) { |
|
106 | - while ($row = mysql_fetch_object($query)) { |
|
107 | - echo '<option value="'.$row->id_jenis_transaksi.'"'; |
|
108 | - if ($row->id_jenis_transaksi == '1') { |
|
109 | - echo ' selected'; |
|
104 | + $query = mysql_query('SELECT * FROM jenis_transaksi ORDER BY id_jenis_transaksi'); |
|
105 | + if ($query && mysql_num_rows($query) > 0) { |
|
106 | + while ($row = mysql_fetch_object($query)) { |
|
107 | + echo '<option value="'.$row->id_jenis_transaksi.'"'; |
|
108 | + if ($row->id_jenis_transaksi == '1') { |
|
109 | + echo ' selected'; |
|
110 | + } |
|
111 | + echo '>'.$row->jenis_transaksi.'</option>'; |
|
110 | 112 | } |
111 | - echo '>'.$row->jenis_transaksi.'</option>'; |
|
112 | 113 | } |
113 | - } |
|
114 | - ?> |
|
114 | + ?> |
|
115 | 115 | </select> |
116 | 116 | </div> |
117 | 117 | |
@@ -124,30 +124,30 @@ discard block |
||
124 | 124 | <div class="col-md-9 col-sm-9 col-xs-9 form-group"> |
125 | 125 | <label class="control-label"> |
126 | 126 | <?php |
127 | - echo"<input type=radio name='printto' value='1' class='flat' checked>  Preview  </label>"; |
|
128 | - echo"<input type=radio name='printto' value='2' class='flat'>  Print</label> "; |
|
129 | - ?> |
|
127 | + echo"<input type=radio name='printto' value='1' class='flat' checked>  Preview  </label>"; |
|
128 | + echo"<input type=radio name='printto' value='2' class='flat'>  Print</label> "; |
|
129 | + ?> |
|
130 | 130 | </label> |
131 | 131 | </div> |
132 | 132 | |
133 | 133 | <?php |
134 | 134 | |
135 | - $module = '?module='.$_GET['module']; |
|
136 | - $tampil = mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'"); |
|
137 | - $r = mysql_fetch_array($tampil); |
|
135 | + $module = '?module='.$_GET['module']; |
|
136 | + $tampil = mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'"); |
|
137 | + $r = mysql_fetch_array($tampil); |
|
138 | 138 | |
139 | - echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].'>'; |
|
140 | - echo"<input type='hidden' name='module' value=".$_GET[module].'>'; |
|
141 | - ?> |
|
139 | + echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].'>'; |
|
140 | + echo"<input type='hidden' name='module' value=".$_GET[module].'>'; |
|
141 | + ?> |
|
142 | 142 | </form> |
143 | 143 | |
144 | 144 | </div> |
145 | 145 | <?php for ($i = 0; $i <= 20; $i++) { |
146 | - ?> |
|
147 | - <br /> |
|
148 | - <?php |
|
149 | - } |
|
150 | 146 | ?> |
147 | + <br /> |
|
148 | + <?php |
|
149 | + } |
|
150 | + ?> |
|
151 | 151 | </div> |
152 | 152 | |
153 | 153 |
@@ -102,10 +102,10 @@ discard block |
||
102 | 102 | <select name="jenis_transaksi" class="form-control"> |
103 | 103 | <?php |
104 | 104 | $query = mysql_query('SELECT * FROM jenis_transaksi ORDER BY id_jenis_transaksi'); |
105 | - if ($query && mysql_num_rows($query) > 0) { |
|
105 | + if ($query && mysql_num_rows($query)>0) { |
|
106 | 106 | while ($row = mysql_fetch_object($query)) { |
107 | 107 | echo '<option value="'.$row->id_jenis_transaksi.'"'; |
108 | - if ($row->id_jenis_transaksi == '1') { |
|
108 | + if ($row->id_jenis_transaksi=='1') { |
|
109 | 109 | echo ' selected'; |
110 | 110 | } |
111 | 111 | echo '>'.$row->jenis_transaksi.'</option>'; |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | </form> |
143 | 143 | |
144 | 144 | </div> |
145 | - <?php for ($i = 0; $i <= 20; $i++) { |
|
145 | + <?php for ($i = 0; $i<=20; $i++) { |
|
146 | 146 | ?> |
147 | 147 | <br /> |
148 | 148 | <?php |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | $nmmodule = ucwords($r['nama_modul']); |
13 | 13 | $id = $r['id_modul']; |
14 | 14 | |
15 | -if ($r['orientation'] == 'P') { |
|
15 | +if ($r['orientation']=='P') { |
|
16 | 16 | $orientation = 'portrait'; |
17 | 17 | } else { |
18 | 18 | $orientation = 'landscape'; |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | |
140 | 140 | <!--<body onload="cetakspk()">--> |
141 | 141 | |
142 | -<?php if ($_GET['printto'] == '2') { |
|
142 | +<?php if ($_GET['printto']=='2') { |
|
143 | 143 | ?> |
144 | 144 | <body onload="icetak()"> |
145 | 145 | <?php |
@@ -125,7 +125,7 @@ |
||
125 | 125 | </form> |
126 | 126 | |
127 | 127 | </div> |
128 | - <?php for ($i = 0; $i <= 20; $i++) { |
|
128 | + <?php for ($i = 0; $i<=20; $i++) { |
|
129 | 129 | ?> |
130 | 130 | <br /> |
131 | 131 | <?php |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | |
56 | 56 | while ($r = mysql_fetch_array($tampil)) { |
57 | 57 | $jumlah = number_format($r['jumlah'], 0, '', '.'); |
58 | - $kadaluwarsa = ($r['kadaluwarsa'] != '') ? date('d/m/Y', strtotime($r['kadaluwarsa'])) : '-'; |
|
58 | + $kadaluwarsa = ($r['kadaluwarsa']!='') ? date('d/m/Y', strtotime($r['kadaluwarsa'])) : '-'; |
|
59 | 59 | |
60 | 60 | echo'<tr>'; |
61 | 61 | echo"<td>$r[obat]</td>"; |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | echo"<td style='text-align:center;'>$r[aktif]</td>"; |
66 | 66 | echo" <td style='text-align:center;'>"; |
67 | 67 | |
68 | - if ($r_edit == 'Y') { |
|
68 | + if ($r_edit=='Y') { |
|
69 | 69 | echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_obat=$r[id_obat]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
70 | 70 | } |
71 | 71 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -error_reporting(0);session_start(); |
|
2 | +error_reporting(0); session_start(); |
|
3 | 3 | if (empty($_SESSION['username']) and empty($_SESSION['password'])) { |
4 | 4 | echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
5 | 5 | } else { |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | $business_type = $_SESSION['business_type']; |
18 | 18 | |
19 | 19 | // Hapus modul |
20 | - if ($module == 'obat' and $act == 'hapus') { |
|
20 | + if ($module=='obat' and $act=='hapus') { |
|
21 | 21 | $id = $_GET['id']; |
22 | 22 | $id_module = $_GET['id_module']; |
23 | 23 | |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | } |
35 | 35 | |
36 | 36 | // Input group |
37 | - elseif ($module == 'obat' and $act == 'input') { |
|
37 | + elseif ($module=='obat' and $act=='input') { |
|
38 | 38 | $id_module = $_POST['id_module']; |
39 | 39 | |
40 | 40 | if ($_POST['ID']) { |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | - error_reporting(0);session_start(); |
|
2 | + error_reporting(0); session_start(); |
|
3 | 3 | if (empty($_SESSION['username']) and empty($_SESSION['password'])) { |
4 | 4 | echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
5 | 5 | } else { |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | |
45 | 45 | if ($id) { |
46 | 46 | $query = mysql_query('SELECT * FROM obat WHERE id_obat = "'.$id.'"'); |
47 | - if ($query && mysql_num_rows($query) == 1) { |
|
47 | + if ($query && mysql_num_rows($query)==1) { |
|
48 | 48 | $data = mysql_fetch_object($query); |
49 | 49 | } else { |
50 | 50 | die('Data modul tidak ditemukan'); |
@@ -84,10 +84,10 @@ discard block |
||
84 | 84 | <select name="satuan" class="form-control"> |
85 | 85 | <?php |
86 | 86 | $query = mysql_query('SELECT * FROM satuan ORDER BY satuan'); |
87 | - if ($query && mysql_num_rows($query) > 0) { |
|
87 | + if ($query && mysql_num_rows($query)>0) { |
|
88 | 88 | while ($row = mysql_fetch_object($query)) { |
89 | 89 | echo '<option value="'.$row->id_satuan.'"'; |
90 | - if ($row->id_satuan == @$data->id_satuan) { |
|
90 | + if ($row->id_satuan==@$data->id_satuan) { |
|
91 | 91 | echo ' selected'; |
92 | 92 | } |
93 | 93 | echo '>'.$row->satuan.'</option>'; |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | <?php if ($id) { |
117 | 117 | ?> |
118 | 118 | |
119 | - <?php if (@$data->aktif == 'Y') { |
|
119 | + <?php if (@$data->aktif=='Y') { |
|
120 | 120 | ?> |
121 | 121 | |
122 | 122 | <div class="form-group"> |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | - error_reporting(0);session_start(); |
|
2 | + error_reporting(0); session_start(); |
|
3 | 3 | if (empty($_SESSION['username']) and empty($_SESSION['password'])) { |
4 | 4 | echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
5 | 5 | } else { |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | |
45 | 45 | if ($id) { |
46 | 46 | $query = mysql_query('SELECT * FROM satuan WHERE id_satuan = "'.$id.'"'); |
47 | - if ($query && mysql_num_rows($query) == 1) { |
|
47 | + if ($query && mysql_num_rows($query)==1) { |
|
48 | 48 | $data = mysql_fetch_object($query); |
49 | 49 | } else { |
50 | 50 | die('Data modul tidak ditemukan'); |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | <?php if ($id) { |
82 | 82 | ?> |
83 | 83 | |
84 | - <?php if (@$data->aktif == 'Y') { |
|
84 | + <?php if (@$data->aktif=='Y') { |
|
85 | 85 | ?> |
86 | 86 | |
87 | 87 | <div class="form-group"> |
@@ -53,7 +53,7 @@ |
||
53 | 53 | echo"<td style='text-align:center;'>$r[aktif]</td>"; |
54 | 54 | echo" <td style='text-align:center;'>"; |
55 | 55 | |
56 | - if ($r_edit == 'Y') { |
|
56 | + if ($r_edit=='Y') { |
|
57 | 57 | echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_satuan=$r[id_satuan]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
58 | 58 | } |
59 | 59 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -error_reporting(0);session_start(); |
|
2 | +error_reporting(0); session_start(); |
|
3 | 3 | if (empty($_SESSION['username']) and empty($_SESSION['password'])) { |
4 | 4 | echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
5 | 5 | } else { |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | $userid = $_SESSION['userid']; |
17 | 17 | |
18 | 18 | // Hapus modul |
19 | - if ($module == 'satuan' and $act == 'hapus') { |
|
19 | + if ($module=='satuan' and $act=='hapus') { |
|
20 | 20 | $id = $_GET['id']; |
21 | 21 | $id_module = $_GET['id_module']; |
22 | 22 | |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | } |
34 | 34 | |
35 | 35 | // Input group |
36 | - elseif ($module == 'satuan' and $act == 'input') { |
|
36 | + elseif ($module=='satuan' and $act=='input') { |
|
37 | 37 | $id_module = $_POST['id_module']; |
38 | 38 | |
39 | 39 | if ($_POST['ID']) { |