Hacked By AnonymousFox

Current Path : C:/AppServ/www/mfu/webengine/mod_member/
Upload File :
Current File : C:/AppServ/www/mfu/webengine/mod_member/history_t.php

<? 
include("../lib/session.php"); 
include("../lib/config.php");
include("../lib/connect.php");
include("../lib/function.php");
include("../lib/register_global.php");
?>
<html>
<head>

<title><?=$System_Variable_Title?></title>
 
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
<link href="../css/mystyle.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
-->
</style>
</head> 
<body bgcolor="#E9E6DF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('../../images/thai.gif','../../images/eng.gif','../../images/chaina.gif','../../images/object/topbar-thai-over.gif','../../images/object/topbar-english-over.gif','../images/bullet/lang_over_02_1.gif','../images/bullet/lang_over_01_1.gif')">

<table width="95%" height="26" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="1" bgcolor="#A13626"><img src="../../images/blank.gif" width="1" height="1"></td>
    <td background="../../images/main/main-t-bg.gif" bgcolor="#831B0E"><table width="100%" height="26" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="867" valign="top"><img src="../../webengine/bar.jpg" width="567" height="70" alt="กระทรวงศึกษาธิการ" />&nbsp;</td>
        <td width="115" align="right" valign="top">&nbsp;</td>
      </tr>
    </table></td><td width="1" bgcolor="#A13626"><img src="../../images/blank.gif" width="1" height="1"></td>
  </tr>
</table>
	<div align="center">
	<br>
<p>ประวัติการฝึกอบรมกลุ่มงานศัลยกรรม,กลุ่มงานสูตินรีเวชกรรม,กลุ่มงานกุมารเวชกรรม<br>
</p>
<table width="95%" height="22" border="0" cellpadding="2" cellspacing="0" class="table_header">
  <tr>
    <td align="right"><span class="table_col1"><a href="list_special.php" target="_blank">จำนวนประวัติการเข้าอบรม</a></span></td>
  </tr>
</table>
	</div>
<table width="95%" height="6" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr> 
    <td width="1" bgcolor="#A13626"><img src="../../images/blank.gif" width="1" height="1"></td>
    <td width="587" bgcolor="#A13626"><img src="../../images/blank.gif" width="1" height="1"></td>
    <td width="1" bgcolor="#A13626"><img src="../../images/blank.gif" width="1" height="1"></td>
  </tr>
</table>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr> 
    <td width="1" bgcolor="#A13626"><img src="../../images/blank.gif" width="1" height="1"></td>
    <td align="center" valign="top"><table width="100%" height="480" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td align="center" valign="top" bgcolor="#E9E6DF"> 
            <table width="100%" height="100%"  border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="16" valign="top" bgcolor="#C4BDB1">&nbsp;</td>
        <td align="center" valign="top" bgcolor="#C4BDB1">&nbsp;</td>
        <td valign="top" bgcolor="#C4BDB1">&nbsp;</td>
      </tr>
      <tr>
        <td width="20" valign="top" background="../images/object/border_03.gif"><img src="../images/object/border_16.gif" width="20" height="83"></td>
        <td align="center" valign="top" bgcolor="#FFFFFF">
