<?php 
	$header_file=APPPATH.'views/include/header.php';
	require($header_file);
	
	?>

    <!-- BEGIN: Content-->
    <div class="app-content content">
      <div class="content-overlay"></div>
      <div class="content-wrapper">
        <div class="content-header row">
          <div class="content-header-left col-md-12 col-12 mb-2 breadcrumb-new">
            <h3 class="content-header-title mb-0 d-inline-block">Requset Closed list</h3>
            <div class="row breadcrumbs-top d-inline-block">
              <div class="breadcrumb-wrapper col-12">
                <ol class="breadcrumb">
                  <li class="breadcrumb-item"><a href="#">Home</a>
                  </li>
                  <li class="breadcrumb-item"><a href="#">Product Request</a>
                  </li>
                  <li class="breadcrumb-item active">Requset Cosed list
                  </li>
                </ol>
              </div>
            </div>
          </div>
        
        </div>
        <div class="content-body"><!-- Zero configuration table -->
    <section id="configuration">
    <div class="row">
        <div class="col-md-12">
            <div class="card">
                <!--<div class="card-header">
                    <h4 class="card-title">Requset Cosed list</h4>
                    <a class="heading-elements-toggle"><i class="la la-ellipsis-v font-medium-3"></i></a>
                    <div class="heading-elements">
                        <ul class="list-inline mb-0">
                            <li><a data-action="collapse"><i class="ft-minus"></i></a></li>
                            <li><a data-action="reload"><i class="ft-rotate-cw"></i></a></li>
                            <li><a data-action="expand"><i class="ft-maximize"></i></a></li>
                            <li><a data-action="close"><i class="ft-x"></i></a></li>
                        </ul>
                    </div>
                </div>-->
                <div class="card-content collapse show">
                    <div class="card-body card-dashboard">
                        <div class="table-responsive">
						    <table class="table table-striped table-bordered ">
                                <thead>
                                    <tr>
                                        <th>REQ  No</th>
										<th>REQ Date</th>
										<th>Store Name</th>
									</tr>
                                </thead>
                                <tbody>
								 <?php 
								 if(!empty($prd_rec)) {
								 foreach($prd_rec as $rclist) ?>
                                    <tr>
										<td><?php echo $rclist->pr_req_no; ?></td>
										<td><?php echo $rclist->request_date; ?></td>
										<td><?php echo $rclist->dept; ?></td>
									</tr>
								<?php } ?>
                                </tbody>   
                            </table>
						</div>
						
						<div class="table-responsive">
						    <table class="table table-striped table-bordered">
                                <thead>
                                    <tr>
                                        <th>Issues No</th>
										<th>Issues Date</th>
										<th>INW No</th>
										<th>INW Date</th>
										<th>View</th>
									</tr>
                                </thead>
                                <tbody>
								 <?php
									$count =1;
									if(!empty($prd_rec)) {
									foreach($prd_rec as $prclist)
									{
								?>
                                    <tr>
									<td><?php echo $prclist->issue_no; ?></td>
									<td><?php echo $prclist->issue_date; ?></td>
									<td><?php echo $prclist->req_rec_no; ?></td>
									<td><?php echo $prclist->receipt_date; ?></td>
									<td class="uk-text-nowrap">
                                        <a class="grid-form-dialog-btn btn btn-primary btn-sm" href="#medlist"  onclick="javascript:load_marks(<?php echo $prclist->req_rec_id; ?>)" >View</a> 
                                     </td>
								</tr>
                                    
                                   <?php
								  $count++;
								}
									}
							?>
							</tbody>   
                            </table>
						</div>
					
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
<!--/ Zero configuration table -->



<!--/ Language - Comma decimal place table -->

        </div>
      </div>
    </div>
    <!-- END: Content-->

   <?php //require('include/theme_customizer.php');?>
 <?php 
  $footer_file=APPPATH.'views/include/footer.php';
	require($footer_file);
	?>
	
<script>
function load_marks(rc_id)
{
  $.ajax({
      type: "POST",
      url: "<?php echo site_url('ProductRequest/req_single_recipt');?>",
      data: "rc_id="+rc_id,
      success: function (response) {
        // alert(response);
        $(".grid-form-dialog").html(response);
        }
     });
  }
</script>
<div class="grid-form-dialog" id="" title="View List">
<?php include('rc_single_view.php'); ?>
</div>
  </body>
  <!-- END: Body-->

<!-- Mirrored from pixinvent.com/modern-admin-clean-bootstrap-4-dashboard-html-template/html/ltr/vertical-modern-menu-template/form-layout-basic.html by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Apr 2020 09:38:02 GMT -->
</html>