| Server IP : 104.21.73.108 / Your IP : 216.73.216.59 Web Server : Apache/2 System : Linux cat167-197.static.lnwhostname.com 5.10.0-20-amd64 #1 SMP Debian 5.10.158-2 (2022-12-13) x86_64 User : paphayomho ( 1042) PHP Version : 5.6.40 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/paphayomho/domains/paphayomhospital.go.th/private_html/newsjob/ |
Upload File : |
<?php
session_start();
require("opener_db.php");
?>
<!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>---ประกาศรับสมัครงาน โรงพยาบาลป่าพะยอม ---</title>
<script type="text/javascript" src="jquery-1.8.2.js"></script>
<script type="text/javascript" src="bootstrap.js"></script>
<script type="text/javascript" src="bootstrap-button.js"></script>
<style>
#customers {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
}
#customers td, #customers th {
border: 1px solid #ddd;
padding: 8px;
}
#customers tr:nth-child(even){background-color: #f2f2f2;}
#customers tr:hover {background-color: #ddd;}
#customers th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
background-color: #4CAF50;
color: white;
}
</style>
</head>
<body>
<div style="position:relative; width:750px; margin:1em auto; padding:5px;" class="table-bordered">
<div class="status" style="width:90%;" >
<?php
if( isset($_SESSION['ERRMSG_ARR']) && is_array($_SESSION['ERRMSG_ARR']) && count($_SESSION['ERRMSG_ARR']) >0 ) {
echo "<ul class='error'> ";
foreach($_SESSION['ERRMSG_ARR'] as $msg) {
echo '<li> <strong><font color="red">',$msg ,'</font></strong></li>';
}echo "</ul>";
unset($_SESSION['ERRMSG_ARR']);
}
?>
</div>
<div style="width:100%; margin:5px;">
<form action="upload.php" method="post" enctype="multipart/form-data" name="upload" style="margin:7px;">
<table id="customers">
<tr>
<td width="157"><strong>หัวข้อข่าว</strong></td>
<td width="541"><input name="fname" type="text" class="input-xlarge" size="70" required/></td>
</tr>
<tr>
<td><strong>รายละเอียดข่าว</strong></td>
<td><textarea name="desc" cols="70" rows="10" class="input-xlarge" required></textarea></td>
</tr>
<tr>
<td><strong>upload ไฟล์</strong></td>
<td><input name="uploaded_file" type="file" class="input-xlarge" required/>
<input type="hidden" name="MAX_FILE_SIZE" value="1000000" /></td>
</tr>
<tr>
<td> </td>
<td><input name="Upload" type="submit" value="อัปโหลด" class="btn" />
<input type="reset" name="Reset" id="button" value="ยกเลิก" class="btn" /></td>
</tr>
</table>
<br />
</form>
</div>
<hr />
<div>
<table id="customers">
<thead>
<tr>
<th width="6%">ลำดับ</th>
<th width="29%"><strong>หัวข้อ</strong></th>
<th width="55%"><strong>รายละเอียด</strong></th>
<th width="10%"><strong>ไฟล์แนบ</strong></th>
</tr>
</thead>
<tbody>
<?php
$i=1;
$list4 = "SELECT * FROM up_files1 ORDER BY id DESC ";
$result4 = $connector->query($list4);
if(mysql_num_rows($result4) > 0)
{
while($data4 = mysql_fetch_assoc($result4))
{
echo "
<tr>
<td>$i</td>
<td>{$data4['fname']}</td>
<td>
<strong>รายละเอียด ::</strong> {$data4['fdesc']}
<br />
<strong>ประกาศเมื่อ ::</strong> {$data4['fdatein']}
</td>
<td>
<a href='{$data4['floc']}' title='download file' target='_blank' >Download</a><br />
</td>
</tr>
";
// replace the A href link with
$i++;
}
}
?>
</tbody>
<tfoot></tfoot>
</table>
</div>
<div></div>
</div>
</body>
</html>