Hacked By AnonymousFox
<?
include"connect.php";
include("function.php");
include("register_global.php");
$Id=$_GET["Id"];
$sql="select * from stat where Id='$Id'";
$query=mysql_query($sql);
$row=mysql_fetch_array($query);
?>
<!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=windows-874" />
<title>:: Application เก็บสถิติข้อมูลบุคลากร ::</title>
<link href="../register_thaimed/style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
background-color: #CCCCCC;
}
-->
</style>
<script language="javascript">
function show_table(id) {
if(id == 1) { // ถ้าเลือก radio button 1 ให้โชว์ table 1 และ ซ่อน table 2
document.getElementById("table1").style.display = "";
document.getElementById("table2").style.display = "none";
} else if(id == 2) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("table1").style.display = "none";
document.getElementById("table2").style.display = "";
}else if(id == 3) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("table1").style.display = "none";
document.getElementById("table2").style.display = "";
}else if(id == 4) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("table1").style.display = "none";
document.getElementById("table2").style.display = "";
}
}
function show_table1(id) {
if(id == 1) { // ถ้าเลือก radio button 1 ให้โชว์ table 1 และ ซ่อน table 2
document.getElementById("tableo").style.display = "none";
} else if(id == 2) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tableo").style.display = "none";
}else if(id == 3) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tableo").style.display = "none";
}else if(id == 4) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tableo").style.display = "";
document.getElementById('inputOther').focus();
}
}
function show_table3(id) {
if(id == 1) { // ถ้าเลือก radio button 1 ให้โชว์ table 1 และ ซ่อน table 2
document.getElementById("tableo1").style.display = "none";
} else if(id == 2) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tableo1").style.display = "none";
}
}
function show_tableadd(id) {
if(id == 1) { // ถ้าเลือก radio button 1 ให้โชว์ table 1 และ ซ่อน table 2
document.getElementById("tableadd1").style.display = "none";
}
if(id == 2) { // ถ้าเลือก radio button 1 ให้โชว์ table 1 และ ซ่อน table 2
document.getElementById("tableadd1").style.display = "";
}
}
function CheckNum(){
if (event.keyCode < 48 || event.keyCode > 57){
event.returnValue = false;
}
}
</script>
<!-- import the calendar script -->
<link rel="stylesheet" type="text/css" href="myCalendarStyle.css">
<script type="text/javascript" src=".calendar/lib/calendar.js"></script>
<script type="text/javascript" src="calendar/lib/lang/calendar-th.js"></script>
<script type="text/javascript" src="calendar/lib/loadcalendar.js"></script>
<style type="text/css">
<!--
.style31 { font-size: 16px;
font-weight: bold;
}
.style31 { font-size: 16px;
font-weight: bold;
}
.inputlogin {background:#056839;
font-family:Tahoma, Geneva, sans-serif;
font-size:16px;
padding: 5px 10px 5px 10px;
color: #fff;
font-weight: bold;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
-moz-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
border-bottom: 1px solid rgba(0,0,0,0.25);
cursor: pointer;
border-left:none;
border-top:none;
margin:10px 0 10px 0;
}
-->
</style>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="49%" height="100" align="right" bgcolor="#C6ECD9"><img src="logo.png" width="120" height="120" onclick="window.location='datalist.php'" style="cursor:pointer" /></td>
<td width="51%" align="left" bgcolor="#C6ECD9"><span class="style31"><strong>Application เก็บสถิติข้อมูลบุคลากร</strong></span></td>
</tr>
<tr>
<td colspan="2" align="center" valign="top" bgcolor="#B9CADA"><br />
<table width="90%" border="1" align="center" style="border-collapse:collapse" bordercolor="#8EADBF">
<tr>
<td bgcolor="#FFFFFF"><div align="center">
<input type="submit" name="button22" id="button22" class="inputlogin" value="กลับหน้าหลัก" onclick="window.location='menu.php'" />
</div>
<? ###################################################
if($action=="add") {
$sqlchk="insert into stat values (NULL,
'$inputyear',
'$inputsection',
'$inputtype',
'$inputproject',
'$inputplace',
'$inputplace2',
'$inputdayf',
'$inputdayto',
'$inputDay',
'$inputMonth',
'$inputprice',
'$inputprice2',
'$inputno',
'$inputno2',
'$inputnodoc2',
'$inputno22',
'$inputnodoc3',
'$inputno33',
'$inputnodoc4',
'$inputno44',
'$inputnodoc5',
'$inputno55',
'$inputrad1',
'$inputnobook1',
'$inputdate1',
'$inputrad2',
'$inputnobook2',
'$inputdate2',
'$inputrad3',
'$inputnobook3',
'$inputdate3',
'$inputrad4',
'$inputnobook4',
'$inputdate4',
'$inputrad5',
'$inputnobook5',
'$inputdate5',
'$inputsad1',
'$inputsobook1',
'$inputdates1',
'$inputsad2',
'$inputsobook2',
'$inputdates2',
'$inputsad3',
'$inputsobook3',
'$inputdates3',
'$inputsad4',
'$inputsobook4',
'$inputdates4',
'$inputsad5',
'$inputsobook5',
'$inputdates5',
'$inputt',
'$inputtobook',
'$inputdatet',
'$inputu',
'$inputuobook',
'$inputdateu',
'$inputComment','','','','','','','','','$Idrefer')";
$querychk=mysql_query($sqlchk);
$sql="select MAX(Id) from stat";
$query=mysql_query($sql);
$row=mysql_fetch_array($query);
$MAXID=$row[0];
$myrand = rand(1111,9999);
$exts = explode(".", $_FILES['inputMap']['name']);
$ext = strtolower(($exts[count($exts) - 1]));
$ImageType = $ext;
if(copy($_FILES["inputMap"]["tmp_name"],"upload/$MAXID-$myrand.$ImageType"))
{
$inputmap=$_FILES["inputMap"]["name"];
$picmap = "$MAXID-$myrand.$ImageType";
$sql="insert into stat_attach values(NULL,'$MAXID','$picmap')";
$query=mysql_query($sql);
}
echo"<br />
<br />
<br />
<br /><table width=400 height=100 border=1 bordercolor=#C6ECD9 align=center cellpadding=0 cellspacing=0 bgcolor=#EFEFEF>
<tr>
<td height=100><div align=center><span class=table_footer style1><br>
ระบบได้บันทึกข้อมูลเรียบร้อยแล้ว</span><br>
<br />
<br />
<form id=form1 name=form1 method=post action=3.php>
<input type=image src=btn-submit.gif name=Image15112 width=57 height=20 border=0 id=Image15 style=cursor:pointer; />
</form>
<br>
</div></td>
</tr>
</table>"; ?><br />
<br />
<br />
<br />
<? } else { ?>
<table width="91%" border="0" align="center" cellpadding="5" cellspacing="2" bgcolor="#FFFFFF" >
<form method="post" enctype="multipart/form-data" name="myForm" id="myForm" >
<blockquote>
<p>
<input name="action" id="action" type="hidden" value="add" />
<input name="Idrefer" id="action" type="hidden" value="<?=$Id?>" />
</p>
</blockquote>
<tr>
<td width="608" align="right" class="table_col1"> </td>
</tr>
<tr>
<td align="right" class="table_col1"><table border="1" bordercolor="#003300" style="border-collapse:collapse" width="100%" align="center" cellpadding="10" >
<tr>
<td colspan="4" valign="top" align="center" bgcolor="#C6ECD9"><p><strong>บันทึกข้อมูลสถิติข้อมูลบุคลากร</strong></p>
<?
$sqls="select * from staff where Id='$row[Idrefer]'";
$querys=mysql_query($sqls);
$rows=mysql_fetch_array($querys);
?>
<p><strong><?=$rows[Prefix]?><?=$rows[Name]?> <?=$rows[Lname]?></strong></p></td>
</tr>
<tr>
<td width="26%" valign="top"><div align="left">
<p><strong>ปีงบประมาณ</strong></div></td>
<td colspan="3"><div align="left">
<?=$row[Year]?></div></td>
</tr>
<tr>
<td valign="top"><div align="left"><strong>ส่วนราชการ</strong></div></td>
<td colspan="3"> <?=$row[Name]?></td>
</tr>
<tr>
<td><div align="left"><strong>ประเภทโครงการ</strong></div></td>
<td colspan="3">
<?=$row[Surname]?></td>
</tr>
<tr>
<td><div align="left"><strong>ชื่อโครงการ / หลักสูตร</strong></div></td>
<td colspan="3"> <?=$row[Depart]?></td>
</tr>
<tr>
<td><div align="left"><strong>สถานที่ </strong></div></td>
<td width="27%"> <?=$row[Nodoc]?></td>
<td width="23%"><strong>ประเทศ</strong></td>
<td width="24%"> <?=$row[Project]?></td>
</tr>
<tr>
<td><div align="left"><strong>ตั้งแต่วันที่</strong></div></td>
<td> <?=$row[Place]?></td>
<td><strong>ถึงวันที่</strong></td>
<td> <?=$row[Type]?></td>
</tr>
<tr>
<td><div align="left"><strong>ระยะเวลา</strong></div></td>
<td colspan="3"><strong>
<?=$row[Date]?> วัน
<?=$row[Price]?> เดือน
<?=$row[Type1]?> ปี
</strong></td>
</tr>
<tr>
<td><div align="left"><strong>ประเภทงบประมาณ</strong></div></td>
<td colspan="3"> <?=$row[์No1]?></td>
</tr>
<tr>
<td><div align="left"><strong>จำนวนเงิน</strong></div></td>
<td colspan="3">เงินงบประมาณ
<?=$row[Date1]?>
เงินประเภทอื่น ๆ
<?=$row[Type2]?></td>
</tr>
<tr>
<td colspan="4" bgcolor="#C6ECD9"><strong>การรับ - ส่งหนังสือ </strong></td>
</tr>
<tr>
<td><div align="left"><strong>1.เลขที่หนังสือ</strong>(สพบ.)</div></td>
<td colspan="3"> <?=$row[No2]?>
<strong>ลงวันที่
<?=$row[Date2]?>
</strong></td>
</tr>
<tr>
<td><div align="left"><strong>2.เลขที่หนังสือ</strong>(สพบ.)</div></td>
<td colspan="3"><strong>
<?=$row[Type3]?>
ลงวันที่
<?=$row[No3]?>
</strong></td>
</tr>
<tr>
<td><div align="left"><strong>3.เลขที่หนังสือ</strong>(สพบ.)</div></td>
<td colspan="3"><strong>
<?=$row[Date3]?>
ลงวันที่
<?=$row[Datedoc1]?>
</strong></td>
</tr>
<tr>
<td><div align="left"><strong>4.เลขที่หนังสือ</strong>(สพบ.)</div></td>
<td colspan="3"><strong>
<?=$row[Nodoc2]?>
ลงวันที่
<?=$row[Datedoc2]?>
</strong></td>
</tr>
<tr>
<td><div align="left"><strong>5.เลขที่หนังสือ</strong>(สพบ.)</div></td>
<td colspan="3"><strong>
<?=$row[Nodoc3]?>
ลงวันที่
<?=$row[Datedoc3]?>
</strong></td>
</tr>
<tr>
<td colspan="4" bgcolor="#C6ECD9"><strong>การรายงานตัวกลับ</strong></td>
</tr>
<tr>
<td><strong>1.การรายงานตัวกลับ<br />
</strong></td>
<td colspan="3"> <?=$row[Nodoc4]?>รายงานตัวกลับแล้ว
<br />
ยังไม่รายงานตัวกลับ<br />
<br />
เลขที่หนังสือ
<?=$row[Datedoc4]?>
<br />
<br />
ลงวันที่
<?=$row[Nodoc5]?></td>
</tr>
<tr>
<td><strong>2.การรายงานตัวกลับ<br />
</strong></td>
<td colspan="3"> <?=$row[Datedoc5]?>
รายงานตัวกลับแล้ว <br />
ยังไม่รายงานตัวกลับ<br />
<br />
เลขที่หนังสือ
<?=$row[Day1]?>
<br />
<br />
ลงวันที่่
<?=$row[Month1]?></td>
</tr>
<tr>
<td><strong>3.การรายงานตัวกลับ<br />
</strong></td>
<td colspan="3"> <?=$row[Year1]?>
รายงานตัวกลับแล้ว <br />
ยังไม่รายงานตัวกลับ<br />
<br />
เลขที่หนังสือ
<?=$row[rad1]?>
<br />
<br />
ลงวันที่
<?=$row[nobook1]?></tr>
<tr>
<td><strong>4.การรายงานตัวกลับ<br />
</strong></td>
<td colspan="3"><?=$row[datebook1]?>
รายงานตัวกลับแล้ว <br />
ยังไม่รายงานตัวกลับ<br />
<br />
เลขที่หนังสือ
<?=$row[rad2]?>
<br />
<br />
ลงวันที่
<?=$row[nobook2]?></td>
</tr>
<tr>
<td><strong>5.การรายงานตัวกลับ<br />
</strong></td>
<td colspan="3"><?=$row[datebook2]?>
รายงานตัวกลับแล้ว <br />
ยังไม่รายงานตัวกลับ<br />
<br />
เลขที่หนังสือ
<?=$row[rad3]?>
<br />
<br />
ลงวันที่
<?=$row[nobook3]?></td>
</tr>
<tr>
<td colspan="4" bgcolor="#C6ECD9"><strong>การส่งรายงาน</strong></td>
</tr>
<tr>
<td><strong>1.การส่งรายงาน<br />
</strong></td>
<td colspan="3"><?=$row[datebook3]?>
ส่งรายงานแล้ว<br />
ยังไม่ส่งรายงาน<br />
<br />
เลขที่หนังสือ
<?=$row[rad4]?><br />
<br />
ลงวันที่
<?=$row[nobook4]?></td>
</tr>
<tr>
<td><strong>2.การส่งรายงาน<br />
</strong></td>
<td colspan="3"><?=$row[datebook4]?>
ส่งรายงานแล้ว<br />
ยังไม่ส่งรายงาน<br />
<br />
เลขที่หนังสือ
<?=$row[rad5]?>
<br />
<br />
ลงวันที่
<?=$row[nobook5]?></td>
</tr>
<tr>
<td><strong>3.การส่งรายงาน<br />
</strong></td>
<td colspan="3"><?=$row[datebook5]?>
ส่งรายงานแล้ว<br />
ยังไม่ส่งรายงาน<br />
<br />
เลขที่หนังสือ
<?=$row[rads1]?>
<br />
<br />
ลงวันที่
<?=$row[nobooks1]?></td>
</tr>
<tr>
<td><strong>4.การส่งรายงาน<br />
</strong></td>
<td colspan="3"><?=$row[datebooks1]?>
ส่งรายงานแล้ว<br />
ยังไม่ส่งรายงาน<br />
<br />
เลขที่หนังสือ
<?=$row[rads2]?>
<br />
<br />
ลงวันที่
<?=$row[nobooks2]?></td>
</tr>
<tr>
<td><strong>5.การส่งรายงาน<br />
</strong></td>
<td colspan="3"><?=$row[datebooks2]?>
ส่งรายงานแล้ว<br />
ยังไม่ส่งรายงาน<br />
<br />
เลขที่หนังสือ
<?=$row[rads3]?>
<br />
<br />
ลงวันที่
<?=$row[nobooks3]?></td>
</tr>
<tr>
<td colspan="4" bgcolor="#C6ECD9"><strong>การส่งแผนพัฒนางาน</strong></td>
</tr>
<tr>
<td><strong>การส่งแผนพัฒนางาน</strong></td>
<td colspan="3"><?=$row[datebooks3]?>
ส่งแผนพัฒนางานแล้ว<br />
ยังไม่ส่งแผนพัฒนางาน<br />
<br />
เลขที่หนังสือ
<?=$row[rads4]?>
<br />
<br />
ลงวันที่
<?=$row[nobooks4]?></td>
</tr>
<tr>
<td><strong>แบบติดตามความก้าวหน้าการพัฒนางาน<br />
หลังจากกลับจากการศึกษา/ฝึกอบรม</strong></td>
<td colspan="3"><?=$row[datebooks4]?> ส่งรายงานความก้าวหน้าฯ แล้ว<br />
ยังไม่ส่งรายงานความก้าวหน้าฯ<br />
<br />
เลขที่หนังสือ
<?=$row[rads5]?>
<br />
<br />
ลงวันที่
<?=$row[nobooks5]?></td>
</tr>
<tr>
<td><strong>หมายเหตุ</strong></td>
<td colspan="3"><?=$row[datebooks5]?></td>
</tr>
</table></td>
</tr>
<tr>
<td height="57" align="right" class="table_col1"><div align="center"><br />
<br />
<br />
</div>
<br />
<p> </p></td>
</tr>
</form>
</table>
<p></p>
<strong> </strong><strong> </strong></td>
</tr>
</table>
<p> </p></td>
</tr>
</table>
<? } ?>
</body>
</html>
Hacked By AnonymousFox1.0, Coded By AnonymousFox