<?php include "layouts/menu.php"; ?> <div class="right_col" role="main">
  
	<style>
	#partitioned {
  padding-left: 15px;
  letter-spacing: 10px;
  border: 1;
  background-image: linear-gradient(to left, black 70%, rgba(255, 255, 255, 0) 0%);
  background-position: bottom;
  background-size: 20px 1px;
  background-repeat: repeat-x;
  background-position-x: 20px;
  width: 100%;
}
</style>  
            <div class="row">
                <div class="col-lg-12">
                    <!-- Form Elements -->
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            Details
                        </div>
                        <div class="panel-body">
                            <div class="row">
<?php $id=$_REQUEST['id'];
$sql = mysqli_query($conn, "select * from mcust where id ='$id'");
$row = mysqli_fetch_array($sql);
 ?>
   <form name="form1" class="form-horizontal" method="post" action="" enctype="multipart/form-data">
  <div class="col-lg-4">
   
		<input type="hidden" class="form-control" id="pgram3" name="pgram3" value="<?php echo $gdays;?>" placeholder="" >
	<input type="hidden" class="form-control" id="pgramo" name="pgramo" value="<?php echo $gdays2;?>" placeholder="" >
	
<input type="hidden" class="form-control" id="intert" name="intert" value="<?php echo $intert;?>" placeholder="" >	
<input type="hidden" class="form-control" id="hh" name="hh" value="<?php echo $hh;?>" placeholder="" >
	<input type="hidden" class="form-control" id="oo" name="oo" value="<?php echo $oo;?>" placeholder="" >
	<input type="hidden" class="form-control" id="pros" name="pros" value="<?php echo $pros;?>" placeholder="" >	
	<input type="hidden" class="form-control" id="pgram" name="pgram" value="<?php echo $gdays1;?>" placeholder="" >
	<input type="hidden" class="form-control" id="pgram2" name="pgram2" value="<?php echo $gdays2;?>" placeholder="" >

      <input type="hidden" class="form-control" id="" name="fin" readonly   value="<?php echo $mfin; ?>" placeholder="" >
<input type="hidden" class="form-control" id="" name="mfin" readonly   value="<?php echo $mfin; ?>" placeholder="" >
  
      <input type="hidden" class="form-control" id="1" name="sch" readonly  value="<?php echo $sch; ?>" placeholder="" onChange="add1()">
      <input style="text-transform:uppercase" type="hidden" class="form-control" id="email"  name="hpl" value="<?php echo $row['hpl']; ?>" placeholder="E.g 1008" >
      <input style="text-transform:uppercase" type="hidden" class="form-control" id="email"  name="hplt" value="<?php echo $rtyt;?>" placeholder="E.g 1008" >

 <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Phone Number <font color="red">*</font></label>
      <input style="text-transform:uppercase" type="text" class="form-control" id="pno" name="pno" value="<?php echo $row['pno']; ?>"  placeholder="Eg: 9876543210">
 <span class="glyphicon glyphicon-phone-alt form-control-feedback"></span>
  </div>

  <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Name <font color="red">*</font></label>
      <input style="text-transform:uppercase" type="text" class="form-control" id="name"  onkeyup="autocomp()"  style="text-transform:uppercase" name="name"  value="<?php echo $row['name']; ?>" placeholder="Name">
 <ul id="dname"></ul>
 <span class="glyphicon glyphicon-user form-control-feedback"></span>
  </div>
    <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Father's Name</label>
      <input style="text-transform:uppercase" type="text" class="form-control" id="fname" name="fname" onkeyup(getUsers1(this)) value="<?php echo $row['fname']; ?>" placeholder="Name">
 <span class="glyphicon glyphicon-user form-control-feedback"></span>
  </div>
  <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Address</label>
 <input style="text-transform:uppercase" type="text" class="form-control" id="address" name="address" value="<?php echo $row['address']; ?>" placeholder="Line 1">
 <input style="text-transform:uppercase" type="text" class="form-control" id="address1" name="address1" value="<?php echo $row['address1']; ?>" placeholder="Line 2">
 <input style="text-transform:uppercase" type="text" class="form-control" id="address2" name="address2" value="<?php echo $row['address2']; ?>" placeholder="Line 3 + Pincode"> 

  <span class="glyphicon glyphicon-home form-control-feedback"></span>
  </div>

  </div>
  <div class="col-lg-4">
      <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Land Mark</label>
      <input style="text-transform:uppercase" type="text" class="form-control" id="lmark" name="lmark" value="<?php echo $row['lmark']; ?>" placeholder="">
 <span class="glyphicon glyphicon-home form-control-feedback"></span>
  </div>
  <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >House Phone No</label>
      <input style="text-transform:uppercase" type="text" class="form-control" id="pnoresi" name="pnoresi" value="<?php echo $row['pnoresi']; ?>" placeholder="Eg: 9876543210">
 <span class="glyphicon glyphicon-phone-alt form-control-feedback"></span>
  </div>
  
     <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Gift</label>
      <input style="text-transform:uppercase" type="text" class="form-control" id="bba" name="bba" value="<?php echo $row['bba']; ?>" placeholder="">
 <span class="glyphicon glyphicon-home form-control-feedback"></span>
  </div>
  
  
  	 <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Area <font color="red">*</font></label>
      <select style="text-transform:uppercase" type="text"  class="form-control" id="didd" name="area" value="<?php echo $row['area']; ?>" placeholder="Area">
