<?php include("includes/css.php")?>

<body class="hold-transition skin-blue sidebar-mini">
	<div class="wrapper">
		<?php include("includes/header.php")?>
		<?php include("includes/sidebar.php")?>
		<!-- Content Wrapper. Contains page content -->
		<div class="content-wrapper">
			<!-- Content Header (Page header) -->
			<!-- Main content -->
			<section class="content">
				<div class="row">
					<div class="col-md-12">
						<div class="box box-primary">
							<div class="box-header with-border">
								<div class="col-md-12">
									<h3 class="box-title">Enquiry Details :</h3>
								</div>
							</div>

							<!-- /.box-header -->
							<div class="box-body">  
								<div class="table-responsive mt-20">
									<table class="table table-bordered table-striped example3">
										<thead>
											<tr>
												<th>S. No</th>
												<th>Blog title</th> 
												<th>Name</th> 
												<th>Email Id</th>
												<th>Comment</th>
												<th>Created Date</th> 
											</tr>
										</thead>
										<tbody> 
												<?php
										    $sql2=mysqli_query($conn,"SELECT a.*,p.blog_title from blog_enquiry a join blog p on a.blog_id=p.id");
											$j=1;
											while($res=mysqli_fetch_array($sql2)){ ?>
											<tr>
												<td><?php echo $j; $j++; ?></td>
											<td><?php echo $res['blog_title']; ?></td> 
											<td><?php echo $res['name']; ?></td> 
											<td><?php echo $res['email_id']; ?></td> 
											<td><?php echo $res['message']; ?></td> 
											<td><?php echo $res['created_date']; ?></td> 
												</tr>  
										<?php } ?>
										</tbody>
									</table>
								</div>
								<!-- /.box-body -->
							</div>
						</div>
					</div>
				</div>
			</section>
		</div>
		<?php include("includes/footer.php")?>
	</div>
	<?php include("includes/js.php")?>
</body>
<script type="text/javascript">
	function delete_con_ID(id)
{
	if (confirm('Do You Want to Deleting This \nContinue anyway?')) {
		window.location.href = 'delete_contacteq.php?id=' + id;
	}
}
</script>
</html>