<!DOCTYPE html>
<html lang="en">


<!-- Mirrored from edumin.dexignlab.com/xhtml/add-departments.html by HTTrack Website Copier/3.x [XR&CO'2014], Tue, 17 Nov 2020 13:56:15 GMT -->
<head>
    
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>Rizwan </title>
    <!-- Favicon icon -->
    <link rel="icon" type="image/png" sizes="16x16" href="<?php echo base_url();?>assets/images/favicon.png">
    <link rel="stylesheet" href="<?php echo base_url();?>assets/vendor/bootstrap-select/dist/css/bootstrap-select.min.css">
    <link rel="stylesheet" href="<?php echo base_url();?>assets/css/style.css">
    <!-- Pick date -->
    <link rel="stylesheet" href="<?php echo base_url();?>assets/vendor/pickadate/themes/default.css">
    <link rel="stylesheet" href="<?php echo base_url();?>assets/vendor/pickadate/themes/default.date.css">
     <link href="<?php echo base_url();?>assets/vendor/datatables/css/jquery.dataTables.min.css" rel="stylesheet">
    <!-- Custom Stylesheet -->
     
<style type="text/css">
    @media screen {
  #printSection {
      display: none;
  }
}

@media print {
  body * {
    visibility:hidden;
  }
  #printSection, #printSection * {
    visibility:visible;
  }
  #printSection {
    position:absolute;
    left:0;
    top:0;
  }
}




 </style>
</head>

