Server IP : 202.29.229.35 / Your IP : 3.15.237.35 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/ |
Upload File : |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>สถาบันการอาชีวศึกษาภาคกลาง 2</title> </head> <link rel="stylesheet" href="resources/web/css/stylesmain.css" /> <link href="iconTitle/favicon.ico" rel="shortcut icon" type="image/x-icon" /> <!------------------แสดงรูป slideshow-------------------------> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script> <script> !window.jQuery && document.write('<script src="jquery-1.4.3.min.js"><\/script>'); </script> <script type="text/javascript" src="./fancybox/jquery.mousewheel-3.0.4.pack.js"></script> <script type="text/javascript" src="./fancybox/jquery.fancybox-1.3.4.pack.js"></script> <link rel="stylesheet" type="text/css" href="./fancybox/jquery.fancybox-1.3.4.css" media="screen" /> <link rel="stylesheet" href="style.css" /> <script type="text/javascript"> $(document).ready(function() { /* * Examples - images */ $("a#example1").fancybox(); $("a#example2").fancybox({ 'overlayShow' : false, 'transitionIn' : 'elastic', 'transitionOut' : 'elastic' }); $("a#example3").fancybox({ 'transitionIn' : 'none', 'transitionOut' : 'none' }); $("a#example4").fancybox({ 'opacity' : true, 'overlayShow' : false, 'transitionIn' : 'elastic', 'transitionOut' : 'none' }); $("a#example5").fancybox(); $("a#example6").fancybox({ 'titlePosition' : 'outside', 'overlayColor' : '#000', 'overlayOpacity' : 0.9 }); $("a#example7").fancybox({ 'titlePosition' : 'inside' }); $("a#example8").fancybox({ 'titlePosition' : 'over' }); $("a[rel=example_group]").fancybox({ 'transitionIn' : 'none', 'transitionOut' : 'none', 'titlePosition' : 'over', 'titleFormat' : function(title, currentArray, currentIndex, currentOpts) { return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' ' + title : '') + '</span>'; } }); /* * Examples - various */ $("#various1").fancybox({ 'titlePosition' : 'inside', 'transitionIn' : 'none', 'transitionOut' : 'none' }); $("#various2").fancybox(); $("#various3").fancybox({ 'width' : '75%', 'height' : '75%', 'autoScale' : false, 'transitionIn' : 'none', 'transitionOut' : 'none', 'type' : 'iframe' }); $("#various4").fancybox({ 'padding' : 0, 'autoScale' : false, 'transitionIn' : 'none', 'transitionOut' : 'none' }); }); </script> <!-------------------------------------------> <body> <?php $host="localhost"; $user_name="root"; $pass_word="LBtech!2012"; $dbname="lbtech_db"; @mysql_connect( $host,$user_name,$pass_word) or die ("can not connect to server"); mysql_query("SET NAMES utf8"); @mysql_select_db($db) or die("can not select database"); $year =$_POST['y'];//ปีการศึกษา $scid= $_POST['tecSchool'];//วิลัยฯที่เลือก$schoolid; $major_id = $_POST['tecSub'];//รหัสสาขาวิชาที่เลือก$majorID; //ดึงชื่อวิลัย $sqlschool="select * from tbl_school where subscID='$scid' "; $reschool=mysql_query($sqlschool); $rsschool=mysql_fetch_array($reschool); $scName=$rsschool['scName']; //ดึงชื่อสาขา $sqlmajor="select * from tbl_dptsubject where sbID='$major_id' "; $remajor=mysql_query($sqlmajor); $rsmajor=mysql_fetch_array($remajor); $sbname=$rsmajor['sbName']; if($scid ==""){ $scregister=""; }else{ $scregister="สังกัด"; $scnameori=$scName; } if($major_id==""){ $maname =""; }else{ $maname = "สาขาวิชา"; $sbnameori = $sbname; } if($year == ""){ $yearsori=""; }else{ $textori="ประจำปี"; $yearsori=$year; } ?> <center> ทำเนียบรูปถ่าย<br /> นักศึกษาหลักสูตรเทคโนโลยีบัณฑิต<br /> <?php echo $maname.$sbnameori."<br>".$scregister.$scnameori." สถาบันการอาชีวศึกษาภาคกลาง 2"; ?> </center> <br /> <?php $n_ID=$_GET['nID']; //echo "====>".$n_ID; function check_pic($id){ if ($handle = opendir('http://www.lbtech.ac.th/stdcart/photo_std/')) { while (false !== ($entry = readdir($handle))) { if ($entry != "." && $entry != "..") { //strpos(); $entry_array = explode("_",$entry); if($id == $entry_array[0]){ $name[]= $entry; } } } closedir($handle); if(count($name) > 0){ return $name; }else{ return false; } } } $sql="select * from tblstd_idcard where n_ID='$n_ID' "; $result=mysql_query($sql); $rs=mysql_fetch_array($result); $sql; $nid=$rs['n_ID']; $dp_ID=$rs['dp_ID']; $wrok_IDup=$rs['wrok_ID']; //-------เจ้าของงาน $sqldp="select * from tbladmin where addepartmentID='$dp_ID' "; $resultdp=mysql_query($sqldp); $rsdp=mysql_fetch_array($resultdp); //------------แก้ไขงานล่าสุดโดยคัย $sqldpup="select * from tbladmin where adID='$wrok_IDup' "; $resultdpup=mysql_query($sqldpup); $rsdpup=mysql_fetch_array($resultdpup); ?> </p> <table width="700" border="0" align="center" cellpadding="5" cellspacing="0"> <tr> <td align="center" valign="top"></td> </tr> <tr> <td align="center" valign="top"><B><?php echo $rs['n_Title'];?></B></td> </tr> <tr> <td align="left" valign="top"><p style="text-align:justify"> <?php echo $rs['n_Detail'];?></td> </tr> <tr> <td align="center" valign="top"> </td> </tr> </table> <table width="900" border="0" align="right" cellpadding="0" cellspacing="0"> <tr> <td align="left" valign="top"> <?php $pic = check_pic($nid); foreach($pic as $item){ //echo $pic_big= '<img src="img/'.$item.' " width="200px" height="150px">'; //} ?> <!-----------------------------------------------เริ่มแสดงความเห็นใต้ภาพ----------------------------------------------> <a rel="example_group" href="system_admin/pic_new/<?php echo $item;?>" title=""> <img src="system_admin/pic_new/<?php echo $item; ?>" alt="" width="150px" height="110" style="border:1px solid #CCCCCC; padding:4px"/> </a> <?php }//foreach ?> </td> </tr> </table> </body> </html>