<?php
include("../../header.php");
?>
<!-- page content -->
<div class="right_col" role="main">
<div class="">
<div class="page-title">
<div class="">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel">
<div class="x_title">
<h2>View Book Publications</h2>
<!--<ul class="nav navbar-right panel_toolbox">
<li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a>
<ul class="dropdown-menu" role="menu">
<li><a href="#">Settings 1</a>
</li>
<li><a href="#">Settings 2</a>
</li>
</ul>
</li>
<li><a class="close-link"><i class="fa fa-close"></i></a>
</li>
</ul>-->
<div class="clearfix"></div>
</div>
<!--<div class="form-group" style="float:left;">
<div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3" >
<button class="btn btn-primary" type="button">Add Faculty</button>
</div>
</div>-->
<div class="x_content">
<a href="<?php echo $home_path; ?>/pages/master/addbook.php"><button class="btn btn-primary" type="button">Add Book Publication</button></a>
<table id="datatable-responsive" class="table table-striped table-bordered dt-responsive nowrap" cellspacing="0" width="100%">
<thead>
<tr>
<th style="width:25%;">Booktype</th>
<th style="width:25%;">Title</th>
<th style="width:25%;">Name</th>
<th style="width:25%;">Year</th>
<th style="width:25%;">Action</th>
</tr>
</thead>
<tbody>
<?php
$sql=mysqli_query($conn,"select * from book");
while($rw=mysqli_fetch_array($sql)){
?>
<tr>
<td><?php echo $rw['restype']; ?></td>
<td><?php echo $rw['title']; ?></td>
<td><?php echo $rw['namee']; ?></td>
<td><?php echo $rw['yearr']; ?></td>
<td>
<a href="<?php echo $home_path; ?>/pages/master/editbook.php?id=<?php echo $rw['id']; ?>" class="btn btn-info btn-xs"><i class="fa fa-pencil"></i> Edit </a>
<a href="<?php echo $home_path; ?>/pages/master/action/delbook.php?id=<?php echo $rw['id']; ?>" class="btn btn-danger btn-xs"><i class="fa fa-trash-o"></i> Delete </a>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /page content -->
<?php
include("../../footer.php");
?> |