Mini Shell
<?php include'header.php'; ?>
<?php include'menu.php'; ?>
</div><!-- /#left -->
<div id="content">
<div class="outer">
<div class="inner bg-light lter">
<!--Begin Datatables-->
<div class="row">
<div class="col-lg-12">
<div class="box">
<header>
<div class="icons">
<i class="fa fa-table"></i>
</div>
<h5>ALL GALLERY</h5>
</header>
<div id="collapse4" class="body">
<table id="dataTable" class="table table-bordered table-condensed table-hover table-striped">
<thead>
<tr>
<th>Type</th>
<th>No.of Pic</th>
</tr>
</thead>
<tbody>
<script>
function funproduc(e)
{
if(e)
var cn=e;
window.location.href = "gallery_view.php?pp1="+ cn;
}
</script>
<tr>
<td id="wedd" onClick="funproduc(this.id);">WEDDING</td>
<?php
$noofpic=0;
$cli12=mysql_query("select * from gallery where type='wedd' order by id desc");
while($cli1fetch1=mysql_fetch_row($cli12))
{
if($cli1fetch1[1])
{
$noofpic=$noofpic+1;
}
}
?>
<td> <?php echo $noofpic; ?> Pics</td>
</tr>
<tr>
<td id="corp" onClick="funproduc(this.id);">CORPOTATE EVENTS</td>
<?php
$noofpic=0;
$cli12=mysql_query("select * from gallery where type='corp' order by id desc");
while($cli1fetch1=mysql_fetch_row($cli12))
{
if($cli1fetch1[1])
{
$noofpic=$noofpic+1;
}
}
?>
<td> <?php echo $noofpic; ?> Pics</td>
</tr>
<tr>
<td id="poli" onClick="funproduc(this.id);">POLITICAL EVENTS</td>
<?php
$noofpic=0;
$cli12=mysql_query("select * from gallery where type='poli' order by id desc");
while($cli1fetch1=mysql_fetch_row($cli12))
{
if($cli1fetch1[1])
{
$noofpic=$noofpic+1;
}
}
?>
<td> <?php echo $noofpic; ?> Pics</td>
</tr>
<tr>
<td id="othr" onClick="funproduc(this.id);">OTHERS</td>
<?php
$noofpic=0;
$cli12=mysql_query("select * from gallery where type='othr' order by id desc");
while($cli1fetch1=mysql_fetch_row($cli12))
{
if($cli1fetch1[1])
{
$noofpic=$noofpic+1;
}
}
?>
<td> <?php echo $noofpic; ?> Pics</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div><!-- /.row -->
<!--End Datatables-->
</div><!-- /.inner -->
</div><!-- /.outer -->
</div><!-- /#content -->
</div><!-- /#wrap -->
<?php include'footer.php'; ?>
Zerion Mini Shell 1.0