<body>

    <!--*******************
        Preloader start
    ********************-->
        <div id="preloader">
        <div class="sk-three-bounce">
            <div class="sk-child sk-bounce1"></div>
            <div class="sk-child sk-bounce2"></div>
            <div class="sk-child sk-bounce3"></div>
        </div>
    </div>
    <!--*******************
        Preloader end
    ********************-->

    <!--**********************************
        Main wrapper start
    ***********************************-->
    <div id="main-wrapper">

      <?php  $this->load->view('header'); ?>
        
        <!--**********************************
            Content body start
        ***********************************-->
        <div class="content-body">
            <!-- row -->
            <div class="container-fluid">
                    
                  <div class="row page-titles mx-0" style=" width: 35%;background-color: #71A6E3; color:#fff;">
                    <div class="col-sm-6 p-md-0">
                        <div class="welcome-text">
                            <p>Machine #:<b><?php echo machine_name($this->uri->segment('5')); ?></b></p>
                             <p>Item # : <b><?php echo product_name($this->uri->segment('3')); ?></b></p>
                            
                        </div>
                    </div>
                   
                </div>
                
                <div class="row">
            <?php echo form_open(base_url(''),array('class'=>"form-horizontal add_inspec", 'id'=>"add_inspec")); ?>   

                          <?php if($this->session->flashdata('add_inspec_success')){ ?>
                                <div class="alert alert-success solid" style='text-align:center;'><?php echo $this->session->flashdata('add_inspec_success'); ?></div>
                            <?php } ?>

                            <input type='hidden' name="product" value="<?php echo $this->uri->segment('3'); ?>">
                            
                            <input type='hidden' name="so_id" value="<?php echo $this->uri->segment('4'); ?>">

                            <input type='hidden' name="machine" value="<?php echo $this->uri->segment('5'); ?>">
           
                	<div class="col-12">
                		 
                		<div class="card">
							
							<div class="card-body">
								 <div id='add_inspec_success' class='alert alert-success solid' style='display:none;'></div>
                                  <div id='condition' class='alert alert-danger solid' style='display:none;'></div>

                                 <div class="row">
                            

        
                    <input type="hidden" value="<?php echo date('Y-m-d'); ?>" name="insert_date" id="insert_date" class="form-control required">


                    <input type="hidden" name="user_id" id="user_id" value="<?php echo $this->session->userdata('id');?>">

          			  


                        <div class="col-lg-12">
                            <hr/>
                         <h1> All Heaters Setting C <hr/></h1>
                         </div>


                      <div class="col-lg-2 col-md-6 col-sm-12">

                        <div class="form-group">
                            <label class="form-label">Range 1 Max</label>
                             <input type="text" id="range1_max" name="range1_max" placeholder="Range1 Max" required="required"  class="form-control heater1">
                        </div>
                    </div>
                   <div class="col-lg-2 col-md-6 col-sm-12">
                        <div class="form-group">
                            <label class="form-label">Range 1 Min</label>
                             <input type="text" id="range1_min" name="range1_min" placeholder="Range1 Min" required="required"  class="form-control heater2">
                        </div>
                    </div>


                    <div class="col-lg-2 col-md-6 col-sm-12">
                        <div class="form-group">
                            <label class="form-label">Range 2 Max</label>
                             <input type="text" id="range2_max" name="range2_max" placeholder="Range 2 Max" required="required"  class="form-control rang_3">
                        </div>
                    </div>



                     <div class="col-lg-2 col-md-6 col-sm-12">
                        <div class="form-group">
                            <label class="form-label">Range 2 Min</label>
                             <input type="text" id="range2_min" name="range2_min" placeholder="Range 2 Min" required="required"  class="form-control rang_4">
                        </div>
                    </div>

                          
                    <div class="col-lg-2 col-md-6 col-sm-12">
                        <div class="form-group">
                            <label class="form-label">Range 3 Max</label>
                             <input type="text" id="range3_max" name="range3_max" placeholder="Range 3 Max" required="required"  class="form-control rang_3">
                        </div>
                    </div>



                     <div class="col-lg-2 col-md-6 col-sm-12">
                        <div class="form-group">
                            <label class="form-label">Range 3 Min</label>
                             <input type="text" id="range3_min" name="range3_min" placeholder="Range 3 Min" required="required"  class="form-control rang_4">
                        </div>
                    </div>

                    <div class="col-lg-2 col-md-6 col-sm-12">
                        <div class="form-group">
                            <label class="form-label">Range 4 Max</label>
                             <input type="text" id="range4_max" name="range4_max" placeholder="Range 4 Max" required="required"  class="form-control rang_3">
                        </div>
                    </div>



                     <div class="col-lg-2 col-md-6 col-sm-12">
                        <div class="form-group">
                            <label class="form-label">Range 4 Min</label>
                             <input type="text" id="range4_min" name="range4_min" placeholder="Range 4 Min" required="required"  class="form-control rang_4">
                        </div>
                    </div>

                    <div class="col-lg-2 col-md-6 col-sm-12">
                        <div class="form-group">
                            <label class="form-label">Range 5 Max</label>
                             <input type="text" id="range5_max" name="range5_max" placeholder="Range 5 Max" required="required"  class="form-control rang_3">
                        </div>
                    </div>



                     <div class="col-lg-2 col-md-6 col-sm-12">
                        <div class="form-group">
                            <label class="form-label">Range 5 Min</label>
                             <input type="text" id="range5_min" name="range5_min" placeholder="Range 5 Min" required="required"  class="form-control rang_4">
                        </div>
                    </div>



                      <div class="col-lg-2 col-md-6 col-sm-12">
                         
                        <div class="form-group">
                            <label class="form-label">Injection Pressure Max</label>
                             <input type="text" id="inj_pressure_max" name="inj_pressure_max" placeholder="Injection Pressure Max" required="required"  class="form-control inj_pressure">
                        </div>
                    </div>


                    <div class="col-lg-2 col-md-6 col-sm-12">
                         
                        <div class="form-group">
                            <label class="form-label">Injection Pressure Min</label>
                             <input type="text" id="inj_pressure_min" name="inj_pressure_min" placeholder="Injection Pressure Min" required="required"  class="form-control inj_pressure">
                        </div>
                    </div>

                   <div class="col-lg-2 col-md-6 col-sm-12">
                   
                        <div class="form-group">
                            <label class="form-label">Injection Speed Max</label>
                             <input type="text" id="inj_speed_max" name="inj_speed_max" placeholder="Injection Speed" required="required"  class="form-control inj_speed">
                        </div>
                    </div>

                    <div class="col-lg-2 col-md-6 col-sm-12">
                   
                        <div class="form-group">
                            <label class="form-label">Injection Speed Min</label>
                             <input type="text" id="inj_speed_min" name="inj_speed_min" placeholder="Injection Speed Min" required="required"  class="form-control inj_speed">
                        </div>
                    </div>


                    <div class="col-lg-2 col-md-6 col-sm-12">
                        

                        <div class="form-group">
                            <label class="form-label">DOZ Pressure Max</label>
                             <input type="text" id="doz_pressure_max" name="doz_pressure_max" placeholder="DOZ Pressure Max" required="required"  class="form-control doz_pressure">
                        </div>
                    </div>

                    <div class="col-lg-2 col-md-6 col-sm-12">
                        

                        <div class="form-group">
                            <label class="form-label">DOZ Pressure Min</label>
                             <input type="text" id="doz_pressure_min" name="doz_pressure_min" placeholder="DOZ Pressure Min" required="required"  class="form-control doz_pressure">
                        </div>
                    </div>



                     <div class="col-lg-2 col-md-6 col-sm-12">
                        <div class="form-group">
                            <label class="form-label">Doz Speed Max</label>
                             <input type="text" id="doz_speed_max" name="doz_speed_max" placeholder="Doz Speed Max" required="required"  class="form-control doz_speed">
                        </div>
                    </div>


                    <div class="col-lg-2 col-md-6 col-sm-12">
                        <div class="form-group">
                            <label class="form-label">Doz Speed Min</label>
                             <input type="text" id="doz_speed_min" name="doz_speed_min" placeholder="Doz Speed Min" required="required"  class="form-control doz_speed">
                        </div>
                    </div>

                          
                    <div class="col-lg-2 col-md-6 col-sm-12">
                        <div class="form-group">
                            <label class="form-label">Air Blast Time Max </label>
                             <input type="text" id="blast_time_max" name="blast_time_max" placeholder="Air Blast Time Max" required="required"  class="form-control blast_time">
                        </div>
                    </div>


                    <div class="col-lg-2 col-md-6 col-sm-12">
                        <div class="form-group">
                            <label class="form-label">Air Blast Time Min</label>
                             <input type="text" id="blast_time_min" name="blast_time_min" placeholder="Air Blast Time Min" required="required"  class="form-control blast_time">
                        </div>
                    </div>


                    <div class="col-lg-2 col-md-6 col-sm-12">
                        <div class="form-group">
                            <label class="form-label">Expect Max</label>
                             <input type="text" id="expect_max" name="expect_max" placeholder="Expect Max" required="required"  class="form-control expect">
                        </div>
                    </div>
                    
                    <div class="col-lg-2 col-md-6 col-sm-12">
                        <div class="form-group">
                            <label class="form-label">Expect Min</label>
                             <input type="text" id="expect_min" name="expect_min" placeholder="Expect Min" required="required"  class="form-control expect">
                        </div>
                    </div>

                    

                    <div class="col-lg-6 col-md-6 col-sm-12">
                            <div class="form-group">
                                <label class="form-label">Remarks:</label>
                                <textarea  class="form-control remarks" name="remarks" id="remarks"></textarea>  
                             </div>
                         </div>
                 <div class="col-lg-6 col-md-6 col-sm-12">
                         <div class="form-group">
                            
                            <input type="hidden" name="created" id="created" value="<?php echo date('Y-m-d H:i:s'); ?>" class="form-control required">
                        </div>
                    </div>
 
							</div>	
                            
                            <button type="submit" class="btn btn-primary" id="emp_add" >Add</button>
							</div>
						</div>

                	</div>
                    <?php form_close(); ?>
                   
                    </div>

                    
                </div>
            </div>
        </div>

          
                                    
    <!-- Required vendors -->
         <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
         <style type="text/css" media="print">
  @page { size: landscape; }
