|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /var/www/html/pathumthani_eoffice/application/agenda/ |
Upload File : |
<?
//session_start();
include("../../config/config.inc.php");
include("function/function.php");
//if(!isset($session_username)){
//header("Location: login.php");
//}
$month_arr=array('','มกราคม','กุมภาพันธ์','มีนาคม','เมษายน','พฤษภาคม','มิถุนายน','กรกฏาคม','สิงหาคม','กันยายน','ตุลาคม','พฤศจิกายน','ธันวาคม');
$month_s=array('','ม.ค.','ก.พ.','มี.ค.','เม.ย.','พ.ค.','มิ.ย.','ก.ค.','ส.ค.','ก.ย.','ต.ค.','พ.ย.','ธ.ค.');
include("header_report.php");
?>
<html>
<head>
<title><?=$show_title?></title>
<META http-equiv=Content-Type content="text/html; charset=windows-874">
<link href="common/style.css" type="text/css" rel="stylesheet" />
<script language='javascript' src='daily_popcalendar.js'></script>
<script language='javascript' src='displayelement.js'></script>
<style type="text/css">
<!--
body { margin: 0px 0px; padding: 0px 0px}
a:link { color: #005CA2; text-decoration: none}
a:visited { color: #005CA2; text-decoration: none}
a:active { color: #0099FF; text-decoration: underline}
a:hover { color: #0099FF; text-decoration: underline}
.style2 {color: #000000}
-->
</style>
<SCRIPT LANGUAGE="JavaScript">
function CheckForm(){
missinginfo = "";
missinginfo1 = "";
if (document.form.subject.value == "") {missinginfo1 += "\n- กรุณากรอก เรื่องร้องเรียน "; }
if (document.form.subject_no_in.value == "") {missinginfo1 += "\n- กรุณากรอก เลขที่หนังสือ "; }
if (document.form.date_start.value == "") {missinginfo1 += "\n- กรุณากรอก วันเริ่มต้น "; }
if (document.form.date_end.value == "") {missinginfo1 += "\n- กรุณากรอก สิ้นสุด "; }
if (missinginfo1 != "") {
missinginfo += "ไม่สามารถบันทึกข้อมูลได้ เนื่องจาก \n";
missinginfo +="_____________________________\n";
missinginfo = missinginfo + missinginfo1 ;
missinginfo += "\n___________________________";
missinginfo += "\nกรุณาตรวจสอบ อีกครั้ง";
alert(missinginfo);
return false;
}
}
</SCRIPT>
<script language="javascript">
function popWindow(url, w, h){
var popup = "Popup";
if(w == "") w = 420;
if(h == "") h = 300;
var newwin = window.open(url, popup,'location=0,status=no,scrollbars=no,resizable=no,width=' + w + ',height=' + h + ',top=20');
newwin.focus();
}
function popWindow1(url, w, h){
var popup = "Popup";
if(w == "") w = 420;
if(h == "") h = 300;
var newwin = window.open(url, popup,'location=0,status=no,scrollbars=no,resizable=no,width=' + w + ',height=' + h + ',top=20');
newwin.focus();
}
function popWindow2(url, w, h){
var popup = "Popup";
if(w == "") w = 420;
if(h == "") h = 300;
var newwin = window.open(url, popup,'location=0,status=no,scrollbars=no,resizable=no,width=' + w + ',height=' + h + ',top=20');
newwin.focus();
}
</script>
<script language="javascript">
function clearselect()
{
document.post.salary_day.disabled=true;
document.post.salary_month.disabled=true;
document.post.salary_year.disabled=true;
document.post.label_date.disabled=true;
if (document.post.salary_day.value!="")
{
document.post.salary_day.value="";
document.post.salary_day.disabled=true;
}
if (document.post.salary_month.value!="")
{
document.post.salary_month.value="";
document.post.salary_month.disabled=true;
}
if (document.post.salary_year.value!="")
{
document.post.salary_year.value="";
document.post.salary_year.disabled=true;
}
if (document.post.label_date.value!="")
{
document.post.label_date.value="";
document.post.label_date.disabled=true;
}
}
</script>
</head>
<body >
<table width="100%" height="80%" border="0" cellpadding="0" cellspacing="0" style="filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr='#FFFFFF', EndColorStr='#FFFFFF');">
<?
$strSQL = "SELECT * FROM tbl_subject WHERE id_sub='$id'";
$Result = mysql_db_query($dbname,$strSQL);
$Rs = mysql_fetch_object($Result);
?>
<tr>
<td valign="top" background="bimg/bg1.gif" style="background-repeat: no-repeat; background-position:right bottom ">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#000000"><table width="100%" border="0" cellspacing="1" cellpadding="5">
<tr>
<td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td align="left"><?=$Rs->subject?></td>
</tr>
<tr>
<td align="right">
<table width="95%" border="0" cellpadding="3" cellspacing="0">
<tr>
<td align="left"><?=$Rs->detail?></td>
</tr>
</table> </td>
</tr>
<?
$strSQL1 = "SELECT * FROM tbl_attach_file WHERE id_attach_file='$id' AND status_file='Y'";
$Result1 = mysql_db_query($dbname,$strSQL1);
while($Rs1 = mysql_fetch_object($Result1)){
?>
<tr>
<td align="left"> <a href="attach_file/<?=$Rs1->attach_file?>" target="_blank"><?=$Rs1->comment?><img src="images/attach16.gif" border="0" alt="คลิกเพื่อดูไฟล์แนบ"></a></td>
</tr>
<?
}
$strSQL_url = "SELECT * FROM tbl_url WHERE id_sub='$id'";
$Result_url = mysql_db_query($dbname,$strSQL_url);
while($Rs_url = mysql_fetch_object($Result_url)){
?>
<tr>
<td align="left"><a href="<?=$Rs_url->url?>" target="_blank"><?=$Rs_url->url_name?><img src="images/yast_www.png" border="0" alt="เว็บอ้างอิง" width="16" height="16"></a></td>
</tr>
<?
}
?>
<tr>
<td align="right"><table width="95%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td align="right">
<?
if($Rs->date_create != "0000-00-00"){
$arr_r = explode("-",$Rs->date_create);
if($arr_r[0] != ""){ echo "ณ วันที่ ".intval($arr_r[2])." ".$month_s[intval($arr_r[1])]." ".$arr_r[0];}
}
?>
</td>
</tr>
<tr>
<td align="right"><? if($Rs->sign_name != ""){ echo "ผู้ประกาศ $Rs->sign_name" ;}?></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>