Hacked By AnonymousFox

Current Path : C:/AppServ/www/stato/
Upload File :
Current File : C:/AppServ/www/stato/datalist.php

<? 
include("connect.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=windows-874" />
<title>:: Application เก็บสถิติข้อมูลบุคลากร ::</title>
<link href="../register_thaimed/style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style1 {
	font-size: 16;
	font-weight: bold;
}
body {
	background-color: #CCCCCC;
}
.style3 {
	font-size: 16px;
	font-weight: bold;
}
-->
</style>
</head><head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874" />
<title>:: สมัครลงทะเบียนเข้าร่วมโครงการ ระยะที่ 1 ::</title>
<link href="../register_thaimed/style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style1 {
	font-size: 16;
	font-weight: bold;
}
body {
	background-color: #CCCCCC;
}
.style3 {
	font-size: 16px;
	font-weight: bold;
}
-->
</style>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
                          <table width="95%"  border="0" align="center" cellpadding="0" cellspacing="0">
                            
                            <tr valign="top" bgcolor="#E0E0E0">
                              <td colspan="2"><img src="../images/main/spacer.gif" width="1" height="1" /></td>
                            </tr>
                            
                            <tr valign="top">
                              <td width="1"><img src="../images/main/spacer.gif" width="1" height="1" /></td>
                              <td width="1403"><table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0">
                                  
                                  <tr>
                                    <td width="29%" valign="top" bgcolor="#C6ECD9"><div align="center" class="style1">
                                      <p><br />
                                      </p>
                                    </div></td>
                                    <td width="13%" valign="top" bgcolor="#C6ECD9" align="center"><img src="logo.png" width="120" height="120" /></td>
                                    <td width="58%" bgcolor="#C6ECD9"><span class="style3"><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="3" valign="top" bgcolor="#FFFFFF"><p>&nbsp;</p>
<?
## Default Value ############################################
$SystemModule_defaultPageSize = 30;
$SystemModule_defaultPageShow = 1;
$SystemModule_MaxPage = 20;
$SystemModule_ReduceRange = 10; 		// +,- from current page show
$SystemModule_ASCDESC = "DESC";
$SystemModule_OrderBy = $myModule_Table."_Order";

#########################################################

# Check to set default value #########################
if($PageSize=="") { $PageSize = $SystemModule_defaultPageSize; }
if($PageShow=="") { $PageShow = $SystemModule_defaultPageShow; }
//if($ASCDESC=="") { $ASCDESC = "DESC"; } 
$ASCDESC = "DESC";
if($OrderBy=="") { $OrderBy = $myModule_Table."_Order"; } 
//$O	Lname LIKE '%$PageSearch%' ) ";
if($PageSearch!="") { $PageSearch=trim($PageSearch); }

# Count total record size #########################
if($PageSearch=="") { //debug($System_Session_Language);
	$sql = "SELECT * FROM stat";
} else {
	$sql = "SELECT * FROM stat WHERE 1 AND (Name LIKE '%$PageSearch%' OR 
	Surname LIKE '%$PageSearch%' ) ";
}

$Query=mysql_query($sql) OR DIE("Error: เกิดความผิดพลาด <br>$sql<br>\n");
$TotalRecordCount=MYSQL_NUMROWS($Query);

# Find max page size #########################
if($TotalRecordCount>$PageSize) {
	$NoOfPage= ceil($TotalRecordCount/$PageSize);
} else {
	$NoOfPage=1;
}
# Recover page show into range #########################
if($PageShow>$NoOfPage) { $PageShow=$NoOfPage; }

