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

</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">
                    <div class="col-sm-6 p-md-0">
                        <div class="welcome-text">
                            <h4>Assembled Line Clerence</h4>
                        </div>
                    </div>
                    <div class="col-sm-6 p-md-0 justify-content-sm-end mt-2 mt-sm-0 d-flex">
                        <ol class="breadcrumb">
                            <li class="breadcrumb-item"><a href="index.html">Home</a></li>
                            <li class="breadcrumb-item active"><a href="javascript:void(0);">Assembled Line</a></li>
                        </ol>
                    </div>
                </div>
				
				<div class="row">


                                 
                <?php echo form_open_multipart(base_url(''),array('class'=>"form-horizontal add_clear", 'id'=>"add_clear")); ?>
        

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

           <div class="col-xl-12 col-xxl-12 col-sm-12">
              <div class="card">
                  
                  <div class="card-body">
                      <div id='product_success' class='alert alert-success solid' style='display:none;'></div>
                          <div class="row">
                              <input type="hidden" name="batch" value="<?php echo $this->uri->segment('3'); ?>">
                              <input type="hidden" name="pro" value="<?php echo $this->uri->segment('4'); ?>">
                                      <input type="hidden" name="insert_date" id="insert_date" value="<?php echo date('Y-m-d'); ?>" class="form-control required">
                                  

                              
                              <div class="col-lg-6 col-md-6 col-sm-12">
                                  <div class="form-group">
                                      <label class="form-label">کیا پہرانے ائئٹم کے خام مال کو ہٹا دیا گیا ھے</label>
                                      <select name="clear1" id="clear1"  required="required"  class="form-control" tabindex="-98">
                                          <option value="">Select Option</option>
                                          <option value="1">Yes</option>
                                          <option value="0">No</option>
                                          </select>
                                  </div>
                              </div>

                              <div class="col-lg-6 col-md-6 col-sm-12">
                                  <div class="form-group">
                                      <label class="form-label">کیا پرانے آئیٹم کی دستاویزات ہٹادی گئی ہیں</label>
                              <select name="clear2" id="clear2"  required="required"  class="form-control" tabindex="-98">
                                          <option value="">Select Option</option>
                                          <option value="1">Yes</option>
                                          <option value="0">No</option>
                                          </select>
                                  </div>
                              </div>

                          
                              <div class="col-lg-6 col-md-6 col-sm-12" id="name_div">
                                  <div class="form-group">
                                      <label class="form-label">کیا پرانے آئیٹم کی ڈرائنگ ہٹادی ہیں</label>
                                          <select name="clear3" id="clear3"  required="required"  class="form-control" tabindex="-98">
                                          <option value="">Select Option</option>
                                          <option value="1">Yes</option>
                                          <option value="0">No</option>
                                          </select>
                                  </div>
                              </div>
                              <div class="col-lg-6 col-md-6 col-sm-12" id="weight_div">
                                  <div class="form-group">
                                      <label class="form-label">کیا پرانا تیارا ئیٹم ہٹادیا گیا ہے۔</label>
                                        <select name="clear4" id="clear4"  required="required"  class="form-control" tabindex="-98">
                                          <option value="">Select Option</option>
                                          <option value="1">Yes</option>
                                          <option value="0">No</option>
                                          </select>
                                  </div>
                              </div>

                              <div class="col-lg-6 col-md-6 col-sm-12" id="apperence_div">
                                  <div class="form-group">
                                      <label class="form-label">کیا پرانے آئیٹم کی ریجیکشن کو بتادیا ہے</label>
                                          <select name="clear5" id="clear5"  required="required"  class="form-control" tabindex="-98">
                                          <option value="">Select Option</option>
                                          <option value="1">Yes</option>
                                          <option value="0">No</option>
                                          </select>
                                  </div>
                              </div>

                              <div class="col-lg-6 col-md-6 col-sm-12" id="engrave_div">
                                  <div class="form-group">
                                      <label class="form-label">کیا پرانے تیار آئیٹم کی ٹیکنک کو ہٹادیا ہے</label>
                                          <select name="clear6" id="clear6"  required="required"  class="form-control" tabindex="-98">
                                          <option value="">Select Option</option>
                                          <option value="1">Yes</option>
                                          <option value="0">No</option>
                                          </select>
                                  </div>
                              </div>
                              

                              <div class="col-lg-6 col-md-6 col-sm-12" id="color_code_div">
                                  <div class="form-group">
                                      <label class="form-label">کیا  کوارنٹائن ایریا کو خالی کر دیا ہے</label>
                                          <select name="clear7" id="clear7"  required="required"  class="form-control" tabindex="-98">
                                          <option value="">Select Option</option>
                                          <option value="1">Yes</option>
                                          <option value="0">No</option>
                                          </select>
                                  </div>
                              </div>
                              
                              <div class="col-lg-6 col-md-6 col-sm-12" id="color_ratio_div">
                                  <div class="form-group">
                                      <label class="form-label">کیا نئے آئیٹم کی ڈرائنگ مل گئی ہے</label>
                                          <select name="clear8" id="clear8"  required="required"  class="form-control" tabindex="-98">
                                          <option value="">Select Option</option>
                                          <option value="1">Yes</option>
                                          <option value="0">No</option>
                                          </select>
                                  </div>
                              </div>


                              <div class="col-lg-6 col-md-6 col-sm-12" id="rollsize_div">
                                  <div class="form-group">
                                      <label class="form-label">کیا مولڑ مشین پر لگ گیا ہے</label>
                                          <select name="clear9" id="clear9"  required="required"  class="form-control" tabindex="-98">
                                          <option value="">Select Option</option>
                                          <option value="1">Yes</option>
                                          <option value="0">No</option>
                                          </select>
                                  </div>
                              </div>


                              <div class="col-lg-6 col-md-6 col-sm-12" id="printing_div">
                                  <div class="form-group">
                                      <label class="form-label">کیا نئے آئیٹم کی ٹیکنک مل گئی ہے</label>
                                          <select name="clear10" id="clear10"  required="required"  class="form-control" tabindex="-98">
                                          <option value="">Select Option</option>
                                          <option value="1">Yes</option>
                                          <option value="0">No</option>
                                          </select>
                                  </div>
                              </div>


                             

                               <div class="col-lg-6 col-md-6 col-sm-12" id="salophine_size_div">
                                  <div class="form-group">
                                      <label class="form-label">کیانئے آئیٹم کا خال مال مل گیا ہے</label>
                                          <select name="clear11" id="clear11"  required="required"  class="form-control" tabindex="-98">
                                          <option value="">Select Option</option>
                                          <option value="1">Yes</option>
                                          <option value="0">No</option>
                                          </select>
                                  </div>
                              </div>

                               <div class="col-lg-6 col-md-6 col-sm-12" id="salophine_qty_div">
                                  <div class="form-group">
                                      <label class="form-label">کیا خالی تھیلیاں مل گئ ہیں</label>
                                          <select name="clear12" id="clear12"  required="required"  class="form-control" tabindex="-98">
                                          <option value="">Select Option</option>
                                          <option value="1">Yes</option>
                                          <option value="0">No</option>
                                          </select>
                                  </div>
                              </div>


                              <div class="col-lg-6 col-md-6 col-sm-12" id="carton_div">
                                  <div class="form-group">
                                      <label class="form-label">کیا مشین کےاطراف  صاف ہے</label>
                                          <select name="clear13" id="clear13"  required="required"  class="form-control" tabindex="-98">
                                          <option value="">Select Option</option>
                                          <option value="1">Yes</option>
                                          <option value="0">No</option>
                                          </select>
                                  </div>
                              </div>
                              
                             
                               <div class="col-lg-6 col-md-6 col-sm-12" id="carton_div">
                                  <div class="form-group">
                                      <label class="form-label">Remarks</label>
                                         <textarea name="remarks" id="remarks"> </textarea>
                                  </div>
                              </div>
                         
                     
                      <input type="hidden" value="<?php echo date('Y-m-d H:i:s'); ?>" name="created" id="created" class="form-control required">
                  

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

         
                              
                          </div>
                      <div class="modal-footer">
                  
                  <button type="submit" id="dis_submit" class="btn btn-primary">Submit <i class="icon-arrow-right14 position-right"></i></button>
              </div>  
                  </div>
              </div>
          </div>
           
     
 
                      <?php form_close();?>
             





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


        
        <!--**********************************
            Content body end
        ***********************************-->


        <!--**********************************
            Footer start
        ***********************************-->
      
        <!--**********************************
            Footer end
        ***********************************-->

		<!--**********************************
           Support ticket button start
        ***********************************-->

        <!--**********************************
           Support ticket button end
        ***********************************-->


    </div>
    <!--**********************************
        Main wrapper end
    ***********************************-->

    <!--**********************************
        Scripts
    ***********************************-->
	<!-- Required vendors -->

    
   

     <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>


        <style>
        .redborder{
            border:1px solid red;
        }
        </style>

    <script type='text/javascript'>

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

        e.preventDefault();
        
        var partydata = party.serialize();
        
      
            $.ajax({
                type:'POST',
                url:'<?php echo base_url('Stock/lineclerence_assembled_line'); ?>',
                data:partydata,
                dataType:'json',
                success:function(data){
                    console.log('first'+data.status);
                    if(data.status === 'true'){
                        console.log('second'+data.status);
                        $('#party_success').show().html('Added Successfully').hide(3000);
                       setTimeout(function(){location.href="<?php echo base_url('Stock/assign_assemble_line_area'); ?>"} , 3000);
                    }else{
                        console.log('third'+data);          
                    }
                },
                error:function(data){console.log(data.responseText);}
            });
       // }
    });

  /*  function delete_data(id) { 
        var id = id;
        
         $.ajax({
                type:'POST',
                url:'<?php //echo base_url('Admin/delete_party/'); ?>'+id,
                data:id,
                dataType:'json',
                success:function(data){
                    console.log('first'+data.status);
                    
                        console.log('second'+data.status);
                        //debugger;
                        $('#party_danger').show().html('Party Deleted Successfully');
                       setTimeout(function(){location.href="<?php echo base_url('Admin/company'); ?>"} , 3000);
                    
                },
                error:function(data){console.log(data.responseText);}
            });
        } 
*/




         function view_emp111(id) { 
      var id =  id;
      //alert(id);

      $.ajax({
                type:'POST',
                url:'<?php echo base_url('Requisition/update_printing'); ?>',
                data:{id:id},
                dataType:'json',
                success:function(data){
                    //console.log('first'+data.status);
                    //if(data.status === 'true'){
                     $('#emp_details').show().html(data.html);
                       //$('#bom_details').show(data);
                   /* }else{
                        //console.log('third'+data);          
                    }*/
                },
                error:function(data){console.log(data.responseText);}
            });
       
        } 


        function btnExport_monthly()
{
    
    var tab_text="<table border='2px'><tr bgcolor='#ebebeb'>";
    var textRange; var j=0;
    tab = document.getElementById('example5'); // id of table

    for(j = 0 ; j < tab.rows.length ; j++) 
    {     
        tab_text=tab_text+tab.rows[j].innerHTML+"</tr>";
        //tab_text=tab_text+"</tr>";
    }

    tab_text=tab_text+"</table>";
    tab_text= tab_text.replace(/<A[^>]*>|<\/A>/g, "");//remove if u want links in your table
    tab_text= tab_text.replace(/<img[^>]*>/gi,""); // remove if u want images in your table
    tab_text= tab_text.replace(/<input[^>]*>|<\/input>/gi, ""); // reomves input params


    var ua = window.navigator.userAgent;
    var msie = ua.indexOf("MSIE "); 

    if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./))      // If Internet Explorer
    {
        txtArea2.document.open("txt/html","replace");
        txtArea2.document.write(tab_text);
        txtArea2.document.close();
        txtArea2.focus(); 
        sa=txtArea2.document.execCommand("SaveAs",true,"Generation_School_Report");
    }  
    else                 //other browser not tested on IE 11
        sa = window.open('data:application/vnd.ms-excel,' + encodeURIComponent(tab_text));  

    return (sa);
}

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