<?php
	include "koneksi.php";
	$id = mysqli_real_escape_string($conn, $_GET["id"]);
    $q = "SELECT * FROM data_karyawan WHERE id='$id'";

	$no_mhb_barang_job=mysqli_real_escape_string($conn,$_GET["id"]);
	
	$form=$_POST["form"];
	
	$ukuranRodEye=$_POST["ukuranRodEye"];
	$sizeRodEye=$_POST["sizeRodEye"];
	$upperRodEye=$_POST["upperRodEye"];
	$lowerRodEye=$_POST["lowerRodEye"];
	$x1RodEye=$_POST["x1RodEye"];
	$y1RodEye=$_POST["y1RodEye"];
	$z1RodEye=$_POST["z1RodEye"];
	
	$x2RodEye=$_POST["x2RodEye"];
	$y2RodEye=$_POST["y2RodEye"];
	$z2RodEye=$_POST["z2RodEye"];
	
	$x3RodEye=$_POST["x3RodEye"];
	$y3RodEye=$_POST["y3RodEye"];
	$z3RodEye=$_POST["z3RodEye"];
	
	$x4RodEye=$_POST["x4RodEye"];
	$y4RodEye=$_POST["y4RodEye"];
	$z4RodEye=$_POST["z4RodEye"];
	
	$x5RodEye=$_POST["x5RodEye"];
	$y5RodEye=$_POST["y5RodEye"];
	$z5RodEye=$_POST["z5RodEye"];
	
	$widthClevisRodEye=$_POST["widthClevisRodEye"];
	
	$conditionRodEye=$_POST["conditionRodEye"];
	
	
	
	$conditionRodEyeSealDust=$_POST["conditionRodEyeSealDust"];
	$conditionRodEyeSnapRing=$_POST["conditionRodEyeSnapRing"];
	
	$conditionRodEyeFittingGrease=$_POST["conditionRodEyeFittingGrease"];
	$recommendationRodEye=$_POST["recommendationRodEye"];
	$sizeIdBushingRodEye=$_POST["sizeIdBushingRodEye"];
	
	$x1IdBushingRodEye=$_POST["x1IdBushingRodEye"];
	$y1IdBushingRodEye=$_POST["y1IdBushingRodEye"];
	$z1IdBushingRodEye=$_POST["z1IdBushingRodEye"];

	$x2IdBushingRodEye=$_POST["x2IdBushingRodEye"];
	$y2IdBushingRodEye=$_POST["y2IdBushingRodEye"];
	$z2IdBushingRodEye=$_POST["z2IdBushingRodEye"];
	
	$x3IdBushingRodEye=$_POST["x3IdBushingRodEye"];
	$y3IdBushingRodEye=$_POST["y3IdBushingRodEye"];
	$z3IdBushingRodEye=$_POST["z3IdBushingRodEye"];
	
	$x4IdBushingRodEye=$_POST["x4IdBushingRodEye"];
	$y4IdBushingRodEye=$_POST["y4IdBushingRodEye"];
	$z4IdBushingRodEye=$_POST["z4IdBushingRodEye"];
	
	$x5IdBushingRodEye=$_POST["x5IdBushingRodEye"];
	$y5IdBushingRodEye=$_POST["y5IdBushingRodEye"];
	$z5IdBushingRodEye=$_POST["z5IdBushingRodEye"];
	
	$widthClevisIdBushingRodEye=$_POST["widthClevisIdBushingRodEye"];
	$ClearanceIdBushingRodEye=$_POST["ClearanceIdBushingRodEye"];
	
	$conditionRodEyeIdBushing=$_POST["conditionRodEyeIdBushing"];
	 
	$bracketConditionRodEyeIdBushing=$_POST["bracketConditionRodEyeIdBushing"];
	
	$recomendationRepairRodEyeIdBushing=$_POST["recomendationRepairRodEyeIdBushing"];
	
	
	//barrel eye
	$sizeBarrelEye=$_POST["sizeBarrelEye"];
	
	$upperBarrelEye=$_POST["upperBarrelEye"];
	
	$lowerBarrelEye=$_POST["lowerBarrelEye"];
	
	$x1BarrelEye=$_POST["x1BarrelEye"];
	$y1BarrelEye=$_POST["y1BarrelEye"];
	$z1BarrelEye=$_POST["z1BarrelEye"];
	
	$x2BarrelEye=$_POST["x2BarrelEye"];
	$y2BarrelEye=$_POST["y2BarrelEye"];	
	$z2BarrelEye=$_POST["z2BarrelEye"];
	
	$x3BarrelEye=$_POST["x3BarrelEye"];
	$y3BarrelEye=$_POST["y3BarrelEye"];
	$z3BarrelEye=$_POST["z3BarrelEye"];
	
	$x4BarrelEye=$_POST["x4BarrelEye"];
	$y4BarrelEye=$_POST["y4BarrelEye"];	
	$z4BarrelEye=$_POST["z4BarrelEye"];
	
	$x5BarrelEye=$_POST["x5BarrelEye"];
	$y5BarrelEye=$_POST["y5BarrelEye"];
	$z5BarrelEye=$_POST["z5BarrelEye"];
	
	$widthClevisBarrelEye=$_POST["widthClevisBarrelEye"];
	
	$conditionBarrelEye=$_POST["conditionBarrelEye"];

	$sealDustBarrrelEye=$_POST["sealDustBarrrelEye"];
	
	$snapRingBarrelEye=$_POST["snapRingBarrelEye"];
	
	$fittingGreaseBarrelEye=$_POST["fittingGreaseBarrelEye"];
	
	$recomendationBarrelEye=$_POST["recomendationBarrelEye"];
	$sizeBarrelEyeIdBushing=$_POST["sizeBarrelEyeIdBushing"];
	$x1BarrelEyeIdBushing=$_POST["x1BarrelEyeIdBushing"];
	$y1BarrelEyeIdBushing=$_POST["y1BarrelEyeIdBushing"];
	$z1BarrelEyeIdBushing=$_POST["z1BarrelEyeIdBushing"];
	
	$x2BarrelEyeIdBushing=$_POST["x2BarrelEyeIdBushing"];
	$y2BarrelEyeIdBushing=$_POST["y2BarrelEyeIdBushing"];
	$z2BarrelEyeIdBushing=$_POST["z2BarrelEyeIdBushing"];
	
	$x3BarrelEyeIdBushing=$_POST["x3BarrelEyeIdBushing"];
	$y3BarrelEyeIdBushing=$_POST["y3BarrelEyeIdBushing"];
	$z3BarrelEyeIdBushing=$_POST["z3BarrelEyeIdBushing"];

	$x4BarrelEyeIdBushing=$_POST["x4BarrelEyeIdBushing"];
	$y4BarrelEyeIdBushing=$_POST["y4BarrelEyeIdBushing"];
	$z4BarrelEyeIdBushing=$_POST["z4BarrelEyeIdBushing"];
	
	$x5BarrelEyeIdBushing=$_POST["x5BarrelEyeIdBushing"];
	$y5BarrelEyeIdBushing=$_POST["y5BarrelEyeIdBushing"];
	$z5BarrelEyeIdBushing=$_POST["z5BarrelEyeIdBushing"];
	
	$widthClevisBarrelEyeIdBushing=$_POST["widthClevisBarrelEyeIdBushing"];
	
	$conditionBarrelEyeIdBushing=$_POST["conditionBarrelEyeIdBushing"];
	$recomendationBarrelEyeIdBushing=$_POST["recomendationBarrelEyeIdBushing"];
	$holeTreadBarrelEyeIdBushing=$_POST["holeTreadBarrelEyeIdBushing"];
	$recomendationRepairBarrelEyeIdBushing=$_POST["recomendationRepairBarrelEyeIdBushing"];


	$nama_file = $_FILES['gambar']['name'];
    $ukuran_file = $_FILES['gambar']['size'];
    $tipe_file = $_FILES['gambar']['type'];
    $tmp_file = $_FILES['gambar']['tmp_name'];
	
	
	
	
	/////////////////////////////////////////////////Assy / Parsial dan Single Non Testing//////////////////////////////////////////////////////
	
	echo "form = ".$form."<br>";
	
	echo "ukuranRodEye = ".$ukuranRodEye."<br>";
	echo "sizeRodEye = ".$sizeRodEye."<br>";
	echo "upperRodEye = ".$upperRodEye."<br>";
	echo "lowerRodEye = ".$lowerRodEye."<br>";
	
	echo "x1RodEye = ".$x1RodEye."<br>";
	echo "y1RodEye = ".$y1RodEye."<br>";
	echo "z1RodEye = ".$z1RodEye."<br>";
	
	echo "x2RodEye = ".$x2RodEye."<br>";
	echo "y2RodEye = ".$y2RodEye."<br>";
	echo "z2RodEye = ".$z2RodEye."<br>";
	
	echo "x3RodEye = ".$x3RodEye."<br>";
	echo "y3RodEye = ".$y3RodEye."<br>";
	echo "z3RodEye = ".$z3RodEye."<br>";
	
	echo "x4RodEye = ".$x4RodEye."<br>";
	echo "y4RodEye = ".$y4RodEye."<br>";
	echo "z4RodEye = ".$z4RodEye."<br>";
	
	echo "x5RodEye = ".$x5RodEye."<br>";
	echo "y5RodEye = ".$y5RodEye."<br>";
	echo "z5RodEye = ".$z5RodEye."<br>";
	
	echo "widthClevisRodEye = ".$widthClevisRodEye."<br>";
	

    if (isset($_POST['conditionRodEye'])) 
	{

        $conditionRodEye=$_POST['conditionRodEye'];
		echo "<br>";
        for ($i=0; $i < count($conditionRodEye) ; $i++)
		{
            echo "conditionRodEye = ".$conditionRodEye[$i]."<br>";
        }
    }
	
	echo "conditionRodEyeSealDust = ".$conditionRodEyeSealDust."<br>";
	
	echo "conditionRodEyeSnapRing = ".$conditionRodEyeSnapRing."<br>";
	echo "conditionRodEyeFittingGrease = ".$conditionRodEyeFittingGrease."<br>";	
	
	if (isset($_POST['recommendationRodEye'])) 
	{

        $recommendationRodEye=$_POST['recommendationRodEye'];
		echo "<br>";
        for ($i=0; $i < count($recommendationRodEye) ; $i++)
		{
            echo "recommendationRodEye = ".$recommendationRodEye[$i]."<br>";
        }
    }
	
	echo "sizeIdBushingRodEye = ".$sizeIdBushingRodEye."<br>";
	echo "x1IdBushingRodEye = ".$x1IdBushingRodEye."<br>";
	echo "y1IdBushingRodEye = ".$y1IdBushingRodEye."<br>";
	echo "z1IdBushingRodEye = ".$z1IdBushingRodEye."<br>";
	
	echo "x2IdBushingRodEye = ".$x2IdBushingRodEye."<br>";
	echo "y2IdBushingRodEye = ".$y2IdBushingRodEye."<br>";
	echo "z2IdBushingRodEye = ".$z2IdBushingRodEye."<br>";
	
	echo "x3IdBushingRodEye = ".$x3IdBushingRodEye."<br>";
	echo "y3IdBushingRodEye = ".$y3IdBushingRodEye."<br>";
	echo "z3IdBushingRodEye = ".$z3IdBushingRodEye."<br>";
	
	echo "x4IdBushingRodEye = ".$x4IdBushingRodEye."<br>";
	echo "y4IdBushingRodEye = ".$y4IdBushingRodEye."<br>";
	echo "z4IdBushingRodEye = ".$z4IdBushingRodEye."<br>";
	
	echo "x5IdBushingRodEye = ".$x5IdBushingRodEye."<br>";
	echo "y5IdBushingRodEye = ".$y5IdBushingRodEye."<br>";
	echo "z5IdBushingRodEye = ".$z5IdBushingRodEye."<br>";
	
	echo "widthClevisIdBushingRodEye = ".$widthClevisIdBushingRodEye."<br>";
	echo "ClearanceIdBushingRodEye = ".$ClearanceIdBushingRodEye."<br>";
	echo "bracketConditionRodEyeIdBushing = ".$bracketConditionRodEyeIdBushing."<br>";
	
	//kebocoran
	echo "recomendationRepairRodEyeIdBushing = ".$recomendationRepairRodEyeIdBushing."<br>";
	
	//total length
	echo "sizeBarrelEye = ".$sizeBarrelEye."<br>";
	
	//chrome length
	echo "upperBarrelEye = ".$upperBarrelEye."<br>";
	
	//hardnes in HRC
	echo "lowerBarrelEye = ".$lowerBarrelEye."<br>";
	echo "x1BarrelEye = ".$x1BarrelEye."<br>";
	echo "y1BarrelEye = ".$y1BarrelEye."<br>";
	echo "z1BarrelEye = ".$z1BarrelEye."<br>";
	
	
	//end rod 1
	echo "x2BarrelEye = ".$x2BarrelEye."<br>";
	echo "y2BarrelEye = ".$y2BarrelEye."<br>";
	echo "z2BarrelEye = ".$z2BarrelEye."<br>";
	
	echo "x3BarrelEye = ".$x3BarrelEye."<br>";
	echo "y3BarrelEye = ".$y3BarrelEye."<br>";
	echo "z3BarrelEye = ".$z3BarrelEye."<br>";
	
	//end rod 2
	echo "x4BarrelEye = ".$x4BarrelEye."<br>";
	echo "y4BarrelEye = ".$y4BarrelEye."<br>";
	echo "z4BarrelEye = ".$z4BarrelEye."<br>";
	echo "x5BarrelEye = ".$x5BarrelEye."<br>";
	echo "y5BarrelEye = ".$y5BarrelEye."<br>";
	echo "z5BarrelEye = ".$z5BarrelEye."<br>";
	
	
	//thread condition
	echo "widthClevisBarrelEye = ".$widthClevisBarrelEye."<br>";
	
	//recomendation repair
	echo "conditionBarrelEye = ".$conditionBarrelEye."<br>";
	
	//condition rod
	echo "sealDustBarrrelEye = ".$sealDustBarrrelEye."<br>";
	
	//spec bend end rod max
	echo "snapRingBarrelEye = ".$snapRingBarrelEye."<br>";
	echo "fittingGreaseBarrelEye = ".$fittingGreaseBarrelEye."<br>";
	echo "recomendationBarrelEye = ".$recomendationBarrelEye."<br>";
	
	echo "sizeBarrelEyeIdBushing = ".$sizeBarrelEyeIdBushing."<br>";
	
	echo "x1BarrelEyeIdBushing = ".$x1BarrelEyeIdBushing."<br>";
	echo "y1BarrelEyeIdBushing = ".$y1BarrelEyeIdBushing."<br>";
	echo "z1BarrelEyeIdBushing = ".$z1BarrelEyeIdBushing."<br>";
	
	echo "x2BarrelEyeIdBushing = ".$x2BarrelEyeIdBushing."<br>";
    echo "y2BarrelEyeIdBushing = ".$y2BarrelEyeIdBushing."<br>";	
    echo "z2BarrelEyeIdBushing = ".$z2BarrelEyeIdBushing."<br>";	 
	
	echo "x3BarrelEyeIdBushing = ".$x3BarrelEyeIdBushing."<br>";
	echo "y3BarrelEyeIdBushing = ".$y3BarrelEyeIdBushing."<br>";
    echo "z3BarrelEyeIdBushing = ".$z3BarrelEyeIdBushing."<br>";	
	
    echo "x4BarrelEyeIdBushing = ".$x4BarrelEyeIdBushing."<br>";
	echo "y4BarrelEyeIdBushing = ".$y4BarrelEyeIdBushing."<br>";
	echo "z4BarrelEyeIdBushing = ".$z4BarrelEyeIdBushing."<br>";
	
	echo "x5BarrelEyeIdBushing = ".$x5BarrelEyeIdBushing."<br>";
	echo "y5BarrelEyeIdBushing = ".$y5BarrelEyeIdBushing."<br>";
	echo "z5BarrelEyeIdBushing = ".$z5BarrelEyeIdBushing."<br>";
	
	echo "widthClevisBarrelEyeIdBushing = ".$widthClevisBarrelEyeIdBushing."<br>";
	echo "conditionBarrelEyeIdBushing = ".$conditionBarrelEyeIdBushing."<br>";
	echo "recomendationBarrelEyeIdBushing = ".$recomendationBarrelEyeIdBushing."<br>";
	echo "holeTreadBarrelEyeIdBushing = ".$holeTreadBarrelEyeIdBushing."<br>";
	echo "recomendationRepairBarrelEyeIdBushing = ".$recomendationRepairBarrelEyeIdBushing."<br>";
	
	echo "foto : = ".$nama_file."<br>";
	$tanggal_periksa_form = date('m-d-Y');
	if ($nama_file == NULL) //foto kosong
	{
		echo "Foto kosong";
	
		$query = "INSERT INTO form_mhb_fr_qc_001_03 (
										no_mhb_barang_job,
										 tanggal_periksa_form,
										 ukuranRodEye,
										 sizeRodEye,
										 upperRodEye,
										 lowerRodEye,
										 x1RodEye,
										 y1RodEye,
										 z1RodEye,
										 x2RodEye,
										 y2RodEye,
										 z2RodEye,
										 x3RodEye,
										 y3RodEye,
										 z3RodEye,
										 x4RodEye,
										 y4RodEye,
										 z4RodEye,
										 x5RodEye,
										 y5RodEye,
		   							     z5RodEye,
										 widthClevisRodEye,
										 conditionRodEye,
										 conditionRodEyeSealDust,
										 conditionRodEyeSnapRing,
										 conditionRodEyeFittingGrease,
										 recommendationRodEye,
										 sizeIdBushingRodEye,
										 x1IdBushingRodEye,
										 y1IdBushingRodEye,
										 z1IdBushingRodEye,
										 x2IdBushingRodEye,
		  							     y2IdBushingRodEye,
										 z2IdBushingRodEye,
										 x3IdBushingRodEye,
										 y3IdBushingRodEye,
										 z3IdBushingRodEye,
										 x4IdBushingRodEye,
										 y4IdBushingRodEye,
										 z4IdBushingRodEye,
										 x5IdBushingRodEye,
										 y5IdBushingRodEye,
										 z5IdBushingRodEye,
										 widthClevisIdBushingRodEye,
										 clearanceIdBushingRodEye,
										 conditionRodEyeIdBushing,
										 recomendationRodEyeIdBushimg,
										 totalLength,
										 chromeLength,
										 minSurfaceID,
										 maxLengthSurfaceID,
										 aveLengthSurfaceID,
										 recommendationRepairSurfaceOD,
										 i1xEndRod,
										 i1yEndRod,
										 ii1xEndRod,
										 ii1yEndRod,
										 iii1xEndRod,
										 iii1yEndRod,
										 i2xEndRod,
										 i2yEndRod,
										 ii2xEndRod,
										 ii2yEndRod,
										 iii2xEndRod,
										 iii2yEndRod,
										 threadConditionEndRod,
										 recommendationRepairSurfaceOD2,
										 conditionEndRod,
										 aSpecBendEndRod,
										 bSpecBendEndRod,
										 cSpecBendEndRod,
										 dSpecBendEndRod,
										 eSpecBendEndRod,
										 recommendationRepairSurfaceOD3,
										 brackketConditionEndRod,
										 holeThreadEndRod,
										 recommendationRepairBracketConditionEndRod,
										 recommendationRepairHoleThreadEndRod)
							
							       VALUE
							             ('$no_mhb_barang_job',
										 '$tanggal_periksa_form',
										 '$form',
										 '$ukuranSurfaceID',
										 '$sizeSurviceID',
										 '$upperSurviceID',
										 '$lowerSurviceID',
										 '$x1SurviceID',
										 '$y1SurviceID',
										 '$z1SurviceID',
										 '$x2SurviceID',
										 '$y2SurviceID',
										 '$z2SurviceID',
										 '$x3SurviceID',
										 '$y3SurviceID',
										 '$z3SurviceID',
										 '$x4SurviceID',
										 '$y4SurviceID',
										 '$z4SurviceID',
										 '$x5SurviceID',
										 '$y5SurviceID',
										 '$z5SurviceID',
										 '$x6SurviceID',
										 '$y6SurviceID',
										 '$z6SurviceID',
										 '$x7SurviceID',
										 '$y7SurviceID',
										 '$z7SurviceID',
										 '$x8SurviceID',
										 '$y8SurviceID',
										 '$z8SurviceID',
										 '$conditionSurviceID',
										 '$aThicknessMinSurviceID',
										 '$bThicknessMinSurviceID',
										 '$cThicknessMinSurviceID',
										 '$dThicknessMinSurviceID',
										 '$eThicknessMinSurviceID',
										 '$roughnessSurfaceID1',
										 '$roughnessSurfaceID2',
										 '$roughnessSurfaceID3',
										 '$aSpecBendingSurfaceID',
										 '$bSpecBendingSurfaceID',
										 '$cSpecBendingSurfaceID',
										 '$dSpecBendingSurfaceID',
										 '$eSpecBendingSurfaceID',
										 '$weldingJointSurficeID',
										 '$kelurusanSurficeID',
										 '$kebocoranSurficeID',
										 '$totalLength',
										 '$chromeLength',
										 '$minSurfaceID',
										 '$maxLengthSurfaceID',
										 '$aveLengthSurfaceID',
										 '$recommendationRepairSurfaceOD',
										 '$i1xEndRod',
										 '$i1yEndRod',
										 '$ii1xEndRod',
										 '$ii1yEndRod',
										 '$iii1xEndRod',
										 '$iii1yEndRod',
										 '$i2xEndRod',
										 '$i2yEndRod',
										 '$ii2xEndRod',
										 '$ii2yEndRod',
										 '$iii2xEndRod',
										 '$iii2yEndRod',
										 '$threadConditionEndRod',
										 '$recommendationRepairSurfaceOD2',
										 '$conditionEndRod',
										 '$aSpecBendEndRod',
										 '$bSpecBendEndRod',
										 '$cSpecBendEndRod',
										 '$dSpecBendEndRod',
										 '$eSpecBendEndRod',
										 '$recommendationRepairSurfaceOD3',
										 '$brackketConditionEndRod',
										 '$holeThreadEndRod',
										 '$recommendationRepairBracketConditionEndRod',
										 '$recommendationRepairHoleThreadEndRod')";
										 
			$resultInsert = mysqli_query($conn, $query);
			if($resultInsert)
			{
				echo "Data periode berhasil masuk";
				header("location:inputFormMhbFrQc00103.php?p=$no_mhb_barang_job");
			}
			else
			{
				header("location:inputFormMhbFrQc00102.php?p=2");
				
				echo "error";
			}
	}
	else
	{
		echo "foto terisi";
	
		// Set path folder tempat menyimpan gambarnya
		//$path = "fotoFormMHB-FR-QC-001-02/".$nama_file;
		//if($tipe_file == "image/jpeg" || $tipe_file == "image/png")
		//{ // Cek apakah tipe file yang diupload adalah JPG / JPEG / PNG
		  // Jika tipe file yang diupload JPG / JPEG / PNG, lakukan :
		  //if($ukuran_file <= 1000000){ // Cek apakah ukuran file yang diupload kurang dari sama dengan 1MB
			// Jika ukuran file kurang dari sama dengan 1MB, lakukan :
			// Proses upload
			//if(move_uploaded_file($tmp_file, $path)){ // Cek apakah gambar berhasil diupload atau tidak
			  // Jika gambar berhasil diupload, Lakukan :  
			  // Proses simpan ke Database
			  //if (isset($_SESSION["UserID"]))
			//{
		//echo "Foto terisi";
		//$query = "INSERT INTO form_mhb_fr_qc_001_02 (
			//							no_mhb_barang_job,
				//						 tanggal_periksa_form,
					//					 form,
						//				 ukuranSurfaceID,
							//			 sizeSurviceID,
								//		 upperSurviceID,
									//	 lowerSurviceID,
										// x1SurviceID,
										// y1SurviceID,
										 //z1SurviceID,
										 //x2SurviceID,
										 //y2SurviceID,
										 //z2SurviceID,
										 //x3SurviceID,
										 //y3SurviceID,
										 //z3SurviceID,
										 //x4SurviceID,
										 //y4SurviceID,
										 //z4SurviceID,
										 //x5SurviceID,
										 //y5SurviceID,
										 //z5SurviceID,
										 //x6SurviceID,
										 //y6SurviceID,
										 //z6SurviceID,
										 //x7SurviceID,
										 //y7SurviceID,
										 //z7SurviceID,
										 //x8SurviceID,
										// y8SurviceID,
										 //z8SurviceID,
										 //conditionSurviceID,
										 //aThicknessMinSurviceID,
										 //bThicknessMinSurviceID,
										 //cThicknessMinSurviceID,
										 //dThicknessMinSurviceID,
										 //eThicknessMinSurviceID,
										 //roughnessSurfaceID1,
										 //roughnessSurfaceID2,
										 //roughnessSurfaceID3,
										 //aSpecBendingSurfaceID,
										 //bSpecBendingSurfaceID,
										 //cSpecBendingSurfaceID,
										 //dSpecBendingSurfaceID,
										 //eSpecBendingSurfaceID,
										 //weldingJointSurficeID,
										 //kelurusanSurficeID,
										 //kebocoranSurficeID,
										 //totalLength,
										 //chromeLength,
										 //minSurfaceID,
										 //maxLengthSurfaceID,
										 //aveLengthSurfaceID,
										 //recommendationRepairSurfaceOD,
										 //i1xEndRod,
										 //i1yEndRod,
										 //ii1xEndRod,
										 //ii1yEndRod,
										 //iii1xEndRod,
										 //iii1yEndRod,
										 //i2xEndRod,
										 //i2yEndRod,
										 //ii2xEndRod,
										 //ii2yEndRod,
										 //iii2xEndRod,
										 //iii2yEndRod,
										 //threadConditionEndRod,
										 //recommendationRepairSurfaceOD2,
										 //conditionEndRod,
										 //aSpecBendEndRod,
										 //bSpecBendEndRod,
										 //cSpecBendEndRod,
										 //dSpecBendEndRod,
										 //eSpecBendEndRod,
										 //recommendationRepairSurfaceOD3,
										 //brackketConditionEndRod,
										 //holeThreadEndRod,
										 //recommendationRepairBracketConditionEndRod,
										 //recommendationRepairHoleThreadEndRod,
										 //foto_dokumen)
							
							       //VALUE
							         //    ('$no_mhb_barang_job',
										// '$tanggal_periksa_form',
										 //'$form',
										 //'$ukuranSurfaceID',
										 //'$sizeSurviceID',
										 //'$upperSurviceID',
										 //'$lowerSurviceID',
										 //'$x1SurviceID',
										 //'$y1SurviceID',
										 //'$z1SurviceID',
										 //'$x2SurviceID',
										 //'$y2SurviceID',
										 //'$z2SurviceID',
										 //'$x3SurviceID',
										 //'$y3SurviceID',
										 //'$z3SurviceID',
										 //'$x4SurviceID',
										 //'$y4SurviceID',
										 //'$z4SurviceID',
										 //'$x5SurviceID',
										 //'$y5SurviceID',
										 //'$z5SurviceID',
										 //'$x6SurviceID',
										 //'$y6SurviceID',
										 //'$z6SurviceID',
										 //'$x7SurviceID',
										 //'$y7SurviceID',
										 //'$z7SurviceID',
										 //'$x8SurviceID',
										 //'$y8SurviceID',
										 //'$z8SurviceID',
										 //'$conditionSurviceID',
										 //'$aThicknessMinSurviceID',
										 //'$bThicknessMinSurviceID',
										 //'$cThicknessMinSurviceID',
										 //'$dThicknessMinSurviceID',
										 //'$eThicknessMinSurviceID',
										 //'$roughnessSurfaceID1',
										 //'$roughnessSurfaceID2',
										 //'$roughnessSurfaceID3',
										 //'$aSpecBendingSurfaceID',
										 //'$bSpecBendingSurfaceID',
										 //'$cSpecBendingSurfaceID',
										 //'$dSpecBendingSurfaceID',
										 //'$eSpecBendingSurfaceID',
										 //'$weldingJointSurficeID',
										 //'$kelurusanSurficeID',
										 //'$kebocoranSurficeID',
										 //'$totalLength',
										 //'$chromeLength',
										 //'$minSurfaceID',
										 //'$maxLengthSurfaceID',
										 //'$aveLengthSurfaceID',
										 //'$recommendationRepairSurfaceOD',
										 //'$i1xEndRod',
										 //'$i1yEndRod',
										 //'$ii1xEndRod',
										 //'$ii1yEndRod',
										 //'$iii1xEndRod',
										 //'$iii1yEndRod',
										 //'$i2xEndRod',
										 //'$i2yEndRod',
										 //'$ii2xEndRod',
										 //'$ii2yEndRod',
										 //'$iii2xEndRod',
										 //'$iii2yEndRod',
										 //'$threadConditionEndRod',
										 //'$recommendationRepairSurfaceOD2',
										 //'$conditionEndRod',
										 //'$aSpecBendEndRod',
										 //'$bSpecBendEndRod',
										 //'$cSpecBendEndRod',
										 //'$dSpecBendEndRod',
										 //'$eSpecBendEndRod',
										 //'$recommendationRepairSurfaceOD3',
										 //'$brackketConditionEndRod',
										 //'$holeThreadEndRod',
										 //'$recommendationRepairBracketConditionEndRod',
										 //'$recommendationRepairHoleThreadEndRod',
										 //'$foto_dokumen')";
										 
										 
			//$resultInsert = mysqli_query($conn, $query);
			//if($resultInsert)
			//{
				//echo "Data periode berhasil masuk";
				
				//header("location:inputFormMhbFrQc00103.php?p=$no_mhb_barang_job");
			//}
			//else
			//{
				//header("location:inputFormMhbFrQc00102.php?p=2");
			
				//echo "error";
			//}
			//}
			//else{
			  // Jika gambar gagal diupload, Lakukan :
		  
			  //header("location:tambahDailyReport.php?p=3");
			//}
		  //}else{
			// Jika ukuran file lebih dari 1MB, lakukan :
		   
			//header("location:tambahDailyReport.php?p=4");
			//echo "<d>".$query;
		  //}
		//}
		//else
		//{
		  // Jika tipe file yang diupload bukan JPG / JPEG / PNG, lakukan :

		  //header("location:tambahDailyReport.php?p=5");
		  //echo "<d>".$query;
		//}
		//}

	}

	
?>