<option><?php echo $row['area']; ?></option>
<?php $sql11 = mysqli_query($conn, "select * from msarea order by name asc");
while($row11 = mysqli_fetch_array($sql11)) { ?>
<option><?php echo $row11['name']; ?></option>
<?php } ?>
</select>
 <span class="glyphicon glyphicon-phone-alt form-control-feedback"></span>
  </div>
   <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Date of Birth</label>
      <input style="text-transform:uppercase" type="date" class="form-control" id="inputPassword3" name="dob" value="<?php echo $row['dob']; ?>" placeholder="">
 <span class="glyphicon glyphicon-phone-alt form-control-feedback"></span>
  </div>
	 <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Govt ID <font color="red">*</font></label>
      <input readonly type="text" class="form-control"  id="inputPassword3" name="gi1" value="Aadhar" placeholder="">
	  
    <span class="glyphicon glyphicon-plane form-control-feedback"></span>
	
		<input style="text-transform:uppercase" type="text" class="form-control" id="gg1" name="gg1"  value="<?php echo $row['gg1']; ?>" placeholder="Govt ID No" >

    </div>
	   	<div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Customer Photo</label>
<input type="hidden" class="form-control" id="inputPassword3" name="nuimg" value="<?php echo $row['uimg']; ?>" placeholder="" >
  
      <input type="file" class="form-control" id="inputPassword3" name="uimg" value="" placeholder="" >
	 </div> 
  </div>
	
	<div class="col-lg-4">
	
	  
	  
	
	   <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Customer Proof1</label>
              <input type="hidden" class="form-control" id="inputPassword3" name="nimg1" value="<?php echo $row['upp1']; ?>" placeholder="" >

      <input type="file" class="form-control" id="inputPassword3" name="img1" value="" placeholder="" >
	 </div> 
	   <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Customer Proof2</label>
            <input type="hidden" class="form-control" id="inputPassword3" name="nimg2" value="<?php echo $row['upp2']; ?>" placeholder="" >
  
      <input type="file" class="form-control" id="inputPassword3" name="img2" value="" placeholder="" >
	 </div> 
	   <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Customer Proof3</label>
            <input type="hidden" class="form-control" id="inputPassword3" name="nimg3" value="<?php echo $row['upp3']; ?>" placeholder="" >
  
      <input type="file" class="form-control" id="inputPassword3" name="img3" value="" placeholder="" >
	 </div> 
	   <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Customer Proof4</label>
           <input type="hidden" class="form-control" id="inputPassword3" name="nimg4" value="<?php echo $row['upp4']; ?>" placeholder="" >
   
      <input type="file" class="form-control" id="inputPassword3" name="img4" value="" placeholder="" >
	 </div> 
	 <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Customer Proof5</label>
           <input type="hidden" class="form-control" id="inputPassword3" name="nimg5" value="<?php echo $row['upp5']; ?>" placeholder="" >
   
      <input type="file" class="form-control" id="inputPassword3" name="img5" value="" placeholder="" >
	 </div>
   
          <input type="hidden" class="form-control" id="idd" readonly name="idd" value="<?php echo $row['id']; ?>" placeholder="" >

   
	  
      <input type="hidden" class="form-control" id="acc" readonly name="acc" value="<?php echo $row['acc']; ?>" placeholder="" >
  
  
  
    </div>
	<div class="col-lg-12">
    <div class="form-group has-success has-feedback">

      <button type="submit" class="btn btn-success btn-block" name="s1">Save This</button>
    </div></div>
