Passed
Branch master (c66316)
by Saepul
06:04
created
modul/mod_groups/aksi_groups.php 2 patches
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 session_start();
3 3
 if (empty($_SESSION['username']) AND empty($_SESSION['password'])){
4
-  echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>";
4
+    echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>";
5 5
 } else{
6 6
 include "./../../config/koneksi.php";
7 7
 include "./../../config/fungsi_thumb.php";
@@ -18,14 +18,14 @@  discard block
 block discarded – undo
18 18
 
19 19
 // Hapus modul
20 20
 if ($module=='groups' AND $act=='hapus'){
21
-  $id = $_GET['id'];
22
-  $id_module = $_GET['id_module'];
21
+    $id = $_GET['id'];
22
+    $id_module = $_GET['id_module'];
23 23
    
24
-  mysql_query("DELETE FROM ".$module." WHERE id_".$module." = $id");
24
+    mysql_query("DELETE FROM ".$module." WHERE id_".$module." = $id");
25 25
 
26
-   //header('location:../../main.php?module='.$module.'&id_module='.$id_module);          
26
+    //header('location:../../main.php?module='.$module.'&id_module='.$id_module);          
27 27
 
28
-  ?>
28
+    ?>
29 29
    
30 30
   <script language="javascript">
31 31
      window.parent.location.href = "<?php echo"./../../main.php?module=$module&id_module=$id_module";?>";  
@@ -34,16 +34,16 @@  discard block
 block discarded – undo
34 34
   
35 35
   <?php                 
36 36
    
37
- }
37
+    }
38 38
 
