ok

Mini Shell

Direktori : /home/ngwcolle/public_html/
Upload File :
Current File : /home/ngwcolle/public_html/department.php

<?php
include "header.php";
date_default_timezone_set('Asia/Kolkata');
include "admin/includes/config.php";
$cquery=mysqli_query($con, "SELECT * from tbl_college");    
$singleRow = mysqli_fetch_row($cquery); 
$deptid=base64_decode($_GET['deptid']);
// $deptid='5';
?>
<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">Department</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>Department</span></h1>
          </div>
          

<div class="point2">
<div class="container">
<?php 
              $query=mysqli_query($con,"select * from tbl_subject where id='$deptid'");
        $cnt=1;
        while($row=mysqli_fetch_array($query)){
        ?>
<h3><a href="#" class="mt-2 text-danger"><?php echo $row['subname'];?></a></h3>
                        <p class="text-secondary"><?php echo $row['about'];?></p>
                        <p class="text-secondary">Date of Commencement : <?php echo date("d-M-Y",strtotime($row['cdate']));?></p>
                        <p class="text-secondary">Name of HOD : <?php echo $row['hodname'];?></p>
                    <p class="text-secondary">
                         Student Strength : <?php echo $row['capacity']."\t";?>
                          Post Sanctioned : <?php echo $row['sanctionedpost']."\t";?>
                            Staff in Position :<?php echo $row['mip']."\t\t\t\t\t\t";?>
                            Vacancy : <?php echo $row['vacancy'];?>
                            
        </p>
                          <h4 class="text-center text-primary">Our Faculty</h4>
                          <table class="table">
                            <thead class="bg-info">
                              <tr>
                                <th align="center" width="31">#</th>
                                <th align="left" width="404">Name of the Faculty</th>
                                <th align="center" width="352">Designation</th>
                                <th align="center" width="142">Date of Joining</th>
                                <th align="center" width="152">Contact No</th>
                                <th></th>
                              </tr>
                            </thead>
                            <tbody>
                            <?php 
              $query=mysqli_query($con,"select * from tbl_teacher where dept='$deptid'");
        $cnt=1;
        while($row=mysqli_fetch_array($query)){
        ?>
                              <tr >
                                <td><?php echo $cnt;?></td>
                                <td><?php echo $row['tname'];?></td>
                                <td><?php echo $row['disgnation'];?></td>
                                <td><?php echo date("d-m-Y",strtotime($row['doj']));?></td>
                                <td><?php echo $row['contact'];?></td>
                                <td align="center">
                                <a href="teacher-details.php?tid=<?php echo $row['id'];?>">
                                <i class="fa fa-arrow-right" aria-hidden="true" style="font-size:20px;"></i>
                            </a>
                                </td>
                              </tr>
                              <?php $cnt++;}?>
                            </tbody>
                          </table>
        <?php }?>
    </div>


<!-- card ens -->
</div>		  <!--for department start-->
						<!--for department end-->
        </div>
       <?php include"sidebar.php";?>
    </div>
</section>
<style>
   .card-box {
            background: #FAFAFA;
            min-height: 120px;
            position: relative;
            padding: 15px 20px 10px;
                   margin-bottom: 10px;
            display: -ms-flexbox;
            display: flex;
            -ms-flex-direction: column;
            flex-direction: column;
            -webkit-box-pack: justify;
            -ms-flex-pack: justify;
            justify-content: space-between;
            position: relative;
            cursor: pointer;
        }

        .card-box:hover {
            background: linear-gradient(to right, #1fa2ff17 0%, #12d8fa2b 51%, #1fa2ff36 100%);
        }

        .card-box:after {
            display: block;
            background: #2196F3;
            border-top: 2px solid #2196F3;
            content: '';
            width: 100%;
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
        }

        .card-title h2 {
            margin: 0;
            padding-top: 1%;
            color: #2196F3;
            font-family: 'Oswald', sans-serif;
            text-transform: uppercase;
            font-size: 24px;
            line-height: 1;
            margin-bottom: 1px;
        }

        .card-title p {
            margin: 0;
            margin-bottom: 5px;
            font-size: 16px;
        }

        .card-link a {
            text-decoration: none;
            font-family: 'Oswald', sans-serif;
            color: #FF5722;
            font-size: 15px;
        }
</style>
<?php include"footer.php";?>

Zerion Mini Shell 1.0