</div>
      <div class="alert alert-success">
	 <?php
							if(isset($_POST['s1']))
							{
								extract($_POST);
									$uimg=$_FILES['uimg']['name'];
								$img1=$_FILES['img1']['name'];
								$img2=$_FILES['img2']['name'];
								$img3=$_FILES['img3']['name'];
								$img4=$_FILES['img4']['name'];

								$img5=$_FILES['img5']['name'];
if($uimg==NULL)
{
	$uimg = $nuimg;
}	
else {
$uimg=$_FILES['uimg']['name'];
$move=move_uploaded_file($_FILES['uimg']['tmp_name'],"user/".$uimg);
}

if($img1==NULL)
{
	$img1 = $nimg1;
}	
else {
$img1=$_FILES['img1']['name'];
$move1=move_uploaded_file($_FILES['img']['tmp_name'],"user/".$img1);
}

if($img2==NULL)
{
	$img2 = $nimg2;
}	
else {
$img2=$_FILES['img2']['name'];
$move2=move_uploaded_file($_FILES['img']['tmp_name'],"user/".$img2);
}

if($img3==NULL)
{
	$img3 = $nimg3;
}	
else {
$img3=$_FILES['img3']['name'];
$move3=move_uploaded_file($_FILES['img']['tmp_name'],"user/".$img3);
}

if($img4==NULL)
{
	$img4 = $nimg4;
}	
else {
$img4=$_FILES['img4']['name'];
$move4=move_uploaded_file($_FILES['img']['tmp_name'],"user/".$img4);
}

if($img5==NULL)
{
	$img5 = $nimg5;
}	
else {
$img5=$_FILES['img5']['name'];
$move5=move_uploaded_file($_FILES['img']['tmp_name'],"user/".$img5);
}
				$insert=mysqli_query($conn, "update mcust set name='$name',bba='$bba',pno='$pno',uimg='$uimg',upp1='$img1',upp2='$img2',upp3='$img3',upp4='$img4',upp5='$img5',fname='$fname',address='$address',address1='$address1',address2='$address2',lmark='$lmark',pnoresi='$pnoresi',area='$area',dob='$dob',gg1='$gg1' where id='$idd'");		
	
					
								if($insert)
								{
									
									echo "Registered Successfully";
									
								}
								else
								{
									echo "Failure";
								}
							}
?>
	  </div>
</form>
</div></div></div></div>
  
 
</div>
</div></div>
</div></div></div> 
        <!-- footer content --> 
        <footer>
          <div class="pull-right">
             <a href="https://infossel.com">Infossel Soft Solution</a>
          </div>
          <div class="clearfix"></div>
        </footer>
        <!-- /footer content -->
      </div>

    <!-- jQuery -->
    <script src="vendors/jquery/dist/jquery.min.js"></script>
    <!-- Bootstrap -->
    <script src="vendors/bootstrap/dist/js/bootstrap.min.js"></script>
    <!-- FastClick -->
    <script src="vendors/fastclick/lib/fastclick.js"></script>
    <!-- NProgress -->
    <script src="vendors/nprogress/nprogress.js"></script>
    <!-- iCheck -->
    <script src="vendors/iCheck/icheck.min.js"></script>
    <!-- Datatables -->
    <script src="vendors/datatables.net/js/jquery.dataTables.min.js"></script>
    <script src="vendors/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
    <script src="vendors/datatables.net-buttons/js/dataTables.buttons.min.js"></script>
    <script src="vendors/datatables.net-buttons-bs/js/buttons.bootstrap.min.js"></script>
    <script src="vendors/datatables.net-buttons/js/buttons.flash.min.js"></script>
    <script src="vendors/datatables.net-buttons/js/buttons.html5.min.js"></script>
    <script src="vendors/datatables.net-buttons/js/buttons.print.min.js"></script>
    <script src="vendors/datatables.net-fixedheader/js/dataTables.fixedHeader.min.js"></script>
    <script src="vendors/datatables.net-keytable/js/dataTables.keyTable.min.js"></script>
    <script src="vendors/datatables.net-responsive/js/dataTables.responsive.min.js"></script>
    <script src="vendors/datatables.net-responsive-bs/js/responsive.bootstrap.js"></script>
    <script src="vendors/datatables.net-scroller/js/dataTables.scroller.min.js"></script>
    <script src="vendors/jszip/dist/jszip.min.js"></script>
    <script src="vendors/pdfmake/build/pdfmake.min.js"></script>
    <script src="vendors/pdfmake/build/vfs_fonts.js"></script>

    <!-- Custom Theme Scripts -->
    <script src="build/js/custom.min.js"></script>

  </body>
</html>