<?php 
include "koneksi.php";
if (!isset($_SESSION["UserID"]))
{
	header("location:login.php?p=3");
}
?>
<!DOCTYPE html>
<link rel="stylesheet" type="text/css" href="style.css">
<html>
  <head>
	<title> PT MULTI HYDRACHROM BALIKPAPAN </title>
	<link rel="icon" type="image/png" href="images/mhb.jpeg">
						<?php
						include "part/menu2.php";
					?>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<?php
		include "part/jss.php";
	?>
	
  </head>
  <body>
	
	<div style="width:1280px; height:100px" class="container">
	
			<div class="alert alert-info" href="#">
            <div style="display: block; margin-left: auto; margin-right: auto; width: 1000px;  height:100px;"><img style="width: 1000px;  height:180px;" src="images/hd.jpg"></div>
            <div>
                <center>
                    <h1>PT. MULTI HIDRACHROM BALIKPAPAN</h1>
                </center>
            </div>
            <div>
                <center>
                    <h4>PROFESIONAL INFORMATION SYSTEM</h4>
                </center>
            </div>
        </div>
					

			
			
		<div class="alert alert-info" center>
			 <h3 align="center">Cleaning and D.A.T</h3>
			 
			 <?php
				if (isset($_GET["p"]))
				{
					$p=mysqli_real_escape_string($conn,$_GET["p"]);
					if ($p=="1")
					{
						?>
							<div class="alert alert-primary" role="alert">
							  Sudah dicuci!
							</div>
						<?php
					}
					else if ($p=="2")
					{
						?>
							<div class="alert alert-danger" role="alert">
								Belum dicuci!
							</div>
						<?php
					}
					else if ($p=="3")
					{
						?>
							<div class="alert alert-danger" role="alert">
								Maaf, Gambar gagal untuk diupload!
							</div>
						<?php
					}
					else if ($p=="4")
					{
						?>
							<div class="alert alert-danger" role="alert">
								Maaf, Ukuran gambar yang diupload tidak boleh lebih dari 1MB!
							</div>
						<?php
					}
					else if ($p=="5")
					{
						?>
							<div class="alert alert-danger" role="alert">
								Maaf, Tipe gambar yang diupload harus JPG / JPEG / PNG!
							</div>
						<?php
					}
					else if ($p=="6")
					{
						?>
							<div class="alert alert-danger" role="alert">
								Maaf, Untuk Proses Selanjutnya Cylinder Harus Sudah dicuci!
							</div>
						<?php
					}
				}
				
				$nomor_mhb_id=$_POST["no_mhb_id"];
				
				$sql="select * from barang_job where no_mhb_id='$nomor_mhb_id' && status='2'";
                $hasil=mysqli_query($conn,$sql);
				$dataUser=mysqli_fetch_assoc($hasil);
			    $jenis_barang = $dataUser["jenis_barang"];
				$no_mhb_id = $dataUser["no_mhb_id"];
				//echo "ini assy".$no_mhb_id;
////////////////////
				if ($jenis_barang == 1)//Single 
				{
					
					?>
					  <h4 align="center">Jenis Barang Single <?php echo "<br>" ?></h4>
					 <h4 align="center">ID MHB <?php echo $no_mhb_id."<br>"."<br>"?></h4>
					 <h4 align="center"><?php echo date('d / M / y');?></h4>

					 
					  <form action="simpanCleaningAndDatSingleParsial2.php?id=<?php echo $no_mhb_id ?>" method="POST" enctype="multipart/form-data">
				     <table width="500" border="1" >
					 <div class="form-group" align="center">
				     <h5 align="center" color="rgb(239, 255, 255)" ></h5>
				
					 <h3 align="center">Periksa Kebersihan Cylinder</h3>
					 <input name="cuci" type="radio" value="1" /> Sudah Dicuci
					 <br><p>
					 <input name="cuci" type="radio" value="2" /> Belum Dicuci
                   <br><br>
		<br></br><br>
					<?php
					echo "proses 1/1"
					?>
					  <button type="submit" name="kirim" value="kirim" class="btn btn-primary">Lanjut Proses</button>
					  </br><br></br>
		             </form>
				     </table>
				
				 <?php
				}
////////////////////
				if ($jenis_barang == 2)//Assy 
				{
					
					?>
					 <h4 align="center">Jenis Barang Assy <?php echo "<br>" ?></h4>
					 <h4 align="center">ID MHB <?php echo $no_mhb_id."<br>"."<br>"?></h4>
					 <h4 align="center"><?php echo date('d / M / y');?></h4>
              
					 
					  <form action="simpanCleaningAndDat2.php?id=<?php echo $no_mhb_id ?>" method="POST" enctype="multipart/form-data">
				     <table width="500" border="1" >
					 <div class="form-group" align="center">
				     <h5 align="center" color="rgb(239, 255, 255)" ></h5>
				
					 <h3 align="center">Periksa Kebersihan Cylinder</h3>
					 <input name="cuci" type="radio" value="1" /> Sudah Dicuci
					 <br><p>
					 <input name="cuci" type="radio" value="2" /> Belum Dicuci
                   <br><br>
				     <h3 align="center">Periksa Kelengkapan Cylinder Dengan Melengkapi Foto dan Berikan stamp(Max 20 Items)</h3>
					 <br>
			         <input type="file" name="gambar[]" multiple>
			        <br><br>
		<br></br><br>
					<?php
					echo "proses 1/3"
					?>
					  <button type="submit" name="kirim" value="kirim" class="btn btn-primary">Lanjut Proses</button>
					  </br><br></br>
		             </form>
				     </table>
				
				 <?php
				}
////////////////////
				if ($jenis_barang == 3)//Parsial 
				{
					
					?>
					  <h4 align="center">Jenis Barang Parsial <?php echo "<br>" ?></h4>
					 <h4 align="center">ID MHB <?php echo $no_mhb_id."<br>"."<br>"?></h4>
					 <h4 align="center"><?php echo date('d / M / y');?></h4>
                 			 
					  <form action="simpanCleaningAndDatSingleParsial2.php?id=<?php echo $no_mhb_id ?>" method="POST" enctype="multipart/form-data">
				     <table width="500" border="1" >
					 <div class="form-group" align="center">
				     <h5 align="center" color="rgb(239, 255, 255)" ></h5>
				
					 <h3 align="center">Periksa Kebersihan Cylinder</h3>
					 <input name="cuci" type="radio" value="1" /> Sudah Dicuci
					 <br><p>
					 <input name="cuci" type="radio" value="2" /> Belum Dicuci
                   <br><br>
				     
		<br></br><br>
					<?php
					echo "proses 1/1"
					?>
					  <button type="submit" name="kirim" value="kirim" class="btn btn-primary">Lanjut Proses</button>
					  </br><br></br>
		             </form>
				     </table>
				
				 <?php
				}
				?>	
	</div>	  
  </body>
 
</html>
 <center><h5 class="form-signin">Copyright &copy; <a href="#" data-toggle="modal" data-target="#contact">SatrioPringgondani</a></h5></center>  



