<?php
ob_start();
include('configure.php');
DB::connect();
require_once("check.php");
$select_client="SELECT * FROM enquiry where dealer_id = '".$_SESSION['id']."' order by id desc limit 20";
$sql2=$dbconn->prepare($select_client);
$sql2->execute();
$wlvd=$sql2->fetchAll(PDO::FETCH_OBJ);
?>
<!DOCTYPE html>
<html lang="en" dir="ltr">
<?php include('inc/header.php'); ?>
<body>
<?php include('inc/preloader.php'); ?>
<!-- ============================================================== -->
<!-- Main wrapper - style you can find in pages.scss -->
<!-- ============================================================== -->
<div id="main-wrapper">
<!-- ============================================================== -->
<!-- Topbar header - style you can find in pages.scss -->
<!-- ============================================================== -->
<?php include('inc/top_menu.php'); ?>
<!-- ============================================================== -->
<!-- End Topbar header -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- Left Sidebar - style you can find in sidebar.scss -->
<!-- ============================================================== -->
<?php include('inc/main_menu.php'); ?>
<!-- ============================================================== -->
<!-- End Left Sidebar - style you can find in sidebar.scss -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- Page wrapper -->
<!-- ============================================================== -->
<div class="page-wrapper">
<!-- ============================================================== -->
<!-- Bread crumb and right sidebar toggle -->
<!-- ============================================================== -->
<div class="page-breadcrumb">
<div class="row">
<div class="col-5 align-self-center">
<h4 class="page-title">My Enquiries</h4>
<div class="d-flex align-items-center">
</div>
</div>
</div>
</div>
<!-- ============================================================== -->
<!-- End Bread crumb and right sidebar toggle -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- Container fluid -->
<!-- ============================================================== -->
<div class="container-fluid">
<!-- ============================================================== -->
<!-- Info box -->
<!-- ============================================================== -->
<!-- basic table -->
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
<h4 class="card-title"></h4>
<div class="table-responsive">
<table id="zero_config" class="table table-striped table-bordered">
<div class="panel-body">
<table class="table table-hover" id="sample-table-1">
<thead>
<tr>
<th class="center">Customer Name</th>
<th class="center">Customer Mobile</th>
<th class="center">Product</th>
<th class="center">Requirement</th>
<th class="center">Remarks</th>
</tr>
<?php
//while($rows = mysql_fetch_array($aResult,MYSQL_ASSOC))
//{
if($sql2->rowCount() > 0){
foreach($wlvd as $rows){
$cus_name = $rows->cus_name;
$cus_mobile = $rows->cus_mobile;
$cus_requirement = $rows->cus_requirement;
$cus_product = $rows->cus_product;
$link1 = $rows->link;
?>
</thead>
<tbody>
<tr>
<td class="center"><?php echo $cus_name;?></td>
<td class="center"><?php echo $cus_mobile;?></td>
<td class="center"><?php echo $cus_product;?></td>
<td class="center"><?php echo $cus_requirement;?></td>
<td class="center"><a href="#"target="_self">Remarks</a> </td>
</tr>
<?php } } ?>
</tbody>
</table>
</div>
</table>
</div>
</div>
</div>
</div>
</div>
<!-- order table -->
</div>
<!-- ============================================================== -->
<!-- End Container fluid -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<?php include('inc/footer.php'); ?>