Hacked By AnonymousFox

Current Path : C:/AppServ/www/stat/
Upload File :
Current File : C:/AppServ/www/stat/report.php

<?
include"connect.php";
include("function.php");
include("register_global.php");
$Id=$_GET["Id"];

?>
<!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>

 	                <!-- import the calendar script -->
	                <link rel="stylesheet" type="text/css" href="../register_thaimed/myCalendarStyle.css">
	                <script type="text/javascript" src="../register_thaimed/calendar/lib/calendar.js"></script>
	                <script type="text/javascript" src="../register_thaimed/calendar/lib/lang/calendar-th.js"></script>
	                <script type="text/javascript" src="../register_thaimed/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>
<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>
</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  &#3648;&#3585;&#3655;&#3610;&#3626;&#3606;&#3636;&#3605;&#3636;&#3586;&#3657;&#3629;&#3617;&#3641;&#3621;&#3610;&#3640;&#3588;&#3621;&#3634;&#3585;&#3619;</strong></span></td>
  </tr>
  <tr>
    <td colspan="2" align="center" valign="top" bgcolor="#B9CADA"><br />
      <table width="98%" border="1" align="center" style="border-collapse:collapse" bordercolor="#8EADBF" cellpadding="10">
        
          <tr>
            <td width="83%" valign="top" bgcolor="#FFFFFF"><div align="center">
              <input type="submit" name="button22" id="button22" class="inputlogin" value="กลับหน้าหลัก" onclick="window.location='menu.php'" />
            </div>
              <a name="รายงานประวัติการศึกษา" id="รายงานประวัติการศึกษา"><strong>รายงานประวัติการศึกษา </strong></a><strong>/  ฝึกอบรม /ประชุม / สัมมนา / ดูงาน</strong>
              <p></a><strong>ชื่อ  - นามสกุล </strong><strong>:   <?
			 $sqls="select * from staff where Id='$Id'";
$querys=mysql_query($sqls);
$rows=mysql_fetch_array($querys);
?><? if($rows[Prefix]=="1"){ echo"นาย";  } if($rows[Prefix]=="2"){ echo"นางสาว";  }if($rows[Prefix]=="3"){ echo"นาง";  }?><?=$rows[Name]?>    <?=$rows[Lname]?>
                                                                         ตำแหน่ง :<?=$rows[Position]?></strong><br />
                </p>
              <p><strong>ส่วนราชการ </strong><strong>: <?=$rows[Part]?> </strong>            </p>
              <table width="100%" border="1" cellpadding="10" cellspacing="1" style="border-collapse:collapse" bordercolor="#CCCCCC">
              
                <input name="SystemModuleKey" type="hidden" id="SystemModuleKey" value="<?=$inputGroupID?>" />
                <input name="SystemMenuID" type="hidden" id="SystemMenuID" value="<?=$SystemMenuID?>" />
                <input name="action" type="hidden" id="action" />
                <input type="hidden" id="GroupID" name="GroupID" value="<?=$GroupID?>" />
                <input name="PageSize" type="hidden" id="PageSize" value="<?=$PageSize?>" />
                <input name="PageShow" type="hidden" id="PageShow" value="<?=$PageShow?>" />
                <input name="ASCDESC" type="hidden" id="ASCDESC" value="<?=$ASCDESC?>" />
                <input name="OrderBy" type="hidden" id="OrderBy" value="<?=$OrderBy?>" />
                <input name="PageSearch" type="hidden" id="PageSearch" value="<?=$PageSearch?>" />
                <input name="inputStartDateSearch" type="hidden" id="inputStartDateSearch" value="<?=$inputStartDateSearch?>" />
                <input name="inputExpireDateSearch" type="hidden" id="inputExpireDateSearch" value="<?=$inputExpireDateSearch?>" />
                <input name="SelectStatus" type="hidden" id="SelectStatus" />
                <input name="SelectMarquee" type="hidden" id="SelectMarquee" />
                <input name="SelectMove" type="hidden" id="SelectMove" />
                <tr align="center" bgcolor="#083d69">
                  <td width="126" align="center" bgcolor="#C6ECD9"><strong>ปีงบประมาณ</strong></td>
                  <td width="118"  bgcolor="#C6ECD9"><strong>เลขที่หนังสือ</strong></td>
                  <td width="160" bgcolor="#C6ECD9"><strong>ชื่อโครงการ / หลักสูตร </strong></td>
                  <td width="156" bgcolor="#C6ECD9"><div align="center"><strong>วัน - เวลา </strong></div></td>
                  <td width="122" bgcolor="#C6ECD9"><strong>สถานที่</strong></td>
                  <td width="108" bgcolor="#C6ECD9"><strong>ประเทศ</strong></td>
                  <td width="110" bgcolor="#C6ECD9"><strong>ประเภทโครงการ</strong></td>
                  <td width="40"  bgcolor="#C6ECD9"><strong>จำนวนเงิน</strong></td>
                  <td width="41"  bgcolor="#C6ECD9"><strong>ไฟล์ที่เกี่ยวข้อง</strong></td>
                </tr>
				<?
				$sql="select * from stat where Idrefer='$Id' order by Id desc";
$query=mysql_query($sql);
while($Row=mysql_fetch_array($query)){
				?>
				
                <tr >
                  <td height="46" align="center"><span class="text_bold">
                    <?=$Row[Year]?>
                  </span></td>
                  <td height="46" align="center" valign="middle"><span class="text_bold">
                    <?=$Row[No2]?>
                  </span></td>
                  <td height="46" align="center" valign="middle"><span class="text_bold">
                    <?=$Row[Depart]?>
                  </span></td>
                  <td height="46" align="center" valign="middle"><span class="text_bold">
                    <?=$Row[Place]?>
-
<?=$Row[Type]?>
                  </span></td>
                  <td height="46" align="center" valign="middle"><span class="text_bold">
                    <?=$Row[Nodoc]?>
                  </span></td>
                  <td height="46" align="center" valign="middle"><span class="text_bold">
                    <?=$Row[Project]?>
                  </span></td>
                  <td height="46" align="center" valign="middle"><span class="text_bold">
                    <?=$Row[Surname]?>
                  </span></td>
                  <td height="46" align="center"><span class="text_bold">
                    <?=$Row[Place]?>
                  </span></td>
                  <td height="46" align="center"><strong>
				    <?
		  $sqlat="select * from stat_attach where Idrefer='$Row[Id]'";
$queryat=mysql_query($sqlat);
$rowat=mysql_fetch_array($queryat);
?>
				  <a href="upload/<?=$rowat[Doc]?>" target="_blank">ไฟล์</a></strong></td>
                </tr>
				<? } ?>
            </table>            
            <p>&nbsp;</p></td>
          </tr>
      </table>
      <br /></td>
  </tr>
</table>
</body>
</html>

Hacked By AnonymousFox1.0, Coded By AnonymousFox