Mini Shell

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

<?php 
          include 'head.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
       
             
             $sql_teacheruser = "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='$s_teacherID'";
             $result = mysqli_query($link, $sql_teacheruser);
             $row_teacheruser = mysqli_fetch_assoc($result);
        ?>
    <section class="content-header">
      <h1>
        ประวัติบุคลากร
        <small>แฟ้มประวัติบุคลากร</small>
      </h1>
      <ol class="breadcrumb">
          <li><a href="index.php"><i class="fa fa-home"></i> หน้าหลัก</a></li>
        <li class="active">แฟ้มประวัติบุคลากร</li>
      </ol>
    </section>
    
    <!-- Main content -->
      <section class="content">
       
       <div class="box box-primary">    
  <!-- Your Page Content Here -->
        <!-- Main content -->
        <section class="content">
          <!-- Your Page Content Here -->
         
          
         <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_teacheruser['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_teacheruser['titleName']; ?><?php echo  $row_teacheruser['name']; ?> <?php echo  $row_teacheruser['lastName']; ?></h3>
              <h5 class="widget-user-desc"><strong>ตำแหน่ง</strong>   <?php echo $row_teacheruser['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_teacheruser['teacherID']; ?></u></h3>
        </div><!-- /.box-header -->
        <div class="box-body">
    
   <div class="row">
       <div class="col-md-4">
             <div class="panel-heading">
               
           <strong >ชื่อ-สกุล</strong> <abbr>&nbsp;<?php echo $row_teacheruser['titleName']; ?> <?php echo $row_teacheruser['name']; ?>&nbsp;&nbsp; <?php echo  $row_teacheruser['lastName']; ?></abbr>
           </div>
          
       </div>
       <div class="col-md-4">
         <div class="panel-heading">
               <strong>เลขที่ตำแหน่ง</strong> <abbr>&nbsp;<?php echo  $row_teacheruser['noPosition']; ?></abbr>
           </div>
        </div>   
       <div class="col-md-4">        
           <div class="panel-heading">
               <strong>เลขที่ใบอนุญาตประกอบวิชาชีพ</strong> <abbr>&nbsp;<?php echo  $row_teacheruser['licenseNumber']; ?></abbr>
          </div>            
      </div>    
    </div>    
      
   <div class="row">
        <?php 
        
        $date1 = $row_teacheruser['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_teacheruser['idCard']); ?></abbr>
            </div>                    
       </div>
       <?php  
          $date1 = $row_teacheruser['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_teacheruser['bloodGroup']; ?></abbr>
           </div>                      
        </div>
       <div  class="col-md-4">           
      <div class="panel-heading">
               <strong>สถานภาพ</strong><abbr>&nbsp;<?php echo  $row_teacheruser['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_teacheruser['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_teacheruser['telephone']); ?></abbr>
            </div>          
       </div>
       <div class="col-md-4">
             <?php  
          $date1 = $row_teacheruser['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_teacheruser['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_teacheruser['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_teacheruser['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_teacheruser['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_teacheruser['salaryCompensation']); ?> </abbr><strong>&nbsp;บาท</strong>
           </div> 
          
       </div>
       <div class="col-md-4">           
               <div class="panel-heading">
               <strong>ตำแหน่ง</strong><abbr>&nbsp;<?php echo  $row_teacheruser['type_name']; ?></abbr>
           </div>       
       </div>
   
       <div class="col-md-4">
           
               <div class="panel-heading">
               <strong>สายงาน</strong><abbr>&nbsp;<?php echo  $row_teacheruser['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_teacheruser['class']; ?></abbr>
           </div>          
       </div>
       <div class="col-md-4">        
              <div class="panel-heading">
               <strong>วิทยฐานะ</strong><abbr>&nbsp;<?php echo  $row_teacheruser['academicName']; ?></abbr>
           </div>         
       </div>
       <div class="col-md-4">           
               <div class="panel-heading">
               <strong>อันดับ</strong><abbr>&nbsp;<?php echo  $row_teacheruser['rating']; ?></abbr>
           </div>           
        </div> 
   </div>  
      <div class="row">
       <div class="col-md-4">        
               <div class="panel-heading">
               <strong>ประเภทบุคลากร</strong><abbr>&nbsp;<?php echo  $row_teacheruser['typePersonnel']; ?></abbr>
           </div>           
       </div>
       <div class="col-md-4">          
               <div class="panel-heading">
              <strong>ชื่อผู้ใช้งาน</strong><abbr>&nbsp;<?php echo  $row_teacheruser['username']; ?></abbr>
           </div>         
       </div>  
   </div>
        
 
         
     <div class="box-footer">
         <a  href="index.php" class="btn btn-default"><i class="fa fa-reply"></i>&nbsp;กลับ</a>  
         <a href="show_teacheruser_pdf.php?teacherID=<?php echo $s_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 -->
</section>
	
          
         
         

      <!-- Your Page Content Here -->

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

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

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

<!-- REQUIRED JS SCRIPTS -->

<!-- jQuery 2.2.3 -->
<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/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