<?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">Supplier</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="#">Supplier</a>
                  </li>
                  <li class="breadcrumb-item active">Supplier List
                  </li>
                </ol>
              </div>
            </div>
          </div>
        </div>
        <div class="content-body"><!-- Zero configuration table -->
<section id="configuration">
    <div class="row">
        <div class="col-12">
            <div class="card">
                <div class="card-header">
                    <h4 class="card-title">Supplier 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 dataex-html5-export">
                                <thead>
                               
                                    <tr>
                                        <th>Sl No</th>
                                        <th>Vendor Name</th>
										<th>Contact No</th>
										<!--<th>Bank</th>
										<th>Branch</th>
										<th>Benificiary</th>
										<th>Acc No</th>
										<th>IFSC</th>-->
										<th>Action</th>
									</tr>
                                </thead>
                                <tbody>
								 <?php
									$count =1;
									foreach($supplier as $record)
									{
								?>
                                    <tr>
                                        <td><?php echo $count;?></td>
                                        <td><a class="grid-form-dialog-btn  primary " href="#medlist" onclick="javascript:load_marks('<?php echo $record->company_name ?>')" ><?php echo $record->company_name ?></a></td>
										<td><?php echo $record->contact_no ?></td>
									<!--	<td><?php echo $record->bank_name ?></td>
										<td><?php echo $record->bank_branch ?></td>
										<td><?php echo $record->benificiary_name ?></td>
										<td><?php echo $record->bank_acc_no ?></td>
										<td><?php echo $record->ifsc_code ?></td>-->
										<td>
											<a href="<?php echo site_url('Master/supplierEdit/'. $submod_id . '/' . $record->vender_id . '/'. $record->vender_ref_no); ?>" class="btn btn-sm btn-info">Edit</a>
											<a href="<?php echo site_url('Master/supplierDelete/'. $submod_id . '/' . $record->vender_id); ?>" class="btn btn-sm btn-info" onClick="return confirm('Are you sure want to delete?');" >Delete</a>
										</td>
									</tr>
                                    
                                   <?php
								  $count++;
								}
							  
							?>
                                </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>
	$('.param_check').each(function() { $(this).on( {'click contextmenu': function() {
		//contextmenu
		var i = $(this).data('value');
		var anchor = $("a");
		var anchorTarget = $(this).parent().find('.parmetre').val();
		var submodid = $(this).parent().find('.submod_id').val();
		var link = $(this).attr('href');
		$(this).attr("href", link + submodid +'/'+anchorTarget);

		location.reload();
	}
	})
	})
</script>  
<script>
function load_marks(company_name)
{
  $.ajax({
      type: "POST",
      url: "<?php echo site_url('Master/getSupplierList');?>",
      data: "company_name="+company_name,
      success: function (response) {
        // alert(response);
        $(".grid-form-dialog").html(response);
        }
     });
	  
  }
</script>
<div class="grid-form-dialog" id="" >
<?php 
$f_file=APPPATH.'views/master/ItemVendor_view.php';
	//require($header_file);
include($f_file); ?>
</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>