@@ -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 |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | $business_type = $_SESSION['business_type']; |
| 18 | 18 | |
| 19 | 19 | // Hapus modul |
| 20 | - if ($module == 'resep_obat' and $act == 'dhapus') { |
|
| 20 | + if ($module=='resep_obat' and $act=='dhapus') { |
|
| 21 | 21 | $id = $_GET['id']; |
| 22 | 22 | $id_module = $_GET['id_module']; |
| 23 | 23 | $id_kunjungan_berobat = $_GET['id_kunjungan_berobat']; |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | // Input group |
| 36 | - elseif ($module == 'resep_obat' and $act == 'input') { |
|
| 36 | + elseif ($module=='resep_obat' and $act=='input') { |
|
| 37 | 37 | $id_module = $_POST['id_module']; |
| 38 | 38 | $id_kunjungan_berobat = $_POST['id_kunjungan_berobat']; |
| 39 | 39 | |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | } |
| 80 | 80 | header('location:form_'.$module.'.php?id_kunjungan_berobat='.$id_kunjungan_berobat.'&module='.$module.'&id_module='.$id_modul); |
| 81 | 81 | } // Input group |
| 82 | - elseif ($module == 'resep_obat' and $act == 'close') { |
|
| 82 | + elseif ($module=='resep_obat' and $act=='close') { |
|
| 83 | 83 | $id_module = $_POST['id_module']; ?> |
| 84 | 84 | |
| 85 | 85 | <script language="javascript"> |
@@ -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>"; |
@@ -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 | } |
@@ -110,10 +110,10 @@ discard block |
||
| 110 | 110 | <select name="itipe_barang" class="form-control" onChange="document.myform.submit();"> |
| 111 | 111 | <?php |
| 112 | 112 | $query = mysql_query('SELECT * FROM tipe_barang ORDER BY id_tipe_barang'); |
| 113 | - if ($query && mysql_num_rows($query) > 0) { |
|
| 113 | + if ($query && mysql_num_rows($query)>0) { |
|
| 114 | 114 | while ($row = mysql_fetch_object($query)) { |
| 115 | 115 | echo '<option value="'.$row->id_tipe_barang.'"'; |
| 116 | - if ($row->id_tipe_barang == $tipe_barang) { |
|
| 116 | + if ($row->id_tipe_barang==$tipe_barang) { |
|
| 117 | 117 | echo ' selected'; |
| 118 | 118 | } |
| 119 | 119 | echo '>'.$row->tipe_barang.'</option>'; |
@@ -127,10 +127,10 @@ discard block |
||
| 127 | 127 | <select name="ioutlet" class="form-control" onChange="document.myform.submit();"> |
| 128 | 128 | <?php |
| 129 | 129 | $query = mysql_query('SELECT * FROM outlet ORDER BY id_outlet'); |
| 130 | - if ($query && mysql_num_rows($query) > 0) { |
|
| 130 | + if ($query && mysql_num_rows($query)>0) { |
|
| 131 | 131 | while ($row = mysql_fetch_object($query)) { |
| 132 | 132 | echo '<option value="'.$row->id_outlet.'"'; |
| 133 | - if ($row->id_outlet == $outlet) { |
|
| 133 | + if ($row->id_outlet==$outlet) { |
|
| 134 | 134 | echo ' selected'; |
| 135 | 135 | } |
| 136 | 136 | echo '>'.$row->outlet.'</option>'; |
@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | |
| 235 | 235 | $sisa_stok = $r['stok'] - $reserve; |
| 236 | 236 | |
| 237 | - if ($sisa_stok == '0') { |
|
| 237 | + if ($sisa_stok=='0') { |
|
| 238 | 238 | echo ''; |
| 239 | 239 | } else { |
| 240 | 240 | echo'<tr>'; |
@@ -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_poli=$r[id_poli]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
| 58 | 58 | } |
| 59 | 59 | |
@@ -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_kategori=$r[id_kategori]&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 | |
@@ -389,7 +389,7 @@ discard block |
||
| 389 | 389 | |
| 390 | 390 | <?php |
| 391 | 391 | |
| 392 | - if ($r[id_shift] == '1') { |
|
| 392 | + if ($r[id_shift]=='1') { |
|
| 393 | 393 | $id_shift = '1'; |
| 394 | 394 | } else { |
| 395 | 395 | $id_shift = '%'; |
@@ -500,7 +500,7 @@ discard block |
||
| 500 | 500 | |
| 501 | 501 | ?> |
| 502 | 502 | |
| 503 | - <?php if ($id_shift == '%') { |
|
| 503 | + <?php if ($id_shift=='%') { |
|
| 504 | 504 | ?> |
| 505 | 505 | <tr> |
| 506 | 506 | <th></th> |
@@ -35,9 +35,9 @@ discard block |
||
| 35 | 35 | $sql = mysql_query("select * from modul where aktif='Y' order by urutan"); |
| 36 | 36 | |
| 37 | 37 | while ($r = mysql_fetch_array($sql)) { |
| 38 | - if ($r[status_menu] == 'M' and !empty($r[link])) { |
|
| 38 | + if ($r[status_menu]=='M' and !empty($r[link])) { |
|
| 39 | 39 | echo "<li class='Aktif'><a href='$r[link]&menu=$r[nama_modul]'>$r[nama_modul]</a>"; |
| 40 | - } elseif ($r[status_menu] == 'M' and empty($r[link])) { |
|
| 40 | + } elseif ($r[status_menu]=='M' and empty($r[link])) { |
|
| 41 | 41 | echo "<li class='Aktif'><a href='#'>$r[nama_modul]</a>"; |
| 42 | 42 | } |
| 43 | 43 | |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | $detil = mysql_query("select * from modul where parentid='$r[id_modul]' and status_menu='C' and aktif='Y' order by urutan"); |
| 47 | 47 | |
| 48 | 48 | while ($d = mysql_fetch_array($detil)) { |
| 49 | - if ($d[is_form] == 'Y') { |
|
| 49 | + if ($d[is_form]=='Y') { |
|
| 50 | 50 | echo"<li><a href='form/form_$d[link].php?width=850&height=600&module=$d[link]&imodule=$imodule&imenu=$imenu&isub=$isub&TB_iframe=true' title='$d[nama_modul]' class='thickbox' >$d[nama_modul]</a></li>"; |
| 51 | 51 | } else { |
| 52 | 52 | echo"<li><a href='$d[link]&menu=$r[nama_modul]&sub=$d[nama_modul]'>$d[nama_modul]</a></li>"; |