# Select only paging range #########################
$RecordStart = ($PageShow-1)*$PageSize;
$sql=$sql." ORDER BY ID DESC LIMIT $RecordStart , $PageSize";
$Query=mysql_query($sql) OR DIE("Error: เกิดความผิดพลาด <br>$sql<br>\n");
$RecordCount=MYSQL_NUMROWS($Query);
?>
<table width="95%" height="26" border="0" align="center" cellpadding="0" cellspacing="0" class="table_toolbar">
  <form action="../register_thaimed/?" method="post" name="myToolbarForm" id="myToolbarForm" onSubmit="return false;">
		<input name="SystemModuleKey" type="hidden" id="SystemModuleKey" value="<?=$inputGroupID?>">
		<input type="hidden" id="GroupID" name="GroupID" value="<?=$GroupID?>">
		<input name="SystemMenuID" type="hidden" id="SystemMenuID" value="<?=$SystemMenuID?>">
		<tr>
		  <td align="left" valign="top">&nbsp;</td>
		  <td valign="bottom">&nbsp;</td>
		  <td align="right" valign="bottom"><input name="btPageSearch2" type="button" class="button_60" id="btPageSearch2" value="เพิ่มข้อมูลใหม่" onclick="window.location='register.php'" /></td>
		  <td align="right" valign="top">&nbsp;</td>
		  </tr>
		<tr> 
		<td width="5" align="left" valign="top">&nbsp;</td>
		<td valign="bottom"> <table border="0" cellpadding="2" cellspacing="0" class="toolbar">
		<tr> 
		<td width="10">&nbsp;</td>
		<td>Page</td>
		<td> 
		<? 
		if($NoOfPage>1) { 
		?>
		<select name="toolbarPageShow" class="select" onChange="document.myForm.PageShow.value=this.value; document.myForm.submit(); ">
		<? 
		if($NoOfPage<$SystemModule_MaxPage) {
		// Show page list #########################
		for($i=1;$i<=$NoOfPage;$i++) { 
		echo "<option value=\"$i\"";
		if($i==$PageShow) { echo " selected"; }
		echo ">$i</option>";
		} 
		}  else {
		// # If total page count greater than default max page  value then reduce page select size #########################
		$starti = $PageShow-$SystemModule_ReduceRange;
		if($starti<1) { $starti=1; }
		$endi = $PageShow+$SystemModule_ReduceRange;
		if($endi>$NoOfPage) { $endi=$NoOfPage; }
		//#####################
		for($i=$starti ;$i<=$endi;$i++) { 
		echo "<option value=\"$i\"";
		if($i==$PageShow) { echo " selected"; }
		echo ">$i</option>";
		} 
		}
		?>
		</select> 
		<? 
		} else { 
		echo "1";
		}
		?>
		</td>
		<td>of 
		<?=$NoOfPage?>
		</td>
		<td width="10">&nbsp;</td>
		<td>Page size</td>
		<td> <input name="toolbarPageSize" type="text" class="input_center" id="toolbarPageSize" value="<?=$PageSize?>" size="3" maxlength="3"></td>
		<td> <input name="btChangePageSize" type="button" class="button_normal" id="btChangePageSize" value=" Go " onClick="
		if(isNaN(document.myToolbarForm.toolbarPageSize.value*1)) {
		document.myToolbarForm.toolbarPageSize.value='<?=$PageSize?>';
		document.myToolbarForm.toolbarPageSize.focus();
		return false;
		}
		if(document.myToolbarForm.toolbarPageSize.value<=0) {
		document.myToolbarForm.toolbarPageSize.value='<?=$PageSize?>';
		document.myToolbarForm.toolbarPageSize.focus();
		return false;
		}
		document.myForm.PageSize.value=document.myToolbarForm.toolbarPageSize.value; 
		document.myForm.submit(); 
		"> </td>
		</tr>
		</table></td>
		<td align="right" valign="bottom"> <table border="0" cellpadding="0" cellspacing="0">
		<tr> 
		<td>Found 
		<?=$TotalRecordCount?>
		record(s)</td>
		<td width="10">&nbsp;</td>
		<? if($PageShow>1) { ?>
		<? } else { ?>
		<? } ?>
		<? if($PageShow>1) { ?>
		<? } else { ?>
		<? } ?>
		<? if($PageShow<$NoOfPage) { ?>
		<? } else { ?>
		<? } ?>
		<? if($PageShow<$NoOfPage) { ?>
		<? } else { ?>
		<? } ?>
		</tr>
		</table></td>
		<td width="5" align="right" valign="top">&nbsp;</td>
		</tr>
		</form>
		</table><table width="95%" border="0" align="center" cellpadding="0" cellspacing="1">
		<tr> 
		<td bgcolor="#FFFFFF"> <table width="100%" height="24" border="0" cellpadding="3" cellspacing="0" class="table_button_bottom2">
          <form action="?" method="post" name="mySearchForm" id="mySearchForm" onsubmit="return false;">
            <input name="SystemModuleKey2" type="hidden" id="SystemModuleKey2" value="<?=$inputGroupID?>" />
            <input name="SystemMenuID2" type="hidden" id="SystemMenuID2" value="<?=$SystemMenuID?>" />
            <input type="hidden" id="GroupID2" name="GroupID2" value="<?=$GroupID?>" />
            <tr align="right">
              <td colspan="4" align="right" bgcolor="#FFFFFF" class="table_footer"><table border="0" cellpadding="2" cellspacing="0" class="table_footer">
                  <tr>
                    <td><input name="toolbarPageSearch" type="text" class="input_left" id="toolbarPageSearch" value="<?=$PageSearch?>" size="20" maxlength="50" /></td>
                    <td><input name="btPageSearch" type="button" class="button_60" id="btPageSearch" value="Search" onclick="
		document.myForm.PageSearch.value=document.mySearchForm.toolbarPageSearch.value;
		document.myForm.submit();
		" /></td>
                  </tr>
              </table></td>
            </tr>
          </form>
		  </table>
		  <table width="100%" border="1" cellpadding="1" cellspacing="1" style="border-collapse:collapse" bordercolor="#CCCCCC">
		<form action="?" method="post" name="myForm" id="myForm">
		<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="84" height="30" align="center" bgcolor="#C6ECD9"><strong>ปีงบประมาณ</strong></td>
		<td width="83" height="30" bgcolor="#C6ECD9"><strong>ชื่อโครงการ<br />
		  หลักสูตร</strong></td>
		<td width="86" bgcolor="#C6ECD9"><strong>เลขที่หนังสือ</strong></td>
		<td width="71" height="30" bgcolor="#C6ECD9"><strong><font class="TableHead">ชื่อ<br />
		  นามสกุล</font></strong></td>
		<td width="141" bgcolor="#C6ECD9"><div align="center"><strong>ส่วนราชการ</strong></div></td>
		<td width="70" bgcolor="#C6ECD9"><strong>&#3611;&#3619;&#3632;&#3648;&#3616;&#3607;<br />
		  &#3650;&#3588;&#3619;&#3591;&#3585;&#3634;&#3619;</strong></td>
		<td width="55" bgcolor="#C6ECD9"><strong>สถานที่</strong></td>
		<td width="80" height="30" bgcolor="#C6ECD9"><strong>&#3623;&#3633;&#3609;&#3607;&#3637;&#3656;&#3648;&#3604;&#3636;&#3609;&#3607;&#3634;&#3591;<br />
		  &#3623;&#3633;&#3609;&#3611;&#3619;&#3632;&#3594;&#3640;&#3617; </strong></td>
		<td width="94" bgcolor="#C6ECD9"><strong>&#3611;&#3619;&#3632;&#3648;&#3616;&#3607;<br />
