<!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>Production Plan</h4>

                        </div>
                    </div>


                    
                </div>


				
				<div class="row">

                               


                    <div class="col-12">

                        <div class="card">
                           
                            
                            <div class="card-body">
                               <div class="table-responsive">
                                    <table id="example5" class="display" style="min-width: 845px; font-size: 12px;" >
                                        <thead>
                                            <tr>
                                                 <th>SO #</th>
                                                 <th>Job #</th>
                                                 <th>Code</th>
                                                 <th>Items</th>
                                                 <th>Qty</th>
                                                 <th>Mould</th>
                                                 <th>Machine</th> 
                                                 <th>Action</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <?php 

                                            if(!empty($mould_depar))
                                            {

                                             
                                            foreach ($mould_depar as $value) {
                                                 
                                            ?>
                                            <tr>
                                              <td><strong><?php echo so_number_dc($value['so_id']); ?></strong></td>
                                              <td><strong><?php echo $value['job']; ?></strong></td>
                                                <td><strong><?php echo product_code($value['main_product']); ?></strong></td>
                                                <td><strong><?php echo product_name($value['main_product']); ?></strong></td>
                                                
                                                <td><?php echo $value['p_qty']; ?></td>
                                                <td><?php echo mold_code($value['mold']); ?></td>
                                                <td><?php $machine_id = production_machine_id($value['id']); 

                                                echo machine_name($machine_id);
                                                ?></td>
                                                
                                                <td>  <a href="<?php echo base_url('Requisition/compound_production_form/'.$value['id']); ?>"   class="badge badge-warning" >Action</a></td>

                                              

                                            </tr>
                                            <?php } }  ?>
                                        </tbody>
                                    </table>
                                </div>


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





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


        <!--   <div class="modal fade bd-example-modal-lg1" tabindex="-1" role="dialog" aria-hidden="true">
                                        <div class="modal-dialog modal-lg">
                                            <div class="modal-content">
                                                
                                                <div class="modal-body">
                                              
                                                <div class="col-xl-10 col-xxl-10 col-sm-10">
                                                    <div class="card">
                                                        <div class="card-header">
                                                      <h5 class="card-title">Production Mould Details</h5>
                                                        </div>
                                                       
                                                       <div class="card-body" id="emp_details">
                                                  
                                                        </div>
                                                    </div>
                                                </div>



                                                </div>
                                               
                                        </div>
                                    </div>
            
                                  </div> -->
                                    
	<!-- 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'>

    </script>   

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

<script type="text/javascript">
    
   



  /*function view_emp(id) { 
      var id =  id;
      //alert(id);

      $.ajax({
                type:'POST',
                url:'<?php //echo base_url('Requisition/compound_production_form'); ?>',
                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);
                   
                },
                error:function(data){console.log(data.responseText);}
            });
       
        } */

</script>

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