Server IP : 202.29.229.35 / Your IP : 18.191.171.26 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 : |
<?php error_reporting(0); session_start(); include('connect/connect.php'); //include('connect/function.php'); $ptecg_id = $_GET['pstd_id']; function web_count_check($path_file,$set=0){ $filename =$path_file; $fp = @fopen($filename,"r"); $number = @fread ($fp,filesize($filename) ); @fclose($fp); if($number == ""){ $number = 1; }else{ $number=$number+$set; } $fp = @fopen($filename,"w+"); @fwrite($fp,$number); @fclose($fp); //@chmod($filename, 777); return $number; } web_count_check("count_projectTecher/".$ptecg_id.".txt",1); $sql="select * from tblproject_techer where p_ID='$ptecg_id' order by p_ID desc"; $result=mysqli_query($connect1,$sql); $rs=mysqli_fetch_assoc($result); $select_user=$rs['status_user']; $dp_ID=$rs['dp_ID']; $queryperlogin = "select * from tbl_datatecher1 where tecNumber='$dp_ID' "; //echo "=>".$queryperlogin."<br>"; $resultperlogin=mysqli_query($connect1,$queryperlogin); $rsperteclogin=mysqli_fetch_assoc($resultperlogin); $selectworklogin = $rsperteclogin['selectwork'];//กลุ่มงาน //echo "==>".$selectworklogin; //ชื่อกลุ่มงาน $sqlworklogin="select * from tbl_departmentall where daNodpt='$selectworklogin' "; $resqlworklogin=mysqli_query($connect1,$sqlworklogin); $rsworklogin=mysqli_fetch_assoc($resqlworklogin); $workname = $rsworklogin['daFname']; ?> <table width="700" border="0" align="center" cellpadding="5" cellspacing="0" height="172"> <tr> <th height="37" align="left" valign="top" background="by_body_01.png"><h1 class="home_title_event">.:: <?php if($select_user == 1){ echo "ผลงานครู/อาจารย์"; }else if($select_user == 2){ echo "ผลงานนักเรียนนักศึกษา";}else{ echo "ผลงานนักศึกษา (โครงงานวิทย์)";}?> ::.</h1></th> </tr> <tr> <td height="97" align="left" valign="top" background="by_body_02.png"><p> </p> <p><?php echo $rs['p_Detail'];?><br /> <i><font size="1px" color="#999999">นำเข้าข้อมูลเมื่อ : <?php echo displaydate($rs['p_Date']);?> แหล่งที่มา : <?php echo $workname;?></font></i></p></td> </tr> <tr> <td align="left" valign="top" background="by_body_03.png"><?php if($rs['p_file1'] !="" and $rs['p_title1'] != ""){ ?>------------------------- ดาวน์โหลดเพิ่มเติม -------------------------------- <?php }else{ echo "";} ?></td> </tr> <tr> <td align="left" valign="top" background="by_body_03.png"> <?php if($rs['p_file1'] !="" and $rs['p_title1'] != ""){ ?> <img src="images/icon07.png" width="20" height="12"> <a href="system_admin/file_project/<?php echo $rs['p_file1'];?>" target="_blank"><?php echo $rs['p_title1'];?></a> <?php }else{ echo "";} ?> <br /> <?php if($rs['p_file2'] !="" and $rs['p_title2'] != ""){ ?> <img src="images/icon07.png" width="20" height="12"> <a href="system_admin/file_project/<?php echo $rs['p_file2'];?>" target="_blank"><?php echo $rs['p_title2'];?></a> <?php }else{ echo "";} ?> <br /> <?php if($rs['p_file3'] !="" and $rs['p_title3'] != ""){ ?> <img src="images/icon07.png" width="20" height="12"> <a href="system_admin/file_project/<?php echo $rs['p_file3'];?>" target="_blank"><?php echo $rs['p_title3'];?></a> <?php }else{ echo "";} ?> <br /> <?php if($rs['p_file4'] !="" and $rs['p_title4'] != ""){ ?> <img src="images/icon07.png" width="20" height="12"> <a href="system_admin/file_project/<?php echo $rs['p_file4'];?>" target="_blank"><?php echo $rs['p_title4'];?></a> <?php }else{ echo "";} ?> <br /> <?php if($rs['p_file5'] !="" and $rs['p_title5'] != ""){ ?> <img src="images/icon07.png" width="20" height="12"> <a href="system_admin/file_project/<?php echo $rs['p_file5'];?>" target="_blank"><?php echo $rs['p_title5'];?></a> <?php }else{ echo "";} ?> <br /> <?php if($rs['p_file6'] !="" and $rs['p_title6'] != ""){ ?> <img src="images/icon07.png" width="20" height="12"> <a href="system_admin/file_project/<?php echo $rs['p_file6'];?>" target="_blank"><?php echo $rs['p_title6'];?></a> <?php }else{ echo "";} ?> <br /> <?php if($rs['p_file7'] !="" and $rs['p_title7'] != ""){ ?> <img src="images/icon07.png" width="20" height="12"> <a href="system_admin/file_project/<?php echo $rs['p_file7'];?>" target="_blank"><?php echo $rs['p_title7'];?></a> <?php }else{ echo "";} ?> <br /> <?php if($rs['p_file8'] !="" and $rs['p_title8'] != ""){ ?> <img src="images/icon07.png" width="20" height="12"> <a href="system_admin/file_project/<?php echo $rs['p_file8'];?>" target="_blank"><?php echo $rs['p_title8'];?></a> <?php }else{ echo "";} ?> <br /> <?php if($rs['p_file9'] !="" and $rs['p_title9'] != ""){ ?> <img src="images/icon07.png" width="20" height="12"> <a href="system_admin/file_project/<?php echo $rs['p_file9'];?>" target="_blank"><?php echo $rs['p_title9'];?></a> <?php }else{ echo "";} ?> <br /> <?php if($rs['p_file10'] !="" and $rs['p_title10'] != ""){ ?> <img src="images/icon07.png" width="20" height="12"> <a href="system_admin/file_project/<?php echo $rs['p_file10'];?>" target="_blank"><?php echo $rs['p_title10'];?></a> <?php }else{ echo "";} ?></td> </tr> </table>