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");?>
<div id="content" class="span10">
<ul class="breadcrumb">
<li>
<i class="icon-home"></i>
<a href="dashboard.php">Home</a>
<i class="icon-angle-right"></i>
</li>
<li><a href="#">Laboratories</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">Manage Laboratories</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>Heading</th>
<th>Department</th>
<th>Content</th>
<th>Image / PDF</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<?php $sql = mysql_query("SELECT * FROM `laboratories` ORDER BY id DESC");
$i=1;
while($row = mysql_fetch_array($sql)){?>
<tr>
<td><?php echo $i;?></td>
<td><?php echo $row['heading'];?></td>
<td><?php echo ucfirst($row['department']); ?></td>
<td><?php echo ucfirst($row['content']); ?></td>
<td class="center"><?php if($row['image']!=""){
$ext = pathinfo($row['image'], PATHINFO_EXTENSION);
if($ext=='pdf'){?>
<img src="pdf.png" width="40">
<?php }else{?>
<img src="../uploadedImage/laboratories/<?php echo $row['image'];?>" width="100" height="150">
<?php } ?>
<?php }else{?><img src="../img/imagenot.jpg" width="100" height="150"/><?php } ?></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="edit_laboratories.php?id=<?php echo $row['id'];?>">
<i class="halflings-icon white edit"></i>
</a>
<a class="btn btn-danger" onclick="return confirm('Are you sure you want to delete this?');" href="delete_laboratories.php?id=<?php echo $row['id'];?>">
<i class="halflings-icon white trash"></i>
</a>
</td>
</tr>
<?php $i++;} ?>
</tbody>
</table>
</div>
</div><!--/span-->
</div>
</div><!--/.fluid-container-->
<!-- end: Content -->
</div><!--/#content.span10-->
</div><!--/fluid-row-->
<div class="clearfix"></div>
<?php include("footer.php"); ?>
Copyright © 1945 -