</style>
        <style>
        .redborder{
            border:1px solid red;
        }
        </style>

    <script type='text/javascript'>
 

      function delete_data(parameter_id) { 
        var id = parameter_id;
        //var mold = mold;
          var mold_id = $("#mold").val();

           if (confirm('Are you sure you want to Delete.?')) {
         $.ajax({
                type:'POST',
                url:'<?php echo base_url('Requisition/delete_parameter/'); ?>'+id,
                data:id,
                dataType:'json',
                success:function(data){
                    console.log('first'+data.status);
                    
                        console.log('second'+data.status);
                        //debugger;
                        $('#party_danger').show().html('Deleted Successfully');
                      setTimeout(function(){location.href="<?php echo base_url('Requisition/inspection/'); ?>"+mold_id} , 3000);
                    
                },
                error:function(data){console.log(data.responseText);}
            });
          }
        } 

      

  var add_inspec = $('#add_inspec');   
    
    add_inspec.on('submit',function(e){

        e.preventDefault();
        $("#emp_add").attr('disabled', true);
       
         var add_inspecdata = add_inspec.serialize();
      
            if (confirm('Are you sure you want to Add .?')) {
            $.ajax({
             url:'<?php echo base_url('Requisition/add_machine_config_ibm'); ?>',
             type:"post",
             data:new FormData(this),
             processData:false,
             contentType:false,
             cache:false,
             async:false,
             dataType:'json',
             success: function(data){
            
                    if(data.status === 'true'){
                        console.log('second'+data.status);
                        $('#add_inspec_success').show().html('added Successfully').hide(3000);
                     
                      setTimeout(function(){location.href="<?php echo base_url('Requisition/machine_config'); ?>"} , 3000);
                
                      
                    }else if (data.status === 'false'){
                        console.log('third'+data);     

                         $('#condition').show().html('Data Already Exists..!');     
                    }
                }
             });
       }
    });

    </script>   

       <?php  $this->load->view('footer'); ?>
        
</body>

<!-- Mirrored from edumin.dexignlab.com/xhtml/add-departments.html by HTTrack Website Copier/3.x [XR&CO'2014], Tue, 17 Nov 2020 13:56:15 GMT -->
</html>