Server IP : 202.29.229.35 / Your IP : 18.189.171.154 Web Server : Apache System : Linux aapanel2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 User : www ( 1001) PHP Version : 5.5.38 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/www.ivecr2.ac.th/system_admin/ |
Upload File : |
<?php session_start(); error_reporting(0); include('connect/connect.php'); include('connect/function.php'); ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>สถาบันการอาชีวศึกษาภาคกลาง 2 </title> <?php if($_SESSION['r_statuslogin'] != 1){ echo '<script language="javascript">alert("สำหรับผู้ดูแลระบบเท่านั้น")</script>'; echo'<meta http-equiv="refresh" content="0;url=../index.php">'; exit(); } $adminid=$_SESSION['r_adID']; /* $sql="select * from tbladmin where adID='$adminid'"; $result=mysql_query($sql,$connect1); $rs=mysql_fetch_array($result); $adName="คุณ".$rs['adFname']." ".$rs['adLname']." [".$rs['addepartment']."]"; */ $queryper = "select * from tbl_datatecher1 where tecNumber='$adminid'"; //echo "--->".$queryper; $resultper=mysql_query($queryper,$connect2); $rspertec=mysql_fetch_array($resultper); //$tecPhoto=$rspertec['tecPhoto'];//รูป //echo "PicTec=>".$tecPhoto; $tecPrefixThai=$rspertec['tecPrefixThai'];//คำนำหน้าชื่อ //คำนำหน้าชื่อ $sqlpf="select * from ref_prefix_name where PREFIX_NAME_ID=$tecPrefixThai"; $resulpf=mysql_query($sqlpf,$connect2); $rspf=mysql_fetch_array($resulpf); $tecPrefixThaiori=$rspf['FULLNAME']; $tecLogFname=$tecPrefixThaiori." ".$rspertec['tecFnameThai']." ".$tecLname=$rspertec['tecLnameThai']; //ดึงชื่อรูป $str_defaultfilepicname = "../ivePersonal/photoTec/defultstd.jpg";// ให้ไฟล์รูปชื่อ 00.png เป็นรูป Default $str_filepicname = $rspertec['tecCardId'].".jpg"; // ให้ไฟล์รูปชื่อ 01.png เป็นรูปที่ต้องการตรวจสอบ $str_imgpath = "../ivePersonal/photoTec/"; // Path รูป $str_imgfullpathori = $str_imgpath . $str_filepicname; // นำ Path รูป มาเชื่อมกับ ชื่อรูป if(file_exists($str_imgfullpathori)){ // ตรวจสอบว่ามีไฟล์รูปตาม Path ในตัวแปร $str_imgfullpath หรือไม่ $str_imgfullpath = $str_imgpath . $str_filepicname; // ถ้ามีไฟล์รูปให้ Path ชี้ที่ไฟล์รูปที่ต้องการ }else{ $str_imgfullpath = $str_defaultfilepicname; // ถ้าไม่มีไฟล์รุปให้ Path ชี้ไปที่ไฟล์รูป Default } //ชื่อสถาบันที่สังกัด $tecIns=$rspertec['tecinstitute']; $sqlIns="select * from tbl_institute where ins_id='$tecIns'"; $resutIns=mysql_query($sqlIns,$connect2); $rsIns=mysql_fetch_array($resutIns); $ins_name=$rsIns['ins_name']; //สังกัดสถานศึกษา $tecSchool=$rspertec['tecSchool']; $sqlsc="select * from tbl_school where scID='$tecSchool'"; $resultsc=mysql_query($sqlsc,$connect2); $rssc=mysql_fetch_array($resultsc); $SchoolName1=$rssc['scName'];//ชื่อหน่วยงาน $positionnomal=$rspertec['position'];//ตำแหน่ง //ตำแหน่งทางบริหาร $sqladmin="select * from ref_admin where ADMIN_ID='$positionnomal' "; $resuladmin=mysql_query($sqladmin,$connect2); $rsadmin=mysql_fetch_array($resuladmin); $positionori=$rsadmin['ADMIN_NAME']; $positionsearchori=$positionori; $SchoolName=" (".$positionsearchori." ".$SchoolName1." ".$ins_name.")"; ?> <link href="../iconTitle/favicon.ico" rel="shortcut icon" type="image/x-icon" /> <link href="../vendor/dist/css/bootstrap.css" rel="stylesheet"> <link href="../vendor/dist/css/style.css" rel="stylesheet"> <script src="../vendor/dist/js/jquery_1_11_1.min.js"></script> <link rel="stylesheet" type="text/css" href="style.css" /> <style type="text/css"> .pointer{ width: 868px; } </style> </head> <body> <div class="bs-docs-header header-banner"> <div class="container"> <div class="row"> <div style="padding-left:0px;"> <img height="106" src="../images/bannernews.jpg" style="height:106px;" ></div> </div> </div> </div> <!-- navbar --> <nav class="navbar navbar-menu navbar-inverse " role="navigation"> <div class="container" style="padding-left:0px;"> <div id="navbar" class="navbar-collapse collapse"> <ul class="nav navbar-nav"> <li class="active"><a href="index.php"><img src="images/igoogle.gif" width="17" height="17">หน้าหลัก</a></li> <li><a href="logout.php"><font color="#FFFFFF"><img src="images/Logout-icon.png" alt="" width="15" height="15"/> </font>ออกจากระบบ</a></li> <li ><img src="<?php echo $str_imgfullpath; ?>" alt="" width="20" class="bt" style="border:#FFF" /> <?php echo $tecLogFname."</B>".$SchoolName;?></li> <li><a href="?i=personalFrmEdit&tecN=<?php echo $adminid;?>"><img src="images/key.gif" width="16" height="16">แก้ไข้รหัส</a></li> <!----- <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">เกี่ยวกับ มข.<span class="caret"></span></a> <ul class="dropdown-menu" role="menu"> <li><a href="">ประวัติ ความเป็นมา</a></li> <li><a href="">ผู้บริหาร และการบริหาร</a></li> <li><a href="">แผนที่</a></li> <li><a href="">อันดับและรางวัล</a></li> <li><a href="">อัตลักษณ์ มข.</a></li> </ul> </li> ---> </ul> </div><!--/.nav-collapse --> </div> </nav><!-- /container --> <table width="1000" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td> </td> </tr> <tr> <td align="center"> <?php include("link_page.php"); $i = $_GET[i]; $i1 = explode(",",$i); $i = $i1[0]; if($i == ""){ $i = "dataindex"; } require_once($link[$i]); ?></td> </tr> </table> <footer class="bs-docs-footer" role="contentinfo"> <div class="container "> <div class="contact col-xs-6" > © Copyright 2015 สถาบันการอาชีวศึกษาภาคกลาง 2 <br> 323 ถ.นารายณ์มหาราช ต.ทะเลชุบศร อ.เมือง จ.ลพบุรี 15000 โทรศัพท์ 0-3641-1083 ต่อ 129 </div> </div> </footer> </body> </html>