39
-  // Input group
39
+    // Input group
40 40
 elseif ($module=='groups' AND $act=='input'){
41 41
 
42
-  $id_module = $_POST['id_module'];
42
+    $id_module = $_POST['id_module'];
43 43
 
44 44
 
45
-   if($_POST['ID']){
46
-   mysql_query("UPDATE groups SET groups   = '$_POST[groups]'
45
+    if($_POST['ID']){
46
+    mysql_query("UPDATE groups SET groups   = '$_POST[groups]'
47 47
                     ,upddt   = '$datetime' 
48 48
                     ,updby   = '$userid' 
49 49
                     ,aktif     = '$_POST[aktif]'  
@@ -51,8 +51,8 @@  discard block
 block discarded – undo
51 51
                           
52 52
 
53 53
       
54
-   } else {
55
-   mysql_query("INSERT INTO groups(groups
54
+    } else {
55
+    mysql_query("INSERT INTO groups(groups
56 56
                    ,crtdt
57 57
                    ,crtby
58 58
                    ,upddt
@@ -66,12 +66,12 @@  discard block
 block discarded – undo
66 66
                     ,'$_POST[aktif]')");
67 67
   
68 68
                 
69
-   }
69
+    }
70 70
    
71 71
 
72
-   //header('location:../../main.php?module='.$module.'&id_module='.$id_module);          
72
+    //header('location:../../main.php?module='.$module.'&id_module='.$id_module);          
73 73
 
74
-  ?>
74
+    ?>
75 75
    
76 76
   <script language="javascript">
77 77
      window.parent.location.href = "<?php echo"./../../main.php?module=$module&id_module=$id_module";?>";  
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,23 +1,23 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 session_start();
3
-if (empty($_SESSION['username']) AND empty($_SESSION['password'])){
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
-} else{
5
+} else {
6 6
 include "./../../config/koneksi.php";
7 7
 include "./../../config/fungsi_thumb.php";
8 8
 
9
-$module=$_GET[module];
10
-$act=$_GET[act];
9
+$module = $_GET[module];
10
+$act = $_GET[act];
11 11
 
12 12
 $date     = date("d/m/Y");  
13 13
 $idate    = date("Y-m-d");
14 14
 $hour = time() - (1 * 1 * 60 * 60);
15
-$datetime   = date("Y-m-d G:i:s", $hour);
15
+$datetime = date("Y-m-d G:i:s", $hour);
16 16
 $userid   = $_SESSION['userid'];
17 17
 $business_type = $_SESSION['business_type']; 
18 18
 
19 19
 // Hapus modul
20
-if ($module=='groups' AND $act=='hapus'){
20
+if ($module=='groups' AND $act=='hapus') {
21 21
   $id = $_GET['id'];
22 22
   $id_module = $_GET['id_module'];
23 23
    
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
   ?>
29 29
    
30 30
   <script language="javascript">
31
-     window.parent.location.href = "<?php echo"./../../main.php?module=$module&id_module=$id_module";?>";  
31
+     window.parent.location.href = "<?php echo"./../../main.php?module=$module&id_module=$id_module"; ?>";  
32 32
      window.parent.tb_remove();
33 33
    </script>
34 34
   
@@ -37,12 +37,12 @@  discard block
 block discarded – undo
37 37
  }
38 38
 
39 39
   // Input group
40
-elseif ($module=='groups' AND $act=='input'){
40
+elseif ($module=='groups' AND $act=='input') {
41 41
 
42 42
   $id_module = $_POST['id_module'];
43 43
 
44 44
 
45
-   if($_POST['ID']){
45
+   if ($_POST['ID']) {
46 46
    mysql_query("UPDATE groups SET groups   = '$_POST[groups]'
47 47
                     ,upddt   = '$datetime' 
48 48
                     ,updby   = '$userid' 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
   ?>
75 75
    
76 76
   <script language="javascript">
77
-     window.parent.location.href = "<?php echo"./../../main.php?module=$module&id_module=$id_module";?>";  
77
+     window.parent.location.href = "<?php echo"./../../main.php?module=$module&id_module=$id_module"; ?>";  
78 78
      window.parent.tb_remove();
79 79
    </script>
80 80
   
Please login to merge, or discard this patch.
modul/mod_groups/form_groups.php 3 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?
2 2
 session_start();
3 3
 if (empty($_SESSION['username']) AND empty($_SESSION['password'])){
4
-  echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>";
4
+    echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>";
5 5
 } else{
6 6
 include "./../../config/koneksi.php";
7 7
 ?>
@@ -41,27 +41,27 @@  discard block
 block discarded – undo
41 41
 
42 42
 $id_module = $_GET['id_module']; 
43 43
 
44
-  $id = isset($_GET['id_groups']) ? intval($_GET['id_groups']) : false;
44
+    $id = isset($_GET['id_groups']) ? intval($_GET['id_groups']) : false;
45 45
   
46
-  if($id){
47
-     $query = mysql_query('SELECT * FROM groups WHERE id_groups = "'.$id.'"');
48
-     if($query && mysql_num_rows($query) == 1){
46
+    if($id){
47
+        $query = mysql_query('SELECT * FROM groups WHERE id_groups = "'.$id.'"');
48
+        if($query && mysql_num_rows($query) == 1){
49 49
         $data = mysql_fetch_object($query);
50
-     }else 
50
+        }else 
51 51
         die('Data modul tidak ditemukan');
52
-  }
52
+    }
53 53
   
54 54
 if ($_GET['igroup']) {
55
-  $group  = $_GET['igroup'];
55
+    $group  = $_GET['igroup'];
56 56
 } else {
57
-  $group  = $data->id_groups;
57
+    $group  = $data->id_groups;
58 58
   
59 59
 }
60 60
 
61 61
 if ($_GET['imenu']) {
62
-  $imenu  = $_GET['imenu'];
62
+    $imenu  = $_GET['imenu'];
63 63
 } else {
64
-  $imenu  = $data->id_modul;  
64
+    $imenu  = $data->id_modul;  
65 65
   
66 66
 }
67 67
 
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?
2 2
 session_start();
3
-if (empty($_SESSION['username']) AND empty($_SESSION['password'])){
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
-} else{
5
+} else {
6 6
 include "./../../config/koneksi.php";
7 7
 ?>
8 8
 <!doctype html>
@@ -37,17 +37,17 @@  discard block
 block discarded – undo
37 37
 $modul = $_GET['module'];
38 38
 $title = $_GET['title'];
39 39
 $business_type = $_SESSION['business_type']; 
40
-$role   = $_SESSION['role'];
40
+$role = $_SESSION['role'];
41 41
 
42 42
 $id_module = $_GET['id_module']; 
43 43
 
44 44
   $id = isset($_GET['id_groups']) ? intval($_GET['id_groups']) : false;
45 45
   
46
-  if($id){
46
+  if ($id) {
47 47
      $query = mysql_query('SELECT * FROM groups WHERE id_groups = "'.$id.'"');
48
-     if($query && mysql_num_rows($query) == 1){
48
+     if ($query && mysql_num_rows($query)==1) {
49 49
         $data = mysql_fetch_object($query);
50
-     }else 
50
+     } else 
51 51
         die('Data modul tidak ditemukan');
52 52
   }
53 53
   
@@ -90,9 +90,9 @@  discard block
 block discarded – undo
90 90
           </div> -->
91 91
 
92 92
         
93
-          <?php if ($id){ ?>  
93
+          <?php if ($id) { ?>  
94 94
     
95
-            <?php if (@$data->aktif=='Y'){ ?>
95
+            <?php if (@$data->aktif=='Y') { ?>
96 96
               
97 97
                 <div class="form-group">
98 98
 	               <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Aktif:</label>
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
                     <input type=radio name='aktif' value='N' class="flat"> T                
102 102
                   </div>
103 103
               </div>  
104
-            <?php   }else{ ?>  
104
+            <?php   } else { ?>  
105 105
               
106 106
                 <div class="form-group">
107 107
 	               <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Aktif:</label>
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
               </div>  
113 113
              <?php } ?>
114 114
 
115
-        <?php   }else{ ?>  
115
+        <?php   } else { ?>  
116 116
 
117 117
            
118 118
                 <div class="form-group">
Please login to merge, or discard this patch.
Braces   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,8 +47,9 @@  discard block
 block discarded – undo
47 47
      $query = mysql_query('SELECT * FROM groups WHERE id_groups = "'.$id.'"');
48 48
      if($query && mysql_num_rows($query) == 1){
49 49
         $data = mysql_fetch_object($query);
50
-     }else 
51
-        die('Data modul tidak ditemukan');
50
+     } else {
51
+             die('Data modul tidak ditemukan');
52
+     }
52 53
   }
53 54
   
54 55
 if ($_GET['igroup']) {
@@ -101,7 +102,7 @@  discard block
 block discarded – undo
101 102
                     <input type=radio name='aktif' value='N' class="flat"> T                
102 103
                   </div>
103 104
               </div>  
104
-            <?php   }else{ ?>  
105
+            <?php   } else{ ?>  
105 106
               
106 107
                 <div class="form-group">
107 108
 	               <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Aktif:</label>
@@ -112,7 +113,7 @@  discard block
 block discarded – undo
112 113
               </div>  
113 114
              <?php } ?>
114 115
 
115
-        <?php   }else{ ?>  
116
+        <?php   } else{ ?>  
116 117
 
117 118
            
118 119
                 <div class="form-group">
Please login to merge, or discard this patch.
modul/mod_general_setting/form_general_setting.php 3 patches
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?
2 2
 session_start();
3 3
 if (empty($_SESSION['username']) AND empty($_SESSION['password'])){
4
-  echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>";
4
+    echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>";
5 5
 } else{
6 6
 include "./../../config/koneksi.php";
7 7
 include "./../../config/fungsi_thumb.php";
@@ -76,27 +76,27 @@  discard block
 block discarded – undo
76 76
 
77 77
 $id_module = $_GET['id_module']; 
78 78
 
79
-  $id = 1; // isset($_GET['id_general_setting']) ? intval($_GET['id_general_setting']) : false;
79
+    $id = 1; // isset($_GET['id_general_setting']) ? intval($_GET['id_general_setting']) : false;
80 80
     
81 81
     if($id){
82
-       $query = mysql_query('SELECT * FROM general_setting WHERE id_general_setting = "'.$id.'"');
83
-       if($query && mysql_num_rows($query) == 1){
84
-          $data = mysql_fetch_object($query);
85
-       }else 
86
-          die('Data general_setting tidak ditemukan');
82
+        $query = mysql_query('SELECT * FROM general_setting WHERE id_general_setting = "'.$id.'"');
83
+        if($query && mysql_num_rows($query) == 1){
84
+            $data = mysql_fetch_object($query);
85
+        }else 
86
+            die('Data general_setting tidak ditemukan');
87 87
     }
88 88
   
89 89
 if ($_GET['igroup']) {
90
-  $group  = $_GET['igroup'];
90
+    $group  = $_GET['igroup'];
91 91
 } else {
92
-  $group  = $data->id_location;
92
+    $group  = $data->id_location;
93 93
   
94 94
 }
95 95
 
96 96
 if ($_GET['imenu']) {
97
-  $imenu  = $_GET['imenu'];
97
+    $imenu  = $_GET['imenu'];
98 98
 } else {
99
-  $imenu  = $data->id_modul;  
99
+    $imenu  = $data->id_modul;  
100 100
   
101 101
 }
102 102
 
@@ -376,12 +376,12 @@  discard block
 block discarded – undo
376 376
         <!-- /editor -->
377 377
 
378 378
          <?php 
379
-         if(empty($pict)) { 
379
+            if(empty($pict)) { 
380 380
             $ipict = 'logo.png';
381
-           } else { 
381
+            } else { 
382 382
             $ipict = $pict;
383
-           } 
384
-           ?>
383
+            } 
384
+            ?>
385 385
 
386 386
         <script>
387 387
           var btnCust = '<button type="button" class="btn btn-default" title="Add picture tags" ' + 
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?
2 2
 session_start();
3
-if (empty($_SESSION['username']) AND empty($_SESSION['password'])){
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
-} else{
5
+} else {
6 6
 include "./../../config/koneksi.php";
7 7
 include "./../../config/fungsi_thumb.php";
8 8
 ?>
@@ -72,17 +72,17 @@  discard block
 block discarded – undo
72 72
 $imodule = $_GET['imodule'];
73 73
 $title = $_GET['title'];
74 74
 
75
-$role   = $_SESSION['role'];
75
+$role = $_SESSION['role'];
76 76
 
77 77
 $id_module = $_GET['id_module']; 
78 78
 
79 79
   $id = 1; // isset($_GET['id_general_setting']) ? intval($_GET['id_general_setting']) : false;
80 80
     
81
-    if($id){
81
+    if ($id) {
82 82
        $query = mysql_query('SELECT * FROM general_setting WHERE id_general_setting = "'.$id.'"');
83
-       if($query && mysql_num_rows($query) == 1){
83
+       if ($query && mysql_num_rows($query)==1) {
84 84
           $data = mysql_fetch_object($query);
85
-       }else 
85
+       } else 
86 86
           die('Data general_setting tidak ditemukan');
87 87
     }
88 88
   
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
   
101 101
 }
102 102
 
103
-$pict  = $data->pict;
103
+$pict = $data->pict;
104 104
 
105 105
   
106 106
 ?>
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
         <!-- /editor -->
377 377
 
378 378
          <?php 
379
-         if(empty($pict)) { 
379
+         if (empty($pict)) { 
380 380
             $ipict = 'logo.png';
381 381
            } else { 
382 382
             $ipict = $pict;
@@ -400,7 +400,7 @@  discard block
 block discarded – undo
400 400
               removeTitle: 'Cancel or reset changes',
401 401
               elErrorContainer: '#kv-avatar-errors',
402 402
               msgErrorClass: 'alert alert-block alert-danger',
403
-              defaultPreviewContent: '<img src="../../images/logo/<?php echo $ipict;?>" alt="Your Avatar" style="width:180px;">',
403
+              defaultPreviewContent: '<img src="../../images/logo/<?php echo $ipict; ?>" alt="Your Avatar" style="width:180px;">',
404 404
               layoutTemplates: {main2: '{preview} ' + ' {remove} {browse}'},
405 405
               allowedFileExtensions: ["jpg"]
406 406
           });
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,8 +82,9 @@
 block discarded – undo
82 82
        $query = mysql_query('SELECT * FROM general_setting WHERE id_general_setting = "'.$id.'"');
83 83
        if($query && mysql_num_rows($query) == 1){
84 84
           $data = mysql_fetch_object($query);
85
-       }else 
86
-          die('Data general_setting tidak ditemukan');
85
+       } else {
86
+                 die('Data general_setting tidak ditemukan');
87
+       }
87 88
     }
88 89
   
89 90
 if ($_GET['igroup']) {
Please login to merge, or discard this patch.
modul/mod_general_setting/aksi_general_setting.php 2 patches
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 session_start();
3 3
 if (empty($_SESSION['username']) AND empty($_SESSION['password'])){
4
-  echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>";
4
+    echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>";
5 5
 } else{
6 6
 include "./../../config/koneksi.php";
7 7
 include "./../../config/fungsi_thumb.php";
@@ -19,17 +19,17 @@  discard block
 block discarded – undo
19 19
 
20 20
 if ($module=='general_setting' AND $act=='input'){
21 21
 
22
-  $id_module = $_POST['id_module'];
22
+    $id_module = $_POST['id_module'];
23 23
 
24
-  $lokasi_file    = $_FILES['fupload']['tmp_name'];
25
-  $tipe_file      = $_FILES['fupload']['type'];
26
-  $nama_file      = $_FILES['fupload']['name'];
27
-  $acak           = rand(1,99);
28
-  $nama_file_unik = $acak.$nama_file; 
24
+    $lokasi_file    = $_FILES['fupload']['tmp_name'];
25
+    $tipe_file      = $_FILES['fupload']['type'];
26
+    $nama_file      = $_FILES['fupload']['name'];
27
+    $acak           = rand(1,99);
28
+    $nama_file_unik = $acak.$nama_file; 
29 29
 
30 30
     
31
-      if (empty($lokasi_file)){
32
-          mysql_query("UPDATE general_setting SET company    = '$_POST[company]'
31
+        if (empty($lokasi_file)){
32
+            mysql_query("UPDATE general_setting SET company    = '$_POST[company]'
33 33
                           ,address   = '$_POST[address]'
34 34
                           ,city      = '$_POST[city]'
35 35
                           ,zip       = '$_POST[zip]'      
@@ -39,10 +39,10 @@  discard block
 block discarded – undo
39 39
                          ,upddt     = '$datetime' 
40 40
                          ,updby     = '$userid'    
41 41
                        WHERE id_general_setting     = '$_POST[ID]'");
42
-       } else {
42
+        } else {
43 43
 
44
-           LogoImage($nama_file_unik);
45
-           mysql_query("UPDATE general_setting SET company    = '$_POST[company]'
44
+            LogoImage($nama_file_unik);
45
+            mysql_query("UPDATE general_setting SET company    = '$_POST[company]'
46 46
                           ,address   = '$_POST[address]'
47 47
                           ,city      = '$_POST[city]'
48 48
                           ,zip       = '$_POST[zip]'      
@@ -55,11 +55,11 @@  discard block
 block discarded – undo
55 55
                          ,updby     = '$userid'   
56 56
                        WHERE id_general_setting      = '$_POST[ID]'");
57 57
 
58
-       }   
58
+        }   
59 59
 
60
-  $id = $_POST['ID'];       
60
+    $id = $_POST['ID'];       
61 61
                        
62
-   header('location:form_'.$module.'.php?id='.$id.'&module='.$module.'&id_module='.$id_module);          
62
+    header('location:form_'.$module.'.php?id='.$id.'&module='.$module.'&id_module='.$id_module);          
63 63
 
64 64
 }
65 65
 
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,34 +1,34 @@
 block discarded – undo
1 1
 <?php
2 2
 session_start();
3
-if (empty($_SESSION['username']) AND empty($_SESSION['password'])){
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
-} else{
5
+} else {
6 6
 include "./../../config/koneksi.php";
7 7
 include "./../../config/fungsi_thumb.php";
8 8
 
9
-$imodule=$_POST[imodule];
10
-$module=$_GET[module];
11
-$act=$_GET[act];
9
+$imodule = $_POST[imodule];
10
+$module = $_GET[module];
11
+$act = $_GET[act];
12 12
 
13 13
 $date     = date("d/m/Y");  
14 14
 $idate    = date("Y-m-d");
15 15
 $hour = time() - (1 * 1 * 60 * 60);
16
-$datetime   = date("Y-m-d G:i:s", $hour);
16
+$datetime = date("Y-m-d G:i:s", $hour);
17 17
 $userid   = $_SESSION['userid'];
18 18
 
19 19
 
20
-if ($module=='general_setting' AND $act=='input'){
20
+if ($module=='general_setting' AND $act=='input') {
21 21
 
22 22
   $id_module = $_POST['id_module'];
23 23
 
24 24
   $lokasi_file    = $_FILES['fupload']['tmp_name'];
25 25
   $tipe_file      = $_FILES['fupload']['type'];
26 26
   $nama_file      = $_FILES['fupload']['name'];
27
-  $acak           = rand(1,99);
27
+  $acak           = rand(1, 99);
28 28
   $nama_file_unik = $acak.$nama_file; 
29 29
 
30 30
     
31
-      if (empty($lokasi_file)){
31
+      if (empty($lokasi_file)) {
32 32
           mysql_query("UPDATE general_setting SET company    = '$_POST[company]'
33 33
                           ,address   = '$_POST[address]'
34 34
                           ,city      = '$_POST[city]'
Please login to merge, or discard this patch.
modul/mod_kasir/form_list_pemesanan.php 2 patches
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 
5 5
 if (empty($_SESSION['username']) AND empty($_SESSION['password'])){
6 6
 
7
-  echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>";
7
+    echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>";
8 8
 
9 9
 } else{
10 10
 
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
 
273 273
        
274 274
 
275
-      $SQL= "SELECT p.tanggal,a.*,c.id_unit_barang,c.unit_barang,b.kode as kode_bar,b.barang
275
+        $SQL= "SELECT p.tanggal,a.*,c.id_unit_barang,c.unit_barang,b.kode as kode_bar,b.barang
276 276
 
277 277
                   ,a.qty-a.qty_ps as iqty, b.id_merk, b.id_barang
278 278
                   ,ifnull((SELECT sum(saldo_akhir)
@@ -330,16 +330,16 @@  discard block
 block discarded – undo
330 330
 
331 331
          
332 332
 
333
-         $no = 1;
333
+            $no = 1;
334 334
 
335 335
          
336 336
 
337
-         while ($r=mysql_fetch_array($tampil)){  
337
+            while ($r=mysql_fetch_array($tampil)){  
338 338
 
339
-          //selectPR(no_pr,id_permintaan_barang_detail,ibarang,id_barang,unit_barang,iqty,qty)
339
+            //selectPR(no_pr,id_permintaan_barang_detail,ibarang,id_barang,unit_barang,iqty,qty)
340 340
 
341 341
 
342
-          $hsql  = mysql_query("SELECT harga as last_price 
342
+            $hsql  = mysql_query("SELECT harga as last_price 
343 343
                                 FROM pemesanan_barang_detail
344 344
                                 WHERE id_outlet = '$outlet'
345 345
                                 and id_barang = '$r[id_barang]'
@@ -351,28 +351,28 @@  discard block
 block discarded – undo
351 351
 
352 352
 
353 353
 
354
-             $h         = mysql_fetch_array($hsql);
354
+                $h         = mysql_fetch_array($hsql);
355 355
 
356 356
               
357 357
 
358
-             if ($h['last_price']) {
359
-              $last_price  = $h['last_price'];
360
-             } else {
361
-              $last_price  = 0;  
362
-             }
358
+                if ($h['last_price']) {
359
+                $last_price  = $h['last_price'];
360
+                } else {
361
+                $last_price  = 0;  
362
+                }
363 363
 
364 364
 
365 365
 
366
-          $tgl = date("d/m/Y", strtotime($r['tanggal']));
366
+            $tgl = date("d/m/Y", strtotime($r['tanggal']));
367 367
 
368
-          $barang = $r['kode_bar'].' - '.$r['barang'];
368
+            $barang = $r['kode_bar'].' - '.$r['barang'];
369 369
 
370
-          $no_pr = $r['kode'].''.$r['notrans'];
370
+            $no_pr = $r['kode'].''.$r['notrans'];
371 371
 
372 372
 
373 373
 
374 374
 
375
-         echo"<tr>";
375
+            echo"<tr>";
376 376
 
377 377
         ?>
378 378
 
@@ -404,19 +404,19 @@  discard block
 block discarded – undo
404 404
 
405 405
         echo"<td style='text-align:right;'>".number_format($r['iqty'], 2, ".", ",")."</td>";  
406 406
 
407
-         echo"<td style='text-align:right;'>".number_format($r['stok'], 2, ".", ",")."</td>";  
407
+            echo"<td style='text-align:right;'>".number_format($r['stok'], 2, ".", ",")."</td>";  
408 408
 
409 409
         echo"<td>".$r['unit_barang']."</td>";              
410 410
 
411
-         echo"</tr>";
411
+            echo"</tr>";
412 412
 
413
-         $no++;
413
+            $no++;
414 414
 
415 415
             
416 416
 
417
-         }
417
+            }
418 418
 
419
-         ?>
419
+            ?>
420 420
 
421 421
         </tbody>
422 422
 
Please login to merge, or discard this patch.
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -2,17 +2,17 @@  discard block
 block discarded – undo
2 2
 
3 3
 session_start();
4 4
 
5
-if (empty($_SESSION['username']) AND empty($_SESSION['password'])){
5
+if (empty($_SESSION['username']) AND empty($_SESSION['password'])) {
6 6
 
7 7
   echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>";
8 8
 
9
-} else{
9
+} else {
10 10
 
11 11
 include "./../../config/koneksi.php";
12 12
 
13 13
 include "./../../config/fungsi_thumb.php";
14 14
 
15
-$idate    = date("Y-m-d");
15
+$idate = date("Y-m-d");
16 16
 
17 17
 ?>
18 18
 
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
 
167 167
 
168 168
 
169
-$role   = $_SESSION['role'];
169
+$role = $_SESSION['role'];
170 170
 
171 171
 
172 172
 
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
 
273 273
        
274 274
 
275
-      $SQL= "SELECT p.tanggal,a.*,c.id_unit_barang,c.unit_barang,b.kode as kode_bar,b.barang
275
+      $SQL = "SELECT p.tanggal,a.*,c.id_unit_barang,c.unit_barang,b.kode as kode_bar,b.barang
276 276
 
277 277
                   ,a.qty-a.qty_ps as iqty, b.id_merk, b.id_barang
278 278
                   ,ifnull((SELECT sum(saldo_akhir)
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
 
327 327
 
328 328
 
329
-        $tampil=mysql_query($SQL);
329
+        $tampil = mysql_query($SQL);
330 330
 
331 331
          
332 332
 
@@ -334,12 +334,12 @@  discard block
 block discarded – undo
334 334
 
335 335
          
336 336
 
337
-         while ($r=mysql_fetch_array($tampil)){  
337
+         while ($r = mysql_fetch_array($tampil)) {  
338 338
 
339 339
           //selectPR(no_pr,id_permintaan_barang_detail,ibarang,id_barang,unit_barang,iqty,qty)
340 340
 
341 341
 
342
-          $hsql  = mysql_query("SELECT harga as last_price 
342
+          $hsql = mysql_query("SELECT harga as last_price 
343 343
                                 FROM pemesanan_barang_detail
344 344
                                 WHERE id_outlet = '$outlet'
345 345
                                 and id_barang = '$r[id_barang]'
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
 
352 352
 
353 353
 
354
-             $h         = mysql_fetch_array($hsql);
354
+             $h = mysql_fetch_array($hsql);
355 355
 
356 356
               
357 357
 
@@ -466,7 +466,7 @@  discard block
 block discarded – undo
466 466
 
467 467
               
468 468
 
469
-    <?php if ($size == '10') { ?>
469
+    <?php if ($size=='10') { ?>
470 470
 
471 471
     <option value="10" selected="selected">10</option>
472 472
 
@@ -478,7 +478,7 @@  discard block
 block discarded – undo
478 478
 
479 479
 
480 480
 
481
-     <?php if ($size == '15') { ?>
481
+     <?php if ($size=='15') { ?>
482 482
 
483 483
     <option value="15" selected="selected">15</option>
484 484
 
@@ -490,7 +490,7 @@  discard block
 block discarded – undo
490 490
 
491 491
 
492 492
 
493
-    <?php if ($size == '20') { ?>
493
+    <?php if ($size=='20') { ?>
494 494
 
495 495
     <option value="20" selected="selected">20</option>
496 496
 
@@ -502,7 +502,7 @@  discard block
 block discarded – undo
502 502
 
503 503
 
504 504
 
505
-    <?php if ($size == '50') { ?>
505
+    <?php if ($size=='50') { ?>
506 506
 
507 507
     <option value="50" selected="selected">20</option>
508 508
 
@@ -514,7 +514,7 @@  discard block
 block discarded – undo
514 514
 
515 515
 
516 516
 
517
-    <?php if ($size == '100') { ?>
517
+    <?php if ($size=='100') { ?>
518 518
 
519 519
     <option value="100" selected="selected">100</option>
520 520
 
Please login to merge, or discard this patch.
modul/mod_kasir/kasir.php 4 patches
Indentation   +201 added lines, -201 removed lines patch added patch discarded remove patch
@@ -6,11 +6,11 @@  discard block
 block discarded – undo
6 6
 
7 7
 if ($_GET['prd']) {
8 8
 
9
-  $prd = $_GET['prd'];
9
+    $prd = $_GET['prd'];
10 10
 
11 11
 } else {
12 12
 
13
-  $prd = DATE('Y-m');
13
+    $prd = DATE('Y-m');
14 14
 
15 15
 }
16 16
 
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
 
332 332
        
333 333
 
334
-         $tampil=mysql_query("SELECT a.*,b.shift
334
+            $tampil=mysql_query("SELECT a.*,b.shift
335 335
 
336 336
                              FROM kasir a left join shift b
337 337
 
@@ -349,15 +349,15 @@  discard block
 block discarded – undo
349 349
 
350 350
                                               
351 351
 
352
-         $no = 1;
352
+            $no = 1;
353 353
 
354 354
          
355 355
 
356
-         while ($r=mysql_fetch_array($tampil)){  
356
+            while ($r=mysql_fetch_array($tampil)){  
357 357
 
358 358
 
359 359
 
360
-          $tgl = date("d/m/Y", strtotime($r['tanggal']));
360
+            $tgl = date("d/m/Y", strtotime($r['tanggal']));
361 361
 
362 362
 
363 363
 
@@ -365,84 +365,84 @@  discard block
 block discarded – undo
365 365
 
366 366
 
367 367
 
368
-          if($r['status'] == '0'){
368
+            if($r['status'] == '0'){
369 369
 
370 370
             $istatus = 'Baru';
371 371
 
372
-          } else if($r['status'] == '1'){
372
+            } else if($r['status'] == '1'){
373 373
 
374 374
             $istatus = 'Disetujui';
375 375
 
376
-          } else if($r['status'] == '2'){
376
+            } else if($r['status'] == '2'){
377 377
 
378 378
             $istatus = 'Ditolak';
379 379
 
380
-           } else if($r['status'] == '9'){
380
+            } else if($r['status'] == '9'){
381 381
 
382 382
             $istatus = 'Posting'; 
383 383
 
384
-           } else {
384
+            } else {
385 385
 
386
-           $istatus = 'Dibatalkan';
386
+            $istatus = 'Dibatalkan';
387 387
 
388
-          }
388
+            }
389 389
 
390 390
 
391 391
 
392
-          $ID = $r[id_kasir];         
392
+            $ID = $r[id_kasir];         
393 393
 
394
-         echo"<tr>";
394
+            echo"<tr>";
395 395
 
396 396
 
397 397
 
398
-         echo"<td>$tgl </td>";
398
+            echo"<td>$tgl </td>";
399 399
 
400 400
 
401
-         echo"<td>$r[shift]</td>";
401
+            echo"<td>$r[shift]</td>";
402 402
 
403
-         echo"<td>$r[petugas]</td>";
403
+            echo"<td>$r[petugas]</td>";
404 404
 
405
-         echo"<td>$r[note]</td>";
405
+            echo"<td>$r[note]</td>";
406 406
 
407
-         // echo"<td>$istatus</td>";
407
+            // echo"<td>$istatus</td>";
408 408
 
409
-         echo"<td style='text-align:center;'>";
409
+            echo"<td style='text-align:center;'>";
410 410
 
411 411
 
412 412
 
413
-              if($r_edit == 'Y') {
413
+                if($r_edit == 'Y') {
414 414
 
415
-                  echo"<a href='?module=$module&id_module=$id&act=save&ID=$ID' title='Update'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
415
+                    echo"<a href='?module=$module&id_module=$id&act=save&ID=$ID' title='Update'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
416 416
 
417
-                  }
417
+                    }
418 418
 
419 419
 
420 420
 
421 421
 
422 422
                 if($r_delete == 'Y' and $r['status'] == '0') {
423 423
 
424
-                  echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$ID&id_module=$id&id_module=$id' onClick=\"return confirm('Hapus Data ?')\" title='Hapus $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
424
+                    echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$ID&id_module=$id&id_module=$id' onClick=\"return confirm('Hapus Data ?')\" title='Hapus $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
425 425
 
426
-                  }  else {
427
-                      echo"<i class='fa fa-trash'></i></span>";
428
-                  }
426
+                    }  else {
427
+                        echo"<i class='fa fa-trash'></i></span>";
428
+                    }
429 429
 
430 430
 
431 431
 
432 432
 
433 433
 
434 434
 
435
-         echo"</td>";      
435
+            echo"</td>";      
436 436
 
437
-         echo"</tr>";
437
+            echo"</tr>";
438 438
 
439
-         $no++;
439
+            $no++;
440 440
 
441 441
             
442 442
 
443
-         }
443
+            }
444 444
 
445
-         ?>
445
+            ?>
446 446
 
447 447
         </tbody>
448 448
 
@@ -589,9 +589,9 @@  discard block
 block discarded – undo
589 589
 
590 590
             <?
591 591
 
592
-          echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=batal&id=$ID&id_module=$id&notrans=$notrans&prd=$prd&kode=$kodee&outlet=$outlet' onClick=\"return confirm('Hapus transaksi ?')\" title='Hapus $nmmodule'><span class='btn btn-danger'><span style='color:white;'>Hapus</span></a>";
592
+            echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=batal&id=$ID&id_module=$id&notrans=$notrans&prd=$prd&kode=$kodee&outlet=$outlet' onClick=\"return confirm('Hapus transaksi ?')\" title='Hapus $nmmodule'><span class='btn btn-danger'><span style='color:white;'>Hapus</span></a>";
593 593
 
594
-          ?>
594
+            ?>
595 595
 
596 596
         <?php } else { ?>
597 597
 
@@ -663,23 +663,23 @@  discard block
 block discarded – undo
663 663
 
664 664
  <?
665 665
 
666
-   $query = mysql_query('SELECT * FROM shift WHERE  aktif = "Y" ORDER BY id_shift');
666
+    $query = mysql_query('SELECT * FROM shift WHERE  aktif = "Y" ORDER BY id_shift');
667 667
 
668 668
     if($query && mysql_num_rows($query) > 0){
669 669
 
670
-       while($row = mysql_fetch_object($query)){
670
+        while($row = mysql_fetch_object($query)){
671 671
 
672
-       echo '<option value="'.$row->id_shift.'"';
672
+        echo '<option value="'.$row->id_shift.'"';
673 673
 
674
-       if($row->id_shift == $shift) echo ' selected';
674
+        if($row->id_shift == $shift) echo ' selected';
675 675
 
676
-       echo '>'.$row->shift.'</option>';
676
+        echo '>'.$row->shift.'</option>';
677 677
 
678
-       }
678
+        }
679 679
 
680 680
     }        
681 681
 
682
- ?>  
682
+    ?>  
683 683
 
684 684
  </select>         
685 685
 
@@ -898,24 +898,24 @@  discard block
 block discarded – undo
898 898
 
899 899
  <?
900 900
 
901
-   $query = mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift');
901
+    $query = mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift');
902 902
 
903 903
     if($query && mysql_num_rows($query) > 0){
904 904
 
905 905
 
906
-       while($row = mysql_fetch_object($query)){
906
+        while($row = mysql_fetch_object($query)){
907 907
 
908
-       echo '<option value="'.$row->id_shift.'"';
908
+        echo '<option value="'.$row->id_shift.'"';
909 909
 
910
-       if($row->id_shift == $shift) echo ' selected';
910
+        if($row->id_shift == $shift) echo ' selected';
911 911
 
912
-       echo '>'.$row->shift.'</option>';
912
+        echo '>'.$row->shift.'</option>';
913 913
 
914
-       }
914
+        }
915 915
 
916 916
     }        
917 917
 
918
- ?>  
918
+    ?>  
919 919
 
920 920
  </select>         
921 921
 
@@ -1011,23 +1011,23 @@  discard block
 block discarded – undo
1011 1011
 
1012 1012
      <?
1013 1013
 
1014
-       $query = mysql_query('SELECT * FROM jenis_transaksi WHERE aktif = "Y" ORDER BY id_jenis_transaksi');
1014
+        $query = mysql_query('SELECT * FROM jenis_transaksi WHERE aktif = "Y" ORDER BY id_jenis_transaksi');
1015 1015
 
1016 1016
         if($query && mysql_num_rows($query) > 0){
1017 1017
 
1018
-           while($row = mysql_fetch_object($query)){
1018
+            while($row = mysql_fetch_object($query)){
1019 1019
 
1020
-              echo '<option value="'.$row->id_jenis_transaksi.'"';
1020
+                echo '<option value="'.$row->id_jenis_transaksi.'"';
1021 1021
 
1022
-              if($row->id_jenis_transaksi == @$data->id_jenis_transaksi) echo ' selected';
1022
+                if($row->id_jenis_transaksi == @$data->id_jenis_transaksi) echo ' selected';
1023 1023
 
1024
-              echo '>'.$row->jenis_transaksi.'</option>';
1024
+                echo '>'.$row->jenis_transaksi.'</option>';
1025 1025
 
1026
-           }
1026
+            }
1027 1027
 
1028 1028
         }        
1029 1029
 
1030
-     ?>
1030
+        ?>
1031 1031
 
1032 1032
      </select>
1033 1033
 
@@ -1058,23 +1058,23 @@  discard block
 block discarded – undo
1058 1058
   
1059 1059
      <?
1060 1060
 
1061
-       $query = mysql_query('SELECT * FROM jenis_pembayaran WHERE aktif = "Y" ORDER BY id_jenis_pembayaran');
1061
+        $query = mysql_query('SELECT * FROM jenis_pembayaran WHERE aktif = "Y" ORDER BY id_jenis_pembayaran');
1062 1062
 
1063 1063
         if($query && mysql_num_rows($query) > 0){
1064 1064
 
1065
-           while($row = mysql_fetch_object($query)){
1065
+            while($row = mysql_fetch_object($query)){
1066 1066
 
1067
-              echo '<option value="'.$row->id_jenis_pembayaran.'"';
1067
+                echo '<option value="'.$row->id_jenis_pembayaran.'"';
1068 1068
 
1069
-              if($row->id_jenis_pembayaran == @$data->id_jenis_pembayaran) echo ' selected';
1069
+                if($row->id_jenis_pembayaran == @$data->id_jenis_pembayaran) echo ' selected';
1070 1070
 
1071
-              echo '>'.$row->jenis_pembayaran.'</option>';
1071
+                echo '>'.$row->jenis_pembayaran.'</option>';
1072 1072
 
1073
-           }
1073
+            }
1074 1074
 
1075 1075
         }        
1076 1076
 
1077
-     ?>
1077
+        ?>
1078 1078
 
1079 1079
      </select>
1080 1080
 
@@ -1087,23 +1087,23 @@  discard block
 block discarded – undo
1087 1087
   
1088 1088
      <?
1089 1089
 
1090
-       $query = mysql_query('SELECT * FROM penjamin WHERE aktif = "Y" ORDER BY id_penjamin');
1090
+        $query = mysql_query('SELECT * FROM penjamin WHERE aktif = "Y" ORDER BY id_penjamin');
1091 1091
 
1092 1092
         if($query && mysql_num_rows($query) > 0){
1093 1093
 
1094
-           while($row = mysql_fetch_object($query)){
1094
+            while($row = mysql_fetch_object($query)){
1095 1095
 
1096
-              echo '<option value="'.$row->id_penjamin.'"';
1096
+                echo '<option value="'.$row->id_penjamin.'"';
1097 1097
 
1098
-              if($row->id_penjamin == @$data->id_penjamin) echo ' selected';
1098
+                if($row->id_penjamin == @$data->id_penjamin) echo ' selected';
1099 1099
 
1100
-              echo '>'.$row->penjamin.'</option>';
1100
+                echo '>'.$row->penjamin.'</option>';
1101 1101
 
1102
-           }
1102
+            }
1103 1103
 
1104 1104
         }        
1105 1105
 
1106
-     ?>
1106
+        ?>
1107 1107
 
1108 1108
      </select>
1109 1109
 
@@ -1179,77 +1179,77 @@  discard block
 block discarded – undo
1179 1179
 
1180 1180
  
1181 1181
 
1182
- $d_id    = $d['id_kasir_detail'];    
1182
+    $d_id    = $d['id_kasir_detail'];    
1183 1183
 
1184 1184
 
1185 1185
 
1186 1186
 
1187
- $ijumlah = number_format($d['jumlah'], 0, ".", ",");
1187
+    $ijumlah = number_format($d['jumlah'], 0, ".", ",");
1188 1188
 
1189
- $jumlah = number_format($d['jumlah'], 0, ".", "");
1189
+    $jumlah = number_format($d['jumlah'], 0, ".", "");
1190 1190
 
1191
- $total =  $total+$d['jumlah'];
1191
+    $total =  $total+$d['jumlah'];
1192 1192
 
1193
- $itotal = number_format($total, 0, ".", ",");
1193
+    $itotal = number_format($total, 0, ".", ",");
1194 1194
 
1195 1195
 
1196
- echo"<tr>";
1196
+    echo"<tr>";
1197 1197
 
1198 1198
 
1199 1199
 
1200 1200
 
1201 1201
 
1202
- echo" <td>"; 
1202
+    echo" <td>"; 
1203 1203
 
1204
- echo $d['notrans'] ;
1204
+    echo $d['notrans'] ;
1205 1205
 
1206
- echo"</td>";  
1206
+    echo"</td>";  
1207 1207
 
1208
- echo" <td>"; 
1208
+    echo" <td>"; 
1209 1209
 
1210
- echo $d['pasien'] ;
1210
+    echo $d['pasien'] ;
1211 1211
 
1212
- echo"</td>"; 
1212
+    echo"</td>"; 
1213 1213
 
1214 1214
 
1215
- echo" <td>"; 
1215
+    echo" <td>"; 
1216 1216
 
1217
- echo $d['jenis_transaksi'] ;
1217
+    echo $d['jenis_transaksi'] ;
1218 1218
 
1219
- echo"</td>";  
1219
+    echo"</td>";  
1220 1220
 
1221
-  echo" <td  style='text-align:right;'>"; 
1221
+    echo" <td  style='text-align:right;'>"; 
1222 1222
 
1223
- echo $ijumlah;
1223
+    echo $ijumlah;
1224 1224
 
1225
- echo"</td>"; 
1225
+    echo"</td>"; 
1226 1226
 
1227 1227
 
1228 1228
 
1229
- echo" <td>"; 
1229
+    echo" <td>"; 
1230 1230
 
1231
- echo $d['jenis_pembayaran'];
1231
+    echo $d['jenis_pembayaran'];
1232 1232
 
1233
- echo"</td>";    
1233
+    echo"</td>";    
1234 1234
 
1235 1235
 
1236
- echo" <td>"; 
1236
+    echo" <td>"; 
1237 1237
 
1238
- echo $d['penjamin'];
1238
+    echo $d['penjamin'];
1239 1239
 
1240
- echo"</td>";    
1240
+    echo"</td>";    
1241 1241
 
1242
- echo" <td>"; 
1242
+    echo" <td>"; 
1243 1243
 
1244
- echo $d['ket'];
1244
+    echo $d['ket'];
1245 1245
 
1246
- echo"</td>";    
1246
+    echo"</td>";    
1247 1247
 
1248 1248
 
1249 1249
 
1250 1250
 
1251 1251
 
1252
- echo" <td  style='text-align:center;'>";     
1252
+    echo" <td  style='text-align:center;'>";     
1253 1253
 
1254 1254
 
1255 1255
 
@@ -1266,16 +1266,16 @@  discard block
 block discarded – undo
1266 1266
 
1267 1267
 
1268 1268
 
1269
-              if($r_delete == 'Y') {
1269
+                if($r_delete == 'Y') {
1270 1270
 
1271 1271
                 echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&id_module=$_GET[id_module]&act=dhapus&id=$d_id&k_ID=$k_ID' onClick=\"return confirm('Hapus Data ?')\" title='Hapus $nmmodule'><span class='btn btn-danger btn-xs'><i class='fa fa-trash'></i></span></a>";
1272 1272
 
1273 1273
                 }  
1274 1274
 
1275 1275
 
1276
- echo"</td>";              
1276
+    echo"</td>";              
1277 1277
 
1278
- echo"</tr>";
1278
+    echo"</tr>";
1279 1279
 
1280 1280
 }
1281 1281
 
@@ -1365,19 +1365,19 @@  discard block
 block discarded – undo
1365 1365
 
1366 1366
 if ($jml > 0 ) {
1367 1367
 
1368
-  // $readonly = 'readonly';
1368
+    // $readonly = 'readonly';
1369 1369
 
1370
-  // $disabled = 'disabled';
1370
+    // $disabled = 'disabled';
1371 1371
 
1372
-   $readonly = '';
1372
+    $readonly = '';
1373 1373
 
1374
-  $disabled = '';
1374
+    $disabled = '';
1375 1375
 
1376 1376
 } else {
1377 1377
 
1378
-  $readonly = '';
1378
+    $readonly = '';
1379 1379
 
1380
-  $disabled = '';
1380
+    $disabled = '';
1381 1381
 
1382 1382
 }
1383 1383
 
@@ -1491,23 +1491,23 @@  discard block
 block discarded – undo
1491 1491
 
1492 1492
  <?
1493 1493
 
1494
-   $query = mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift');
1494
+    $query = mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift');
1495 1495
 
1496 1496
     if($query && mysql_num_rows($query) > 0){
1497 1497
 
1498
-       while($row = mysql_fetch_object($query)){
1498
+        while($row = mysql_fetch_object($query)){
1499 1499
 
1500
-       echo '<option value="'.$row->id_shift.'"';
1500
+        echo '<option value="'.$row->id_shift.'"';
1501 1501
 
1502
-       if($row->id_shift == $shift) echo ' selected';
1502
+        if($row->id_shift == $shift) echo ' selected';
1503 1503
 
1504
-       echo '>'.$row->shift.'</option>';
1504
+        echo '>'.$row->shift.'</option>';
1505 1505
 
1506
-       }
1506
+        }
1507 1507
 
1508 1508
     }        
1509 1509
 
1510
- ?>  
1510
+    ?>  
1511 1511
 
1512 1512
  </select>         
1513 1513
 
@@ -1600,75 +1600,75 @@  discard block
 block discarded – undo
1600 1600
 
1601 1601
  
1602 1602
 
1603
- $d_id    = $d['id_kasir_detail'];    
1603
+    $d_id    = $d['id_kasir_detail'];    
1604 1604
 
1605 1605
 
1606 1606
 
1607 1607
 
1608
- $ijumlah = number_format($d['jumlah'], 0, ".", ",");
1608
+    $ijumlah = number_format($d['jumlah'], 0, ".", ",");
1609 1609
 
1610
- $jumlah = number_format($d['jumlah'], 0, ".", "");
1610
+    $jumlah = number_format($d['jumlah'], 0, ".", "");
1611 1611
 
1612
- $total =  $total+$d['jumlah'];
1612
+    $total =  $total+$d['jumlah'];
1613 1613
 
1614
- $itotal = number_format($total, 0, ".", ",");
1614
+    $itotal = number_format($total, 0, ".", ",");
1615 1615
 
1616 1616
 
1617
- echo"<tr>";
1617
+    echo"<tr>";
1618 1618
 
1619 1619
 
1620 1620
 
1621 1621
 
1622 1622
 
1623
- echo" <td>"; 
1623
+    echo" <td>"; 
1624 1624
 
1625
- echo $d['notrans'] ;
1625
+    echo $d['notrans'] ;
1626 1626
 
1627
- echo"</td>";  
1627
+    echo"</td>";  
1628 1628
 
1629
- echo" <td>"; 
1629
+    echo" <td>"; 
1630 1630
 
1631
- echo $d['pasien'] ;
1631
+    echo $d['pasien'] ;
1632 1632
 
1633
- echo"</td>"; 
1633
+    echo"</td>"; 
1634 1634
 
1635 1635
 
1636
- echo" <td>"; 
1636
+    echo" <td>"; 
1637 1637
 
1638
- echo $d['jenis_transaksi'] ;
1638
+    echo $d['jenis_transaksi'] ;
1639 1639
 
1640
- echo"</td>";  
1640
+    echo"</td>";  
1641 1641
 
1642
-  echo" <td  style='text-align:right;'>"; 
1642
+    echo" <td  style='text-align:right;'>"; 
1643 1643
 
1644
- echo $ijumlah;
1644
+    echo $ijumlah;
1645 1645
 
1646
- echo"</td>"; 
1646
+    echo"</td>"; 
1647 1647
 
1648 1648
 
1649 1649
 
1650
- echo" <td>"; 
1650
+    echo" <td>"; 
1651 1651
 
1652
- echo $d['jenis_pembayaran'];
1652
+    echo $d['jenis_pembayaran'];
1653 1653
 
1654
- echo"</td>";    
1654
+    echo"</td>";    
1655 1655
 
1656 1656
 
1657
- echo" <td>"; 
1657
+    echo" <td>"; 
1658 1658
 
1659
- echo $d['penjamin'];
1659
+    echo $d['penjamin'];
1660 1660
 
1661
- echo"</td>";    
1661
+    echo"</td>";    
1662 1662
 
1663
- echo" <td>"; 
1663
+    echo" <td>"; 
1664 1664
 
1665
- echo $d['ket'];
1665
+    echo $d['ket'];
1666 1666
 
1667
- echo"</td>";    
1667
+    echo"</td>";    
1668 1668
 
1669 1669
            
1670 1670
 
1671
- echo"</tr>";
1671
+    echo"</tr>";
1672 1672
 
1673 1673
 }
1674 1674
 
@@ -1820,24 +1820,24 @@  discard block
 block discarded – undo
1820 1820
 
1821 1821
  <?
1822 1822
 
1823
-   $query = mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift');
1823
+    $query = mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift');
1824 1824
 
1825 1825
     if($query && mysql_num_rows($query) > 0){
1826 1826
 
1827 1827
 
1828
-       while($row = mysql_fetch_object($query)){
1828
+        while($row = mysql_fetch_object($query)){
1829 1829
 
1830
-       echo '<option value="'.$row->id_shift.'"';
1830
+        echo '<option value="'.$row->id_shift.'"';
1831 1831
 
1832
-       if($row->id_shift == $shift) echo ' selected';
1832
+        if($row->id_shift == $shift) echo ' selected';
1833 1833
 
1834
-       echo '>'.$row->shift.'</option>';
1834
+        echo '>'.$row->shift.'</option>';
1835 1835
 
1836
-       }
1836
+        }
1837 1837
 
1838 1838
     }        
1839 1839
 
1840
- ?>  
1840
+    ?>  
1841 1841
 
1842 1842
  </select>         
1843 1843
 
@@ -1902,7 +1902,7 @@  discard block
 block discarded – undo
1902 1902
 
1903 1903
  <?
1904 1904
 
1905
- $d_id    = $_GET['d_id']; 
1905
+    $d_id    = $_GET['d_id']; 
1906 1906
 
1907 1907
 
1908 1908
 $dSQL = "SELECT a.*,b.jenis_transaksi,c.penjamin,d.jenis_pembayaran
@@ -1940,19 +1940,19 @@  discard block
 block discarded – undo
1940 1940
 
1941 1941
 while ($d=mysql_fetch_array($dtampil)){  
1942 1942
 
1943
- $jid = $d['id_kasir_detail'];
1943
+    $jid = $d['id_kasir_detail'];
1944 1944
 
1945 1945
 
1946
- $ijumlah = number_format($d['jumlah'], 0, ".", ",");
1946
+    $ijumlah = number_format($d['jumlah'], 0, ".", ",");
1947 1947
 
1948
- $jumlah = number_format($d['jumlah'], 0, ".", "");
1948
+    $jumlah = number_format($d['jumlah'], 0, ".", "");
1949 1949
 
1950 1950
 
1951 1951
 
1952 1952
 
1953
- if ($jid == $d_id) {
1953
+    if ($jid == $d_id) {
1954 1954
 
1955
- ?> 
1955
+    ?> 
1956 1956
 
1957 1957
 
1958 1958
 
@@ -1993,23 +1993,23 @@  discard block
 block discarded – undo
1993 1993
 
1994 1994
      <?
1995 1995
 
1996
-       $query = mysql_query('SELECT * FROM jenis_transaksi WHERE aktif = "Y" ORDER BY id_jenis_transaksi');
1996
+        $query = mysql_query('SELECT * FROM jenis_transaksi WHERE aktif = "Y" ORDER BY id_jenis_transaksi');
1997 1997
 
1998 1998
         if($query && mysql_num_rows($query) > 0){
1999 1999
 
2000
-           while($row = mysql_fetch_object($query)){
2000
+            while($row = mysql_fetch_object($query)){
2001 2001
 
2002
-              echo '<option value="'.$row->id_jenis_transaksi.'"';
2002
+                echo '<option value="'.$row->id_jenis_transaksi.'"';
2003 2003
 
2004
-              if($row->id_jenis_transaksi == @$d['id_jenis_transaksi']) echo ' selected';
2004
+                if($row->id_jenis_transaksi == @$d['id_jenis_transaksi']) echo ' selected';
2005 2005
 
2006
-              echo '>'.$row->jenis_transaksi.'</option>';
2006
+                echo '>'.$row->jenis_transaksi.'</option>';
2007 2007
 
2008
-           }
2008
+            }
2009 2009
 
2010 2010
         }        
2011 2011
 
2012
-     ?>
2012
+        ?>
2013 2013
 
2014 2014
      </select>
2015 2015
 
@@ -2040,23 +2040,23 @@  discard block
 block discarded – undo
2040 2040
   
2041 2041
      <?
2042 2042
 
2043
-       $query = mysql_query('SELECT * FROM jenis_pembayaran WHERE aktif = "Y" ORDER BY id_jenis_pembayaran');
2043
+        $query = mysql_query('SELECT * FROM jenis_pembayaran WHERE aktif = "Y" ORDER BY id_jenis_pembayaran');
2044 2044
 
2045 2045
         if($query && mysql_num_rows($query) > 0){
2046 2046
 
2047
-           while($row = mysql_fetch_object($query)){
2047
+            while($row = mysql_fetch_object($query)){
2048 2048
 
2049
-              echo '<option value="'.$row->id_jenis_pembayaran.'"';
2049
+                echo '<option value="'.$row->id_jenis_pembayaran.'"';
2050 2050
 
2051
-              if($row->id_jenis_pembayaran == @$d['id_jenis_pembayaran']) echo ' selected';
2051
+                if($row->id_jenis_pembayaran == @$d['id_jenis_pembayaran']) echo ' selected';
2052 2052
 
2053
-              echo '>'.$row->jenis_pembayaran.'</option>';
2053
+                echo '>'.$row->jenis_pembayaran.'</option>';
2054 2054
 
2055
-           }
2055
+            }
2056 2056
 
2057 2057
         }        
2058 2058
 
2059
-     ?>
2059
+        ?>
2060 2060
 
2061 2061
      </select>
2062 2062
 
@@ -2069,23 +2069,23 @@  discard block
 block discarded – undo
2069 2069
   
2070 2070
      <?
2071 2071
 
2072
-       $query = mysql_query('SELECT * FROM penjamin WHERE aktif = "Y" ORDER BY id_penjamin');
2072
+        $query = mysql_query('SELECT * FROM penjamin WHERE aktif = "Y" ORDER BY id_penjamin');
2073 2073
 
2074 2074
         if($query && mysql_num_rows($query) > 0){
2075 2075
 
2076
-           while($row = mysql_fetch_object($query)){
2076
+            while($row = mysql_fetch_object($query)){
2077 2077
 
2078
-              echo '<option value="'.$row->id_penjamin.'"';
2078
+                echo '<option value="'.$row->id_penjamin.'"';
2079 2079
 
2080
-              if($row->id_penjamin == @$d['id_penjamin']) echo ' selected';
2080
+                if($row->id_penjamin == @$d['id_penjamin']) echo ' selected';
2081 2081
 
2082
-              echo '>'.$row->penjamin.'</option>';
2082
+                echo '>'.$row->penjamin.'</option>';
2083 2083
 
2084
-           }
2084
+            }
2085 2085
 
2086 2086
         }        
2087 2087
 
2088
-     ?>
2088
+        ?>
2089 2089
 
2090 2090
      </select>
2091 2091
 
@@ -2127,68 +2127,68 @@  discard block
 block discarded – undo
2127 2127
 
2128 2128
 
2129 2129
 
2130
- echo"<tr>";
2130
+    echo"<tr>";
2131 2131
 
2132 2132
 
2133 2133
 
2134 2134
 
2135 2135
 
2136
- echo" <td>"; 
2136
+    echo" <td>"; 
2137 2137
 
2138
- echo $d['notrans'] ;
2138
+    echo $d['notrans'] ;
2139 2139
 
2140
- echo"</td>";  
2140
+    echo"</td>";  
2141 2141
 
2142 2142
 
2143 2143
 
2144
- echo" <td>"; 
2144
+    echo" <td>"; 
2145 2145
 
2146
- echo $d['pasien'] ;
2146
+    echo $d['pasien'] ;
2147 2147
 
2148
- echo"</td>";  
2148
+    echo"</td>";  
2149 2149
 
2150 2150
 
2151 2151
 
2152 2152
 
2153
- echo" <td>"; 
2153
+    echo" <td>"; 
2154 2154
 
2155
- echo $d['jenis_transaksi'];
2155
+    echo $d['jenis_transaksi'];
2156 2156
 
2157
- echo"</td>";    
2157
+    echo"</td>";    
2158 2158
 
2159 2159
 
2160 2160
 
2161
- echo" <td  style='text-align:right;'>"; 
2161
+    echo" <td  style='text-align:right;'>"; 
2162 2162
 
2163
- echo $ijumlah;
2163
+    echo $ijumlah;
2164 2164
 
2165
- echo"</td>"; 
2165
+    echo"</td>"; 
2166 2166
 
2167 2167
 
2168 2168
 
2169
-  echo" <td>"; 
2169
+    echo" <td>"; 
2170 2170
 
2171
- echo $d['jenis_pembayaran'];
2171
+    echo $d['jenis_pembayaran'];
2172 2172
 
2173
- echo"</td>";    
2173
+    echo"</td>";    
2174 2174
 
2175 2175
 
2176 2176
 echo" <td>"; 
2177 2177
 
2178
- echo $d['penjamin'];
2178
+    echo $d['penjamin'];
2179 2179
 
2180
- echo"</td>";    
2180
+    echo"</td>";    
2181 2181
 
2182 2182
 echo" <td>"; 
2183 2183
 
2184
- echo $d['ket'];
2184
+    echo $d['ket'];
2185 2185
 
2186
- echo"</td>";    
2186
+    echo"</td>";    
2187 2187
 
2188 2188
 
2189 2189
 
2190 2190
 
2191
- echo" <td  style='text-align:center;'>";     
2191
+    echo" <td  style='text-align:center;'>";     
2192 2192
 
2193 2193
   
2194 2194
 
@@ -2200,19 +2200,19 @@  discard block
 block discarded – undo
2200 2200
 
2201 2201
 
2202 2202
 
2203
-          if($r_delete == 'Y') {
2203
+            if($r_delete == 'Y') {
2204 2204
 
2205 2205
             echo"<span class='btn btn-danger btn-sm' disabled><i class='fa fa-trash'></i></span>";
2206 2206
 
2207
-           }  
2207
+            }  
2208 2208
 
2209 2209
 
2210 2210
 
2211 2211
 
2212 2212
 
2213
- echo"</td>";              
2213
+    echo"</td>";              
2214 2214
 
2215
- echo"</tr>";
2215
+    echo"</tr>";
2216 2216
 
2217 2217
 }
2218 2218
 
Please login to merge, or discard this patch.
Switch Indentation   +301 added lines, -301 removed lines patch added patch discarded remove patch
@@ -192,13 +192,13 @@  discard block
 block discarded – undo
192 192
 
193 193
 
194 194
 
195
-default:  
195
+    default:  
196 196
 
197 197
 
198 198
 
199 199
 
200 200
 
201
-  ?>
201
+      ?>
202 202
 
203 203
 
204 204
 
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
 
332 332
        
333 333
 
334
-         $tampil=mysql_query("SELECT a.*,b.shift
334
+             $tampil=mysql_query("SELECT a.*,b.shift
335 335
 
336 336
                              FROM kasir a left join shift b
337 337
 
@@ -349,15 +349,15 @@  discard block
 block discarded – undo
349 349
 
350 350
                                               
351 351
 
352
-         $no = 1;
352
+             $no = 1;
353 353
 
354 354
          
355 355
 
356
-         while ($r=mysql_fetch_array($tampil)){  
356
+             while ($r=mysql_fetch_array($tampil)){  
357 357
 
358 358
 
359 359
 
360
-          $tgl = date("d/m/Y", strtotime($r['tanggal']));
360
+              $tgl = date("d/m/Y", strtotime($r['tanggal']));
361 361
 
362 362
 
363 363
 
@@ -365,84 +365,84 @@  discard block
 block discarded – undo
365 365
 
366 366
 
367 367
 
368
-          if($r['status'] == '0'){
368
+              if($r['status'] == '0'){
369 369
 
370
-            $istatus = 'Baru';
370
+                $istatus = 'Baru';
371 371
 
372
-          } else if($r['status'] == '1'){
372
+              } else if($r['status'] == '1'){
373 373
 
374
-            $istatus = 'Disetujui';
374
+                $istatus = 'Disetujui';
375 375
 
376
-          } else if($r['status'] == '2'){
376
+              } else if($r['status'] == '2'){
377 377
 
378
-            $istatus = 'Ditolak';
378
+                $istatus = 'Ditolak';
379 379
 
380
-           } else if($r['status'] == '9'){
380
+               } else if($r['status'] == '9'){
381 381
 
382
-            $istatus = 'Posting'; 
382
+                $istatus = 'Posting'; 
383 383
 
384
-           } else {
384
+               } else {
385 385
 
386
-           $istatus = 'Dibatalkan';
386
+               $istatus = 'Dibatalkan';
387 387
 
388
-          }
388
+              }
389 389
 
390 390
 
391 391
 
392
-          $ID = $r[id_kasir];         
392
+              $ID = $r[id_kasir];         
393 393
 
394
-         echo"<tr>";
394
+             echo"<tr>";
395 395
 
396 396
 
397 397
 
398
-         echo"<td>$tgl </td>";
398
+             echo"<td>$tgl </td>";
399 399
 
400 400
 
401
-         echo"<td>$r[shift]</td>";
401
+             echo"<td>$r[shift]</td>";
402 402
 
403
-         echo"<td>$r[petugas]</td>";
403
+             echo"<td>$r[petugas]</td>";
404 404
 
405
-         echo"<td>$r[note]</td>";
405
+             echo"<td>$r[note]</td>";
406 406
 
407
-         // echo"<td>$istatus</td>";
407
+             // echo"<td>$istatus</td>";
408 408
 
409
-         echo"<td style='text-align:center;'>";
409
+             echo"<td style='text-align:center;'>";
410 410
 
411 411
 
412 412
 
413
-              if($r_edit == 'Y') {
413
+                  if($r_edit == 'Y') {
414 414
 
415
-                  echo"<a href='?module=$module&id_module=$id&act=save&ID=$ID' title='Update'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
415
+                      echo"<a href='?module=$module&id_module=$id&act=save&ID=$ID' title='Update'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
416 416
 
417
-                  }
417
+                      }
418 418
 
419 419
 
420 420
 
421 421
 
422
-                if($r_delete == 'Y' and $r['status'] == '0') {
422
+                    if($r_delete == 'Y' and $r['status'] == '0') {
423 423
 
424
-                  echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$ID&id_module=$id&id_module=$id' onClick=\"return confirm('Hapus Data ?')\" title='Hapus $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
424
+                      echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$ID&id_module=$id&id_module=$id' onClick=\"return confirm('Hapus Data ?')\" title='Hapus $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
425 425
 
426
-                  }  else {
427
-                      echo"<i class='fa fa-trash'></i></span>";
428
-                  }
426
+                      }  else {
427
+                          echo"<i class='fa fa-trash'></i></span>";
428
+                      }
429 429
 
430 430
 
431 431
 
432 432
 
433 433
 
434 434
 
435
-         echo"</td>";      
435
+             echo"</td>";      
436 436
 
437
-         echo"</tr>";
437
+             echo"</tr>";
438 438
 
439
-         $no++;
439
+             $no++;
440 440
 
441 441
             
442 442
 
443
-         }
443
+             }
444 444
 
445
-         ?>
445
+             ?>
446 446
 
447 447
         </tbody>
448 448
 
@@ -530,28 +530,28 @@  discard block
 block discarded – undo
530 530
 
531 531
 <?
532 532
 
533
-break;
533
+    break;
534 534
 
535 535
 
536 536
 
537
-case "baru":
537
+    case "baru":
538 538
 
539 539
 
540 540
 
541
-$hour  = time() + (30 * 25 * 60 * 60);
541
+    $hour  = time() + (30 * 25 * 60 * 60);
542 542
 
543 543
 
544 544
 
545
-$idate    = date("Y-m-d");
545
+    $idate    = date("Y-m-d");
546 546
 
547
-$idate = $idate;
547
+    $idate = $idate;
548 548
 
549 549
 
550 550
 
551 551
 
552 552
 
553 553
 
554
-?>
554
+    ?>
555 555
 
556 556
 
557 557
 
@@ -586,13 +586,13 @@  discard block
 block discarded – undo
586 586
 
587 587
 
588 588
            <?php if ($status == '0') { ?>
589
-
589
+    
590 590
             <?
591 591
 
592
-          echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=batal&id=$ID&id_module=$id&notrans=$notrans&prd=$prd&kode=$kodee&outlet=$outlet' onClick=\"return confirm('Hapus transaksi ?')\" title='Hapus $nmmodule'><span class='btn btn-danger'><span style='color:white;'>Hapus</span></a>";
593
-
594
-          ?>
592
+              echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=batal&id=$ID&id_module=$id&notrans=$notrans&prd=$prd&kode=$kodee&outlet=$outlet' onClick=\"return confirm('Hapus transaksi ?')\" title='Hapus $nmmodule'><span class='btn btn-danger'><span style='color:white;'>Hapus</span></a>";
595 593
 
594
+              ?>
595
+    
596 596
         <?php } else { ?>
597 597
 
598 598
             <button type="button" class="btn btn-danger" disabled>Hapus</button>
@@ -663,23 +663,23 @@  discard block
 block discarded – undo
663 663
 
664 664
  <?
665 665
 
666
-   $query = mysql_query('SELECT * FROM shift WHERE  aktif = "Y" ORDER BY id_shift');
666
+       $query = mysql_query('SELECT * FROM shift WHERE  aktif = "Y" ORDER BY id_shift');
667 667
 
668
-    if($query && mysql_num_rows($query) > 0){
668
+        if($query && mysql_num_rows($query) > 0){
669 669
 
670
-       while($row = mysql_fetch_object($query)){
670
+           while($row = mysql_fetch_object($query)){
671 671
 
672
-       echo '<option value="'.$row->id_shift.'"';
672
+           echo '<option value="'.$row->id_shift.'"';
673 673
 
674
-       if($row->id_shift == $shift) echo ' selected';
674
+           if($row->id_shift == $shift) echo ' selected';
675 675
 
676
-       echo '>'.$row->shift.'</option>';
676
+           echo '>'.$row->shift.'</option>';
677 677
 
678
-       }
678
+           }
679 679
 
680
-    }        
680
+        }        
681 681
 
682
- ?>  
682
+     ?>  
683 683
 
684 684
  </select>         
685 685
 
@@ -768,19 +768,19 @@  discard block
 block discarded – undo
768 768
 
769 769
 <?
770 770
 
771
-break;
771
+    break;
772 772
 
773 773
 
774 774
 
775
-case "save":  
775
+    case "save":  
776 776
 
777 777
 
778 778
 
779
-$k_ID    = $_GET['ID']; 
779
+    $k_ID    = $_GET['ID']; 
780 780
 
781 781
 
782 782
 
783
-$sql   = mysql_query("SELECT * FROM kasir 
783
+    $sql   = mysql_query("SELECT * FROM kasir 
784 784
 
785 785
                         WHERE id_kasir = '$k_ID' 
786 786
 
@@ -788,24 +788,24 @@  discard block
 block discarded – undo
788 788
 
789 789
 
790 790
 
791
-$r     = mysql_fetch_array($sql); 
791
+    $r     = mysql_fetch_array($sql); 
792 792
 
793 793
 
794
-$penjualan_barang   = $r['id_kasir'];  
794
+    $penjualan_barang   = $r['id_kasir'];  
795 795
 
796
-$shift   = $r['id_shift'];  
796
+    $shift   = $r['id_shift'];  
797 797
 
798
-$petugas   = $r['petugas'];  
798
+    $petugas   = $r['petugas'];  
799 799
 
800
-$status   = $r['status']; 
800
+    $status   = $r['status']; 
801 801
 
802
-$tanggal   = $r['tanggal'];  
802
+    $tanggal   = $r['tanggal'];  
803 803
 
804
-//$ID   = $r['id_kasir'];  
804
+    //$ID   = $r['id_kasir'];  
805 805
 
806 806
 
807 807
 
808
-?>
808
+    ?>
809 809
 
810 810
 
811 811
 
@@ -898,24 +898,24 @@  discard block
 block discarded – undo
898 898
 
899 899
  <?
900 900
 
901
-   $query = mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift');
901
+       $query = mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift');
902 902
 
903
-    if($query && mysql_num_rows($query) > 0){
903
+        if($query && mysql_num_rows($query) > 0){
904 904
 
905 905
 
906
-       while($row = mysql_fetch_object($query)){
906
+           while($row = mysql_fetch_object($query)){
907 907
 
908
-       echo '<option value="'.$row->id_shift.'"';
908
+           echo '<option value="'.$row->id_shift.'"';
909 909
 
910
-       if($row->id_shift == $shift) echo ' selected';
910
+           if($row->id_shift == $shift) echo ' selected';
911 911
 
912
-       echo '>'.$row->shift.'</option>';
912
+           echo '>'.$row->shift.'</option>';
913 913
 
914
-       }
914
+           }
915 915
 
916
-    }        
916
+        }        
917 917
 
918
- ?>  
918
+     ?>  
919 919
 
920 920
  </select>         
921 921
 
@@ -1011,23 +1011,23 @@  discard block
 block discarded – undo
1011 1011
 
1012 1012
      <?
1013 1013
 
1014
-       $query = mysql_query('SELECT * FROM jenis_transaksi WHERE aktif = "Y" ORDER BY id_jenis_transaksi');
1014
+           $query = mysql_query('SELECT * FROM jenis_transaksi WHERE aktif = "Y" ORDER BY id_jenis_transaksi');
1015 1015
 
1016
-        if($query && mysql_num_rows($query) > 0){
1016
+            if($query && mysql_num_rows($query) > 0){
1017 1017
 
1018
-           while($row = mysql_fetch_object($query)){
1018
+               while($row = mysql_fetch_object($query)){
1019 1019
 
1020
-              echo '<option value="'.$row->id_jenis_transaksi.'"';
1020
+                  echo '<option value="'.$row->id_jenis_transaksi.'"';
1021 1021
 
1022
-              if($row->id_jenis_transaksi == @$data->id_jenis_transaksi) echo ' selected';
1022
+                  if($row->id_jenis_transaksi == @$data->id_jenis_transaksi) echo ' selected';
1023 1023
 
1024
-              echo '>'.$row->jenis_transaksi.'</option>';
1024
+                  echo '>'.$row->jenis_transaksi.'</option>';
1025 1025
 
1026
-           }
1026
+               }
1027 1027
 
1028
-        }        
1028
+            }        
1029 1029
 
1030
-     ?>
1030
+         ?>
1031 1031
 
1032 1032
      </select>
1033 1033
 
@@ -1058,23 +1058,23 @@  discard block
 block discarded – undo
1058 1058
   
1059 1059
      <?
1060 1060
 
1061
-       $query = mysql_query('SELECT * FROM jenis_pembayaran WHERE aktif = "Y" ORDER BY id_jenis_pembayaran');
1061
+           $query = mysql_query('SELECT * FROM jenis_pembayaran WHERE aktif = "Y" ORDER BY id_jenis_pembayaran');
1062 1062
 
1063
-        if($query && mysql_num_rows($query) > 0){
1063
+            if($query && mysql_num_rows($query) > 0){
1064 1064
 
1065
-           while($row = mysql_fetch_object($query)){
1065
+               while($row = mysql_fetch_object($query)){
1066 1066
 
1067
-              echo '<option value="'.$row->id_jenis_pembayaran.'"';
1067
+                  echo '<option value="'.$row->id_jenis_pembayaran.'"';
1068 1068
 
1069
-              if($row->id_jenis_pembayaran == @$data->id_jenis_pembayaran) echo ' selected';
1069
+                  if($row->id_jenis_pembayaran == @$data->id_jenis_pembayaran) echo ' selected';
1070 1070
 
1071
-              echo '>'.$row->jenis_pembayaran.'</option>';
1071
+                  echo '>'.$row->jenis_pembayaran.'</option>';
1072 1072
 
1073
-           }
1073
+               }
1074 1074
 
1075
-        }        
1075
+            }        
1076 1076
 
1077
-     ?>
1077
+         ?>
1078 1078
 
1079 1079
      </select>
1080 1080
 
@@ -1087,23 +1087,23 @@  discard block
 block discarded – undo
1087 1087
   
1088 1088
      <?
1089 1089
 
1090
-       $query = mysql_query('SELECT * FROM penjamin WHERE aktif = "Y" ORDER BY id_penjamin');
1090
+           $query = mysql_query('SELECT * FROM penjamin WHERE aktif = "Y" ORDER BY id_penjamin');
1091 1091
 
1092
-        if($query && mysql_num_rows($query) > 0){
1092
+            if($query && mysql_num_rows($query) > 0){
1093 1093
 
1094
-           while($row = mysql_fetch_object($query)){
1094
+               while($row = mysql_fetch_object($query)){
1095 1095
 
1096
-              echo '<option value="'.$row->id_penjamin.'"';
1096
+                  echo '<option value="'.$row->id_penjamin.'"';
1097 1097
 
1098
-              if($row->id_penjamin == @$data->id_penjamin) echo ' selected';
1098
+                  if($row->id_penjamin == @$data->id_penjamin) echo ' selected';
1099 1099
 
1100
-              echo '>'.$row->penjamin.'</option>';
1100
+                  echo '>'.$row->penjamin.'</option>';
1101 1101
 
1102
-           }
1102
+               }
1103 1103
 
1104
-        }        
1104
+            }        
1105 1105
 
1106
-     ?>
1106
+         ?>
1107 1107
 
1108 1108
      </select>
1109 1109
 
@@ -1137,14 +1137,14 @@  discard block
 block discarded – undo
1137 1137
 
1138 1138
 
1139 1139
 <?php //} ?>
1140
-
1140
+    
1141 1141
 
1142 1142
 
1143 1143
  <?
1144 1144
 
1145 1145
 
1146 1146
 
1147
-$dSQL = "SELECT a.*,b.jenis_transaksi,c.penjamin,d.jenis_pembayaran
1147
+    $dSQL = "SELECT a.*,b.jenis_transaksi,c.penjamin,d.jenis_pembayaran
1148 1148
 
1149 1149
 
1150 1150
          FROM kasir_detail a LEFT JOIN jenis_transaksi b
@@ -1169,117 +1169,117 @@  discard block
 block discarded – undo
1169 1169
 
1170 1170
 
1171 1171
 
1172
-$dtampil=mysql_query($dSQL);
1172
+    $dtampil=mysql_query($dSQL);
1173 1173
 
1174
-$no = 1;
1174
+    $no = 1;
1175 1175
 
1176 1176
             
1177 1177
 
1178
-while ($d=mysql_fetch_array($dtampil)){  
1178
+    while ($d=mysql_fetch_array($dtampil)){  
1179 1179
 
1180 1180
  
1181 1181
 
1182
- $d_id    = $d['id_kasir_detail'];    
1182
+     $d_id    = $d['id_kasir_detail'];    
1183 1183
 
1184 1184
 
1185 1185
 
1186 1186
 
1187
- $ijumlah = number_format($d['jumlah'], 0, ".", ",");
1187
+     $ijumlah = number_format($d['jumlah'], 0, ".", ",");
1188 1188
 
1189
- $jumlah = number_format($d['jumlah'], 0, ".", "");
1189
+     $jumlah = number_format($d['jumlah'], 0, ".", "");
1190 1190
 
1191
- $total =  $total+$d['jumlah'];
1191
+     $total =  $total+$d['jumlah'];
1192 1192
 
1193
- $itotal = number_format($total, 0, ".", ",");
1193
+     $itotal = number_format($total, 0, ".", ",");
1194 1194
 
1195 1195
 
1196
- echo"<tr>";
1196
+     echo"<tr>";
1197 1197
 
1198 1198
 
1199 1199
 
1200 1200
 
1201 1201
 
1202
- echo" <td>"; 
1202
+     echo" <td>"; 
1203 1203
 
1204
- echo $d['notrans'] ;
1204
+     echo $d['notrans'] ;
1205 1205
 
1206
- echo"</td>";  
1206
+     echo"</td>";  
1207 1207
 
1208
- echo" <td>"; 
1208
+     echo" <td>"; 
1209 1209
 
1210
- echo $d['pasien'] ;
1210
+     echo $d['pasien'] ;
1211 1211
 
1212
- echo"</td>"; 
1212
+     echo"</td>"; 
1213 1213
 
1214 1214
 
1215
- echo" <td>"; 
1215
+     echo" <td>"; 
1216 1216
 
1217
- echo $d['jenis_transaksi'] ;
1217
+     echo $d['jenis_transaksi'] ;
1218 1218
 
1219
- echo"</td>";  
1219
+     echo"</td>";  
1220 1220
 
1221
-  echo" <td  style='text-align:right;'>"; 
1221
+      echo" <td  style='text-align:right;'>"; 
1222 1222
 
1223
- echo $ijumlah;
1223
+     echo $ijumlah;
1224 1224
 
1225
- echo"</td>"; 
1225
+     echo"</td>"; 
1226 1226
 
1227 1227
 
1228 1228
 
1229
- echo" <td>"; 
1229
+     echo" <td>"; 
1230 1230
 
1231
- echo $d['jenis_pembayaran'];
1231
+     echo $d['jenis_pembayaran'];
1232 1232
 
1233
- echo"</td>";    
1233
+     echo"</td>";    
1234 1234
 
1235 1235
 
1236
- echo" <td>"; 
1236
+     echo" <td>"; 
1237 1237
 
1238
- echo $d['penjamin'];
1238
+     echo $d['penjamin'];
1239 1239
 
1240
- echo"</td>";    
1240
+     echo"</td>";    
1241 1241
 
1242
- echo" <td>"; 
1242
+     echo" <td>"; 
1243 1243
 
1244
- echo $d['ket'];
1244
+     echo $d['ket'];
1245 1245
 
1246
- echo"</td>";    
1246
+     echo"</td>";    
1247 1247
 
1248 1248
 
1249 1249
 
1250 1250
 
1251 1251
 
1252
- echo" <td  style='text-align:center;'>";     
1252
+     echo" <td  style='text-align:center;'>";     
1253 1253
 
1254 1254
 
1255 1255
 
1256 1256
 
1257 1257
 
1258 1258
 
1259
-            if($r_edit == 'Y') {
1259
+                if($r_edit == 'Y') {
1260 1260
 
1261
-                echo"<a href='?module=$module&id_module=$_GET[id_module]&act=edit&k_ID=$k_ID&d_id=$d_id' title='Update'><span class='btn btn-success btn-xs'><i class='fa fa-pencil'></i></span></a>";
1261
+                    echo"<a href='?module=$module&id_module=$_GET[id_module]&act=edit&k_ID=$k_ID&d_id=$d_id' title='Update'><span class='btn btn-success btn-xs'><i class='fa fa-pencil'></i></span></a>";
1262 1262
 
1263
-                }
1263
+                    }
1264 1264
 
1265 1265
 
1266 1266
 
1267 1267
 
1268 1268
 
1269
-              if($r_delete == 'Y') {
1269
+                  if($r_delete == 'Y') {
1270 1270
 
1271
-                echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&id_module=$_GET[id_module]&act=dhapus&id=$d_id&k_ID=$k_ID' onClick=\"return confirm('Hapus Data ?')\" title='Hapus $nmmodule'><span class='btn btn-danger btn-xs'><i class='fa fa-trash'></i></span></a>";
1271
+                    echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&id_module=$_GET[id_module]&act=dhapus&id=$d_id&k_ID=$k_ID' onClick=\"return confirm('Hapus Data ?')\" title='Hapus $nmmodule'><span class='btn btn-danger btn-xs'><i class='fa fa-trash'></i></span></a>";
1272 1272
 
1273
-                }  
1273
+                    }  
1274 1274
 
1275 1275
 
1276
- echo"</td>";              
1276
+     echo"</td>";              
1277 1277
 
1278
- echo"</tr>";
1278
+     echo"</tr>";
1279 1279
 
1280 1280
 }
1281 1281
 
1282
-?>
1282
+    ?>
1283 1283
 
1284 1284
 
1285 1285
  <tr>
@@ -1320,18 +1320,18 @@  discard block
 block discarded – undo
1320 1320
 
1321 1321
 <?
1322 1322
 
1323
-break;
1323
+    break;
1324 1324
 
1325 1325
 
1326
-case "ubah":
1326
+    case "ubah":
1327 1327
 
1328 1328
 
1329 1329
 
1330
-$k_ID    = $_GET['k_ID']; 
1330
+    $k_ID    = $_GET['k_ID']; 
1331 1331
 
1332 1332
 
1333 1333
 
1334
-$sql   = mysql_query("SELECT * FROM kasir 
1334
+    $sql   = mysql_query("SELECT * FROM kasir 
1335 1335
 
1336 1336
                         WHERE id_kasir = '$k_ID' 
1337 1337
 
@@ -1339,52 +1339,52 @@  discard block
 block discarded – undo
1339 1339
 
1340 1340
 
1341 1341
 
1342
-$r     = mysql_fetch_array($sql); 
1342
+    $r     = mysql_fetch_array($sql); 
1343 1343
 
1344 1344
 
1345
-$ID   = $r['id_kasir'];  
1345
+    $ID   = $r['id_kasir'];  
1346 1346
 
1347
-$shift   = $r['id_shift'];  
1347
+    $shift   = $r['id_shift'];  
1348 1348
 
1349
-$petugas   = $r['petugas'];  
1349
+    $petugas   = $r['petugas'];  
1350 1350
 
1351
-$status   = $r['status']; 
1351
+    $status   = $r['status']; 
1352 1352
 
1353
-$tanggal   = $r['tanggal'];  
1353
+    $tanggal   = $r['tanggal'];  
1354 1354
 
1355 1355
 
1356
-$dsql   = mysql_query("SELECT * FROM kasir_detail 
1356
+    $dsql   = mysql_query("SELECT * FROM kasir_detail 
1357 1357
 
1358 1358
                         WHERE id_kasir = '$k_ID' ");
1359 1359
 
1360 1360
 
1361 1361
 
1362
-$jml     = mysql_num_rows($dsql);
1362
+    $jml     = mysql_num_rows($dsql);
1363 1363
 
1364 1364
 
1365 1365
 
1366
-if ($jml > 0 ) {
1366
+    if ($jml > 0 ) {
1367 1367
 
1368
-  // $readonly = 'readonly';
1368
+      // $readonly = 'readonly';
1369 1369
 
1370
-  // $disabled = 'disabled';
1370
+      // $disabled = 'disabled';
1371 1371
 
1372
-   $readonly = '';
1372
+       $readonly = '';
1373 1373
 
1374
-  $disabled = '';
1374
+      $disabled = '';
1375 1375
 
1376 1376
 } else {
1377 1377
 
1378
-  $readonly = '';
1378
+      $readonly = '';
1379 1379
 
1380
-  $disabled = '';
1380
+      $disabled = '';
1381 1381
 
1382 1382
 }
1383 1383
 
1384 1384
 
1385 1385
 
1386 1386
 
1387
-?>
1387
+    ?>
1388 1388
 
1389 1389
 
1390 1390
 
@@ -1491,23 +1491,23 @@  discard block
 block discarded – undo
1491 1491
 
1492 1492
  <?
1493 1493
 
1494
-   $query = mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift');
1494
+       $query = mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift');
1495 1495
 
1496
-    if($query && mysql_num_rows($query) > 0){
1496
+        if($query && mysql_num_rows($query) > 0){
1497 1497
 
1498
-       while($row = mysql_fetch_object($query)){
1498
+           while($row = mysql_fetch_object($query)){
1499 1499
 
1500
-       echo '<option value="'.$row->id_shift.'"';
1500
+           echo '<option value="'.$row->id_shift.'"';
1501 1501
 
1502
-       if($row->id_shift == $shift) echo ' selected';
1502
+           if($row->id_shift == $shift) echo ' selected';
1503 1503
 
1504
-       echo '>'.$row->shift.'</option>';
1504
+           echo '>'.$row->shift.'</option>';
1505 1505
 
1506
-       }
1506
+           }
1507 1507
 
1508
-    }        
1508
+        }        
1509 1509
 
1510
- ?>  
1510
+     ?>  
1511 1511
 
1512 1512
  </select>         
1513 1513
 
@@ -1565,7 +1565,7 @@  discard block
 block discarded – undo
1565 1565
 
1566 1566
 
1567 1567
 
1568
-$dSQL = "SELECT a.*,b.jenis_transaksi,c.penjamin,d.jenis_pembayaran
1568
+    $dSQL = "SELECT a.*,b.jenis_transaksi,c.penjamin,d.jenis_pembayaran
1569 1569
 
1570 1570
 
1571 1571
          FROM kasir_detail a LEFT JOIN jenis_transaksi b
@@ -1590,89 +1590,89 @@  discard block
 block discarded – undo
1590 1590
 
1591 1591
 
1592 1592
 
1593
-$dtampil=mysql_query($dSQL);
1593
+    $dtampil=mysql_query($dSQL);
1594 1594
 
1595
-$no = 1;
1595
+    $no = 1;
1596 1596
 
1597 1597
             
1598 1598
 
1599
-while ($d=mysql_fetch_array($dtampil)){  
1599
+    while ($d=mysql_fetch_array($dtampil)){  
1600 1600
 
1601 1601
  
1602 1602
 
1603
- $d_id    = $d['id_kasir_detail'];    
1603
+     $d_id    = $d['id_kasir_detail'];    
1604 1604
 
1605 1605
 
1606 1606
 
1607 1607
 
1608
- $ijumlah = number_format($d['jumlah'], 0, ".", ",");
1608
+     $ijumlah = number_format($d['jumlah'], 0, ".", ",");
1609 1609
 
1610
- $jumlah = number_format($d['jumlah'], 0, ".", "");
1610
+     $jumlah = number_format($d['jumlah'], 0, ".", "");
1611 1611
 
1612
- $total =  $total+$d['jumlah'];
1612
+     $total =  $total+$d['jumlah'];
1613 1613
 
1614
- $itotal = number_format($total, 0, ".", ",");
1614
+     $itotal = number_format($total, 0, ".", ",");
1615 1615
 
1616 1616
 
1617
- echo"<tr>";
1617
+     echo"<tr>";
1618 1618
 
1619 1619
 
1620 1620
 
1621 1621
 
1622 1622
 
1623
- echo" <td>"; 
1623
+     echo" <td>"; 
1624 1624
 
1625
- echo $d['notrans'] ;
1625
+     echo $d['notrans'] ;
1626 1626
 
1627
- echo"</td>";  
1627
+     echo"</td>";  
1628 1628
 
1629
- echo" <td>"; 
1629
+     echo" <td>"; 
1630 1630
 
1631
- echo $d['pasien'] ;
1631
+     echo $d['pasien'] ;
1632 1632
 
1633
- echo"</td>"; 
1633
+     echo"</td>"; 
1634 1634
 
1635 1635
 
1636
- echo" <td>"; 
1636
+     echo" <td>"; 
1637 1637
 
1638
- echo $d['jenis_transaksi'] ;
1638
+     echo $d['jenis_transaksi'] ;
1639 1639
 
1640
- echo"</td>";  
1640
+     echo"</td>";  
1641 1641
 
1642
-  echo" <td  style='text-align:right;'>"; 
1642
+      echo" <td  style='text-align:right;'>"; 
1643 1643
 
1644
- echo $ijumlah;
1644
+     echo $ijumlah;
1645 1645
 
1646
- echo"</td>"; 
1646
+     echo"</td>"; 
1647 1647
 
1648 1648
 
1649 1649
 
1650
- echo" <td>"; 
1650
+     echo" <td>"; 
1651 1651
 
1652
- echo $d['jenis_pembayaran'];
1652
+     echo $d['jenis_pembayaran'];
1653 1653
 
1654
- echo"</td>";    
1654
+     echo"</td>";    
1655 1655
 
1656 1656
 
1657
- echo" <td>"; 
1657
+     echo" <td>"; 
1658 1658
 
1659
- echo $d['penjamin'];
1659
+     echo $d['penjamin'];
1660 1660
 
1661
- echo"</td>";    
1661
+     echo"</td>";    
1662 1662
 
1663
- echo" <td>"; 
1663
+     echo" <td>"; 
1664 1664
 
1665
- echo $d['ket'];
1665
+     echo $d['ket'];
1666 1666
 
1667
- echo"</td>";    
1667
+     echo"</td>";    
1668 1668
 
1669 1669
            
1670 1670
 
1671
- echo"</tr>";
1671
+     echo"</tr>";
1672 1672
 
1673 1673
 }
1674 1674
 
1675
-?>
1675
+    ?>
1676 1676
 
1677 1677
 
1678 1678
 </table> 
@@ -1696,20 +1696,20 @@  discard block
 block discarded – undo
1696 1696
 
1697 1697
 <?
1698 1698
 
1699
-break;
1699
+    break;
1700 1700
 
1701 1701
 
1702 1702
 
1703
-case "edit":
1703
+    case "edit":
1704 1704
 
1705 1705
 
1706 1706
 
1707 1707
 
1708
-$k_ID    = $_GET['k_ID']; 
1708
+    $k_ID    = $_GET['k_ID']; 
1709 1709
 
1710 1710
 
1711 1711
 
1712
-$sql   = mysql_query("SELECT * FROM kasir 
1712
+    $sql   = mysql_query("SELECT * FROM kasir 
1713 1713
 
1714 1714
                         WHERE id_kasir = '$k_ID' 
1715 1715
 
@@ -1717,22 +1717,22 @@  discard block
 block discarded – undo
1717 1717
 
1718 1718
 
1719 1719
 
1720
-$r     = mysql_fetch_array($sql); 
1720
+    $r     = mysql_fetch_array($sql); 
1721 1721
 
1722 1722
 
1723
-$penjualan_barang   = $r['id_kasir'];  
1723
+    $penjualan_barang   = $r['id_kasir'];  
1724 1724
 
1725
-$shift   = $r['id_shift'];  
1725
+    $shift   = $r['id_shift'];  
1726 1726
 
1727
-$petugas   = $r['petugas'];  
1727
+    $petugas   = $r['petugas'];  
1728 1728
 
1729
-$status   = $r['status']; 
1729
+    $status   = $r['status']; 
1730 1730
 
1731
-$tanggal   = $r['tanggal'];  
1731
+    $tanggal   = $r['tanggal'];  
1732 1732
 
1733
-//$ID   = $r['id_kasir'];  
1733
+    //$ID   = $r['id_kasir'];  
1734 1734
 
1735
-?>
1735
+    ?>
1736 1736
 
1737 1737
 
1738 1738
 
@@ -1820,24 +1820,24 @@  discard block
 block discarded – undo
1820 1820
 
1821 1821
  <?
1822 1822
 
1823
-   $query = mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift');
1823
+       $query = mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift');
1824 1824
 
1825
-    if($query && mysql_num_rows($query) > 0){
1825
+        if($query && mysql_num_rows($query) > 0){
1826 1826
 
1827 1827
 
1828
-       while($row = mysql_fetch_object($query)){
1828
+           while($row = mysql_fetch_object($query)){
1829 1829
 
1830
-       echo '<option value="'.$row->id_shift.'"';
1830
+           echo '<option value="'.$row->id_shift.'"';
1831 1831
 
1832
-       if($row->id_shift == $shift) echo ' selected';
1832
+           if($row->id_shift == $shift) echo ' selected';
1833 1833
 
1834
-       echo '>'.$row->shift.'</option>';
1834
+           echo '>'.$row->shift.'</option>';
1835 1835
 
1836
-       }
1836
+           }
1837 1837
 
1838
-    }        
1838
+        }        
1839 1839
 
1840
- ?>  
1840
+     ?>  
1841 1841
 
1842 1842
  </select>         
1843 1843
 
@@ -1902,10 +1902,10 @@  discard block
 block discarded – undo
1902 1902
 
1903 1903
  <?
1904 1904
 
1905
- $d_id    = $_GET['d_id']; 
1905
+     $d_id    = $_GET['d_id']; 
1906 1906
 
1907 1907
 
1908
-$dSQL = "SELECT a.*,b.jenis_transaksi,c.penjamin,d.jenis_pembayaran
1908
+    $dSQL = "SELECT a.*,b.jenis_transaksi,c.penjamin,d.jenis_pembayaran
1909 1909
 
1910 1910
 
1911 1911
          FROM kasir_detail a LEFT JOIN jenis_transaksi b
@@ -1932,27 +1932,27 @@  discard block
 block discarded – undo
1932 1932
 
1933 1933
 
1934 1934
 
1935
-$dtampil=mysql_query($dSQL);
1935
+    $dtampil=mysql_query($dSQL);
1936 1936
 
1937
-$no = 1;
1937
+    $no = 1;
1938 1938
 
1939 1939
             
1940 1940
 
1941
-while ($d=mysql_fetch_array($dtampil)){  
1941
+    while ($d=mysql_fetch_array($dtampil)){  
1942 1942
 
1943
- $jid = $d['id_kasir_detail'];
1943
+     $jid = $d['id_kasir_detail'];
1944 1944
 
1945 1945
 
1946
- $ijumlah = number_format($d['jumlah'], 0, ".", ",");
1946
+     $ijumlah = number_format($d['jumlah'], 0, ".", ",");
1947 1947
 
1948
- $jumlah = number_format($d['jumlah'], 0, ".", "");
1948
+     $jumlah = number_format($d['jumlah'], 0, ".", "");
1949 1949
 
1950 1950
 
1951 1951
 
1952 1952
 
1953
- if ($jid == $d_id) {
1953
+     if ($jid == $d_id) {
1954 1954
 
1955
- ?> 
1955
+     ?> 
1956 1956
 
1957 1957
 
1958 1958
 
@@ -1993,23 +1993,23 @@  discard block
 block discarded – undo
1993 1993
 
1994 1994
      <?
1995 1995
 
1996
-       $query = mysql_query('SELECT * FROM jenis_transaksi WHERE aktif = "Y" ORDER BY id_jenis_transaksi');
1996
+           $query = mysql_query('SELECT * FROM jenis_transaksi WHERE aktif = "Y" ORDER BY id_jenis_transaksi');
1997 1997
 
1998
-        if($query && mysql_num_rows($query) > 0){
1998
+            if($query && mysql_num_rows($query) > 0){
1999 1999
 
2000
-           while($row = mysql_fetch_object($query)){
2000
+               while($row = mysql_fetch_object($query)){
2001 2001
 
2002
-              echo '<option value="'.$row->id_jenis_transaksi.'"';
2002
+                  echo '<option value="'.$row->id_jenis_transaksi.'"';
2003 2003
 
2004
-              if($row->id_jenis_transaksi == @$d['id_jenis_transaksi']) echo ' selected';
2004
+                  if($row->id_jenis_transaksi == @$d['id_jenis_transaksi']) echo ' selected';
2005 2005
 
2006
-              echo '>'.$row->jenis_transaksi.'</option>';
2006
+                  echo '>'.$row->jenis_transaksi.'</option>';
2007 2007
 
2008
-           }
2008
+               }
2009 2009
 
2010
-        }        
2010
+            }        
2011 2011
 
2012
-     ?>
2012
+         ?>
2013 2013
 
2014 2014
      </select>
2015 2015
 
@@ -2040,23 +2040,23 @@  discard block
 block discarded – undo
2040 2040
   
2041 2041
      <?
2042 2042
 
2043
-       $query = mysql_query('SELECT * FROM jenis_pembayaran WHERE aktif = "Y" ORDER BY id_jenis_pembayaran');
2043
+           $query = mysql_query('SELECT * FROM jenis_pembayaran WHERE aktif = "Y" ORDER BY id_jenis_pembayaran');
2044 2044
 
2045
-        if($query && mysql_num_rows($query) > 0){
2045
+            if($query && mysql_num_rows($query) > 0){
2046 2046
 
2047
-           while($row = mysql_fetch_object($query)){
2047
+               while($row = mysql_fetch_object($query)){
2048 2048
 
2049
-              echo '<option value="'.$row->id_jenis_pembayaran.'"';
2049
+                  echo '<option value="'.$row->id_jenis_pembayaran.'"';
2050 2050
 
2051
-              if($row->id_jenis_pembayaran == @$d['id_jenis_pembayaran']) echo ' selected';
2051
+                  if($row->id_jenis_pembayaran == @$d['id_jenis_pembayaran']) echo ' selected';
2052 2052
 
2053
-              echo '>'.$row->jenis_pembayaran.'</option>';
2053
+                  echo '>'.$row->jenis_pembayaran.'</option>';
2054 2054
 
2055
-           }
2055
+               }
2056 2056
 
2057
-        }        
2057
+            }        
2058 2058
 
2059
-     ?>
2059
+         ?>
2060 2060
 
2061 2061
      </select>
2062 2062
 
@@ -2069,23 +2069,23 @@  discard block
 block discarded – undo
2069 2069
   
2070 2070
      <?
2071 2071
 
2072
-       $query = mysql_query('SELECT * FROM penjamin WHERE aktif = "Y" ORDER BY id_penjamin');
2072
+           $query = mysql_query('SELECT * FROM penjamin WHERE aktif = "Y" ORDER BY id_penjamin');
2073 2073
 
2074
-        if($query && mysql_num_rows($query) > 0){
2074
+            if($query && mysql_num_rows($query) > 0){
2075 2075
 
2076
-           while($row = mysql_fetch_object($query)){
2076
+               while($row = mysql_fetch_object($query)){
2077 2077
 
2078
-              echo '<option value="'.$row->id_penjamin.'"';
2078
+                  echo '<option value="'.$row->id_penjamin.'"';
2079 2079
 
2080
-              if($row->id_penjamin == @$d['id_penjamin']) echo ' selected';
2080
+                  if($row->id_penjamin == @$d['id_penjamin']) echo ' selected';
2081 2081
 
2082
-              echo '>'.$row->penjamin.'</option>';
2082
+                  echo '>'.$row->penjamin.'</option>';
2083 2083
 
2084
-           }
2084
+               }
2085 2085
 
2086
-        }        
2086
+            }        
2087 2087
 
2088
-     ?>
2088
+         ?>
2089 2089
 
2090 2090
      </select>
2091 2091
 
@@ -2120,99 +2120,99 @@  discard block
 block discarded – undo
2120 2120
 
2121 2121
 
2122 2122
 <?php } else { ?>
2123
-
2123
+    
2124 2124
 
2125 2125
 
2126 2126
  <?
2127 2127
 
2128 2128
 
2129 2129
 
2130
- echo"<tr>";
2130
+     echo"<tr>";
2131 2131
 
2132 2132
 
2133 2133
 
2134 2134
 
2135 2135
 
2136
- echo" <td>"; 
2136
+     echo" <td>"; 
2137 2137
 
2138
- echo $d['notrans'] ;
2138
+     echo $d['notrans'] ;
2139 2139
 
2140
- echo"</td>";  
2140
+     echo"</td>";  
2141 2141
 
2142 2142
 
2143 2143
 
2144
- echo" <td>"; 
2144
+     echo" <td>"; 
2145 2145
 
2146
- echo $d['pasien'] ;
2146
+     echo $d['pasien'] ;
2147 2147
 
2148
- echo"</td>";  
2148
+     echo"</td>";  
2149 2149
 
2150 2150
 
2151 2151
 
2152 2152
 
2153
- echo" <td>"; 
2153
+     echo" <td>"; 
2154 2154
 
2155
- echo $d['jenis_transaksi'];
2155
+     echo $d['jenis_transaksi'];
2156 2156
 
2157
- echo"</td>";    
2157
+     echo"</td>";    
2158 2158
 
2159 2159
 
2160 2160
 
2161
- echo" <td  style='text-align:right;'>"; 
2161
+     echo" <td  style='text-align:right;'>"; 
2162 2162
 
2163
- echo $ijumlah;
2163
+     echo $ijumlah;
2164 2164
 
2165
- echo"</td>"; 
2165
+     echo"</td>"; 
2166 2166
 
2167 2167
 
2168 2168
 
2169
-  echo" <td>"; 
2169
+      echo" <td>"; 
2170 2170
 
2171
- echo $d['jenis_pembayaran'];
2171
+     echo $d['jenis_pembayaran'];
2172 2172
 
2173
- echo"</td>";    
2173
+     echo"</td>";    
2174 2174
 
2175 2175
 
2176
-echo" <td>"; 
2176
+    echo" <td>"; 
2177 2177
 
2178
- echo $d['penjamin'];
2178
+     echo $d['penjamin'];
2179 2179
 
2180
- echo"</td>";    
2180
+     echo"</td>";    
2181 2181
 
2182
-echo" <td>"; 
2182
+    echo" <td>"; 
2183 2183
 
2184
- echo $d['ket'];
2184
+     echo $d['ket'];
2185 2185
 
2186
- echo"</td>";    
2186
+     echo"</td>";    
2187 2187
 
2188 2188
 
2189 2189
 
2190 2190
 
2191
- echo" <td  style='text-align:center;'>";     
2191
+     echo" <td  style='text-align:center;'>";     
2192 2192
 
2193 2193
   
2194 2194
 
2195
-            if($r_edit == 'Y') {
2195
+                if($r_edit == 'Y') {
2196 2196
 
2197
-            echo"<span class='btn btn-success btn-sm' disabled><i class='fa fa-pencil'></i></span>";
2197
+                echo"<span class='btn btn-success btn-sm' disabled><i class='fa fa-pencil'></i></span>";
2198 2198
 
2199
-            }
2199
+                }
2200 2200
 
2201 2201
 
2202 2202
 
2203
-          if($r_delete == 'Y') {
2203
+              if($r_delete == 'Y') {
2204 2204
 
2205
-            echo"<span class='btn btn-danger btn-sm' disabled><i class='fa fa-trash'></i></span>";
2205
+                echo"<span class='btn btn-danger btn-sm' disabled><i class='fa fa-trash'></i></span>";
2206 2206
 
2207
-           }  
2207
+               }  
2208 2208
 
2209 2209
 
2210 2210
 
2211 2211
 
2212 2212
 
2213
- echo"</td>";              
2213
+     echo"</td>";              
2214 2214
 
2215
- echo"</tr>";
2215
+     echo"</tr>";
2216 2216
 
2217 2217
 }
2218 2218
 
@@ -2220,7 +2220,7 @@  discard block
 block discarded – undo
2220 2220
 
2221 2221
 }
2222 2222
 
2223
-?>
2223
+    ?>
2224 2224
 
2225 2225
 
2226 2226
 
@@ -2245,7 +2245,7 @@  discard block
 block discarded – undo
2245 2245
 
2246 2246
 <?
2247 2247
 
2248
-break;
2248
+    break;
2249 2249
 
2250 2250
 }
2251 2251
 
Please login to merge, or discard this patch.
Spacing   +122 added lines, -122 removed lines patch added patch discarded remove patch
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
 
189 189
 <?php
190 190
 
191
-switch($_GET[act]){
191
+switch ($_GET[act]) {
192 192
 
193 193
 
194 194
 
@@ -216,13 +216,13 @@  discard block
 block discarded – undo
216 216
 
217 217
   <div class="x_title">
218 218
 
219
-  <h2>List <?php echo $nmmodule;?></h2>
219
+  <h2>List <?php echo $nmmodule; ?></h2>
220 220
 
221 221
 
222 222
 
223 223
      <p class="pull-right">
224 224
 
225
-    <a href='<?php echo"?module=$module&id_module=$id_module&prd=$prd&outlet=$outlet&kode=$kode&act=baru";?>' title='Form <?php echo $nmmodule;?>' class='btn btn-sm btn-success'><i class="fa fa-plus"></i> Baru</a>
225
+    <a href='<?php echo"?module=$module&id_module=$id_module&prd=$prd&outlet=$outlet&kode=$kode&act=baru"; ?>' title='Form <?php echo $nmmodule; ?>' class='btn btn-sm btn-success'><i class="fa fa-plus"></i> Baru</a>
226 226
 
227 227
     </p>
228 228
 
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
 
248 248
     <p class="pull-right">
249 249
 
250
-    <input type="month" name="prd" id="prd" value="<?php echo $prd;?>" onChange="document.myform.submit();" class="form-control"  required>
250
+    <input type="month" name="prd" id="prd" value="<?php echo $prd; ?>" onChange="document.myform.submit();" class="form-control"  required>
251 251
 
252 252
     </p>
253 253
 
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
 
332 332
        
333 333
 
334
-         $tampil=mysql_query("SELECT a.*,b.shift
334
+         $tampil = mysql_query("SELECT a.*,b.shift
335 335
 
336 336
                              FROM kasir a left join shift b
337 337
 
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
 
354 354
          
355 355
 
356
-         while ($r=mysql_fetch_array($tampil)){  
356
+         while ($r = mysql_fetch_array($tampil)) {  
357 357
 
358 358
 
359 359
 
@@ -365,19 +365,19 @@  discard block
 block discarded – undo
365 365
 
366 366
 
367 367
 
368
-          if($r['status'] == '0'){
368
+          if ($r['status']=='0') {
369 369
 
370 370
             $istatus = 'Baru';
371 371
 
372
-          } else if($r['status'] == '1'){
372
+          } else if ($r['status']=='1') {
373 373
 
374 374
             $istatus = 'Disetujui';
375 375
 
376
-          } else if($r['status'] == '2'){
376
+          } else if ($r['status']=='2') {
377 377
 
378 378
             $istatus = 'Ditolak';
379 379
 
380
-           } else if($r['status'] == '9'){
380
+           } else if ($r['status']=='9') {
381 381
 
382 382
             $istatus = 'Posting'; 
383 383
 
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
 
411 411
 
412 412
 
413
-              if($r_edit == 'Y') {
413
+              if ($r_edit=='Y') {
414 414
 
415 415
                   echo"<a href='?module=$module&id_module=$id&act=save&ID=$ID' title='Update'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
416 416
 
@@ -419,11 +419,11 @@  discard block
 block discarded – undo
419 419
 
420 420
 
421 421
 
422
-                if($r_delete == 'Y' and $r['status'] == '0') {
422
+                if ($r_delete=='Y' and $r['status']=='0') {
423 423
 
424 424
                   echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$ID&id_module=$id&id_module=$id' onClick=\"return confirm('Hapus Data ?')\" title='Hapus $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
425 425
 
426
-                  }  else {
426
+                  } else {
427 427
                       echo"<i class='fa fa-trash'></i></span>";
428 428
                   }
429 429
 
@@ -538,11 +538,11 @@  discard block
 block discarded – undo
538 538
 
539 539
 
540 540
 
541
-$hour  = time() + (30 * 25 * 60 * 60);
541
+$hour = time() + (30 * 25 * 60 * 60);
542 542
 
543 543
 
544 544
 
545
-$idate    = date("Y-m-d");
545
+$idate = date("Y-m-d");
546 546
 
547 547
 $idate = $idate;
548 548
 
@@ -579,13 +579,13 @@  discard block
 block discarded – undo
579 579
 
580 580
 
581 581
 
582
-          <button  type="button" onClick="location.href='<?php echo"?module=$module&id_module=$id_module&act=ubah&prd=$prd&notrans=$notrans&kode=$kode&outlet=$outlet";?>'" 
582
+          <button  type="button" onClick="location.href='<?php echo"?module=$module&id_module=$id_module&act=ubah&prd=$prd&notrans=$notrans&kode=$kode&outlet=$outlet"; ?>'" 
583 583
 
584
-          class="btn btn-success" <?php if ($status != '0') { echo 'disabled'; } ?>>Ubah</button>
584
+          class="btn btn-success" <?php if ($status!='0') { echo 'disabled'; } ?>>Ubah</button>
585 585
 
586 586
 
587 587
 
588
-           <?php if ($status == '0') { ?>
588
+           <?php if ($status=='0') { ?>
589 589
 
590 590
             <?
591 591
 
@@ -603,7 +603,7 @@  discard block
 block discarded – undo
603 603
 
604 604
                  
605 605
 
606
-           <button type="button" onClick="location.href='<?php echo"?module=$module&id_module=$id_module&prd=$prd&ioutlet=$outlet&kode=$kode";?>'" class="btn btn-warning">Kembali Ke List</button>
606
+           <button type="button" onClick="location.href='<?php echo"?module=$module&id_module=$id_module&prd=$prd&ioutlet=$outlet&kode=$kode"; ?>'" class="btn btn-warning">Kembali Ke List</button>
607 607
 
608 608
         </div>
609 609
 
@@ -629,9 +629,9 @@  discard block
 block discarded – undo
629 629
 
630 630
   <input type="hidden" name="prd" id="prd" value="<?php echo $prd?>" /> 
631 631
 
632
-  <input type="hidden" name="outlet" id="outlet" value="<?php echo $outlet;?>">
632
+  <input type="hidden" name="outlet" id="outlet" value="<?php echo $outlet; ?>">
633 633
 
634
-  <input type="hidden" name="kode" id="kode" value="<?php echo $kode;?>">
634
+  <input type="hidden" name="kode" id="kode" value="<?php echo $kode; ?>">
635 635
 
636 636
 
637 637
  
@@ -645,7 +645,7 @@  discard block
 block discarded – undo
645 645
 
646 646
   <div class="col-md-3 col-sm-3 col-xs-6 form-group">
647 647
 
648
-     <input type="date" name="tanggal" id="tanggal" value="<?php echo $idate;?>" autofocus class="form-control"  required>  
648
+     <input type="date" name="tanggal" id="tanggal" value="<?php echo $idate; ?>" autofocus class="form-control"  required>  
649 649
 
650 650
   </div> 
651 651
 
@@ -665,13 +665,13 @@  discard block
 block discarded – undo
665 665
 
666 666
    $query = mysql_query('SELECT * FROM shift WHERE  aktif = "Y" ORDER BY id_shift');
667 667
 
668
-    if($query && mysql_num_rows($query) > 0){
668
+    if ($query && mysql_num_rows($query)>0) {
669 669
 
670
-       while($row = mysql_fetch_object($query)){
670
+       while ($row = mysql_fetch_object($query)) {
671 671
 
672 672
        echo '<option value="'.$row->id_shift.'"';
673 673
 
674
-       if($row->id_shift == $shift) echo ' selected';
674
+       if ($row->id_shift==$shift) echo ' selected';
675 675
 
676 676
        echo '>'.$row->shift.'</option>';
677 677
 
@@ -776,11 +776,11 @@  discard block
 block discarded – undo
776 776
 
777 777
 
778 778
 
779
-$k_ID    = $_GET['ID']; 
779
+$k_ID = $_GET['ID']; 
780 780
 
781 781
 
782 782
 
783
-$sql   = mysql_query("SELECT * FROM kasir 
783
+$sql = mysql_query("SELECT * FROM kasir 
784 784
 
785 785
                         WHERE id_kasir = '$k_ID' 
786 786
 
@@ -788,18 +788,18 @@  discard block
 block discarded – undo
788 788
 
789 789
 
790 790
 
791
-$r     = mysql_fetch_array($sql); 
791
+$r = mysql_fetch_array($sql); 
792 792
 
793 793
 
794
-$penjualan_barang   = $r['id_kasir'];  
794
+$penjualan_barang = $r['id_kasir'];  
795 795
 
796
-$shift   = $r['id_shift'];  
796
+$shift = $r['id_shift'];  
797 797
 
798
-$petugas   = $r['petugas'];  
798
+$petugas = $r['petugas'];  
799 799
 
800
-$status   = $r['status']; 
800
+$status = $r['status']; 
801 801
 
802
-$tanggal   = $r['tanggal'];  
802
+$tanggal = $r['tanggal'];  
803 803
 
804 804
 //$ID   = $r['id_kasir'];  
805 805
 
@@ -833,19 +833,19 @@  discard block
 block discarded – undo
833 833
 
834 834
 
835 835
 
836
-          <button  type="button" onClick="location.href='<?php echo"?module=$module&id_module=$id_module&act=ubah&k_ID=$k_ID";?>'" 
836
+          <button  type="button" onClick="location.href='<?php echo"?module=$module&id_module=$id_module&act=ubah&k_ID=$k_ID"; ?>'" 
837 837
 
838
-          class="btn btn-success" <?php if ($status != '0') { echo 'disabled'; } ?>>Ubah</button>
838
+          class="btn btn-success" <?php if ($status!='0') { echo 'disabled'; } ?>>Ubah</button>
839 839
 
840 840
 
841 841
 
842 842
 
843 843
 
844
-           <button type="button" onClick="location.href='<?php echo"?module=$module&id_module=$id_module&prd=$prd&ioutlet=$outlet&kode=$kode";?>'" class="btn btn-warning">Kembali Ke List</button>
844
+           <button type="button" onClick="location.href='<?php echo"?module=$module&id_module=$id_module&prd=$prd&ioutlet=$outlet&kode=$kode"; ?>'" class="btn btn-warning">Kembali Ke List</button>
845 845
 
846 846
 
847 847
 
848
-                 <a href='#' title='Cetak' onclick="window.open('./modul/mod_<?php echo $module;?>/cetak_kasir.php?k_ID=<?php echo $k_ID;?>&report_id=<?php echo $_GET[id_module];?>', '', 'height=650,width=800,resizable=1,scrollbars=1,addressbars=0,directories=no,location=no')">
848
+                 <a href='#' title='Cetak' onclick="window.open('./modul/mod_<?php echo $module; ?>/cetak_kasir.php?k_ID=<?php echo $k_ID; ?>&report_id=<?php echo $_GET[id_module]; ?>', '', 'height=650,width=800,resizable=1,scrollbars=1,addressbars=0,directories=no,location=no')">
849 849
 
850 850
               <span class='btn btn-success' style='color:white;'><i class='fa fa-print'></i> Cetak</span>
851 851
 
@@ -879,7 +879,7 @@  discard block
 block discarded – undo
879 879
 
880 880
   <div class="col-md-3 col-sm-3 col-xs-6 form-group">
881 881
 
882
-     <input type="date" name="tanggal" id="tanggal" value="<?php echo $tanggal;?>" class="form-control"  readonly required>  
882
+     <input type="date" name="tanggal" id="tanggal" value="<?php echo $tanggal; ?>" class="form-control"  readonly required>  
883 883
 
884 884
   </div> 
885 885
 
@@ -900,14 +900,14 @@  discard block
 block discarded – undo
900 900
 
901 901
    $query = mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift');
902 902
 
903
-    if($query && mysql_num_rows($query) > 0){
903
+    if ($query && mysql_num_rows($query)>0) {
904 904
 
905 905
 
906
-       while($row = mysql_fetch_object($query)){
906
+       while ($row = mysql_fetch_object($query)) {
907 907
 
908 908
        echo '<option value="'.$row->id_shift.'"';
909 909
 
910
-       if($row->id_shift == $shift) echo ' selected';
910
+       if ($row->id_shift==$shift) echo ' selected';
911 911
 
912 912
        echo '>'.$row->shift.'</option>';
913 913
 
@@ -1013,13 +1013,13 @@  discard block
 block discarded – undo
1013 1013
 
1014 1014
        $query = mysql_query('SELECT * FROM jenis_transaksi WHERE aktif = "Y" ORDER BY id_jenis_transaksi');
1015 1015
 
1016
-        if($query && mysql_num_rows($query) > 0){
1016
+        if ($query && mysql_num_rows($query)>0) {
1017 1017
 
1018
-           while($row = mysql_fetch_object($query)){
1018
+           while ($row = mysql_fetch_object($query)) {
1019 1019
 
1020 1020
               echo '<option value="'.$row->id_jenis_transaksi.'"';
1021 1021
 
1022
-              if($row->id_jenis_transaksi == @$data->id_jenis_transaksi) echo ' selected';
1022
+              if ($row->id_jenis_transaksi==@$data->id_jenis_transaksi) echo ' selected';
1023 1023
 
1024 1024
               echo '>'.$row->jenis_transaksi.'</option>';
1025 1025
 
@@ -1060,13 +1060,13 @@  discard block
 block discarded – undo
1060 1060
 
1061 1061
        $query = mysql_query('SELECT * FROM jenis_pembayaran WHERE aktif = "Y" ORDER BY id_jenis_pembayaran');
1062 1062
 
1063
-        if($query && mysql_num_rows($query) > 0){
1063
+        if ($query && mysql_num_rows($query)>0) {
1064 1064
 
1065
-           while($row = mysql_fetch_object($query)){
1065
+           while ($row = mysql_fetch_object($query)) {
1066 1066
 
1067 1067
               echo '<option value="'.$row->id_jenis_pembayaran.'"';
1068 1068
 
1069
-              if($row->id_jenis_pembayaran == @$data->id_jenis_pembayaran) echo ' selected';
1069
+              if ($row->id_jenis_pembayaran==@$data->id_jenis_pembayaran) echo ' selected';
1070 1070
 
1071 1071
               echo '>'.$row->jenis_pembayaran.'</option>';
1072 1072
 
@@ -1089,13 +1089,13 @@  discard block
 block discarded – undo
1089 1089
 
1090 1090
        $query = mysql_query('SELECT * FROM penjamin WHERE aktif = "Y" ORDER BY id_penjamin');
1091 1091
 
1092
-        if($query && mysql_num_rows($query) > 0){
1092
+        if ($query && mysql_num_rows($query)>0) {
1093 1093
 
1094
-           while($row = mysql_fetch_object($query)){
1094
+           while ($row = mysql_fetch_object($query)) {
1095 1095
 
1096 1096
               echo '<option value="'.$row->id_penjamin.'"';
1097 1097
 
1098
-              if($row->id_penjamin == @$data->id_penjamin) echo ' selected';
1098
+              if ($row->id_penjamin==@$data->id_penjamin) echo ' selected';
1099 1099
 
1100 1100
               echo '>'.$row->penjamin.'</option>';
1101 1101
 
@@ -1169,17 +1169,17 @@  discard block
 block discarded – undo
1169 1169
 
1170 1170
 
1171 1171
 
1172
-$dtampil=mysql_query($dSQL);
1172
+$dtampil = mysql_query($dSQL);
1173 1173
 
1174 1174
 $no = 1;
1175 1175
 
1176 1176
             
1177 1177
 
1178
-while ($d=mysql_fetch_array($dtampil)){  
1178
+while ($d = mysql_fetch_array($dtampil)) {  
1179 1179
 
1180 1180
  
1181 1181
 
1182
- $d_id    = $d['id_kasir_detail'];    
1182
+ $d_id = $d['id_kasir_detail'];    
1183 1183
 
1184 1184
 
1185 1185
 
@@ -1188,7 +1188,7 @@  discard block
 block discarded – undo
1188 1188
 
1189 1189
  $jumlah = number_format($d['jumlah'], 0, ".", "");
1190 1190
 
1191
- $total =  $total+$d['jumlah'];
1191
+ $total = $total + $d['jumlah'];
1192 1192
 
1193 1193
  $itotal = number_format($total, 0, ".", ",");
1194 1194
 
@@ -1201,20 +1201,20 @@  discard block
 block discarded – undo
1201 1201
 
1202 1202
  echo" <td>"; 
1203 1203
 
1204
- echo $d['notrans'] ;
1204
+ echo $d['notrans'];
1205 1205
 
1206 1206
  echo"</td>";  
1207 1207
 
1208 1208
  echo" <td>"; 
1209 1209
 
1210
- echo $d['pasien'] ;
1210
+ echo $d['pasien'];
1211 1211
 
1212 1212
  echo"</td>"; 
1213 1213
 
1214 1214
 
1215 1215
  echo" <td>"; 
1216 1216
 
1217
- echo $d['jenis_transaksi'] ;
1217
+ echo $d['jenis_transaksi'];
1218 1218
 
1219 1219
  echo"</td>";  
1220 1220
 
@@ -1256,7 +1256,7 @@  discard block
 block discarded – undo
1256 1256
 
1257 1257
 
1258 1258
 
1259
-            if($r_edit == 'Y') {
1259
+            if ($r_edit=='Y') {
1260 1260
 
1261 1261
                 echo"<a href='?module=$module&id_module=$_GET[id_module]&act=edit&k_ID=$k_ID&d_id=$d_id' title='Update'><span class='btn btn-success btn-xs'><i class='fa fa-pencil'></i></span></a>";
1262 1262
 
@@ -1266,7 +1266,7 @@  discard block
 block discarded – undo
1266 1266
 
1267 1267
 
1268 1268
 
1269
-              if($r_delete == 'Y') {
1269
+              if ($r_delete=='Y') {
1270 1270
 
1271 1271
                 echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&id_module=$_GET[id_module]&act=dhapus&id=$d_id&k_ID=$k_ID' onClick=\"return confirm('Hapus Data ?')\" title='Hapus $nmmodule'><span class='btn btn-danger btn-xs'><i class='fa fa-trash'></i></span></a>";
1272 1272
 
@@ -1285,7 +1285,7 @@  discard block
 block discarded – undo
1285 1285
  <tr>
1286 1286
 
1287 1287
      <th width='10%' colspan="3"><h5 style='font-size:12px;'>Total</h5></th>  
1288
-     <th width='10%'><h5 style='font-size:12px;text-align: right;'><?=$itotal;?></h5></th> 
1288
+     <th width='10%'><h5 style='font-size:12px;text-align: right;'><?=$itotal; ?></h5></th> 
1289 1289
 
1290 1290
      <th  width='10%' colspan="3"><h5 style='font-size:12px;'></h5></th> 
1291 1291
 
@@ -1327,11 +1327,11 @@  discard block
 block discarded – undo
1327 1327
 
1328 1328
 
1329 1329
 
1330
-$k_ID    = $_GET['k_ID']; 
1330
+$k_ID = $_GET['k_ID']; 
1331 1331
 
1332 1332
 
1333 1333
 
1334
-$sql   = mysql_query("SELECT * FROM kasir 
1334
+$sql = mysql_query("SELECT * FROM kasir 
1335 1335
 
1336 1336
                         WHERE id_kasir = '$k_ID' 
1337 1337
 
@@ -1339,31 +1339,31 @@  discard block
 block discarded – undo
1339 1339
 
1340 1340
 
1341 1341
 
1342
-$r     = mysql_fetch_array($sql); 
1342
+$r = mysql_fetch_array($sql); 
1343 1343
 
1344 1344
 
1345
-$ID   = $r['id_kasir'];  
1345
+$ID = $r['id_kasir'];  
1346 1346
 
1347
-$shift   = $r['id_shift'];  
1347
+$shift = $r['id_shift'];  
1348 1348
 
1349
-$petugas   = $r['petugas'];  
1349
+$petugas = $r['petugas'];  
1350 1350
 
1351
-$status   = $r['status']; 
1351
+$status = $r['status']; 
1352 1352
 
1353
-$tanggal   = $r['tanggal'];  
1353
+$tanggal = $r['tanggal'];  
1354 1354
 
1355 1355
 
1356
-$dsql   = mysql_query("SELECT * FROM kasir_detail 
1356
+$dsql = mysql_query("SELECT * FROM kasir_detail 
1357 1357
 
1358 1358
                         WHERE id_kasir = '$k_ID' ");
1359 1359
 
1360 1360
 
1361 1361
 
1362
-$jml     = mysql_num_rows($dsql);
1362
+$jml = mysql_num_rows($dsql);
1363 1363
 
1364 1364
 
1365 1365
 
1366
-if ($jml > 0 ) {
1366
+if ($jml>0) {
1367 1367
 
1368 1368
   // $readonly = 'readonly';
1369 1369
 
@@ -1424,7 +1424,7 @@  discard block
 block discarded – undo
1424 1424
 
1425 1425
   
1426 1426
 
1427
-            <button type="button" onClick="location.href='<?php echo"?module=$module&id_module=$id_module&act=save&ID=$k_ID";?>'" class="btn btn-warning">Batal</button>
1427
+            <button type="button" onClick="location.href='<?php echo"?module=$module&id_module=$id_module&act=save&ID=$k_ID"; ?>'" class="btn btn-warning">Batal</button>
1428 1428
 
1429 1429
 
1430 1430
 
@@ -1454,11 +1454,11 @@  discard block
 block discarded – undo
1454 1454
 
1455 1455
   <input type="hidden" name="imodule" value="<?php echo $imodule?>" /> 
1456 1456
 
1457
- <input type="hidden" name="ID" id="ID" value="<?php echo $ID;?>">
1457
+ <input type="hidden" name="ID" id="ID" value="<?php echo $ID; ?>">
1458 1458
 
1459
- <input type="hidden" name="k_ID" id="k_ID" value="<?php echo $k_ID;?>">
1459
+ <input type="hidden" name="k_ID" id="k_ID" value="<?php echo $k_ID; ?>">
1460 1460
 
1461
- <input type="hidden" name="jml" id="jml" value="<?php echo $jml;?>">
1461
+ <input type="hidden" name="jml" id="jml" value="<?php echo $jml; ?>">
1462 1462
 
1463 1463
 
1464 1464
  
@@ -1472,7 +1472,7 @@  discard block
 block discarded – undo
1472 1472
 
1473 1473
   <div class="col-md-3 col-sm-3 col-xs-6 form-group">
1474 1474
 
1475
-     <input type="date" name="tanggal" id="tanggal" value="<?php echo $tanggal;?>" <?php echo $readonly;?> class="form-control" required>  
1475
+     <input type="date" name="tanggal" id="tanggal" value="<?php echo $tanggal; ?>" <?php echo $readonly; ?> class="form-control" required>  
1476 1476
 
1477 1477
   </div> 
1478 1478
 
@@ -1493,13 +1493,13 @@  discard block
 block discarded – undo
1493 1493
 
1494 1494
    $query = mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift');
1495 1495
 
1496
-    if($query && mysql_num_rows($query) > 0){
1496
+    if ($query && mysql_num_rows($query)>0) {
1497 1497
 
1498
-       while($row = mysql_fetch_object($query)){
1498
+       while ($row = mysql_fetch_object($query)) {
1499 1499
 
1500 1500
        echo '<option value="'.$row->id_shift.'"';
1501 1501
 
1502
-       if($row->id_shift == $shift) echo ' selected';
1502
+       if ($row->id_shift==$shift) echo ' selected';
1503 1503
 
1504 1504
        echo '>'.$row->shift.'</option>';
1505 1505
 
@@ -1590,17 +1590,17 @@  discard block
 block discarded – undo
1590 1590
 
1591 1591
 
1592 1592
 
1593
-$dtampil=mysql_query($dSQL);
1593
+$dtampil = mysql_query($dSQL);
1594 1594
 
1595 1595
 $no = 1;
1596 1596
 
1597 1597
             
1598 1598
 
1599
-while ($d=mysql_fetch_array($dtampil)){  
1599
+while ($d = mysql_fetch_array($dtampil)) {  
1600 1600
 
1601 1601
  
1602 1602
 
1603
- $d_id    = $d['id_kasir_detail'];    
1603
+ $d_id = $d['id_kasir_detail'];    
1604 1604
 
1605 1605
 
1606 1606
 
@@ -1609,7 +1609,7 @@  discard block
 block discarded – undo
1609 1609
 
1610 1610
  $jumlah = number_format($d['jumlah'], 0, ".", "");
1611 1611
 
1612
- $total =  $total+$d['jumlah'];
1612
+ $total = $total + $d['jumlah'];
1613 1613
 
1614 1614
  $itotal = number_format($total, 0, ".", ",");
1615 1615
 
@@ -1622,20 +1622,20 @@  discard block
 block discarded – undo
1622 1622
 
1623 1623
  echo" <td>"; 
1624 1624
 
1625
- echo $d['notrans'] ;
1625
+ echo $d['notrans'];
1626 1626
 
1627 1627
  echo"</td>";  
1628 1628
 
1629 1629
  echo" <td>"; 
1630 1630
 
1631
- echo $d['pasien'] ;
1631
+ echo $d['pasien'];
1632 1632
 
1633 1633
  echo"</td>"; 
1634 1634
 
1635 1635
 
1636 1636
  echo" <td>"; 
1637 1637
 
1638
- echo $d['jenis_transaksi'] ;
1638
+ echo $d['jenis_transaksi'];
1639 1639
 
1640 1640
  echo"</td>";  
1641 1641
 
@@ -1705,11 +1705,11 @@  discard block
 block discarded – undo
1705 1705
 
1706 1706
 
1707 1707
 
1708
-$k_ID    = $_GET['k_ID']; 
1708
+$k_ID = $_GET['k_ID']; 
1709 1709
 
1710 1710
 
1711 1711
 
1712
-$sql   = mysql_query("SELECT * FROM kasir 
1712
+$sql = mysql_query("SELECT * FROM kasir 
1713 1713
 
1714 1714
                         WHERE id_kasir = '$k_ID' 
1715 1715
 
@@ -1717,18 +1717,18 @@  discard block
 block discarded – undo
1717 1717
 
1718 1718
 
1719 1719
 
1720
-$r     = mysql_fetch_array($sql); 
1720
+$r = mysql_fetch_array($sql); 
1721 1721
 
1722 1722
 
1723
-$penjualan_barang   = $r['id_kasir'];  
1723
+$penjualan_barang = $r['id_kasir'];  
1724 1724
 
1725
-$shift   = $r['id_shift'];  
1725
+$shift = $r['id_shift'];  
1726 1726
 
1727
-$petugas   = $r['petugas'];  
1727
+$petugas = $r['petugas'];  
1728 1728
 
1729
-$status   = $r['status']; 
1729
+$status = $r['status']; 
1730 1730
 
1731
-$tanggal   = $r['tanggal'];  
1731
+$tanggal = $r['tanggal'];  
1732 1732
 
1733 1733
 //$ID   = $r['id_kasir'];  
1734 1734
 
@@ -1766,7 +1766,7 @@  discard block
 block discarded – undo
1766 1766
 
1767 1767
         
1768 1768
 
1769
-            <button type="button" onClick="location.href='<?php echo"?module=$module&id_module=$id_module&act=save&ID=$k_ID";?>'" class="btn btn-warning">Batal</button>
1769
+            <button type="button" onClick="location.href='<?php echo"?module=$module&id_module=$id_module&act=save&ID=$k_ID"; ?>'" class="btn btn-warning">Batal</button>
1770 1770
 
1771 1771
 
1772 1772
 
@@ -1801,7 +1801,7 @@  discard block
 block discarded – undo
1801 1801
 
1802 1802
   <div class="col-md-3 col-sm-3 col-xs-6 form-group">
1803 1803
 
1804
-     <input type="date" name="tanggal" id="tanggal" value="<?php echo $tanggal;?>" class="form-control"  readonly required>  
1804
+     <input type="date" name="tanggal" id="tanggal" value="<?php echo $tanggal; ?>" class="form-control"  readonly required>  
1805 1805
 
1806 1806
   </div> 
1807 1807
 
@@ -1822,14 +1822,14 @@  discard block
 block discarded – undo
1822 1822
 
1823 1823
    $query = mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift');
1824 1824
 
1825
-    if($query && mysql_num_rows($query) > 0){
1825
+    if ($query && mysql_num_rows($query)>0) {
1826 1826
 
1827 1827
 
1828
-       while($row = mysql_fetch_object($query)){
1828
+       while ($row = mysql_fetch_object($query)) {
1829 1829
 
1830 1830
        echo '<option value="'.$row->id_shift.'"';
1831 1831
 
1832
-       if($row->id_shift == $shift) echo ' selected';
1832
+       if ($row->id_shift==$shift) echo ' selected';
1833 1833
 
1834 1834
        echo '>'.$row->shift.'</option>';
1835 1835
 
@@ -1902,7 +1902,7 @@  discard block
 block discarded – undo
1902 1902
 
1903 1903
  <?
1904 1904
 
1905
- $d_id    = $_GET['d_id']; 
1905
+ $d_id = $_GET['d_id']; 
1906 1906
 
1907 1907
 
1908 1908
 $dSQL = "SELECT a.*,b.jenis_transaksi,c.penjamin,d.jenis_pembayaran
@@ -1932,13 +1932,13 @@  discard block
 block discarded – undo
1932 1932
 
1933 1933
 
1934 1934
 
1935
-$dtampil=mysql_query($dSQL);
1935
+$dtampil = mysql_query($dSQL);
1936 1936
 
1937 1937
 $no = 1;
1938 1938
 
1939 1939
             
1940 1940
 
1941
-while ($d=mysql_fetch_array($dtampil)){  
1941
+while ($d = mysql_fetch_array($dtampil)) {  
1942 1942
 
1943 1943
  $jid = $d['id_kasir_detail'];
1944 1944
 
@@ -1950,7 +1950,7 @@  discard block
 block discarded – undo
1950 1950
 
1951 1951
 
1952 1952
 
1953
- if ($jid == $d_id) {
1953
+ if ($jid==$d_id) {
1954 1954
 
1955 1955
  ?> 
1956 1956
 
@@ -1968,20 +1968,20 @@  discard block
 block discarded – undo
1968 1968
 
1969 1969
   <input type="hidden" name="k_ID" value="<?php echo $k_ID?>" />  
1970 1970
 
1971
-  <input type="hidden" name="ID" value="<?php echo $jid;?>" /> 
1971
+  <input type="hidden" name="ID" value="<?php echo $jid; ?>" /> 
1972 1972
 
1973 1973
 
1974 1974
  <tr>
1975 1975
 
1976 1976
  <td>
1977 1977
 
1978
- <input type="text" name="notrans" id="notrans" value="<?=$d['notrans'];?>" autofocus required="required"  class="form-control">
1978
+ <input type="text" name="notrans" id="notrans" value="<?=$d['notrans']; ?>" autofocus required="required"  class="form-control">
1979 1979
 
1980 1980
  </td>
1981 1981
 
1982 1982
  <td>
1983 1983
 
1984
- <input type="text" name="pasien" id="pasien" value="<?=$d['pasien'];?>" class="form-control">
1984
+ <input type="text" name="pasien" id="pasien" value="<?=$d['pasien']; ?>" class="form-control">
1985 1985
 
1986 1986
 
1987 1987
  </td>
@@ -1995,13 +1995,13 @@  discard block
 block discarded – undo
1995 1995
 
1996 1996
        $query = mysql_query('SELECT * FROM jenis_transaksi WHERE aktif = "Y" ORDER BY id_jenis_transaksi');
1997 1997
 
1998
-        if($query && mysql_num_rows($query) > 0){
1998
+        if ($query && mysql_num_rows($query)>0) {
1999 1999
 
2000
-           while($row = mysql_fetch_object($query)){
2000
+           while ($row = mysql_fetch_object($query)) {
2001 2001
 
2002 2002
               echo '<option value="'.$row->id_jenis_transaksi.'"';
2003 2003
 
2004
-              if($row->id_jenis_transaksi == @$d['id_jenis_transaksi']) echo ' selected';
2004
+              if ($row->id_jenis_transaksi==@$d['id_jenis_transaksi']) echo ' selected';
2005 2005
 
2006 2006
               echo '>'.$row->jenis_transaksi.'</option>';
2007 2007
 
@@ -2019,7 +2019,7 @@  discard block
 block discarded – undo
2019 2019
 
2020 2020
   <td>
2021 2021
 
2022
- <input type="text" name='ijumlah' id='ijumlah' min='1'  value="<?=$ijumlah;?>" style='text-align:right;' required="required" class="form-control col-md-7 col-xs-12"
2022
+ <input type="text" name='ijumlah' id='ijumlah' min='1'  value="<?=$ijumlah; ?>" style='text-align:right;' required="required" class="form-control col-md-7 col-xs-12"
2023 2023
 
2024 2024
 onBlur="mask_jumlah()"
2025 2025
 
@@ -2027,7 +2027,7 @@  discard block
 block discarded – undo
2027 2027
 
2028 2028
 >
2029 2029
 
2030
-<input type="hidden" name='jumlah' id='jumlah' value="<?=$jumlah;?>" style='text-align:right;' required="required" class="form-control col-md-7 col-xs-12"> 
2030
+<input type="hidden" name='jumlah' id='jumlah' value="<?=$jumlah; ?>" style='text-align:right;' required="required" class="form-control col-md-7 col-xs-12"> 
2031 2031
 
2032 2032
  </td>
2033 2033
 
@@ -2042,13 +2042,13 @@  discard block
 block discarded – undo
2042 2042
 
2043 2043
        $query = mysql_query('SELECT * FROM jenis_pembayaran WHERE aktif = "Y" ORDER BY id_jenis_pembayaran');
2044 2044
 
2045
-        if($query && mysql_num_rows($query) > 0){
2045
+        if ($query && mysql_num_rows($query)>0) {
2046 2046
 
2047
-           while($row = mysql_fetch_object($query)){
2047
+           while ($row = mysql_fetch_object($query)) {
2048 2048
 
2049 2049
               echo '<option value="'.$row->id_jenis_pembayaran.'"';
2050 2050
 
2051
-              if($row->id_jenis_pembayaran == @$d['id_jenis_pembayaran']) echo ' selected';
2051
+              if ($row->id_jenis_pembayaran==@$d['id_jenis_pembayaran']) echo ' selected';
2052 2052
 
2053 2053
               echo '>'.$row->jenis_pembayaran.'</option>';
2054 2054
 
@@ -2071,13 +2071,13 @@  discard block
 block discarded – undo
2071 2071
 
2072 2072
        $query = mysql_query('SELECT * FROM penjamin WHERE aktif = "Y" ORDER BY id_penjamin');
2073 2073
 
2074
-        if($query && mysql_num_rows($query) > 0){
2074
+        if ($query && mysql_num_rows($query)>0) {
2075 2075
 
2076
-           while($row = mysql_fetch_object($query)){
2076
+           while ($row = mysql_fetch_object($query)) {
2077 2077
 
2078 2078
               echo '<option value="'.$row->id_penjamin.'"';
2079 2079
 
2080
-              if($row->id_penjamin == @$d['id_penjamin']) echo ' selected';
2080
+              if ($row->id_penjamin==@$d['id_penjamin']) echo ' selected';
2081 2081
 
2082 2082
               echo '>'.$row->penjamin.'</option>';
2083 2083
 
@@ -2093,7 +2093,7 @@  discard block
 block discarded – undo
2093 2093
 
2094 2094
   <td>
2095 2095
 
2096
-  <textarea  name="ket" id="ket" col=1><?=$d['ket'];?></textarea>
2096
+  <textarea  name="ket" id="ket" col=1><?=$d['ket']; ?></textarea>
2097 2097
 
2098 2098
  </td>
2099 2099
 
@@ -2135,7 +2135,7 @@  discard block
 block discarded – undo
2135 2135
 
2136 2136
  echo" <td>"; 
2137 2137
 
2138
- echo $d['notrans'] ;
2138
+ echo $d['notrans'];
2139 2139
 
2140 2140
  echo"</td>";  
2141 2141
 
@@ -2143,7 +2143,7 @@  discard block
 block discarded – undo
2143 2143
 
2144 2144
  echo" <td>"; 
2145 2145
 
2146
- echo $d['pasien'] ;
2146
+ echo $d['pasien'];
2147 2147
 
2148 2148
  echo"</td>";  
2149 2149
 
@@ -2192,7 +2192,7 @@  discard block
 block discarded – undo
2192 2192
 
2193 2193
   
2194 2194
 
2195
-            if($r_edit == 'Y') {
2195
+            if ($r_edit=='Y') {
2196 2196
 
2197 2197
             echo"<span class='btn btn-success btn-sm' disabled><i class='fa fa-pencil'></i></span>";
2198 2198
 
@@ -2200,7 +2200,7 @@  discard block
 block discarded – undo
2200 2200
 
2201 2201
 
2202 2202
 
2203
-          if($r_delete == 'Y') {
2203
+          if ($r_delete=='Y') {
2204 2204
 
2205 2205
             echo"<span class='btn btn-danger btn-sm' disabled><i class='fa fa-trash'></i></span>";
2206 2206
 
Please login to merge, or discard this patch.
Braces   +31 added lines, -11 removed lines patch added patch discarded remove patch
@@ -423,7 +423,7 @@  discard block
 block discarded – undo
423 423
 
424 424
                   echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$ID&id_module=$id&id_module=$id' onClick=\"return confirm('Hapus Data ?')\" title='Hapus $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
425 425
 
426
-                  }  else {
426
+                  } else {
427 427
                       echo"<i class='fa fa-trash'></i></span>";
428 428
                   }
429 429
 
@@ -671,7 +671,9 @@  discard block
 block discarded – undo
671 671
 
672 672
        echo '<option value="'.$row->id_shift.'"';
673 673
 
674
-       if($row->id_shift == $shift) echo ' selected';
674
+       if($row->id_shift == $shift) {
675
+           echo ' selected';
676
+       }
675 677
 
676 678
        echo '>'.$row->shift.'</option>';
677 679
 
@@ -907,7 +909,9 @@  discard block
 block discarded – undo
907 909
 
908 910
        echo '<option value="'.$row->id_shift.'"';
909 911
 
910
-       if($row->id_shift == $shift) echo ' selected';
912
+       if($row->id_shift == $shift) {
913
+           echo ' selected';
914
+       }
911 915
 
912 916
        echo '>'.$row->shift.'</option>';
913 917
 
@@ -1019,7 +1023,9 @@  discard block
 block discarded – undo
1019 1023
 
1020 1024
               echo '<option value="'.$row->id_jenis_transaksi.'"';
1021 1025
 
1022
-              if($row->id_jenis_transaksi == @$data->id_jenis_transaksi) echo ' selected';
1026
+              if($row->id_jenis_transaksi == @$data->id_jenis_transaksi) {
1027
+                  echo ' selected';
1028
+              }
1023 1029
 
1024 1030
               echo '>'.$row->jenis_transaksi.'</option>';
1025 1031
 
@@ -1066,7 +1072,9 @@  discard block
 block discarded – undo
1066 1072
 
1067 1073
               echo '<option value="'.$row->id_jenis_pembayaran.'"';
1068 1074
 
1069
-              if($row->id_jenis_pembayaran == @$data->id_jenis_pembayaran) echo ' selected';
1075
+              if($row->id_jenis_pembayaran == @$data->id_jenis_pembayaran) {
1076
+                  echo ' selected';
1077
+              }
1070 1078
 
1071 1079
               echo '>'.$row->jenis_pembayaran.'</option>';
1072 1080
 
@@ -1095,7 +1103,9 @@  discard block
 block discarded – undo
1095 1103
 
1096 1104
               echo '<option value="'.$row->id_penjamin.'"';
1097 1105
 
1098
-              if($row->id_penjamin == @$data->id_penjamin) echo ' selected';
1106
+              if($row->id_penjamin == @$data->id_penjamin) {
1107
+                  echo ' selected';
1108
+              }
1099 1109
 
1100 1110
               echo '>'.$row->penjamin.'</option>';
1101 1111
 
@@ -1499,7 +1509,9 @@  discard block
 block discarded – undo
1499 1509
 
1500 1510
        echo '<option value="'.$row->id_shift.'"';
1501 1511
 
1502
-       if($row->id_shift == $shift) echo ' selected';
1512
+       if($row->id_shift == $shift) {
1513
+           echo ' selected';
1514
+       }
1503 1515
 
1504 1516
        echo '>'.$row->shift.'</option>';
1505 1517
 
@@ -1829,7 +1841,9 @@  discard block
 block discarded – undo
1829 1841
 
1830 1842
        echo '<option value="'.$row->id_shift.'"';
1831 1843
 
1832
-       if($row->id_shift == $shift) echo ' selected';
1844
+       if($row->id_shift == $shift) {
1845
+           echo ' selected';
1846
+       }
1833 1847
 
1834 1848
        echo '>'.$row->shift.'</option>';
1835 1849
 
@@ -2001,7 +2015,9 @@  discard block
 block discarded – undo
2001 2015
 
2002 2016
               echo '<option value="'.$row->id_jenis_transaksi.'"';
2003 2017
 
2004
-              if($row->id_jenis_transaksi == @$d['id_jenis_transaksi']) echo ' selected';
2018
+              if($row->id_jenis_transaksi == @$d['id_jenis_transaksi']) {
2019
+                  echo ' selected';
2020
+              }
2005 2021
 
2006 2022
               echo '>'.$row->jenis_transaksi.'</option>';
2007 2023
 
@@ -2048,7 +2064,9 @@  discard block
 block discarded – undo
2048 2064
 
2049 2065
               echo '<option value="'.$row->id_jenis_pembayaran.'"';
2050 2066
 
2051
-              if($row->id_jenis_pembayaran == @$d['id_jenis_pembayaran']) echo ' selected';
2067
+              if($row->id_jenis_pembayaran == @$d['id_jenis_pembayaran']) {
2068
+                  echo ' selected';
2069
+              }
2052 2070
 
2053 2071
               echo '>'.$row->jenis_pembayaran.'</option>';
2054 2072
 
@@ -2077,7 +2095,9 @@  discard block
 block discarded – undo
2077 2095
 
2078 2096
               echo '<option value="'.$row->id_penjamin.'"';
2079 2097
 
2080
-              if($row->id_penjamin == @$d['id_penjamin']) echo ' selected';
2098
+              if($row->id_penjamin == @$d['id_penjamin']) {
2099
+                  echo ' selected';
2100
+              }
2081 2101
 
2082 2102
               echo '>'.$row->penjamin.'</option>';
2083 2103
 
Please login to merge, or discard this patch.
modul/mod_kasir/cetak_kasir.php 3 patches
Indentation   +106 added lines, -106 removed lines patch added patch discarded remove patch
@@ -152,28 +152,28 @@  discard block
 block discarded – undo
152 152
 
153 153
       <?
154 154
 
155
-       $gtampil=mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
155
+        $gtampil=mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
156 156
 
157
-       $g=mysql_fetch_array($gtampil);
157
+        $g=mysql_fetch_array($gtampil);
158 158
 
159 159
 
160 160
 
161
-      if ($g['pict']) {
161
+        if ($g['pict']) {
162 162
 
163 163
         $pict = $g['pict'];
164 164
 
165
-      } else {
165
+        } else {
166 166
 
167 167
         $pict = '';
168 168
 
169
-      }
169
+        }
170 170
 
171 171
 
172
-      $company = ucwords($g['company']);
172
+        $company = ucwords($g['company']);
173 173
 
174 174
 
175 175
 
176
-      $sql   = mysql_query("SELECT a.*,b.shift FROM kasir  a LEFT JOIN shift b 
176
+        $sql   = mysql_query("SELECT a.*,b.shift FROM kasir  a LEFT JOIN shift b 
177 177
                             ON a.id_shift = b.id_shift
178 178
                             WHERE a.id_kasir = '$k_ID' 
179 179
 
@@ -181,20 +181,20 @@  discard block
 block discarded – undo
181 181
 
182 182
 
183 183
 
184
-      $r     = mysql_fetch_array($sql); 
184
+        $r     = mysql_fetch_array($sql); 
185 185
 
186 186
 
187
-      $penjualan_barang   = $r['id_kasir'];  
187
+        $penjualan_barang   = $r['id_kasir'];  
188 188
 
189
-      $shift   = $r['shift'];  
189
+        $shift   = $r['shift'];  
190 190
 
191
-      $petugas   = $r['petugas'];  
191
+        $petugas   = $r['petugas'];  
192 192
 
193
-      $status   = $r['status']; 
193
+        $status   = $r['status']; 
194 194
 
195
-      $tanggal   = DATE('d/m/Y',strtotime($r['tanggal']));  
195
+        $tanggal   = DATE('d/m/Y',strtotime($r['tanggal']));  
196 196
 
197
-      ?>
197
+        ?>
198 198
 
199 199
       <table width="100%">
200 200
       <tr>
@@ -229,10 +229,10 @@  discard block
 block discarded – undo
229 229
           
230 230
                 while ($i=mysql_fetch_array($itampil)){  
231 231
 
232
-                  echo "<th>$i[jenis_transaksi]</th>";
232
+                    echo "<th>$i[jenis_transaksi]</th>";
233 233
 
234 234
                 }
235
-               ?>
235
+                ?>
236 236
 
237 237
                <?
238 238
 
@@ -240,10 +240,10 @@  discard block
 block discarded – undo
240 240
           
241 241
                 while ($i=mysql_fetch_array($itampil)){  
242 242
 
243
-                  echo "<th>$i[jenis_pembayaran]</th>";
243
+                    echo "<th>$i[jenis_pembayaran]</th>";
244 244
 
245 245
                 }
246
-               ?>
246
+                ?>
247 247
 
248 248
 
249 249
             </tr> 
@@ -288,46 +288,46 @@  discard block
 block discarded – undo
288 288
 
289 289
              
290 290
 
291
-             $d_id    = $d['id_kasir_detail'];    
291
+                $d_id    = $d['id_kasir_detail'];    
292 292
 
293 293
 
294 294
 
295
-             $ijumlah = number_format($d['jumlah'], 0, ".", ",");
295
+                $ijumlah = number_format($d['jumlah'], 0, ".", ",");
296 296
 
297
-             $jumlah = number_format($d['jumlah'], 0, ".", "");
297
+                $jumlah = number_format($d['jumlah'], 0, ".", "");
298 298
 
299
-             $total =  $total+$d['jumlah'];
299
+                $total =  $total+$d['jumlah'];
300 300
 
301
-             $itotal = number_format($total, 0, ".", ",");
301
+                $itotal = number_format($total, 0, ".", ",");
302 302
 
303 303
 
304
-             echo"<tr>";
304
+                echo"<tr>";
305 305
 
306
-             echo" <td>"; 
306
+                echo" <td>"; 
307 307
 
308
-             echo $no ;
308
+                echo $no ;
309 309
 
310
-             echo"</td>";  
310
+                echo"</td>";  
311 311
 
312 312
 
313
-             echo" <td>"; 
313
+                echo" <td>"; 
314 314
 
315
-             echo $d['notrans'] ;
315
+                echo $d['notrans'] ;
316 316
 
317
-             echo"</td>";  
317
+                echo"</td>";  
318 318
 
319
-             echo" <td>"; 
319
+                echo" <td>"; 
320 320
 
321
-             echo $d['pasien'] ;
321
+                echo $d['pasien'] ;
322 322
 
323
-             echo"</td>"; 
323
+                echo"</td>"; 
324 324
 
325 325
 
326
-              $itampil=mysql_query("SELECT * FROM jenis_transaksi where aktif = 'Y' ORDER BY id_jenis_transaksi");
326
+                $itampil=mysql_query("SELECT * FROM jenis_transaksi where aktif = 'Y' ORDER BY id_jenis_transaksi");
327 327
           
328 328
                 while ($i=mysql_fetch_array($itampil)){  
329 329
 
330
-                  $jtampil=mysql_query("SELECT b.jumlah FROM kasir a INNER JOIN kasir_detail b 
330
+                    $jtampil=mysql_query("SELECT b.jumlah FROM kasir a INNER JOIN kasir_detail b 
331 331
                                          ON a.id_kasir = b.id_kasir 
332 332
                                          where a.tanggal = '$r[tanggal]'
333 333
                                          AND a.id_shift  = '$r[id_shift]'
@@ -336,26 +336,26 @@  discard block
 block discarded – undo
336 336
                                          AND b.status <> '4'
337 337
                                          "); 
338 338
 
339
-                  $j=mysql_fetch_array($jtampil);
339
+                    $j=mysql_fetch_array($jtampil);
340 340
 
341
-                  if ($j[jumlah]) {
341
+                    if ($j[jumlah]) {
342 342
                     $jml = number_format($j['jumlah'], 0, ".", ",");
343
-                  } else {
343
+                    } else {
344 344
                     $jml = 0;
345
-                  }
345
+                    }
346 346
                   
347
-                  echo "<td  style='text-align:right;'>$jml</td>";
347
+                    echo "<td  style='text-align:right;'>$jml</td>";
348 348
 
349
-             }
349
+                }
350 350
 
351 351
              
352
-               $itampil=mysql_query("SELECT * FROM jenis_pembayaran where aktif = 'Y' ORDER BY id_jenis_pembayaran");
352
+                $itampil=mysql_query("SELECT * FROM jenis_pembayaran where aktif = 'Y' ORDER BY id_jenis_pembayaran");
353 353
           
354 354
                 while ($i=mysql_fetch_array($itampil)){  
355 355
 
356 356
                 
357 357
 
358
-                  $pSQL = "SELECT  sum(a.jumlah) as jumlah 
358
+                    $pSQL = "SELECT  sum(a.jumlah) as jumlah 
359 359
 
360 360
                          FROM kasir_detail a LEFT JOIN jenis_transaksi b
361 361
 
@@ -392,44 +392,44 @@  discard block
 block discarded – undo
392 392
                                
393 393
                 $p=mysql_fetch_array($ptampil);
394 394
 
395
-                     if ($p[jumlah]) {
395
+                        if ($p[jumlah]) {
396 396
                         $jml = number_format($p['jumlah'], 0, ".", ",");
397
-                     } else {
397
+                        } else {
398 398
                         $jml = 0;
399
-                     }
399
+                        }
400 400
 
401
-                     echo"<td  style='text-align:right;'>$jml </td>"; 
401
+                        echo"<td  style='text-align:right;'>$jml </td>"; 
402 402
 
403 403
                 
404 404
 
405
-             }    
405
+                }    
406 406
              
407 407
            
408
-             echo" <td>"; 
408
+                echo" <td>"; 
409 409
 
410
-              $jtampil=mysql_query("SELECT b.ket  FROM kasir a INNER JOIN kasir_detail b 
410
+                $jtampil=mysql_query("SELECT b.ket  FROM kasir a INNER JOIN kasir_detail b 
411 411
                                          ON a.id_kasir = b.id_kasir 
412 412
                                          where a.tanggal = '$r[tanggal]'
413 413
                                          AND a.id_shift  = '$r[id_shift]'
414 414
                                          AND b.notrans  = '$d[notrans]'
415 415
                                          "); 
416 416
 
417
-              $j=mysql_fetch_array($jtampil);
417
+                $j=mysql_fetch_array($jtampil);
418 418
 
419
-              echo $j[ket];
419
+                echo $j[ket];
420 420
 
421
-              if ($d['penjamin']) {
421
+                if ($d['penjamin']) {
422 422
                 echo'<br>'.'('.$d['penjamin'].')';
423
-              }
423
+                }
424 424
                 
425
-             echo"</td>";    
425
+                echo"</td>";    
426 426
 
427 427
 
428
-                 echo "</tr>";  
428
+                    echo "</tr>";  
429 429
                
430
-               $no++;
431
-               } 
432
-             ?>
430
+                $no++;
431
+                } 
432
+                ?>
433 433
              </tbody> 
434 434
 
435 435
              <tfoot>
@@ -442,11 +442,11 @@  discard block
 block discarded – undo
442 442
 
443 443
                <?
444 444
 
445
-                          $itampil=mysql_query("SELECT * FROM jenis_transaksi where aktif = 'Y' ORDER BY id_jenis_transaksi");
445
+                            $itampil=mysql_query("SELECT * FROM jenis_transaksi where aktif = 'Y' ORDER BY id_jenis_transaksi");
446 446
                       
447 447
                             while ($i=mysql_fetch_array($itampil)){  
448 448
 
449
-                              $jtampil=mysql_query("SELECT sum(b.jumlah) as jumlah FROM kasir a INNER JOIN kasir_detail b 
449
+                                $jtampil=mysql_query("SELECT sum(b.jumlah) as jumlah FROM kasir a INNER JOIN kasir_detail b 
450 450
                                                      ON a.id_kasir = b.id_kasir 
451 451
                                                      where a.tanggal = '$r[tanggal]'
452 452
                                                      AND a.id_shift  = '$r[id_shift]'
@@ -454,25 +454,25 @@  discard block
 block discarded – undo
454 454
                                                      AND b.status <> '4'
455 455
                                                      "); 
456 456
 
457
-                              $j=mysql_fetch_array($jtampil);
457
+                                $j=mysql_fetch_array($jtampil);
458 458
 
459
-                              if ($j[jumlah]) {
459
+                                if ($j[jumlah]) {
460 460
                                 $jml = number_format($j['jumlah'], 0, ".", ",");
461
-                              } else {
461
+                                } else {
462 462
                                 $jml = 0;
463
-                              }
463
+                                }
464 464
                               
465
-                              echo "<th  style='text-align:right;'>$jml</th>";
465
+                                echo "<th  style='text-align:right;'>$jml</th>";
466 466
 
467
-                         }
467
+                            }
468 468
 
469 469
                 
470 470
                 ?>        
471 471
 
472 472
                  <?
473
-                 $itampil=mysql_query("SELECT * FROM jenis_pembayaran where aktif = 'Y' ORDER BY id_jenis_pembayaran");
473
+                    $itampil=mysql_query("SELECT * FROM jenis_pembayaran where aktif = 'Y' ORDER BY id_jenis_pembayaran");
474 474
             
475
-                  while ($i=mysql_fetch_array($itampil)){  
475
+                    while ($i=mysql_fetch_array($itampil)){  
476 476
 
477 477
                   
478 478
 
@@ -506,24 +506,24 @@  discard block
 block discarded – undo
506 506
 
507 507
 
508 508
 
509
-                  $ptampil=mysql_query($pSQL);
509
+                    $ptampil=mysql_query($pSQL);
510 510
 
511 511
                                  
512
-                  $p=mysql_fetch_array($ptampil);
512
+                    $p=mysql_fetch_array($ptampil);
513 513
 
514
-                       if ($p[jumlah]) {
515
-                          $jml = number_format($p['jumlah'], 0, ".", ",");
516
-                       } else {
517
-                          $jml = 0;
518
-                       }
514
+                        if ($p[jumlah]) {
515
+                            $jml = number_format($p['jumlah'], 0, ".", ",");
516
+                        } else {
517
+                            $jml = 0;
518
+                        }
519 519
 
520
-                       echo"<th  style='text-align:right;'>$jml </th>"; 
520
+                        echo"<th  style='text-align:right;'>$jml </th>"; 
521 521
 
522 522
                   
523 523
 
524
-               }    
524
+                }    
525 525
                
526
-               ?> 
526
+                ?> 
527 527
        
528 528
                <th></th> 
529 529
 
@@ -533,20 +533,20 @@  discard block
 block discarded – undo
533 533
 
534 534
             <?    
535 535
 
536
-                 if($r[id_shift] == '1') {
537
-                  $id_shift = '1';
538
-                 } else {
539
-                  $id_shift = '%';
540
-                 }
536
+                    if($r[id_shift] == '1') {
537
+                    $id_shift = '1';
538
+                    } else {
539
+                    $id_shift = '%';
540
+                    }
541 541
 
542 542
     
543
-                 $itampil=mysql_query("SELECT * FROM shift where aktif = 'Y' and id_shift LIKE '$id_shift' ORDER BY id_shift");
543
+                    $itampil=mysql_query("SELECT * FROM shift where aktif = 'Y' and id_shift LIKE '$id_shift' ORDER BY id_shift");
544 544
             
545
-                  while ($i=mysql_fetch_array($itampil)){  
545
+                    while ($i=mysql_fetch_array($itampil)){  
546 546
 
547
-                  $shift = $i['shift'];
547
+                    $shift = $i['shift'];
548 548
 
549
-             ?>       
549
+                ?>       
550 550
 
551 551
                     <tr>
552 552
                     <th></th>
@@ -592,11 +592,11 @@  discard block
 block discarded – undo
592 592
                                        
593 593
                         $p=mysql_fetch_array($ptampil);
594 594
 
595
-                             if ($p[jumlah]) {
595
+                                if ($p[jumlah]) {
596 596
                                 $cash = number_format($p['jumlah'], 0, ".", ",");
597
-                             } else {
597
+                                } else {
598 598
                                 $cash = 0;
599
-                             }
599
+                                }
600 600
 
601 601
                         ?>
602 602
                     <th style="text-align: right;"><?=$cash;?></th>
@@ -640,11 +640,11 @@  discard block
 block discarded – undo
640 640
                                        
641 641
                         $p=mysql_fetch_array($ptampil);
642 642
 
643
-                             if ($p[jumlah]) {
643
+                                if ($p[jumlah]) {
644 644
                                 $credit = number_format($p['jumlah'], 0, ".", ",");
645
-                             } else {
645
+                                } else {
646 646
                                 $credit= 0;
647
-                             }
647
+                                }
648 648
 
649 649
                         ?>
650 650
 
@@ -656,9 +656,9 @@  discard block
 block discarded – undo
656 656
                <?     
657 657
                   
658 658
 
659
-               }    
659
+                }    
660 660
                
661
-               ?> 
661
+                ?> 
662 662
 
663 663
                <? if ($id_shift == '%') { ?>
664 664
                <tr>
@@ -703,11 +703,11 @@  discard block
 block discarded – undo
703 703
                                        
704 704
                         $p=mysql_fetch_array($ptampil);
705 705
 
706
-                             if ($p[jumlah]) {
706
+                                if ($p[jumlah]) {
707 707
                                 $cash = number_format($p['jumlah'], 0, ".", ",");
708
-                             } else {
708
+                                } else {
709 709
                                 $cash = 0;
710
-                             }
710
+                                }
711 711
 
712 712
                         ?>
713 713
                     <th style="text-align: right;"><?=$cash;?></th>
@@ -749,11 +749,11 @@  discard block
 block discarded – undo
749 749
                                        
750 750
                         $p=mysql_fetch_array($ptampil);
751 751
 
752
-                             if ($p[jumlah]) {
752
+                                if ($p[jumlah]) {
753 753
                                 $credit = number_format($p['jumlah'], 0, ".", ",");
754
-                             } else {
754
+                                } else {
755 755
                                 $credit= 0;
756
-                             }
756
+                                }
757 757
 
758 758
                         ?>
759 759
 
@@ -815,13 +815,13 @@  discard block
 block discarded – undo
815 815
                                        
816 816
                         $p=mysql_fetch_array($ptampil);
817 817
 
818
-                             if ($p[jumlah]) {
818
+                                if ($p[jumlah]) {
819 819
                                 $total = number_format($p['jumlah'], 0, ".", ",");
820
-                             } else {
820
+                                } else {
821 821
                                 $total = 0;
822
-                             }
822
+                                }
823 823
 
824
-              ?>
824
+                ?>
825 825
 
826 826
 
827 827
                 <tr>
Please login to merge, or discard this patch.
Spacing   +73 added lines, -73 removed lines patch added patch discarded remove patch
@@ -12,11 +12,11 @@  discard block
 block discarded – undo
12 12
 
13 13
 
14 14
 $report_id = $_GET[report_id];
15
-$tampil=mysql_query("SELECT * FROM modul WHERE id_modul ='".$report_id."'");
15
+$tampil = mysql_query("SELECT * FROM modul WHERE id_modul ='".$report_id."'");
16 16
 
17 17
             
18 18
 
19
-$r=mysql_fetch_array($tampil);
19
+$r = mysql_fetch_array($tampil);
20 20
 
21 21
 //module=$module&report_id=$report_id&k_ID=$k_ID
22 22
 
@@ -24,14 +24,14 @@  discard block
 block discarded – undo
24 24
 
25 25
 $imodule  = ucwords($r['nama_modul']);
26 26
 
27
-$nmmodule   = ucwords($r['nama_modul']);
27
+$nmmodule = ucwords($r['nama_modul']);
28 28
 
29
-$id       = $r['id_modul'];
29
+$id = $r['id_modul'];
30 30
 
31
-$fa_icon    = $r['fa_icon'];
31
+$fa_icon = $r['fa_icon'];
32 32
 
33 33
 
34
-$k_ID  = $_GET['k_ID'];
34
+$k_ID = $_GET['k_ID'];
35 35
  
36 36
 ?>
37 37
 
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 <meta charset="utf-8">
41 41
 <meta http-equiv="X-UA-Compatible" content="IE=edge">
42 42
 <link rel="shortcut icon" type="image/x-icon" href="../images/favicon.png">
43
-<title><?php echo $imodule ;?> (<?php echo $ifdate;?> - <?php echo $ildate;?>)</title>
43
+<title><?php echo $imodule; ?> (<?php echo $ifdate; ?> - <?php echo $ildate; ?>)</title>
44 44
 
45 45
 <!-- Tell the browser to be responsive to screen width -->
46 46
 <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
@@ -147,14 +147,14 @@  discard block
 block discarded – undo
147 147
       <div class="noprint"  >
148 148
         <button class='print pull-right' onclick="javascript:window.close()"><i class="fa fa-lg fa-close"></i> Close</button>
149 149
         <button class='print pull-right' onclick="icetak()"><i class="fa fa-lg fa-print"></i> Print</button>
150
-        <button class='print pull-right' onclick="window.open('ecetak_kasir.php?k_ID=<?=$k_ID;?>&report_id=<?=$report_id;?>', '_blank')"><i class="fa fa-lg fa-file-excel-o"></i> Excel</button>
150
+        <button class='print pull-right' onclick="window.open('ecetak_kasir.php?k_ID=<?=$k_ID; ?>&report_id=<?=$report_id; ?>', '_blank')"><i class="fa fa-lg fa-file-excel-o"></i> Excel</button>
151 151
       </div>   
152 152
 
153 153
       <?
154 154
 
155
-       $gtampil=mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
155
+       $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
156 156
 
157
-       $g=mysql_fetch_array($gtampil);
157
+       $g = mysql_fetch_array($gtampil);
158 158
 
159 159
 
160 160
 
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 
174 174
 
175 175
 
176
-      $sql   = mysql_query("SELECT a.*,b.shift FROM kasir  a LEFT JOIN shift b 
176
+      $sql = mysql_query("SELECT a.*,b.shift FROM kasir  a LEFT JOIN shift b 
177 177
                             ON a.id_shift = b.id_shift
178 178
                             WHERE a.id_kasir = '$k_ID' 
179 179
 
@@ -181,30 +181,30 @@  discard block
 block discarded – undo
181 181
 
182 182
 
183 183
 
184
-      $r     = mysql_fetch_array($sql); 
184
+      $r = mysql_fetch_array($sql); 
185 185
 
186 186
 
187
-      $penjualan_barang   = $r['id_kasir'];  
187
+      $penjualan_barang = $r['id_kasir'];  
188 188
 
189
-      $shift   = $r['shift'];  
189
+      $shift = $r['shift'];  
190 190
 
191
-      $petugas   = $r['petugas'];  
191
+      $petugas = $r['petugas'];  
192 192
 
193
-      $status   = $r['status']; 
193
+      $status = $r['status']; 
194 194
 
195
-      $tanggal   = DATE('d/m/Y',strtotime($r['tanggal']));  
195
+      $tanggal = DATE('d/m/Y', strtotime($r['tanggal']));  
196 196
 
197 197
       ?>
198 198
 
199 199
       <table width="100%">
200 200
       <tr>
201
-      <td style="text-align: center;" colspan="3"><h3 ><?=$company;?><br><?=$nmmodule;?></h3></td>
201
+      <td style="text-align: center;" colspan="3"><h3 ><?=$company; ?><br><?=$nmmodule; ?></h3></td>
202 202
       </tr>
203 203
        <tr><td>&nbsp</td></tr>
204 204
        <tr>
205
-        <td width="20%" style="font-size: 11px;">Tanggal : <?=$tanggal;?></td>
205
+        <td width="20%" style="font-size: 11px;">Tanggal : <?=$tanggal; ?></td>
206 206
         <td width="2%">&nbsp&nbsp</td>
207
-        <td style="font-size: 11px;">Shift : <?=$shift;?></td>
207
+        <td style="font-size: 11px;">Shift : <?=$shift; ?></td>
208 208
         </tr>
209 209
         <tr><td>&nbsp</td></tr>
210 210
       </table>
@@ -225,9 +225,9 @@  discard block
 block discarded – undo
225 225
             <tr>
226 226
                <?
227 227
 
228
-                $itampil=mysql_query("SELECT * FROM jenis_transaksi where aktif = 'Y' ORDER BY id_jenis_transaksi");
228
+                $itampil = mysql_query("SELECT * FROM jenis_transaksi where aktif = 'Y' ORDER BY id_jenis_transaksi");
229 229
           
230
-                while ($i=mysql_fetch_array($itampil)){  
230
+                while ($i = mysql_fetch_array($itampil)) {  
231 231
 
232 232
                   echo "<th>$i[jenis_transaksi]</th>";
233 233
 
@@ -236,9 +236,9 @@  discard block
 block discarded – undo
236 236
 
237 237
                <?
238 238
 
239
-                $itampil=mysql_query("SELECT * FROM jenis_pembayaran where aktif = 'Y' ORDER BY id_jenis_pembayaran");
239
+                $itampil = mysql_query("SELECT * FROM jenis_pembayaran where aktif = 'Y' ORDER BY id_jenis_pembayaran");
240 240
           
241
-                while ($i=mysql_fetch_array($itampil)){  
241
+                while ($i = mysql_fetch_array($itampil)) {  
242 242
 
243 243
                   echo "<th>$i[jenis_pembayaran]</th>";
244 244
 
@@ -280,15 +280,15 @@  discard block
 block discarded – undo
280 280
 
281 281
 
282 282
 
283
-            $dtampil=mysql_query($dSQL);
283
+            $dtampil = mysql_query($dSQL);
284 284
 
285 285
             $no = 1;                        
286 286
 
287
-            while ($d=mysql_fetch_array($dtampil)){  
287
+            while ($d = mysql_fetch_array($dtampil)) {  
288 288
 
289 289
              
290 290
 
291
-             $d_id    = $d['id_kasir_detail'];    
291
+             $d_id = $d['id_kasir_detail'];    
292 292
 
293 293
 
294 294
 
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
 
297 297
              $jumlah = number_format($d['jumlah'], 0, ".", "");
298 298
 
299
-             $total =  $total+$d['jumlah'];
299
+             $total = $total + $d['jumlah'];
300 300
 
301 301
              $itotal = number_format($total, 0, ".", ",");
302 302
 
@@ -305,29 +305,29 @@  discard block
 block discarded – undo
305 305
 
306 306
              echo" <td>"; 
307 307
 
308
-             echo $no ;
308
+             echo $no;
309 309
 
310 310
              echo"</td>";  
311 311
 
312 312
 
313 313
              echo" <td>"; 
314 314
 
315
-             echo $d['notrans'] ;
315
+             echo $d['notrans'];
316 316
 
317 317
              echo"</td>";  
318 318
 
319 319
              echo" <td>"; 
320 320
 
321
-             echo $d['pasien'] ;
321
+             echo $d['pasien'];
322 322
 
323 323
              echo"</td>"; 
324 324
 
325 325
 
326
-              $itampil=mysql_query("SELECT * FROM jenis_transaksi where aktif = 'Y' ORDER BY id_jenis_transaksi");
326
+              $itampil = mysql_query("SELECT * FROM jenis_transaksi where aktif = 'Y' ORDER BY id_jenis_transaksi");
327 327
           
328
-                while ($i=mysql_fetch_array($itampil)){  
328
+                while ($i = mysql_fetch_array($itampil)) {  
329 329
 
330
-                  $jtampil=mysql_query("SELECT b.jumlah FROM kasir a INNER JOIN kasir_detail b 
330
+                  $jtampil = mysql_query("SELECT b.jumlah FROM kasir a INNER JOIN kasir_detail b 
331 331
                                          ON a.id_kasir = b.id_kasir 
332 332
                                          where a.tanggal = '$r[tanggal]'
333 333
                                          AND a.id_shift  = '$r[id_shift]'
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
                                          AND b.status <> '4'
337 337
                                          "); 
338 338
 
339
-                  $j=mysql_fetch_array($jtampil);
339
+                  $j = mysql_fetch_array($jtampil);
340 340
 
341 341
                   if ($j[jumlah]) {
342 342
                     $jml = number_format($j['jumlah'], 0, ".", ",");
@@ -349,9 +349,9 @@  discard block
 block discarded – undo
349 349
              }
350 350
 
351 351
              
352
-               $itampil=mysql_query("SELECT * FROM jenis_pembayaran where aktif = 'Y' ORDER BY id_jenis_pembayaran");
352
+               $itampil = mysql_query("SELECT * FROM jenis_pembayaran where aktif = 'Y' ORDER BY id_jenis_pembayaran");
353 353
           
354
-                while ($i=mysql_fetch_array($itampil)){  
354
+                while ($i = mysql_fetch_array($itampil)) {  
355 355
 
356 356
                 
357 357
 
@@ -387,10 +387,10 @@  discard block
 block discarded – undo
387 387
 
388 388
 
389 389
 
390
-                $ptampil=mysql_query($pSQL);
390
+                $ptampil = mysql_query($pSQL);
391 391
 
392 392
                                
393
-                $p=mysql_fetch_array($ptampil);
393
+                $p = mysql_fetch_array($ptampil);
394 394
 
395 395
                      if ($p[jumlah]) {
396 396
                         $jml = number_format($p['jumlah'], 0, ".", ",");
@@ -407,14 +407,14 @@  discard block
 block discarded – undo
407 407
            
408 408
              echo" <td>"; 
409 409
 
410
-              $jtampil=mysql_query("SELECT b.ket  FROM kasir a INNER JOIN kasir_detail b 
410
+              $jtampil = mysql_query("SELECT b.ket  FROM kasir a INNER JOIN kasir_detail b 
411 411
                                          ON a.id_kasir = b.id_kasir 
412 412
                                          where a.tanggal = '$r[tanggal]'
413 413
                                          AND a.id_shift  = '$r[id_shift]'
414 414
                                          AND b.notrans  = '$d[notrans]'
415 415
                                          "); 
416 416
 
417
-              $j=mysql_fetch_array($jtampil);
417
+              $j = mysql_fetch_array($jtampil);
418 418
 
419 419
               echo $j[ket];
420 420
 
@@ -442,11 +442,11 @@  discard block
 block discarded – undo
442 442
 
443 443
                <?
444 444
 
445
-                          $itampil=mysql_query("SELECT * FROM jenis_transaksi where aktif = 'Y' ORDER BY id_jenis_transaksi");
445
+                          $itampil = mysql_query("SELECT * FROM jenis_transaksi where aktif = 'Y' ORDER BY id_jenis_transaksi");
446 446
                       
447
-                            while ($i=mysql_fetch_array($itampil)){  
447
+                            while ($i = mysql_fetch_array($itampil)) {  
448 448
 
449
-                              $jtampil=mysql_query("SELECT sum(b.jumlah) as jumlah FROM kasir a INNER JOIN kasir_detail b 
449
+                              $jtampil = mysql_query("SELECT sum(b.jumlah) as jumlah FROM kasir a INNER JOIN kasir_detail b 
450 450
                                                      ON a.id_kasir = b.id_kasir 
451 451
                                                      where a.tanggal = '$r[tanggal]'
452 452
                                                      AND a.id_shift  = '$r[id_shift]'
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
                                                      AND b.status <> '4'
455 455
                                                      "); 
456 456
 
457
-                              $j=mysql_fetch_array($jtampil);
457
+                              $j = mysql_fetch_array($jtampil);
458 458
 
459 459
                               if ($j[jumlah]) {
460 460
                                 $jml = number_format($j['jumlah'], 0, ".", ",");
@@ -470,9 +470,9 @@  discard block
 block discarded – undo
470 470
                 ?>        
471 471
 
472 472
                  <?
473
-                 $itampil=mysql_query("SELECT * FROM jenis_pembayaran where aktif = 'Y' ORDER BY id_jenis_pembayaran");
473
+                 $itampil = mysql_query("SELECT * FROM jenis_pembayaran where aktif = 'Y' ORDER BY id_jenis_pembayaran");
474 474
             
475
-                  while ($i=mysql_fetch_array($itampil)){  
475
+                  while ($i = mysql_fetch_array($itampil)) {  
476 476
 
477 477
                   
478 478
 
@@ -506,10 +506,10 @@  discard block
 block discarded – undo
506 506
 
507 507
 
508 508
 
509
-                  $ptampil=mysql_query($pSQL);
509
+                  $ptampil = mysql_query($pSQL);
510 510
 
511 511
                                  
512
-                  $p=mysql_fetch_array($ptampil);
512
+                  $p = mysql_fetch_array($ptampil);
513 513
 
514 514
                        if ($p[jumlah]) {
515 515
                           $jml = number_format($p['jumlah'], 0, ".", ",");
@@ -533,16 +533,16 @@  discard block
 block discarded – undo
533 533
 
534 534
             <?    
535 535
 
536
-                 if($r[id_shift] == '1') {
536
+                 if ($r[id_shift]=='1') {
537 537
                   $id_shift = '1';
538 538
                  } else {
539 539
                   $id_shift = '%';
540 540
                  }
541 541
 
542 542
     
543
-                 $itampil=mysql_query("SELECT * FROM shift where aktif = 'Y' and id_shift LIKE '$id_shift' ORDER BY id_shift");
543
+                 $itampil = mysql_query("SELECT * FROM shift where aktif = 'Y' and id_shift LIKE '$id_shift' ORDER BY id_shift");
544 544
             
545
-                  while ($i=mysql_fetch_array($itampil)){  
545
+                  while ($i = mysql_fetch_array($itampil)) {  
546 546
 
547 547
                   $shift = $i['shift'];
548 548
 
@@ -552,7 +552,7 @@  discard block
 block discarded – undo
552 552
                     <th></th>
553 553
                     <th></th>
554 554
                     <th colspan="3" style="text-align: left;">Total Seluruh Omzet 
555
-                    <span style='text-transform: capitalize;'><? echo ucfirst(strtolower(($shift)));?></span></th>
555
+                    <span style='text-transform: capitalize;'><? echo ucfirst(strtolower(($shift))); ?></span></th>
556 556
                     <th style="text-align: left;">Cash</th>
557 557
                     <?
558 558
                             
@@ -587,10 +587,10 @@  discard block
 block discarded – undo
587 587
 
588 588
 
589 589
 
590
-                        $ptampil=mysql_query($pSQL);
590
+                        $ptampil = mysql_query($pSQL);
591 591
 
592 592
                                        
593
-                        $p=mysql_fetch_array($ptampil);
593
+                        $p = mysql_fetch_array($ptampil);
594 594
 
595 595
                              if ($p[jumlah]) {
596 596
                                 $cash = number_format($p['jumlah'], 0, ".", ",");
@@ -599,7 +599,7 @@  discard block
 block discarded – undo
599 599
                              }
600 600
 
601 601
                         ?>
602
-                    <th style="text-align: right;"><?=$cash;?></th>
602
+                    <th style="text-align: right;"><?=$cash; ?></th>
603 603
                     <th style="text-align: left;">Credit</th>
604 604
 
605 605
                     <?
@@ -635,20 +635,20 @@  discard block
 block discarded – undo
635 635
 
636 636
 
637 637
 
638
-                        $ptampil=mysql_query($pSQL);
638
+                        $ptampil = mysql_query($pSQL);
639 639
 
640 640
                                        
641
-                        $p=mysql_fetch_array($ptampil);
641
+                        $p = mysql_fetch_array($ptampil);
642 642
 
643 643
                              if ($p[jumlah]) {
644 644
                                 $credit = number_format($p['jumlah'], 0, ".", ",");
645 645
                              } else {
646
-                                $credit= 0;
646
+                                $credit = 0;
647 647
                              }
648 648
 
649 649
                         ?>
650 650
 
651
-                    <th style="text-align: right;"><?=$credit;?></th>
651
+                    <th style="text-align: right;"><?=$credit; ?></th>
652 652
                     <th colspan="4"></th>
653 653
                     </tr> 
654 654
 
@@ -660,11 +660,11 @@  discard block
 block discarded – undo
660 660
                
661 661
                ?> 
662 662
 
663
-               <? if ($id_shift == '%') { ?>
663
+               <? if ($id_shift=='%') { ?>
664 664
                <tr>
665 665
                     <th></th>
666 666
                     <th></th>
667
-                    <th colspan="3" style="text-align: left;">Total Omzet Tgl. <?=$tanggal;?>  </th>
667
+                    <th colspan="3" style="text-align: left;">Total Omzet Tgl. <?=$tanggal; ?>  </th>
668 668
                     <th style="text-align: left;">Cash</th>
669 669
                     <?
670 670
                             
@@ -698,10 +698,10 @@  discard block
 block discarded – undo
698 698
 
699 699
 
700 700
 
701
-                        $ptampil=mysql_query($pSQL);
701
+                        $ptampil = mysql_query($pSQL);
702 702
 
703 703
                                        
704
-                        $p=mysql_fetch_array($ptampil);
704
+                        $p = mysql_fetch_array($ptampil);
705 705
 
706 706
                              if ($p[jumlah]) {
707 707
                                 $cash = number_format($p['jumlah'], 0, ".", ",");
@@ -710,7 +710,7 @@  discard block
 block discarded – undo
710 710
                              }
711 711
 
712 712
                         ?>
713
-                    <th style="text-align: right;"><?=$cash;?></th>
713
+                    <th style="text-align: right;"><?=$cash; ?></th>
714 714
                     <th style="text-align: left;">Credit</th>
715 715
 
716 716
                     <?
@@ -744,20 +744,20 @@  discard block
 block discarded – undo
744 744
 
745 745
 
746 746
 
747
-                        $ptampil=mysql_query($pSQL);
747
+                        $ptampil = mysql_query($pSQL);
748 748
 
749 749
                                        
750
-                        $p=mysql_fetch_array($ptampil);
750
+                        $p = mysql_fetch_array($ptampil);
751 751
 
752 752
                              if ($p[jumlah]) {
753 753
                                 $credit = number_format($p['jumlah'], 0, ".", ",");
754 754
                              } else {
755
-                                $credit= 0;
755
+                                $credit = 0;
756 756
                              }
757 757
 
758 758
                         ?>
759 759
 
760
-                    <th style="text-align: right;"><?=$credit;?></th>
760
+                    <th style="text-align: right;"><?=$credit; ?></th>
761 761
                     <th colspan="4"></th>
762 762
                     </tr> 
763 763
 
@@ -810,10 +810,10 @@  discard block
 block discarded – undo
810 810
 
811 811
 
812 812
 
813
-                        $ptampil=mysql_query($pSQL);
813
+                        $ptampil = mysql_query($pSQL);
814 814
 
815 815
                                        
816
-                        $p=mysql_fetch_array($ptampil);
816
+                        $p = mysql_fetch_array($ptampil);
817 817
 
818 818
                              if ($p[jumlah]) {
819 819
                                 $total = number_format($p['jumlah'], 0, ".", ",");
@@ -827,7 +827,7 @@  discard block
 block discarded – undo
827 827
                 <tr>
828 828
                     <th style="border:none;">&nbsp</th>
829 829
                     <th colspan="5" style="text-align: left;">Disetorkan Ke Bendahara</th>
830
-                    <th style="text-align: right;">Rp.<?=$total;?></th>  
830
+                    <th style="text-align: right;">Rp.<?=$total; ?></th>  
831 831
                     <th style="" colspan="6">&nbsp</th>  
832 832
                 </tr>    
833 833
 
@@ -861,7 +861,7 @@  discard block
 block discarded – undo
861 861
         <tr>
862 862
                     <th style="border:none;">&nbsp</th>
863 863
                     <th style="border:none;">&nbsp</th>
864
-                    <th style="text-align: center;">(<?=$petugas;?>)</th>
864
+                    <th style="text-align: center;">(<?=$petugas; ?>)</th>
865 865
                     <th style="border:none;">&nbsp</th>
866 866
                     <th style="border:none;">&nbsp</th>
867 867
                     <th style="text-align: center;">
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,7 @@
 block discarded – undo
2 2
 
3 3
 if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) {
4 4
 ob_start("ob_gzhandler");
5
-}
6
-else {
5
+} else {
7 6
 ob_start();
8 7
 }
9 8
 
Please login to merge, or discard this patch.
modul/mod_kasir/getbarang.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 
7 7
 
8 8
 
9
-$prd    = $_GET['prd']; 
9
+$prd = $_GET['prd']; 
10 10
 
11 11
 $notrans = $_GET['notrans'];
12 12
 
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 
17 17
 
18 18
 
19
-$q =  '%' . trim($_REQUEST['term']) . '%';
19
+$q = '%'.trim($_REQUEST['term']).'%';
20 20
 
21 21
     
22 22
 
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 
25 25
 
26 26
 
27
-    $sql="select   concat(a.kode,' - ',a.barang) as barang
27
+    $sql = "select   concat(a.kode,' - ',a.barang) as barang
28 28
 
29 29
                 ,   a.id_barang
30 30
 
@@ -66,11 +66,11 @@  discard block
 block discarded – undo
66 66
 
67 67
 
68 68
 
69
-    $tampil=mysql_query($sql);
69
+    $tampil = mysql_query($sql);
70 70
 
71 71
     $data = array();
72 72
 
73
-    while($r=mysql_fetch_array($tampil)) {
73
+    while ($r = mysql_fetch_array($tampil)) {
74 74
 
75 75
 
76 76
 
@@ -78,15 +78,15 @@  discard block
 block discarded – undo
78 78
 
79 79
         $data[] = array(
80 80
 
81
-                'value' => $r['barang'] ,
81
+                'value' => $r['barang'],
82 82
 
83
-                'id_barang' => $r['id_barang'] ,
83
+                'id_barang' => $r['id_barang'],
84 84
 
85
-                'merk' => $r['id_merk'] ,
85
+                'merk' => $r['id_merk'],
86 86
 
87
-                'jenis_barang' => $r['jenis_barang'] ,
87
+                'jenis_barang' => $r['jenis_barang'],
88 88
 
89
-                'unit_barang' => $r['unit_barang'] ,
89
+                'unit_barang' => $r['unit_barang'],
90 90
 
91 91
             );
92 92
 
Please login to merge, or discard this patch.
modul/mod_kasir/aksi_kasir.php 3 patches
Indentation   +60 added lines, -60 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 
5 5
 if (empty($_SESSION['username']) AND empty($_SESSION['password'])){
6 6
 
7
-  echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>";
7
+    echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>";
8 8
 
9 9
 } else{
10 10
 
@@ -38,15 +38,15 @@  discard block
 block discarded – undo
38 38
 
39 39
 if ($module=='kasir' AND $act=='hapus'){
40 40
 
41
-  $id = $_GET['id'];
41
+    $id = $_GET['id'];
42 42
 
43
-  $id_module = $_GET['id_module'];
43
+    $id_module = $_GET['id_module'];
44 44
 
45 45
 
46 46
 
47 47
 
48 48
 
49
-  mysql_query("UPDATE kasir SET status   = '4'
49
+    mysql_query("UPDATE kasir SET status   = '4'
50 50
 
51 51
                                 ,upddt   = '$datetime' 
52 52
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
 
58 58
 
59
-  mysql_query("UPDATE kasir_detail SET status   = '4'
59
+    mysql_query("UPDATE kasir_detail SET status   = '4'
60 60
 
61 61
                                 ,upddt   = '$datetime' 
62 62
 
@@ -70,26 +70,26 @@  discard block
 block discarded – undo
70 70
 
71 71
   
72 72
 
73
-  header('location:../../main.php?module='.$module.'&id_module='.$id_module.'&kode='.$kode.'&prd='.$prd.'&notrans='.$notrans.'&outlet='.$outlet);          
73
+    header('location:../../main.php?module='.$module.'&id_module='.$id_module.'&kode='.$kode.'&prd='.$prd.'&notrans='.$notrans.'&outlet='.$outlet);          
74 74
    
75 75
 
76
- }
76
+    }
77 77
 
78 78
 
79 79
 
80
-  // Input group
80
+    // Input group
81 81
 
82 82
 elseif ($module=='kasir' AND $act=='input'){
83 83
 
84 84
 
85 85
 
86
- $id_module = $_POST['id_module'];
86
+    $id_module = $_POST['id_module'];
87 87
 
88 88
        
89 89
 if($_POST['ID']){
90 90
 
91 91
 
92
-  mysql_query("UPDATE kasir SET tanggal   = '$_POST[tanggal]'
92
+    mysql_query("UPDATE kasir SET tanggal   = '$_POST[tanggal]'
93 93
 
94 94
                                     ,id_shift   = '$_POST[shift]'
95 95
 
@@ -104,9 +104,9 @@  discard block
 block discarded – undo
104 104
   
105 105
                           
106 106
 
107
-       } else {
107
+        } else {
108 108
 
109
-       mysql_query("INSERT INTO kasir (tanggal
109
+        mysql_query("INSERT INTO kasir (tanggal
110 110
 
111 111
                             , id_shift
112 112
 
@@ -146,16 +146,16 @@  discard block
 block discarded – undo
146 146
         }
147 147
 
148 148
 
149
-         $sql  = mysql_query("SELECT max(id_kasir) as id FROM kasir");
149
+            $sql  = mysql_query("SELECT max(id_kasir) as id FROM kasir");
150 150
       
151 151
 
152
-         $r    = mysql_fetch_array($sql); 
152
+            $r    = mysql_fetch_array($sql); 
153 153
          
154 154
        
155
-         $k_ID= $r['id'];
155
+            $k_ID= $r['id'];
156 156
        
157 157
 
158
-  ?>
158
+    ?>
159 159
 
160 160
    
161 161
 
@@ -181,12 +181,12 @@  discard block
 block discarded – undo
181 181
 
182 182
 
183 183
 
184
- $id_module = $_POST['id_module'];
184
+    $id_module = $_POST['id_module'];
185 185
 
186
- $k_ID        = $_POST['k_ID'];
186
+    $k_ID        = $_POST['k_ID'];
187 187
 
188 188
 
189
- $detil  = mysql_query("SELECT max(seqno) as seqno 
189
+    $detil  = mysql_query("SELECT max(seqno) as seqno 
190 190
 
191 191
                               FROM kasir_detail 
192 192
 
@@ -198,30 +198,30 @@  discard block
 block discarded – undo
198 198
 
199 199
 
200 200
 
201
- $d         = mysql_fetch_array($detil);
201
+    $d         = mysql_fetch_array($detil);
202 202
 
203 203
   
204 204
 
205
- $seqno  = $d['seqno'];
205
+    $seqno  = $d['seqno'];
206 206
 
207 207
   
208 208
 
209
-  if (empty($seqno)) {
209
+    if (empty($seqno)) {
210 210
 
211
-  $iseqno = '1';  
211
+    $iseqno = '1';  
212 212
 
213
-  } else {
213
+    } else {
214 214
 
215
-  $iseqno = $seqno+1;     
215
+    $iseqno = $seqno+1;     
216 216
 
217
-  }
217
+    }
218 218
 
219 219
  
220 220
 
221
-   if($_POST['ID']){
221
+    if($_POST['ID']){
222 222
 
223 223
 
224
-         mysql_query("UPDATE kasir_detail SET notrans ='$_POST[notrans]' 
224
+            mysql_query("UPDATE kasir_detail SET notrans ='$_POST[notrans]' 
225 225
 
226 226
                                 , pasien ='$_POST[pasien]' 
227 227
 
@@ -246,9 +246,9 @@  discard block
 block discarded – undo
246 246
 
247 247
                                                                            
248 248
 
249
-       } else {
249
+        } else {
250 250
 
251
-       mysql_query("INSERT INTO kasir_detail (
251
+        mysql_query("INSERT INTO kasir_detail (
252 252
 
253 253
                               id_kasir
254 254
 
@@ -313,11 +313,11 @@  discard block
 block discarded – undo
313 313
 
314 314
                              
315 315
 
316
-   }
316
+    }
317 317
 
318 318
        
319 319
 
320
-  ?>
320
+    ?>
321 321
 
322 322
    
323 323
 
@@ -341,15 +341,15 @@  discard block
 block discarded – undo
341 341
 
342 342
 elseif ($module=='kasir' AND $act=='dhapus'){
343 343
 
344
-  $id = $_GET['id'];
344
+    $id = $_GET['id'];
345 345
 
346
-  $id_module = $_GET['id_module'];
346
+    $id_module = $_GET['id_module'];
347 347
 
348
-  $k_ID        = $_GET['k_ID'];
348
+    $k_ID        = $_GET['k_ID'];
349 349
 
350 350
 
351 351
 
352
-   mysql_query("UPDATE kasir_detail SET status   = '4'
352
+    mysql_query("UPDATE kasir_detail SET status   = '4'
353 353
 
354 354
                                 ,upddt   = '$datetime' 
355 355
 
@@ -363,39 +363,39 @@  discard block
 block discarded – undo
363 363
 
364 364
 
365 365
 
366
-  header('location:../../main.php?module='.$module.'&id_module='.$id_module.'&act=save&ID='.$k_ID);          
366
+    header('location:../../main.php?module='.$module.'&id_module='.$id_module.'&act=save&ID='.$k_ID);          
367 367
 
368 368
 
369 369
 
370 370
    
371 371
 
372
- }
372
+    }
373 373
 
374 374
 
375 375
 
376 376
 elseif ($module=='kasir' AND $act=='verified'){
377 377
 
378
-  $id = $_GET['id'];
378
+    $id = $_GET['id'];
379 379
 
380
-  $id_module = $_GET['id_module'];
380
+    $id_module = $_GET['id_module'];
381 381
 
382
-  $notrans   = $_GET['notrans'];
382
+    $notrans   = $_GET['notrans'];
383 383
 
384
-  $kode      = $_GET['kode'];
384
+    $kode      = $_GET['kode'];
385 385
 
386
-  $prd      = $_GET['prd'];
386
+    $prd      = $_GET['prd'];
387 387
 
388
-  $outlet      = $_GET['outlet'];
388
+    $outlet      = $_GET['outlet'];
389 389
 
390 390
 
391 391
 
392 392
 
393 393
 
394
-  $istatus = '1';
394
+    $istatus = '1';
395 395
 
396 396
    
397 397
 
398
-   mysql_query("UPDATE kasir SET status   = '$istatus'
398
+    mysql_query("UPDATE kasir SET status   = '$istatus'
399 399
 
400 400
                                 ,upddt   = '$datetime' 
401 401
 
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
 
416 416
 
417 417
 
418
-   mysql_query("UPDATE kasir_detail SET status   = '$istatus'
418
+    mysql_query("UPDATE kasir_detail SET status   = '$istatus'
419 419
 
420 420
                                 ,upddt   = '$datetime' 
421 421
 
@@ -437,7 +437,7 @@  discard block
 block discarded – undo
437 437
 
438 438
 
439 439
 
440
-  header('location:../../main.php?module='.$module.'&id_module='.$id_module.'&act=save&notrans='.$notrans.'&prd='.$prd.'&kode='.$kode.'&outlet='.$outlet);  
440
+    header('location:../../main.php?module='.$module.'&id_module='.$id_module.'&act=save&notrans='.$notrans.'&prd='.$prd.'&kode='.$kode.'&outlet='.$outlet);  
441 441
 
442 442
 
443 443
 
@@ -445,29 +445,29 @@  discard block
 block discarded – undo
445 445
 
446 446
    
447 447
 
448
- }
448
+    }
449 449
 
450 450
 
451 451
 
452
- elseif ($module=='kasir' AND $act=='reset'){
452
+    elseif ($module=='kasir' AND $act=='reset'){
453 453
 
454
-  $id = $_GET['id'];
454
+    $id = $_GET['id'];
455 455
 
456
-  $id_module = $_GET['id_module'];
456
+    $id_module = $_GET['id_module'];
457 457
 
458
-  $notrans   = $_GET['notrans'];
458
+    $notrans   = $_GET['notrans'];
459 459
 
460
-  $kode      = $_GET['kode'];
460
+    $kode      = $_GET['kode'];
461 461
 
462
-  $prd      = $_GET['prd'];
462
+    $prd      = $_GET['prd'];
463 463
 
464
-  $outlet      = $_GET['outlet'];
464
+    $outlet      = $_GET['outlet'];
465 465
 
466 466
 
467 467
 
468 468
 
469 469
 
470
-   mysql_query("UPDATE kasir SET status   = '0'
470
+    mysql_query("UPDATE kasir SET status   = '0'
471 471
 
472 472
                                 ,upddt   = '$datetime' 
473 473
 
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
 
488 488
 
489 489
 
490
-   mysql_query("UPDATE kasir_detail SET status   = '0'
490
+    mysql_query("UPDATE kasir_detail SET status   = '0'
491 491
 
492 492
                                 ,upddt   = '$datetime' 
493 493
 
@@ -507,13 +507,13 @@  discard block
 block discarded – undo
507 507
 
508 508
 
509 509
 
510
-  header('location:../../main.php?module='.$module.'&id_module='.$id_module.'&act=save&notrans='.$notrans.'&prd='.$prd.'&kode='.$kode.'&outlet='.$outlet);           
510
+    header('location:../../main.php?module='.$module.'&id_module='.$id_module.'&act=save&notrans='.$notrans.'&prd='.$prd.'&kode='.$kode.'&outlet='.$outlet);           
511 511
 
512 512
 
513 513
 
514 514
    
515 515
 
516
- }
516
+    }
517 517
 
518 518
 
519 519
 
Please login to merge, or discard this patch.
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@  discard block
 block discarded – undo
2 2
 
3 3
 session_start();
4 4
 
5
-if (empty($_SESSION['username']) AND empty($_SESSION['password'])){
5
+if (empty($_SESSION['username']) AND empty($_SESSION['password'])) {
6 6
 
7 7
   echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>";
8 8
 
9
-} else{
9
+} else {
10 10
 
11 11
 include "./../../config/koneksi.php";
12 12
 
@@ -14,9 +14,9 @@  discard block
 block discarded – undo
14 14
 
15 15
 
16 16
 
17
-$module=$_GET[module];
17
+$module = $_GET[module];
18 18
 
19
-$act=$_GET[act];
19
+$act = $_GET[act];
20 20
 
21 21
 
22 22
 
@@ -26,9 +26,9 @@  discard block
 block discarded – undo
26 26
 
27 27
 $hour = time() - (1 * 1 * 60 * 60);
28 28
 
29
-$datetime   = date("Y-m-d G:i:s", $hour);
29
+$datetime = date("Y-m-d G:i:s", $hour);
30 30
 
31
-$userid   = $_SESSION['userid'];
31
+$userid = $_SESSION['userid'];
32 32
 
33 33
 
34 34
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
 // Hapus modul
38 38
 
39
-if ($module=='kasir' AND $act=='hapus'){
39
+if ($module=='kasir' AND $act=='hapus') {
40 40
 
41 41
   $id = $_GET['id'];
42 42
 
@@ -79,14 +79,14 @@  discard block
 block discarded – undo
79 79
 
80 80
   // Input group
81 81
 
82
-elseif ($module=='kasir' AND $act=='input'){
82
+elseif ($module=='kasir' AND $act=='input') {
83 83
 
84 84
 
85 85
 
86 86
  $id_module = $_POST['id_module'];
87 87
 
88 88
        
89
-if($_POST['ID']){
89
+if ($_POST['ID']) {
90 90
 
91 91
 
92 92
   mysql_query("UPDATE kasir SET tanggal   = '$_POST[tanggal]'
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
          $r    = mysql_fetch_array($sql); 
153 153
          
154 154
        
155
-         $k_ID= $r['id'];
155
+         $k_ID = $r['id'];
156 156
        
157 157
 
158 158
   ?>
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
 
162 162
   <script language="javascript">
163 163
 
164
-     window.parent.location.href = "<?php echo"./../../main.php?module=$module&id_module=$id_module&act=save&ID=$k_ID";?>";  
164
+     window.parent.location.href = "<?php echo"./../../main.php?module=$module&id_module=$id_module&act=save&ID=$k_ID"; ?>";  
165 165
 
166 166
    </script>
167 167
 
@@ -177,16 +177,16 @@  discard block
 block discarded – undo
177 177
 
178 178
 
179 179
 
180
-elseif ($module=='kasir' AND $act=='add'){
180
+elseif ($module=='kasir' AND $act=='add') {
181 181
 
182 182
 
183 183
 
184 184
  $id_module = $_POST['id_module'];
185 185
 
186
- $k_ID        = $_POST['k_ID'];
186
+ $k_ID = $_POST['k_ID'];
187 187
 
188 188
 
189
- $detil  = mysql_query("SELECT max(seqno) as seqno 
189
+ $detil = mysql_query("SELECT max(seqno) as seqno 
190 190
 
191 191
                               FROM kasir_detail 
192 192
 
@@ -198,11 +198,11 @@  discard block
 block discarded – undo
198 198
 
199 199
 
200 200
 
201
- $d         = mysql_fetch_array($detil);
201
+ $d = mysql_fetch_array($detil);
202 202
 
203 203
   
204 204
 
205
- $seqno  = $d['seqno'];
205
+ $seqno = $d['seqno'];
206 206
 
207 207
   
208 208
 
@@ -212,13 +212,13 @@  discard block
 block discarded – undo
212 212
 
213 213
   } else {
214 214
 
215
-  $iseqno = $seqno+1;     
215
+  $iseqno = $seqno + 1;     
216 216
 
217 217
   }
218 218
 
219 219
  
220 220
 
221
-   if($_POST['ID']){
221
+   if ($_POST['ID']) {
222 222
 
223 223
 
224 224
          mysql_query("UPDATE kasir_detail SET notrans ='$_POST[notrans]' 
@@ -323,7 +323,7 @@  discard block
 block discarded – undo
323 323
 
324 324
   <script language="javascript">
325 325
 
326
-       window.parent.location.href = "<?php echo"./../../main.php?module=$module&id_module=$id_module&act=save&ID=$k_ID";?>";  
326
+       window.parent.location.href = "<?php echo"./../../main.php?module=$module&id_module=$id_module&act=save&ID=$k_ID"; ?>";  
327 327
 
328 328
    </script>
329 329
 
@@ -339,13 +339,13 @@  discard block
 block discarded – undo
339 339
 
340 340
 
341 341
 
342
-elseif ($module=='kasir' AND $act=='dhapus'){
342
+elseif ($module=='kasir' AND $act=='dhapus') {
343 343
 
344 344
   $id = $_GET['id'];
345 345
 
346 346
   $id_module = $_GET['id_module'];
347 347
 
348
-  $k_ID        = $_GET['k_ID'];
348
+  $k_ID = $_GET['k_ID'];
349 349
 
350 350
 
351 351
 
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
 
374 374
 
375 375
 
376
-elseif ($module=='kasir' AND $act=='verified'){
376
+elseif ($module=='kasir' AND $act=='verified') {
377 377
 
378 378
   $id = $_GET['id'];
379 379
 
@@ -383,9 +383,9 @@  discard block
 block discarded – undo
383 383
 
384 384
   $kode      = $_GET['kode'];
385 385
 
386
-  $prd      = $_GET['prd'];
386
+  $prd = $_GET['prd'];
387 387
 
388
-  $outlet      = $_GET['outlet'];
388
+  $outlet = $_GET['outlet'];
389 389
 
390 390
 
391 391
 
@@ -449,7 +449,7 @@  discard block
 block discarded – undo
449 449
 
450 450
 
451 451
 
452
- elseif ($module=='kasir' AND $act=='reset'){
452
+ elseif ($module=='kasir' AND $act=='reset') {
453 453
 
454 454
   $id = $_GET['id'];
455 455
 
@@ -459,9 +459,9 @@  discard block
 block discarded – undo
459 459
 
460 460
   $kode      = $_GET['kode'];
461 461
 
462
-  $prd      = $_GET['prd'];
462
+  $prd = $_GET['prd'];
463 463
 
464
-  $outlet      = $_GET['outlet'];
464
+  $outlet = $_GET['outlet'];
465 465
 
466 466
 
467 467
 
Please login to merge, or discard this patch.
Braces   +4 added lines, -20 removed lines patch added patch discarded remove patch
@@ -173,11 +173,7 @@  discard block
 block discarded – undo
173 173
 
174 174
 
175 175
 
176
-}
177
-
178
-
179
-
180
-elseif ($module=='kasir' AND $act=='add'){
176
+} elseif ($module=='kasir' AND $act=='add'){
181 177
 
182 178
 
183 179
 
@@ -335,11 +331,7 @@  discard block
 block discarded – undo
335 331
 
336 332
 
337 333
 
338
-}
339
-
340
-
341
-
342
-elseif ($module=='kasir' AND $act=='dhapus'){
334
+} elseif ($module=='kasir' AND $act=='dhapus'){
343 335
 
344 336
   $id = $_GET['id'];
345 337
 
@@ -369,11 +361,7 @@  discard block
 block discarded – undo
369 361
 
370 362
    
371 363
 
372
- }
373
-
374
-
375
-
376
-elseif ($module=='kasir' AND $act=='verified'){
364
+ } elseif ($module=='kasir' AND $act=='verified'){
377 365
 
378 366
   $id = $_GET['id'];
379 367
 
@@ -445,11 +433,7 @@  discard block
 block discarded – undo
445 433
 
446 434
    
447 435
 
448
- }
449
-
450
-
451
-
452
- elseif ($module=='kasir' AND $act=='reset'){
436
+ } elseif ($module=='kasir' AND $act=='reset'){
453 437
 
454 438
   $id = $_GET['id'];
455 439
 
Please login to merge, or discard this patch.