GOOGLE
<?php include("header.php");?>
<!-- start: Header -->
<div class="navbar">
<div class="navbar-inner">
<?php include("top_header.php");?>
</div>
</div>
<!-- start: Header -->
<div class="">
<div class="row-fluid">
<!-- start: Main Menu -->
<?php include("sidebar.php");?>
<!-- end: Main Menu -->
<noscript>
<div class="alert alert-block span10">
<h4 class="alert-heading">Warning!</h4>
<p>You need to have <a href="" target="_blank">JavaScript</a> enabled to use this site.</p>
</div>
</noscript>
<!-- start: Content -->
<div id="content" class="span10">
<ul class="breadcrumb">
<li>
<i class="icon-home"></i>
<a href="index.html">Home</a>
<i class="icon-angle-right"></i>
</li>
<li><a href="#">Tables</a></li>
</ul>
<div class="row-fluid sortable">
<div class="box span12">
<div class="box-header" data-original-title>
<h2><i class="halflings-icon user"></i><span class="break"></span></h2>
<div class="box-icon">
<a href="#" class="btn-setting"><i class="halflings-icon wrench"></i></a>
<a href="#" class="btn-minimize"><i class="halflings-icon chevron-up"></i></a>
<a href="#" class="btn-close"><i class="halflings-icon remove"></i></a>
</div>
</div>
<div class="box-content">
<table class="table table-striped table-bordered bootstrap-datatable datatable">
<thead>
<tr>
<th>Sr.No.</th>
<th>Category</th>
<th>Sub Category</th>
<th>Registerd Date</th>
<th>Status</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<?php
//$sql = mysql_query("SELECT e.name, e.last_name,e.email, u.date_time,e.status FROM `customer` AS e RIGHT JOIN `listing` AS u ON u.cust_id = e.id");
$sql_count = mysql_query("select distinct `sub_category_name` from `listing` order by id desc");
$i=1;
while($row = mysql_fetch_array($sql_count)){
$count = mysql_num_rows($sql_count);
?>
<tr>
<td><?php echo $i;?></td>
<td class="center">
<?php $SUBCATE = mysql_query("select `id`,`cate_id`,`sub_cate_name` from `sub_category` where `id`='".$row['sub_category_name']."'");?>
<?php $SELCSUB = mysql_fetch_array($SUBCATE);?>
<?php $SUBCOUT = mysql_num_rows($SUBCATE );?>
<?php $CATEGORY = mysql_query("select distinct `category_name` from `category` where `id`='".$SELCSUB['cate_id']."'");?>
<?php $CATESEL = mysql_fetch_array($CATEGORY);?>
<?php echo $CATESEL['category_name'];?></td>
<td class="center"><a href="view_listing.php?id=<?php echo $row['sub_category_name'];?>">
<?php echo $SELCSUB['sub_cate_name'];?> (<?php echo $SUBCOUT;?>)</a></td>
<!-- <td class="center"><a href="view_listing.php?id=<?php echo $row['id'];?>" style="color:#CC3300;">View Listing (<?php echo $count;?>)</a></td> -->
<td class="center"><?php echo $row['date_time'];?></td>
<td class="center">
<a href="listing_status.php?id=<?php echo $row['id'];?>&&status=<?php echo $row['status'];?>">
<?php if($row['status']==1){?><span class="label label-success">Active</span>
<?php }else{ ?><span class="label label-warning ">Deactive</span><?php } ?></a>
</td>
<td class="center">
<a class="btn btn-success" href="#">
<i class="halflings-icon white zoom-in"></i>
</a>
<!--<a class="btn btn-info" href="listing_edit.php?id=<?php echo $row['id'];?>">
<i class="halflings-icon white edit"></i>
</a>-->
<a class="btn btn-danger" href="listing_delete.php?id=<?php echo $row['id'];?>" data-confirm="Are you sure to delete this item?">
<i class="halflings-icon white trash"></i>
</a>
</td>
</tr>
<?php $i++;} ?>
</tbody>
</table>
</div>
</div><!--/span-->
</div><!--/row-->
<!--/row-->
<!--/row-->
<!--/row-->
</div><!--/.fluid-container-->
<!-- end: Content -->
</div><!--/#content.span10-->
</div><!--/fluid-row-->
<div class="modal hide fade" id="myModal">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h3>Settings</h3>
</div>
<div class="modal-body">
<p>Here settings can be configured...</p>
</div>
<div class="modal-footer">
<a href="#" class="btn" data-dismiss="modal">Close</a>
<a href="#" class="btn btn-primary">Save changes</a>
</div>
</div>
<div class="clearfix"></div>
<footer>
<p>
<span style="text-align:left;float:left">© 2013 <a href="http://jiji262.github.io/Bootstrap_Metro_Dashboard/" alt="Bootstrap_Metro_Dashboard">Bootstrap Metro Dashboard</a></span>
</p>
</footer>
<!-- start: JavaScript-->
<script src="js/jquery-1.9.1.min.js"></script>
<script src="js/jquery-migrate-1.0.0.min.js"></script>
<script src="js/jquery-ui-1.10.0.custom.min.js"></script>
<script src="js/jquery.ui.touch-punch.js"></script>
<script src="js/modernizr.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.cookie.js"></script>
<script src='js/fullcalendar.min.js'></script>
<script src='js/jquery.dataTables.min.js'></script>
<script src="js/excanvas.js"></script>
<script src="js/jquery.flot.js"></script>
<script src="js/jquery.flot.pie.js"></script>
<script src="js/jquery.flot.stack.js"></script>
<script src="js/jquery.flot.resize.min.js"></script>
<script src="js/jquery.chosen.min.js"></script>
<script src="js/jquery.uniform.min.js"></script>
<script src="js/jquery.cleditor.min.js"></script>
<script src="js/jquery.noty.js"></script>
<script src="js/jquery.elfinder.min.js"></script>
<script src="js/jquery.raty.min.js"></script>
<script src="js/jquery.iphone.toggle.js"></script>
<script src="js/jquery.uploadify-3.1.min.js"></script>
<script src="js/jquery.gritter.min.js"></script>
<script src="js/jquery.imagesloaded.js"></script>
<script src="js/jquery.masonry.min.js"></script>
<script src="js/jquery.knob.modified.js"></script>
<script src="js/jquery.sparkline.min.js"></script>
<script src="js/counter.js"></script>
<script src="js/retina.js"></script>
<script src="js/custom.js"></script>
<!-- end: JavaScript-->
</body>
</html>
Copyright © 1945 -