&#3591;&#3610;&#3611;&#3619;&#3632;&#3617;&#3634;&#3603;</strong></td>
		<td width="162" bgcolor="#C6ECD9"><strong>ข้อมูลอื่น</strong></td>
		<td width="117" bgcolor="#C6ECD9"><strong>เอกสารแนบ</strong></td>
		<td width="62" height="30" valign="top" bgcolor="#C6ECD9"><strong>จัดการ<br />
ข้อมูล</strong></td>
		</tr>
		<?
		$RecordCount=mysql_num_rows($Query);
		$index=1;
		if($RecordCount>0) {
		while($index<$RecordCount+1) {
		if($myClassRow=="table_row1") { $myClassRow="table_row2"; } else { $myClassRow="table_row1";  }
		$Row=MYSQL_FETCH_ARRAY($Query);
		?>
		<tr class="<?=$myClassRow?>" onMouseOver="this.className='table_rowover'" onMouseOut="this.className='<?=$myClassRow?>'"> 
		<td width="84" height="46" align="center"><span class="text_bold">
		  <?=$Row[Year]?>
		</span></td>
		<td width="83" height="46" align="center" valign="middle"><span class="text_bold">
		  <?=$Row[Project]?>
		</span></td>
		<td width="86" height="46" align="center" valign="middle"><span class="text_bold">
		 <?=$Row[Nodoc]?>
		</span></td>
		<td height="46" > <span class="text_bold"> 
		  <?=$Row[Name]?>  <?=$Row[Surname]?>
		  </span><br></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[Type]?>
		</span></td>
		<td height="46" align="center" valign="middle"><span class="text_bold">
		  <?=$Row[Place]?>
		</span></td>
		<td width="80" height="46" align="center" valign="middle"><span class="text_bold">
		  <?=$Row[Date]?>
		  </span></td>
		<td width="94" height="46" align="center" valign="middle"><span class="text_bold">
		  <?=$Row[Price]?>
		</span></td>
		<td width="162" height="46" align="center" valign="middle"><strong>การรายงานตัวกลับ</strong>
		  <span class="text_bold">
		  <br />
		  <? if ($Row[Date1]=="1") {  echo"รายงานตัวกลับแล้ว
";  }else{  echo" ยังไม่รายงานตัวกลับ";  } ?>
		  </span><strong><br />
		  เลขที่หนังสือ<span class="text_bold">
		  <br />
		  <?=$Row[No1]?>
          </span></strong>
		  <strong><br />
		  ลงวันที่<span class="text_bold">
<br />
<?=$Row[Date1]?>
          </span></strong><br />
          <br />
          <strong>การส่งรายงาน</strong><span class="text_bold"><br />
            <? if ($Row[Date1]=="1") {  echo" ส่งรายงานแล้ว";  }else{  echo" ยังไม่ส่งรายงาน";  } ?>
          </span><strong><br />
          เลขที่หนังสือ<span class="text_bold"><br />
          <?=$Row[No2]?>
          </span></strong> <strong><br />
ลงวันที่<span class="text_bold">
<br />
<?=$Row[Date2]?>
</span></strong> <br />
<br />
<strong>การส่งแผนพัฒนางาน</strong><span class="text_bold"><br />
   <? if ($Row[Date1]=="1") {  echo" ส่งแผนพัฒนางานแล้ว";  }else{  echo" ยังไม่ส่งแผนพัฒนางาน";  } ?>
</span><strong><br />
เลขที่หนังสือ<span class="text_bold">
<br />
<?=$Row[No3]?>
</span></strong> <strong><br />
ลงวันที่<span class="text_bold">
<br />
<?=$Row[Date3]?>
</span></strong><br /></td>
		<td width="117" height="46" align="center" valign="middle">
		  <?
        $sqlatt="select * from stat_attach where Idrefer='$Row[Id]'";
		$queryatt=mysql_query($sqlatt);
		while($rowatt=mysql_fetch_array($queryatt)){
		?>
		  <a href="upload/<?=$rowatt[Doc]?>" target="_blank"><?=$rowatt[Doc]?></a><br />
		  <? } ?>
		  </td>
		<td height="46" align="center">
		  <table border="0" cellspacing="0" cellpadding="1">
		    <tr align="center" valign="bottom"> 
		      <td>&nbsp;</td>
		      <td><a href="edit.php?Id=<?=$Row[Id]?>">
		        <img src="ico425.gif" alt="Edit" width="16" height="16" border="0" onMouseOver="this.style.cursor='hand'"></a></td>
		      <td>
		        <img src="ico417.gif" alt="Delete" width="16" height="16" border="0" onMouseOver="this.style.cursor='hand'" onClick="
if(confirm('Are you sure to delete this record?')) {
window.location='delete.php?Id=<?=$Row[Id]?>'}"></td>
		      </tr>
		    </table></td>
		</tr>
		<?
		$index++;
		}
		} else {  ?>
		<tr class="table_row1"> 
		<td height="80" colspan="12" align="center"> Data not found!</td>
		</tr>
		<? } ?>
		<input name="TotalCheckBoxID" type="hidden" id="TotalCheckBoxID" value="<?=$index-1?>">
		</form>
		</table>
		</td>
		</tr>
		</table>
		<p>&nbsp;</p></td></tr></table></td></tr></table></body></html>

Hacked By AnonymousFox1.0, Coded By AnonymousFox