<? 
	include("config.php");
	if($action=="view") { 
	$myCheckBoxID=0;
	for($i=1;$i<=$TotalCheckBoxID;$i++) {
		$myVar="CheckBoxID".$i;
		if(strlen($$myVar)>0) {
			$myCheckBoxID=$$myVar;
		}
	}
	$sql="SELECT * FROM mfu_mod_teacher WHERE Id='$myCheckBoxID'";
	$Query=MYSQL_DB_QUERY($System_DataBase_Name,$sql) OR DIE("Error: เกิดความผิดพลาด <br>$sql<br>\n");
	$Row=MYSQL_FETCH_ARRAY($Query);
	$inputPass = $Row[$myModule_Table."_Pass"];
	$inputID = $Row[$myModule_Table."_member_ID"];
	$inputUser = $Row[$myModule_Table."_User"];
	$inputFName = $Row[$myModule_Table."_FName"];
	$inputLName = $Row[$myModule_Table."_LName"];
	$inputGender = $Row[$myModule_Table."_Gender"];
	$inputGroup = $Row[$myModule_Table."_Group"];
	$inputAddress = $Row[$myModule_Table."_HomeTown"];
	$inputCityID = $Row[$myModule_Table."_CityID"];
	$inputPostalCode = $Row[$myModule_Table."_PostalCode"];
	$inputPhone = $Row[$myModule_Table."_Phone"];
	$BirthArr=explode('-',$Row[$myModule_Table."_BirthDate"]);
	$inputDate=$BirthArr[2];
	$inputMonth=$BirthArr[1];
	$inputYear=$BirthArr[0];
	
	$inputBirthDate = $Row[$myModule_Table."_BirthDate"];
	?>
                  <br>
                  <table width="90%" border="0" cellpadding="0" cellspacing="0">
                    <form action="?" method="post" name="myReturnForm" id="myReturnForm">
                      <input name="SystemModuleKey" type="hidden" id="SystemModuleKey" value="<?=$SystemModuleKey?>">
                      <input name="SystemMenuID" type="hidden" id="SystemMenuID" value="<?=$SystemMenuID?>">
                      <input name="action" type="hidden" id="action" value="">
                      <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="PageSearchInField" type="hidden" id="PageSearchInField" value="<?=$PageSearchInField?>">
					  <input name="MemberType" type="hidden" id="MemberType" value="<?=$MemberType?>">
                    </form>
                    <form action="?" method="post" name="myForm" id="myForm">
                      <input name="SystemModuleKey" type="hidden" id="SystemModuleKey" value="<?=$SystemModuleKey?>">
                      <input name="SystemMenuID" type="hidden" id="SystemMenuID" value="<?=$SystemMenuID?>">
                      <input name="action" type="hidden" id="action" value="edit">
                      <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="PageSearchInField" type="hidden" id="PageSearchInField" value="<?=$PageSearchInField?>">
                      <input name="CheckBoxID1" type="hidden" id="CheckBoxID1" value="<?=$myCheckBoxID?>">
                      <input name="TotalCheckBoxID" type="hidden" id="TotalCheckBoxID" value="1">
					  <input name="MemberType" type="hidden" id="MemberType" value="<?=$MemberType?>">
                      <tr> 
                        <td  bgcolor="#FFFFFF" class="table_col2"> <table width="100%" border="0" cellpadding="2" cellspacing="1">
                            <tr> 
                              <td height="24" colspan="2" align="center" class="menu_table_header">View 
                              </td>
                            </tr>
                          </table>
						<table width="100%" border="0"  cellpadding="0" cellspacing="1">
                              <tr> 
                                <td> <table width="100%" border="0" cellpadding="2" cellspacing="1" class="table_border">
                                  <tr>
                                    <td height="22" colspan="2" class="table_col3">&nbsp;&nbsp;<img src="../../webengine/images/bullet/box21.gif" width="11" height="11">&nbsp;&nbsp;ข้อมูล</td>
                                  </tr>
                                  <tr>
                                    <td height="22" align="right" class="table_col1">Picture&nbsp;&nbsp;&nbsp;</td>
                                    <td height="22" class="table_col2"> <? if($Row[picture]!=""){?>
							  <img src="../../upload/member/<?=$Row[picture]?>">
							  <? } ?>&nbsp;<br>
							  <? if($Row[Choose]=="1"){ echo"หัวหน้าภาควิชา";}if($Row[Choose]=="2"){ echo"รองหัวหน้าภาควิชา";}?></td>
                                  </tr>
                                  <tr>
                                    <td height="22" align="right" class="table_col1"><LABEL for="checkbox_row_2">posnmfull</LABEL>                                      &nbsp;&nbsp;&nbsp;</td>
                                    <td height="22" class="table_col2"><?=$Row[posnmfull]?></td>
                                  </tr>
                                  <tr>
                                    <td width="22%" height="22" align="right" class="table_col1"> <LABEL for="checkbox_row_3">posno</LABEL>
                                      &nbsp; 
                                      &nbsp;</td>
                                    <td width="78%" height="22" class="table_col2"><?=$Row[posno]?></td>
                                  </tr>
                                  <tr>
                                    <td width="22%" height="22" align="right" class="table_col1">name&nbsp;&nbsp;&nbsp; </td>
                                    <td width="78%" height="22" class="table_col2"><?=$Row[name]?></td>
                                  </tr>
                                 <tr>
                                    <td height="22" align="right" class="table_col1">lname&nbsp;&nbsp;&nbsp; </td>
                                    <td height="22" class="table_col2"><?=$Row[lname]?></td>
                                  </tr>
                                  <tr>
                                    <td height="22" align="right" class="table_col1">pos&nbsp;&nbsp;&nbsp;&nbsp;</td>
                                    <td height="22" class="table_col2"><?=$Row[pos]?></td>
                                  </tr>
                                  <tr>
                                    <td height="22" align="right" class="table_col1"><LABEL for="checkbox_row_7">exptnm</LABEL>                                      &nbsp;&nbsp;</td>
                                    <td height="22" class="table_col2"><?=$Row[exptnm]?></td>
                                  </tr>
								  <tr>
                                    <td height="22" align="right" class="table_col1"><LABEL for="checkbox_row_8">exctnm</LABEL>                                      &nbsp;&nbsp;</td>
                                    <td height="22" class="table_col2"><?=$Row[exctnm]?></td>
                                  </tr>
								   <tr>
                                    <td height="22" align="right" class="table_col1">posnm &nbsp;&nbsp;</td>
                                    <td height="22" class="table_col2"><?=$Row[posnm]?></td>
                                  </tr>
								  <tr>
                                    <td height="22" align="right" class="table_col1"><LABEL for="checkbox_row_11">lvl</LABEL>                                      &nbsp;&nbsp;</td>
                                    <td height="22" class="table_col2"><?=$Row[lvl]?>                                    </tr>
								   <tr>
                                    <td height="22" align="right" class="table_col1"><LABEL for="checkbox_row_11">lvlnm</LABEL>                                      &nbsp;</td>
                                    <td height="22" class="table_col2"><?=$Row[lvlnm]?></td>
                                  </tr>
								   <tr>
								     <td height="22" align="right" class="table_col1"><LABEL for="checkbox_row_11">sex</LABEL>
&nbsp;</td>
								     <td height="22" class="table_col2"><?=$Row[sex]?></td>
							      </tr>
								   <tr>
								     <td height="22" align="right" class="table_col1"><LABEL for="checkbox_row_11">age</LABEL>
&nbsp;</td>
								     <td height="22" class="table_col2"><?=$Row[age]?></td>
							      </tr>
								   <tr>
								     <td height="22" align="right" class="table_col1"><LABEL for="checkbox_row_11">appage</LABEL>
&nbsp;</td>
								     <td height="22" class="table_col2"><?=$Row[appage]?></td>
							      </tr>
								   <tr>
								     <td height="22" align="right" class="table_col1"><LABEL for="checkbox_row_15">dspnm</LABEL>
								       <LABEL for="checkbox_row_11"></LABEL>
&nbsp;</td>
								     <td height="22" class="table_col2"><?=$Row[dspnm]?></td>
							      </tr>
								   <tr>
                                     <td height="22" align="right" class="table_col1"><LABEL for="checkbox_row_15">dspnm</LABEL>
                                       2
                                         <LABEL for="checkbox_row_11"></LABEL>
                                       &nbsp;</td>
								     <td height="22" class="table_col2"><?=$Row[dspnm2]?></td>
							      </tr>
								   <tr>
                                     <td height="22" align="right" class="table_col1"><LABEL for="checkbox_row_15">dspnm3</LABEL>
                                         <LABEL for="checkbox_row_11"></LABEL>
                                       &nbsp;</td>
								     <td height="22" class="table_col2"><?=$Row[dspnm3]?></td>
							      </tr>
								   <tr>
                                     <td height="22" align="right" class="table_col1"><LABEL for="checkbox_row_15">dspnm4</LABEL>
                                         <LABEL for="checkbox_row_11"></LABEL>
                                       &nbsp;</td>
								     <td height="22" class="table_col2"><?=$Row[dspnm4]?></td>
							      </tr>
								   <tr>
								     <td height="22" align="right" class="table_col1"><LABEL for="checkbox_row_16">appdate</LABEL>
								       <LABEL for="checkbox_row_11"></LABEL>
&nbsp;</td>
								     <td height="22" class="table_col2"><?=$Row[appdate]?></td>
							      </tr>
								   <tr>
								     <td height="22" align="right" class="table_col1"><LABEL for="checkbox_row_17">birthdate</LABEL>
								       <LABEL for="checkbox_row_16"></LABEL>
                                       <LABEL for="checkbox_row_11"></LABEL>
&nbsp;</td>
								     <td height="22" class="table_col2"><?=$Row[birthdate]?></td>
							      </tr>
								   <tr>
								     <td height="22" align="right" class="table_col1"><LABEL for="checkbox_row_18">salamt</LABEL>
								       <LABEL for="checkbox_row_16"></LABEL>
                                       <LABEL for="checkbox_row_11"></LABEL>
&nbsp;</td>
								     <td height="22" class="table_col2"><?=$Row[salamt]?></td>
							      </tr>
								   <tr>
								     <td height="22" align="right" class="table_col1"><LABEL for="checkbox_row_19">pertype</LABEL>
								       <LABEL for="checkbox_row_16"></LABEL>
                                       <LABEL for="checkbox_row_11"></LABEL>
&nbsp;</td>
								     <td height="22" class="table_col2"><?=$Row[pertype]?></td>
							      </tr>
								   <tr>
								     <td height="22" align="right" class="table_col1"><LABEL for="checkbox_row_20">poscd</LABEL>
								       <LABEL for="checkbox_row_16"></LABEL>
                                       <LABEL for="checkbox_row_11"></LABEL>
&nbsp;</td>
								     <td height="22" class="table_col2"><?=$Row[poscd]?></td>
							      </tr>
								   <tr>
								     <td height="22" align="right" class="table_col1"><LABEL for="checkbox_row_21">divcd</LABEL>
								       <LABEL for="checkbox_row_16"></LABEL>
                                       <LABEL for="checkbox_row_11"></LABEL>
&nbsp;</td>
								     <td height="22" class="table_col2"><?=$Row[divcd]?></td>
							      </tr>
								   <tr>
								     <td height="22" align="right" class="table_col1"><LABEL for="checkbox_row_22">lctno</LABEL>
								       <LABEL for="checkbox_row_16"></LABEL>
                                       <LABEL for="checkbox_row_11"></LABEL>
&nbsp;</td>
								     <td height="22" class="table_col2"><?=$Row[lctno]?></td>
							      </tr>
								   <tr>
								     <td height="22" align="right" class="table_col1"><LABEL for="checkbox_row_22">datediff</LABEL>
                                       <LABEL for="checkbox_row_16"></LABEL>
                                       <LABEL for="checkbox_row_11"></LABEL>
&nbsp;</td>
								     <td height="22" class="table_col2"><?=$Row[datediff]?></td>
							      </tr>
								   <tr>
								     <td height="22" align="right" class="table_col1"><LABEL for="checkbox_row_24">hptnm</LABEL>
								       <LABEL for="checkbox_row_22"></LABEL>
                                       <LABEL for="checkbox_row_16"></LABEL>
                                       <LABEL for="checkbox_row_11"></LABEL>
&nbsp;</td>
								     <td height="22" class="table_col2"><?=$Row[hptnm]?></td>
							      </tr>
								   <tr>
								     <td height="22" align="right" class="table_col1"><LABEL for="checkbox_row_25">posnmfull</LABEL>
								       <LABEL for="checkbox_row_22"></LABEL>
                                       <LABEL for="checkbox_row_16"></LABEL>
                                       <LABEL for="checkbox_row_11"></LABEL>
&nbsp;</td>
								     <td height="22" class="table_col2"><?=$Row[posnmfull]?></td>
							      </tr>
								   <tr>
								     <td height="22" align="right" class="table_col1">Telphone&nbsp;&nbsp;</td>
								     <td height="22" class="table_col2"><?=$Row[telephone]?></td>
							      </tr>
								   <tr>
								     <td height="22" align="right" class="table_col1">History&nbsp;&nbsp;</td>
								     <td height="22" class="table_col2"><?=$Row[history]?></td>
							      </tr>
								   <tr>
                                     <td height="22" align="right" class="table_col1" valign="top">Historytrain&nbsp;&nbsp;</td>
								     <td height="22" class="table_col2">
                                     <table width="100%" border="1" style="border-collapse:collapse" bordercolor="#999999">
                                       <tr>
                                         <td width="8%"><div align="center">ลำดับ</div></td>
                                         <td width="23%"><div align="center">ชื่อโครงการอบรม</div></td>
                                         <td width="15%"><div align="center">วัน / เดือน / ปี</div></td>
                                         <td width="21%"><div align="center">เวลา</div></td>
                                         <td width="17%"><div align="center">สถานที่</div></td>
                                         <td width="16%"><div align="center">ผู้จัด</div></td>
                                       </tr>
                                       <?
									 $sql="select * from history where idteacher='$myCheckBoxID' order by datefrom desc";
									 $query=mysql_query($sql);
									 $num=mysql_num_rows($query);
									  $i=$num;
									 while($row=mysql_fetch_array($query)){
									
									 ?>
                                       <tr>
                                         <td><div align="center">
                                           <?=$i?>
                                         </div>                                          </td>
                                         <td><?=$row[name]?></td>
                                         <td><div align="center">
                                           <br>
                                           <?=ShowDateLongTh($row[datefrom])?>
                                           <br>
                                           -
                                           <br>
                                           <?=ShowDateLongTh($row[dateto])?>
                                           <br>
                                           <br>
                                         </div></td>
                                         <td><div align="center">
                                           <?=$row[timefrom]?>
                                           -
                                           <?=$row[timeto]?>
                                         </div></td>
                                         <td><?=$row[place]?></td>
                                         <td><?=$row[organize]?></td>
                                       </tr>
                                       <?  $i--; } ?>
                                     </table>
									</td>
							      </tr>
								   
								
							    </table></td>
                              </tr>
                          </table>
                          <table width="100%" height="24" border="0" cellpadding="3" cellspacing="0">
                            <tr align="right"> 
                              <td height="30" colspan="4" align="center" class="table_footer"> 
                                <table width="300" border="0" cellspacing="0" cellpadding="2">
                                  <tr align="center"> 
								  <? if($System_Session_Permission[$SystemMenuID]=="RW" ){ ?>
                                  <td><input name="btEdit" type="submit" class="button_80" id="btEdit" value="Edit" onClick="
document.myForm.action.value='edit';
document.myForm.submit();
						"></td>
						<? }?>
                                  <td><input name="btCalcel" type="button" class="button_80" id="btCalcel" onClick="

	document.myReturnForm.submit();

						" value="Back"></td>
                                  </tr>
                                </table></td>
                            </tr>
                          </table></td>
                      </tr>
                    </form>
                  </table>
                  <br>
              
                  <br>
                  <script language="JavaScript">
HideCheckBox();
function HideCheckBox() {
	for( i =0; i < document.myForm.elements.length; i++ ) {
			//  hide check box
			if( document.myForm.elements[ i ].type.toLowerCase( ) == "checkbox" ) {
				document.myForm.elements[ i ].disabled=true;
			}
	}

                  </script>				  
                  <? 
####################################################################
} else { ?>
                  <? 
## Load Module Configuration Variable ############################################



## Default Value ############################################
$SystemModule_defaultPageSize = 10;
$SystemModule_defaultPageShow = 1;
$SystemModule_MaxPage = 20;
$SystemModule_ReduceRange = 10; 		// +,- from current page show
$SystemModule_ASCDESC = "DESC";
//$myModule_Table = $myModule_Table1;
$SystemModule_OrderBy = $myModule_Table."_CreateDate";
#########################################################
?>
                  <script language="JavaScript" src="../lib/popup.js" type="text/JavaScript"></script>
                  <!-- import the calendar script -->
                  <link rel="stylesheet" type="text/css" href="../css/myCalendarStyle.css">
                  <script type="text/javascript" src="lib/lang/calendar-th.js"></script>
                  <script type="text/javascript" src="lib/loadcalendar.js"></script>


                   
                  <?
# Check to set default value #########################
if($PageSize=="") { $PageSize = $SystemModule_defaultPageSize; }
if($PageShow=="") { $PageShow = $SystemModule_defaultPageShow; }
if($ASCDESC=="") { $ASCDESC = $SystemModule_ASCDESC; } 
if($OrderBy=="") { $OrderBy = $SystemModule_OrderBy; } 
if($action=="switchorder") { 

	if($ASCDESC=="ASC") { $ASCDESC = "DESC"; }  else { $ASCDESC="ASC"; } 
} 
if($PageSearch!="") { $PageSearch=trim($PageSearch); }
# Count total record size #########################
$sql = "SELECT * FROM ".$myModule_Table;
$Query=MYSQL_DB_QUERY($System_DataBase_Name,$sql) OR DIE("<br><br><b><font color=#FF0000>ไม่สามารถใช้งานระบบได้<br>หากคุณเข้าใช้งานเป็นครั้งแรก<br><a href=\"#\" onClick=\"Popup('popupCreateDatabaseWindow','createdatabase.php',220,180,1);\">กรุณาคลิ๊กที่นี่</a><br>เพื่อทำการสร้างฐานข้อมูลใหม่</font></b>\n");

$sql = "SELECT * FROM ".$myModule_Table." where dspnm='กลุ่มงานศัลยกรรม' or dspnm='กลุ่มงานศัลยกรรมกระดูก' or dspnm='กลุ่มงานสูตินรีเวชกรรม' or dspnm='กลุ่มงานกุมารเวชกรรม'";

if($PageSearch!="") {
	$sql .= " AND ".$PageSearchInField." LIKE '%".$PageSearch."%'";

}

$Query=MYSQL_DB_QUERY($System_DataBase_Name,$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.=" ORDER BY Id $ASCDESC ";
$sql.=" LIMIT $RecordStart , $PageSize";
$Query=MYSQL_DB_QUERY($System_DataBase_Name,$sql) OR DIE("Error: เกิดความผิดพลาด <br>$sql<br>\n");
$RecordCount=MYSQL_NUMROWS($Query);
?>
                  <script language="JavaScript" type="text/JavaScript">
function Paging_CheckAll(objCheckHeader,txtCheckBoxFirstName,intTotalItems) {
	if(intTotalItems>0)
		for(i=1;i<=intTotalItems;i++)
			document.getElementById(txtCheckBoxFirstName+i).checked = objCheckHeader.checked;			
	return true;
}
function Paging_CheckAllHandle(objCheckHeader,txtCheckBoxFirstName,intTotalItems) {
	var isCheckedAll = true;
	if(intTotalItems>0)
		for(i=1;i<=intTotalItems;i++)
			if(!document.getElementById(txtCheckBoxFirstName+i).checked) 
				isCheckedAll = false;
	objCheckHeader.checked = isCheckedAll;
	return true;
}
function Paging_CountChecked(txtCheckBoxFirstName,intTotalItems) {
	var intChecked = 0;
	if(intTotalItems>0)
		for(i=1;i<=intTotalItems;i++)
			if(document.getElementById(txtCheckBoxFirstName+i).checked) 
				intChecked ++;
	return intChecked ;
}
function Paging_CheckedThisItem(objCheckHeader,indexing,txtCheckBoxFirstName,intTotalItems) {
	if(intTotalItems>0)
		for(i=1;i<=intTotalItems;i++)
			if(i==indexing) {
				document.getElementById(txtCheckBoxFirstName+i).checked = true;
			} else {
				document.getElementById(txtCheckBoxFirstName+i).checked = false;
			}
	objCheckHeader.checked = false;
	return true;
}
                      </script>
                  <div id="divMemberType" style="display:none; position:absolute; top:-115px; left:180px; width: 200px; z-index: 1;Filter:Alpha(opacity=95)"> 
                    <table width="100%" border="0" cellpadding="0" cellspacing="1" class="table_border">
                      <form action="?" method="post" name="myMemberTypeForm" id="myMemberTypeForm">
                        <input name="SystemModuleKey" type="hidden" id="SystemModuleKey" value="<?=$SystemModuleKey?>">
                        <input name="SystemMenuID" type="hidden" id="SystemMenuID" value="<?=$SystemMenuID?>">
                        <tr> 
                          <td height="22"><table width="100%" height="22" border="0" cellpadding="0" cellspacing="0" class="table_header">
                              <tr> 
                                <td width="28" align="center"><img src="../images/icon/ico439.gif" width="19" height="15"></td>
                                <td align="center">Select Status</td>
                                <td width="22" align="center"><img src="../images/icon/ico215.gif" width="16" height="16" onMouseOver="this.style.cursor='hand'" onClick="document.getElementById('divMemberType').style.display='none'; "></td>
                              </tr>
                            </table></td>
                        </tr>
                        <tr> 
                          <td height="120" align="center" class="table_row1"><br> 
                            <table width="120" border="0" cellpadding="2" cellspacing="0">
                              <tr> 
                                <td width="26" height="22" align="center"><input name="toolbarStatus" type="radio" class="form_checkbox" value="normal" checked></td>
                                <td height="22" class="text_bold">ลูกค้าทั่วไป</td>
                              </tr>
                              <tr> 
                                <td width="26" height="22" align="center"><input name="toolbarStatus" type="radio" class="form_checkbox" value="adsl"></td>
                                <td height="22" class="text_bold">ลูกค้า TOT</td>
                              </tr>
                            </table>
                            <br> <table border="0" cellspacing="0" cellpadding="6">
                              <tr> 
                                <td><input name="btSave" type="button" class="button_th_60" id="btSave" value="Save" onClick="
if(document.myMemberTypeForm.toolbarStatus[0].checked) {
	document.myForm.SelectStatus.value=document.myMemberTypeForm.toolbarStatus[0].value;
}
if(document.myMemberTypeForm.toolbarStatus[1].checked) {
	document.myForm.SelectStatus.value=document.myMemberTypeForm.toolbarStatus[1].value;
}
document.myForm.action.value='setmembertypestatus';
Paging_CheckedThisItem(document.myForm.CheckBoxAll, StatusIndex ,'CheckBoxID', document.myForm.TotalCheckBoxID.value );
document.myForm.submit();
"></td>
                                <td><input name="btClose" type="button" class="button_th_60" id="btClose" value="Close" onClick="document.getElementById('divMemberType').style.display='none';"></td>
                              </tr>
                            </table></td>
                        </tr>
                        <tr> 
                          <td height="6" class="table_footer"><img src="../images/blank.gif" width="1" height="1"></td>
                        </tr>
                      </form>
                    </table>
                  </div>
                  <div id="divActivate" style="display:none; position:absolute; top:-115px; left:180px; width: 200px; z-index: 1;Filter:Alpha(opacity=95)"> 
                    <table width="100%" border="0" cellpadding="0" cellspacing="1" class="table_border">
                      <form action="?" method="post" name="myActivateForm" id="myActivateForm">
                        <input name="SystemModuleKey" type="hidden" id="SystemModuleKey" value="<?=$SystemModuleKey?>">
                        <input name="SystemMenuID" type="hidden" id="SystemMenuID" value="<?=$SystemMenuID?>">
                        <tr> 
                          <td height="22"><table width="100%" height="22" border="0" cellpadding="0" cellspacing="0" class="table_header">
                              <tr> 
                                <td width="28" align="center"><img src="../images/icon/ico439.gif" width="19" height="15"></td>
                                <td align="center">Select Status</td>
                                <td width="22" align="center"><img src="../images/icon/ico215.gif" width="16" height="16" onMouseOver="this.style.cursor='hand'" onClick="document.getElementById('divActivate').style.display='none'; "></td>
                              </tr>
                            </table></td>
                        </tr>
                        <tr> 
                          <td height="120" align="center" class="table_row1"><br> 
                            <table width="120" border="0" cellpadding="2" cellspacing="0">
                              <tr> 
                                <td width="26" height="22" align="center"><input name="toolbarStatus" type="radio" class="form_checkbox" value="0" checked></td>
                                <td height="22" class="text_bold">Not</td>
                              </tr>
                              <tr> 
                                <td width="26" height="22" align="center"><input name="toolbarStatus" type="radio" class="form_checkbox" value="1"></td>
                                <td height="22" class="text_bold">Activate</td>
                              </tr>
                            </table>
                            <br> <table border="0" cellspacing="0" cellpadding="6">
                              <tr> 
                                <td><input name="btSave" type="button" class="button_th_60" id="btSave" value="Save" onClick="
if(document.myActivateForm.toolbarStatus[0].checked) {
	document.myForm.SelectStatus.value=document.myActivateForm.toolbarStatus[0].value;
}
if(document.myActivateForm.toolbarStatus[1].checked) {
	document.myForm.SelectStatus.value=document.myActivateForm.toolbarStatus[1].value;
}
document.myForm.action.value='setactivatestatus';
Paging_CheckedThisItem(document.myForm.CheckBoxAll, StatusIndex ,'CheckBoxID', document.myForm.TotalCheckBoxID.value );
document.myForm.submit();
"></td>
                                <td><input name="btClose" type="button" class="button_th_60" id="btClose" value="Close" onClick="document.getElementById('divActivate').style.display='none';"></td>
                              </tr>
                            </table></td>
                        </tr>
                        <tr> 
                          <td height="6" class="table_footer"><img src="../images/blank.gif" width="1" height="1"></td>
                        </tr>
                      </form>
                    </table>
                  </div>
                  <div id="divDataPicker" style="display:none; position:absolute; top:-115px; left:180px; width: 200px; z-index: 1;Filter:Alpha(opacity=95)"> 
                    <table width="100%" border="0" cellpadding="0" cellspacing="1" class="table_border">
                      <form action="?" method="post" name="myStatusForm" id="myStatusForm">
                        <input name="SystemModuleKey" type="hidden" id="SystemModuleKey" value="<?=$SystemModuleKey?>">
                        <input name="SystemMenuID" type="hidden" id="SystemMenuID" value="<?=$SystemMenuID?>">
                        <tr> 
                          <td height="22"><table width="100%" height="22" border="0" cellpadding="0" cellspacing="0" class="table_header">
                              <tr> 
                                <td width="28" align="center"><img src="../images/icon/ico439.gif" width="19" height="15"></td>
                                <td align="center">Select Status</td>
                                <td width="22" align="center"><img src="../images/icon/ico215.gif" width="16" height="16" onMouseOver="this.style.cursor='hand'" onClick="document.getElementById('divDataPicker').style.display='none'; "></td>
                              </tr>
                            </table></td>
                        </tr>
                        <tr> 
                          <td height="120" align="center" class="table_row1"><br> 
                            <table width="120" border="0" cellpadding="2" cellspacing="0">
                              <tr> 
                                <td width="26" height="22" align="center"><input name="toolbarStatus" type="radio" class="form_checkbox" value="Enable" checked></td>
                                <td height="22" class="text_bold">Enable</td>
                              </tr>
                              <tr> 
                                <td width="26" height="22" align="center"><input name="toolbarStatus" type="radio" class="form_checkbox" value="Disable"></td>
                                <td height="22" class="text_bold">Disable</td>
                              </tr>
                            </table>
                            <br> <table border="0" cellspacing="0" cellpadding="6">
                              <tr> 
                                <td><input name="btSave" type="button" class="button_th_60" id="btSave" value="Save" onClick="
if(document.myStatusForm.toolbarStatus[0].checked) {
	document.myForm.SelectStatus.value=document.myStatusForm.toolbarStatus[0].value;
}
if(document.myStatusForm.toolbarStatus[1].checked) {
	document.myForm.SelectStatus.value=document.myStatusForm.toolbarStatus[1].value;
}
document.myForm.action.value='setstatus';
Paging_CheckedThisItem(document.myForm.CheckBoxAll, StatusIndex ,'CheckBoxID', document.myForm.TotalCheckBoxID.value );
document.myForm.submit();
"></td>
                                <td><input name="btClose" type="button" class="button_th_60" id="btClose" value="Close" onClick="document.getElementById('divDataPicker').style.display='none';"></td>
                              </tr>
                            </table></td>
                        </tr>
                        <tr> 
                          <td height="6" class="table_footer"><img src="../images/blank.gif" width="1" height="1"></td>
                        </tr>
                      </form>
                    </table>
                  </div>
                    <div id="divRecommend" style="display:none; position:absolute; top:-115px; left:180px; width: 200px; z-index: 1;Filter:Alpha(opacity=95)"> 
                    <table width="100%" border="0" cellpadding="0" cellspacing="1" class="table_border">
                      <form action="?" method="post" name="myRecommendForm" id="myRecommendForm">
                        <input name="SystemModuleKey" type="hidden" id="SystemModuleKey" value="<?=$SystemModuleKey?>">
                        <input name="SystemMenuID" type="hidden" id="SystemMenuID" value="<?=$SystemMenuID?>">
                        <tr> 
                          <td height="22"><table width="100%" height="22" border="0" cellpadding="0" cellspacing="0" class="table_header">
                              <tr> 
                                <td width="28" align="center"><img src="../images/icon/ico439.gif" width="19" height="15"></td>
                                <td align="center">Select Status</td>
                                <td width="22" align="center"><img src="../images/icon/ico215.gif" width="16" height="16" onMouseOver="this.style.cursor='hand'" onClick="document.getElementById('divDataPicker').style.display='none'; "></td>
                              </tr>
                            </table></td>
                        </tr>
                        <tr> 
                          <td height="120" align="center" class="table_row1"><br> 
                            <table width="120" border="0" cellpadding="2" cellspacing="0">
                              <tr> 
                                <td width="26" height="22" align="center"><input name="toolbarStatus" type="radio" class="form_checkbox" value="Yes" ></td>
                                <td height="22" class="text_bold">Yes</td>
                              </tr>
                              <tr> 
                                <td width="26" height="22" align="center"><input name="toolbarStatus" type="radio" class="form_checkbox" value="No" checked></td>
                                <td height="22" class="text_bold">No</td>
                              </tr>
                            </table>
                            <br> <table border="0" cellspacing="0" cellpadding="6">
                              <tr> 
                                <td><input name="btSave" type="button" class="button_th_60" id="btSave" value="Save" onClick="
if(document.myRecommendForm.toolbarStatus[0].checked) {
	document.myForm.SelectStatus.value=document.myRecommendForm.toolbarStatus[0].value;
}
if(document.myRecommendForm.toolbarStatus[1].checked) {
	document.myForm.SelectStatus.value=document.myRecommendForm.toolbarStatus[1].value;
}
document.myForm.action.value='setrecommendstatus';
Paging_CheckedThisItem(document.myForm.CheckBoxAll, StatusIndex ,'CheckBoxID', document.myForm.TotalCheckBoxID.value );
document.myForm.submit();
"></td>
                                <td><input name="btClose" type="button" class="button_th_60" id="btClose" value="Close" onClick="document.getElementById('divRecommend').style.display='none';"></td>
                              </tr>
                            </table></td>
                        </tr>
                        <tr> 
                          <td height="6" class="table_footer"><img src="../images/blank.gif" width="1" height="1"></td>
                        </tr>
                      </form>
                    </table>
                  </div>
                  <script language="JavaScript" type="text/JavaScript">
var StatusIndex=0;
function ShowDataPicker(myDivName,RefX,RefY) {
	document.getElementById(myDivName).style.display=''; 
	document.getElementById(myDivName).style.left = document.body.scrollLeft + window.event.clientX + RefX;
	document.getElementById(myDivName).style.top= document.body.scrollTop+ window.event.clientY + RefY;
}
	                  </script>
                  <br>
                  <table width="90%" height="22" border="0" cellpadding="0" cellspacing="0" class="table_toolbar">
                    <form action="?" method="post" name="myToolbarForm" id="myToolbarForm" onSubmit="return false;">
                      <input name="SystemModuleKey" type="hidden" id="SystemModuleKey" value="<?=$SystemModuleKey?>">
                      <input name="SystemMenuID" type="hidden" id="SystemMenuID" value="<?=$SystemMenuID?>">
                      <tr> 
                        <td width="5" align="left" valign="top"> <img src="../images/bgborder1w.gif" width="5" height="5"></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</td>
                              <td width="10">&nbsp;</td>
                              <? if($PageShow>1) { ?>
                              <td width="21" align="center"> <img src="../images/controlpage/playset_start.gif" width="21" height="21" 
				  onMouseOver="this.src='../images/controlpage/playset_start_active.gif'; this.style.cursor='hand';" 
				  onMouseOut="this.src='../images/controlpage/playset_start.gif';" 
				  onClick="document.myForm.PageShow.value=1; document.myForm.submit();"></td>
                              <? } else { ?>
                              <td width="21" align="center"><img src="../images/controlpage/playset_start_disable.gif" width="21" height="21"></td>
                              <? } ?>
                              <? if($PageShow>1) { ?>
                              <td width="21" align="center"> <img src="../images/controlpage/playset_backward.gif" width="21" height="21" 
				  onMouseOver="this.src='../images/controlpage/playset_backward_active.gif'; this.style.cursor='hand';" 
				  onMouseOut="this.src='../images/controlpage/playset_backward.gif';" 
				  onClick="document.myForm.PageShow.value--; document.myForm.submit();"></td>
                              <? } else { ?>
                              <td width="21" align="center"><img src="../images/controlpage/playset_backward_disable.gif" width="21" height="21"></td>
                              <? } ?>
                              <td width="21" align="center"> <img src="../images/controlpage/playset_stop.gif" width="21" height="21" 
				  onMouseOver="this.src='../images/controlpage/playset_stop_active.gif'; this.style.cursor='hand';" 
				  onMouseOut="this.src='../images/controlpage/playset_stop.gif';" 
				  onClick="
					with(document.myForm) {
						PageShow.value='';
						PageSize.value='';
						ASCDESC.value='';
						OrderBy.value='';
						PageSearch.value='';
						submit();
					}
					"></td>
                              <? if($PageShow<$NoOfPage) { ?>
                              <td width="21" align="center"> <img src="../images/controlpage/playset_forward.gif" width="21" height="21" 
				  onMouseOver="this.src='../images/controlpage/playset_forward_active.gif'; this.style.cursor='hand';" 
				  onMouseOut="this.src='../images/controlpage/playset_forward.gif';" 
				  onClick="document.myForm.PageShow.value++; document.myForm.submit();"></td>
                              <? } else { ?>
                              <td width="10" align="center"><img src="../images/controlpage/playset_forward_disable.gif" width="21" height="21"></td>
                              <? } ?>
                              <? if($PageShow<$NoOfPage) { ?>
                              <td width="10" align="center"><img src="../images/controlpage/playset_end.gif" width="21" height="21" 
				  onMouseOver="this.src='../images/controlpage/playset_end_active.gif'; this.style.cursor='hand';" 
				  onMouseOut="this.src='../images/controlpage/playset_end.gif';" 
				  onClick="document.myForm.PageShow.value='<?=$NoOfPage?>'; document.myForm.submit();"></td>
                              <? } else { ?>
                              <td width="10" align="center"><img src="../images/controlpage/playset_end_disable.gif" width="21" height="21"></td>
                              <? } ?>
                            </tr>
                          </table></td>
                        <td width="5" align="right" valign="top"><img src="../images/bgborder2w.gif" width="5" height="5"></td>
                      </tr>
                    </form>
                  </table>
                  <table width="90%" border="0" cellpadding="0" cellspacing="1" class="table_border">
                    <tr> 
                      <td bgcolor="#FFFFFF"> <table width="100%" border="0" cellpadding="2" cellspacing="1">
                          <form action="?" method="post" name="myForm" id="myForm">
                            <input name="SystemModuleKey" type="hidden" id="SystemModuleKey" value="<?=$SystemModuleKey?>">
                            <input name="SystemMenuID" type="hidden" id="SystemMenuID" value="<?=$SystemMenuID?>">
                            <input name="action" type="hidden" id="action">
                            <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="PageSearchInField" type="hidden" id="PageSearchInField" value="<?=$PageSearchInField?>">
							<input name="inputAge" type="hidden" id="inputAge" value="<?=$inputAge?>">
							<input name="inputMonth" type="hidden" id="inputMonth" value="<?=$inputMonth?>">
							<input name="inputGender" type="hidden" id="inputGender" value="<?=$inputGender?>">
							<input name="inputInterrest" type="hidden" id="inputInterrest" value="<?=$inputInterrest?>">
							<input name="inputSalary" type="hidden" id="inputSalary" value="<?=$inputSalary?>">
							<input name="inputDegree" type="hidden" id="inputDegree" value="<?=$inputDegree?>">
                            <input name="SelectStatus" type="hidden" id="SelectStatus">
							<input name="MemberType" type="hidden" id="MemberType" value="<?=$MemberType?>">
							<input name="SpecialType" type="hidden" id="SpecialType" value="<?=$SpecialType?>">
                            <tr align="center" class="menu_table_header"> 
                              <td width="30" height="24"><input name="CheckBoxAll" type="checkbox" class="form_checkbox" id="CheckBoxAll" value="Yes" onClick="Paging_CheckAll(this,'CheckBoxID',document.myForm.TotalCheckBoxID.value)"></td>
                              <td width="25" height="24" align="center">No.</td>
                              <!---td width="30" height="24" align="center" style="display:none "> 
                              <? 
$myOrderBy = $myModule_Table."_ID";
if($OrderBy==$myOrderBy) { 
	if($ASCDESC=="DESC") { ?>
                                  <img src="../images/controlpage/desc_order.gif" width="7" height="7"> 
                                  <? }
	if($ASCDESC=="ASC") { ?>
                                  <img src="../images/controlpage/asc_order.gif" width="7" height="7"> 
                                  <? }
} 
?>
                                  <a href="#" class="link_headbar" onClick="
with(document.myForm) { 
	<? if($OrderBy==$myOrderBy) { echo "action.value='switchorder';\n"; } ?>
	OrderBy.value='<?=$myOrderBy?>';
	submit(); 
}
					">ID</a></td------>
                              <td width="106" height="24">Picture</td>
                              <td width="212"><? 
$myOrderBy = $myModule_Table."_FName";
if($OrderBy==$myOrderBy) { 
	if($ASCDESC=="DESC") { ?>
                                <img src="../images/controlpage/desc_order.gif" width="7" height="7">
                                <? }
	if($ASCDESC=="ASC") { ?>
                                <img src="../images/controlpage/asc_order.gif" width="7" height="7">
                                <? }
} 
?>
                                <a href="#" class="link_headbar" onClick="
with(document.myForm) { 
	<? if($OrderBy==$myOrderBy) { echo "action.value='switchorder';\n"; } ?>
	OrderBy.value='<?=$myOrderBy?>';
	submit(); 
}
					"> Name</a></td>
                              <td width="113" height="24"> 
                                <? 
$myOrderBy = $myModule_Table."_Status";
if($OrderBy==$myOrderBy) { 
	if($ASCDESC=="DESC") { ?>
                                <img src="../images/controlpage/desc_order.gif" width="7" height="7"> 
                                <? }
	if($ASCDESC=="ASC") { ?>
                                <img src="../images/controlpage/asc_order.gif" width="7" height="7"> 
                                <? }
} 
?>
                                <a href="#" class="link_headbar" onClick="
with(document.myForm) { 
	<? if($OrderBy==$myOrderBy) { echo "action.value='switchorder';\n"; } ?>
	OrderBy.value='<?=$myOrderBy?>';
	submit(); 
}
					">Status</a> / Action</td>
                            </tr>
<?
$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 height="30" align="center"> <input name="CheckBoxID<?=$index?>" type="checkbox" class="form_checkbox" id="CheckBoxID<?=$index?>" onClick="Paging_CheckAllHandle(document.myForm.CheckBoxAll,'CheckBoxID',document.myForm.TotalCheckBoxID.value)" value="<?=$Row[Id]?>"></td>
                              <td height="30" align="center"><?=$RecordStart+$index?></td>
                              <td height="30">
							  <? if($Row[picture]!=""){?>
							  <img src="../../upload/member/<?=$Row[picture]?>">
							  <? } ?>
							  </td>
                              <td height="30"><a href="#" onClick="
Paging_CheckedThisItem( document.myForm.CheckBoxAll, <?=$index?>, 'CheckBoxID', document.myForm.TotalCheckBoxID.value );
document.myForm.action.value='view';
document.myForm.submit();"  class="link_submenu">
								<?=$Row[prefix]?><?=$Row[name]?>
                                &nbsp;&nbsp;
                                <?=$Row[lname]?>
                              </a>
							  <?  if($Row[Choose]!="0") { ?>
							    <br>
                              <? if($Row[Choose]=="1"){ echo"หัวหน้าภาควิชา";}if($Row[Choose]=="2"){ echo"รองหัวหน้าภาควิชา";}?><? } ?>
							  <br>
                              <?=$Row[posnmfull]?>
							  <br>
                              <?=$Row[dspnm]?>
                              <br>
                              <?=$Row[email]?><br>

                              <?=$Row[hptnm]?><br><br>
ความเชี่ยวชาญ :
 <?=$Row[exptnm]?></td>
                              <td width="113" height="30" align="center"><br>
  <table border="0" cellspacing="0" cellpadding="1">
    <tr align="center" valign="bottom"> 
  <td><img src="../images/icon/ico416.gif" alt="View" width="16" height="21" border="0" onMouseOver="this.style.cursor='hand'" onClick="
Paging_CheckedThisItem( document.myForm.CheckBoxAll, <?=$index?>, 'CheckBoxID', document.myForm.TotalCheckBoxID.value );
document.myForm.action.value='view';
document.myForm.submit();
						"></td>
  <td>&nbsp;</td>
      <td>&nbsp;</td>
  </tr>
  </table></td>
                            </tr>
	<?
		$index++;
	}
} else {  ?>
                        <tr class="table_row1"> 
                          <td height="80" colspan="8" align="center">Data not 
                            found!</td>
                        </tr>
 <? } ?>						
                            <input name="TotalCheckBoxID" type="hidden" id="TotalCheckBoxID" value="<?=$index-1?>">
                          </form>
                        </table>
                        <table width="100%" height="24" border="0" cellpadding="3" cellspacing="0">
                          <form action="?" method="post" name="mySearchForm" id="mySearchForm" onSubmit="return false;">
                            <input name="SystemModuleKey" type="hidden" id="SystemModuleKey" value="<?=$SystemModuleKey?>">
                            <input name="SystemMenuID" type="hidden" id="SystemMenuID" value="<?=$SystemMenuID?>">
                            <tr align="right"> 
                              <td colspan="4" align="right" class="table_footer">                              <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td width="80%"><table width="100%" height="22"  border="0" cellpadding="0" cellspacing="0">
                                      <tr>
                                        <td width="87%" height="22" align="right"><span class="style1"><strong>คำค้นหา : </strong>
                                            <input name="toolbarPageSearch" type="text" class="input_left" id="toolbarPageSearch" value="<?=$PageSearch?>" size="20" maxlength="50">
                                            &nbsp;&nbsp;<strong>In Field :
                                            </strong></span><strong>
                                            <select name="toolbarPageSearchInField" class="select">
											<option value="name">ชื่อ</option>
											<option value="lname">นามสกุล</option>
                                          </select> 
                                            <?
										  if ($PageSearchInField<>"") echo "<script language='JavaScript'> document.mySearchForm.toolbarPageSearchInField.value = '".$PageSearchInField."'; </script>";
										  ?>
                                        </strong></td>
                                        <td width="13%" height="22" align="right"><input name="btPageSearch" type="button" class="button_60" id="btPageSearch2" value="Search" onClick="
/*
document.myForm.inputAge.value=document.mySearchForm.inputAge.value;
document.myForm.inputMonth.value=document.mySearchForm.inputMonth.value;
document.myForm.inputGender.value=document.mySearchForm.inputGender.value;
document.myForm.inputInterrest.value=document.mySearchForm.inputInterrest.value;
document.myForm.inputSalary.value=document.mySearchForm.inputSalary.value;
document.myForm.inputDegree.value=document.mySearchForm.inputDegree.value;
*/
document.myForm.PageSearch.value=document.mySearchForm.toolbarPageSearch.value;
document.myForm.PageSearchInField.value=document.mySearchForm.toolbarPageSearchInField.value;
document.myForm.submit();
						"></td>
                                      </tr>
                                  </table></td>
                                </tr>
                              </table></td>
                            </tr>
                          </form>
                      </table></td>
                    </tr>
                  </table>
                  <br>
<? } ?>            

Hacked By AnonymousFox1.0, Coded By AnonymousFox