| Server IP : 61.19.30.66 / Your IP : 216.73.216.59 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,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, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /var/www/gpa/ |
Upload File : |
<html>
<head>
<?
require_once "head.php";
include('confiteacher.inc.php'); //ไฟล์เชื่อมต่อกับ database ที่เราได้สร้างไว้ก่อนหน้าน
$teach=$objResult["teachcode"];
?>
<title>ThaiCreate.Com Tutorial</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf8">
</head>
<body>
<?php
$objConnect = mysql_connect("localhost","root","klw3322") or die("Error Connect to Database");
$objDB = mysql_select_db("klw");
mysql_query("SET NAMES utf8");
$strSQL = "SELECT * FROM uploadfile join teacher on teacher.teachcode=uploadfile.upteach where reportup='$_GET[at]' and grupsara='$_GET[id1]'";
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
?>
<tr>
<td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td><div align="right"><font color="#666666" size="2"><a href="admin_page.php">index</a>
| <a href="logout.php">log out</a></font></div></td>
</tr>
<tr>
<td><div align="center">
<table width="773" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
</tr>
</table>
<table width="76%" border="0" align="center" cellpadding="1" cellspacing="1">
<tr>
<td> </td>
</tr>
<tr>
<td><div align="center">
</div>
</td>
</tr>
<table width="100%" border="1">
<tr>
<th width="50"> <div align="center">teach</div></th>
<th width="150"> <div align="center">Files Name </div></th>
<th width="150"> <div align="center">Files comment</div></th>
<th width="150"> <div align="center">year/term </div></th>
<th width="150"> <div align="center">comment</div></th>
<th width="150"> <div align="center">Files comment</div></th>
</tr>
<?php
while($objResult = mysql_fetch_array($objQuery))
{
?>
<tr>
<td><div align="center"><?php echo $objResult["teachcode"];?> <?php echo $objResult["name"];?> <?php echo $objResult["lastname"];?></div></td>
<td><center><a href="upload/fileupload/<?php echo $objResult["fileupload"];?>" target='_blank'><?php echo $objResult["fileupload"];?></a></center></td>
<td><center><a href="./uploadadmin/fileupload/<?php echo $objResult["fileuplaod2"];?>" target='_blank'><?php echo $objResult["fileuplaod2"] ;?> </a></center></td>
<td><div align="center"><?php echo $objResult["xyear"];?>/<?php echo $objResult["xtermup"];?></div></td>
<td><div align="center"><a href=editcomment.php?id=<?php echo $objResult["fileID"];?>>comment</a></div></td>
<td><center><a href=""><a href=uploadadmin/index.php?id=<?php echo $objResult["fileID"];?>>upload</a></center></td>
</tr>
<?php
}
?>
</table>
<?php
mysql_close($objConnect);
?>
</body>
</html>