ok

Mini Shell

Direktori : /home/ngwcolle/public_html/
Upload File :
Current File : //home/ngwcolle/public_html/committee-details.php

<?php include"header.php";
date_default_timezone_set('Asia/Kolkata');
include "admin/includes/config.php";
$deptid=base64_decode($_GET['deptid']);
$query=mysqli_query($con,"select * from tbl_page where dept_name='$deptid'");
// $query=mysqli_query($con,"select * from tbl_page where dept_name='1'");
$cnt=1;
while($row=mysqli_fetch_array($query)){
  $pagetitle=$row['page_title'];
  $aboutpage=$row['page_content'];
}
?>
<section class="inner-banner"></section>
<section class="breadcrumb-sec">
  <div class="container">
        <div class="row">
            <div class="col-md-12">
                <nav aria-label="breadcrumb">
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="index.html">Home</a></li>
                        <li><i class="fa fa-caret-right" aria-hidden="true"></i></li>
                        <li class="breadcrumb-item"><?php echo ucwords($pagetitle);?></li>
                    </ol>
                </nav>
            </div>
        </div>
    </div>
</section>
<section class="section-15 about-section" id="body">
    <div class="container">
      <div class="row">
        <div class="col-md-9">
          <div class="title">
            <h1><span><?php echo ucwords($pagetitle);?></span></h1>
          </div>
                <?php echo html_entity_decode($aboutpage);?>
          
          <table class="table" style="border-collapse:collapse;" align="center" cellspacing="0" cellpadding="0" width="100%" border="0">
    <tbody>
        <tr style="font-size:15px;">
            <th align="center" width="41">#</th>
            <th align="left" width="350">Name</th>
            <th align="left" width="350">Designation</th>
            <th align="center" width="102">Contact No.</th>
            <th align="center" width="156">From</th>
        </tr>
        <?php 
$cquery=mysqli_query($con,"select tbl_staffdept.*,tbl_staffdept.designation as role,tbl_staff.* from tbl_staffdept inner join tbl_staff on tbl_staffdept.empname=tbl_staff.staffname where tbl_staffdept.dept='$deptid'");
$cnt=1;
while($row1=mysqli_fetch_array($cquery)){
?>  	
  <tr>
    <td><?php echo $cnt;?></td>
    <td><?php echo $row1['empname'];?></td>
    <td><?php echo $row1['role'];?></td>
    <td><?php echo $row1['contactno'];?></td>
    <td><?php echo date("d-M-Y",strtotime($row1['entrydate']));?></td>
  </tr>
 

                           <?php 
                           $cnt++;
                           } ?>
       
       
      
    </tbody>
</table>		  <!--for department start-->
						<!--for department end-->
        </div>
       <?php include"sidebar.php";?>
    </div>
</section>
<?php include"footer.php";?>

Zerion Mini Shell 1.0