Server IP : 202.29.229.35 / Your IP : 3.16.215.60 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 if($_SESSION['r_statuslogin'] != 1){ echo '<script language="javascript">alert("สำหรับผู้ดูแลระบบเท่านั้น")</script>'; echo'<meta http-equiv="refresh" content="0;url=../index.php">'; exit(); } ?> <!------------------แสดงรูป 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" /> <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> <!-------------------------------------------> <table width="986" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="900" align="left" valign="top"><a href="?i=show_new"><< ย้อนกลับ</a></td> <td width="86" align="left" valign="top"> </td> </tr> <tr> <td colspan="2" align="center" valign="top"><p> <?php function check_pic($id){ if ($handle = opendir('pic_new/')) { 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; } } } /* include("connect/connect.php"); include("connect/function.php"); */ $n_ID=$_GET['nID']; //echo "====>".$n_ID; $sql="select * from tbl_new where n_ID='$n_ID' "; $result=mysql_query($sql,$connect1); $rs=mysql_fetch_array($result); $nid=$rs['n_ID']; //echo "<br>++>".$nid; $dp_ID=$rs['dp_ID']; $sqldp="select * from tbladmin where addepartmentID='$dp_ID' "; $resultdp=mysql_query($sqldp,$connect1); $rsdp=mysql_fetch_array($resultdp); ?> </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'];?></p></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){ //$pic_big= '<img src="img/'.$item.' " width="200px" height="150px">'; //} ?> <!-----------------------------------------------เริ่มแสดงความเห็นใต้ภาพ----------------------------------------------> <a rel="example_group" href="./pic_new/<?php echo $item;?>" title=""><img src="./pic_new/<?php echo $item;?>" alt="" width="150px" height="110" style="border:1px solid #CCCCCC; padding:4px"/></a> <?php }//foreach ?></td> </tr> </table></td> </tr> <tr> <td colspan="2" align="center" valign="top"> </td> </tr> <tr> <td colspan="2" align="center" valign="top"><i><font size="2px" color="#999999">นำเข้าข้อมูลเมื่อ : <?php echo displaydate($rs['n_Date']);?> นำเข้าข้อมูลโดย <?php if($rs['dp_ID'] >=29){ echo "แผนกวิชา".$rsdp['addepartment'];}else{ echo $rsdp['addepartment'];}?> </font></i></td> </tr> </table>