@@ -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 |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | $nmmodule = ucwords($r['nama_modul']); |
| 12 | 12 | $id = $r['id_modul']; |
| 13 | 13 | |
| 14 | -if ($r['orientation'] == 'P') {
|
|
| 14 | +if ($r['orientation']=='P') {
|
|
| 15 | 15 | $orientation = 'portrait'; |
| 16 | 16 | } else {
|
| 17 | 17 | $orientation = 'landscape'; |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | |
| 139 | 139 | <!--<body onload="cetakspk()">--> |
| 140 | 140 | |
| 141 | -<?php if ($_GET['printto'] == '2') {
|
|
| 141 | +<?php if ($_GET['printto']=='2') {
|
|
| 142 | 142 | ?> |
| 143 | 143 | <body onload="icetak()"> |
| 144 | 144 | <?php |
@@ -132,7 +132,7 @@ |
||
| 132 | 132 | </form> |
| 133 | 133 | |
| 134 | 134 | </div> |
| 135 | - <?php for ($i = 0; $i <= 20; $i++) {
|
|
| 135 | + <?php for ($i = 0; $i<=20; $i++) {
|
|
| 136 | 136 | ?> |
| 137 | 137 | <br /> |
| 138 | 138 | <?php |
@@ -6,7 +6,7 @@ discard block |
||
| 6 | 6 | |
| 7 | 7 | <script type="text/javascript"> |
| 8 | 8 | |
| 9 | -<?php for ($i = 1; $i <= 100; $i++) {
|
|
| 9 | +<?php for ($i = 1; $i<=100; $i++) {
|
|
| 10 | 10 | ?> |
| 11 | 11 | |
| 12 | 12 | function Getstatus<?php echo $i; ?>(str) {
|
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | |
| 27 | 27 | |
| 28 | 28 | |
| 29 | -<?php for ($i = 1; $i <= 100; $i++) {
|
|
| 29 | +<?php for ($i = 1; $i<=100; $i++) {
|
|
| 30 | 30 | ?> |
| 31 | 31 | |
| 32 | 32 | <script> |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | |
| 91 | 91 | default: |
| 92 | 92 | |
| 93 | - if ($_SESSION['outlet'] == '0') {
|
|
| 93 | + if ($_SESSION['outlet']=='0') {
|
|
| 94 | 94 | $d_outlet = '%'; |
| 95 | 95 | } else {
|
| 96 | 96 | $d_outlet = $_SESSION['outlet']; |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | if ($_GET['ioutlet']) {
|
| 100 | 100 | $outlet = $_GET['ioutlet']; |
| 101 | 101 | } else {
|
| 102 | - if ($_SESSION['outlet'] == '0') {
|
|
| 102 | + if ($_SESSION['outlet']=='0') {
|
|
| 103 | 103 | $outlet = '1'; |
| 104 | 104 | } else {
|
| 105 | 105 | $outlet = $_SESSION['outlet']; |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | |
| 109 | 109 | $query = mysql_query('SELECT * FROM periode ');
|
| 110 | 110 | |
| 111 | - if ($query && mysql_num_rows($query) == 1) {
|
|
| 111 | + if ($query && mysql_num_rows($query)==1) {
|
|
| 112 | 112 | $data = mysql_fetch_object($query); |
| 113 | 113 | } |
| 114 | 114 | |
@@ -182,11 +182,11 @@ discard block |
||
| 182 | 182 | |
| 183 | 183 | $query = mysql_query("SELECT * FROM outlet where id_outlet like '$d_outlet' ORDER BY id_outlet");
|
| 184 | 184 | |
| 185 | - if ($query && mysql_num_rows($query) > 0) {
|
|
| 185 | + if ($query && mysql_num_rows($query)>0) {
|
|
| 186 | 186 | while ($row = mysql_fetch_object($query)) {
|
| 187 | 187 | echo '<option value="'.$row->id_outlet.'"'; |
| 188 | 188 | |
| 189 | - if ($row->id_outlet == $outlet) {
|
|
| 189 | + if ($row->id_outlet==$outlet) {
|
|
| 190 | 190 | echo ' selected'; |
| 191 | 191 | } |
| 192 | 192 | |
@@ -210,11 +210,11 @@ discard block |
||
| 210 | 210 | |
| 211 | 211 | $query = mysql_query('SELECT * FROM status ORDER BY id_status');
|
| 212 | 212 | |
| 213 | - if ($query && mysql_num_rows($query) > 0) {
|
|
| 213 | + if ($query && mysql_num_rows($query)>0) {
|
|
| 214 | 214 | while ($row = mysql_fetch_object($query)) {
|
| 215 | 215 | echo '<option value="'.$row->id_status.'"'; |
| 216 | 216 | |
| 217 | - if ($row->id_status == $status) {
|
|
| 217 | + if ($row->id_status==$status) {
|
|
| 218 | 218 | echo ' selected'; |
| 219 | 219 | } |
| 220 | 220 | |
@@ -287,13 +287,13 @@ discard block |
||
| 287 | 287 | |
| 288 | 288 | $pj = mysql_num_rows($pjSQL); |
| 289 | 289 | |
| 290 | - if ($iprd == $prd) {
|
|
| 290 | + if ($iprd==$prd) {
|
|
| 291 | 291 | $disabled = ''; |
| 292 | 292 | } else {
|
| 293 | 293 | $disabled = 'disabled'; |
| 294 | 294 | } |
| 295 | 295 | |
| 296 | - if ($pj == 0) {
|
|
| 296 | + if ($pj==0) {
|
|
| 297 | 297 | $disabled1 = 'disabled'; |
| 298 | 298 | } else {
|
| 299 | 299 | $disabled1 = ''; |
@@ -443,11 +443,11 @@ discard block |
||
| 443 | 443 | |
| 444 | 444 | $query = mysql_query('SELECT * FROM status ORDER BY id_status');
|
| 445 | 445 | |
| 446 | - if ($query && mysql_num_rows($query) > 0) {
|
|
| 446 | + if ($query && mysql_num_rows($query)>0) {
|
|
| 447 | 447 | while ($row = mysql_fetch_object($query)) {
|
| 448 | 448 | echo '<option value="'.$row->id_status.'"'; |
| 449 | 449 | |
| 450 | - if ($row->id_status == $r[status_diskon]) {
|
|
| 450 | + if ($row->id_status==$r[status_diskon]) {
|
|
| 451 | 451 | echo ' selected'; |
| 452 | 452 | } |
| 453 | 453 | |
@@ -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 {
|
@@ -15,12 +15,12 @@ discard block |
||
| 15 | 15 | $datetime = date('Y-m-d G:i:s', $hour);
|
| 16 | 16 | $userid = $_SESSION['userid']; |
| 17 | 17 | |
| 18 | - if ($module == 'approval_diskon_penjualan_barang' and $act == 'approve') {
|
|
| 18 | + if ($module=='approval_diskon_penjualan_barang' and $act=='approve') {
|
|
| 19 | 19 | $id_module = $_POST['id_module']; |
| 20 | 20 | |
| 21 | 21 | $jum = $_POST['jum'] - 1; |
| 22 | 22 | |
| 23 | - for ($i = 1; $i <= $jum; $i++) {
|
|
| 23 | + for ($i = 1; $i<=$jum; $i++) {
|
|
| 24 | 24 | $id = $_POST['id'.$i]; |
| 25 | 25 | $p_status = $_POST['p_status'.$i]; |
| 26 | 26 | $status = $_POST['status'.$i]; |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | $notrans = $_POST['notrans'.$i]; |
| 31 | 31 | $outlet = $_POST['outlet'.$i]; |
| 32 | 32 | |
| 33 | - if ($p_status == '1') {
|
|
| 33 | + if ($p_status=='1') {
|
|
| 34 | 34 | mysql_query("UPDATE penjualan_barang_detail
|
| 35 | 35 | |
| 36 | 36 | SET disc = disc1 |
@@ -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 |
@@ -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 |
@@ -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 | $business_type = $_SESSION['business_type']; |
| 18 | 18 | |
| 19 | - if ($module == 'rujukan_pasien' and $act == 'update') { |
|
| 19 | + if ($module=='rujukan_pasien' and $act=='update') { |
|
| 20 | 20 | $id_module = $_POST['id_module']; |
| 21 | 21 | |
| 22 | 22 | mysql_query("UPDATE kunjungan_berobat SET id_rujukan_rs = '$_POST[rujukan_rs]' |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | echo"<td>$r[rujukan_lab]</td>"; |
| 79 | 79 | echo" <td style='text-align:center;'>"; |
| 80 | 80 | |
| 81 | - if ($r_edit == 'Y') {
|
|
| 81 | + if ($r_edit=='Y') {
|
|
| 82 | 82 | echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_kunjungan_berobat=$r[id_kunjungan_berobat]&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>"; |
| 83 | 83 | } |
| 84 | 84 | |