<?php
 session_start
();
 if (
session_is_registered("valid_user"))
 {
$Username $valid_user;
include(
"../include/FunctionDB.php");
ConnectDB();
$sql2 "Select * From committee_tb ";
$result2 mysql_query($sql2) or die(" Error2").mysql_error();
$num mysql_num_rows($result2);
//$rs2 = mysql_fetch_array($result2);

?>
<html>
<head>
<title>Show  Edit List</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<link rel="stylesheet" href="../css/style1.css" type="text/css">
</head>

<body bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
        <tr> 
          <td width="20%" background="../Image/bart1.jpg" class="table"> <div align="center"><strong><font size="2" face="Tahoma"><a href="adminmenu.php" class="d">กลับเมนู</a></font></strong></div></td>
          <td width="20%" background="../Image/bart1.jpg" class="table"> <div align="center" ><strong><font size="2" face="Tahoma"><a href="../logout.php" class="d">Logout</a></font></strong></div></td>
        </tr>
      </table></td>
  </tr>
  <tr> 
    <td><div align="center"><font size="2" face="Tahoma"></font></div></td>
  </tr>
  <tr> 
    <td>&nbsp;</td>
  </tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#006699" style="border:1px solid gray">
  <form action="DelCommit.php" method="post">
    <tr bgcolor="#DFEBF9"> 
      <td height="21" colspan="6"> 
        <div align="center"><font color="#003366" size="4" face="Tahoma"><strong> 
          ข้อมูลการเป็นกรรมการให้บริการวิชาการแก่สังคม</strong></font></div></td>
    </tr>
    <tr bordercolor="#0066CC" bgcolor="#CCE6FF"> 
      <td colspan="4" align="center" bgcolor="#CCE6FF" style="border:1px solid gray">&nbsp;</td>
      <td width="173" align="center" bgcolor="#CCE6FF" style="border:1px solid gray"><font size="2" face="Tahoma">แยกประเภทตาม 
        สมศ. 5.2</font></td>
      <td align="center" style="border:1px solid gray"><font size="2" face="Tahoma">แยกประเภทตามการเป็นกรรมการ</font> 
        <font size="2" face="Tahoma">ให้บริการวิชาการอื่นฯ</font></td>
    </tr>
    <tr bordercolor="#0066CC" bgcolor="#CCE6FF"> 
      <td width="27" align="center" bgcolor="#DFEBF9" style="border:1px solid gray"><font size="2" face="Tahoma"><strong>ลบ</strong></font></td>
      <td width="27" height="26" align="center" bgcolor="#DFEBF9" style="border:1px solid gray"><font color="#000000" size="1" face="Tahoma">ลำดับ</font></td>
      <td width="57" align="center" bgcolor="#DFEBF9" style="border:1px solid gray"><font size="2" face="Tahoma">ปี 
        พ.ศ</font> </td>
      <td width="201" align="center" bgcolor="#DFEBF9" style="border:1px solid gray"><font color="#000000" size="1" face="Tahoma">ชื่อเรื่อง</font></td>
      <td align="center" style="border:1px solid gray"><table width="100%" height="34" border="0" align="center" cellpadding="0" cellspacing="1">
          <tr bgcolor="#DFEBF9"> 
            <td width="25%" height="24" style="border:1px solid gray"> <div align="center"><font size="1" face="Tahoma">วิชาการ</font></div></td>
            <td width="25%" style="border:1px solid gray"> <div align="center"><font size="1" face="Tahoma">วิชาชีพ</font></div></td>
            <td width="25%" style="border:1px solid gray"> <div align="center"><font size="1" face="Tahoma">วิทยานิพนธ์</font></div></td>
          </tr>
        </table></td>
      <td width="296" align="center" style="border:1px solid gray"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="2">
          <tr bgcolor="#DFEBF9"> 
            <td width="20%" style="border:1px solid gray"> <div align="center"><font size="1" face="Tahoma">ตรวจเครื่องมือ</font></div></td>
            <td width="20%" style="border:1px solid gray"> <div align="center"><font size="1" face="Tahoma">คปสข.10</font></div></td>
            <td width="20%" style="border:1px solid gray"> <div align="center"><font size="1" face="Tahoma">ชมรม 
                พยบ. </font></div></td>
            <td width="20%" bgcolor="#DFEBF9" style="border:1px solid gray"> <div align="center"><font size="1" face="Tahoma">เครือข่าย 
                ว. ภาคเหนือ</font></div></td>
            <td width="20%" style="border:1px solid gray"> <div align="center"><font size="1" face="Tahoma">กรรมการ 
                อื่นๆ</font></div></td>
          </tr>
        </table></td>
    </tr>
    <?
  $i 
1;
  
$j 0;
  
$k 0;
  
$m 0;
  
$n 0;
  
$p 0;
  
$q 0;
 while(
$rs2 =mysql_fetch_array($result2) )
 {

     if(
$count==0)
     {
?>
    <tr bgcolor=#F9FEFF> 
      <td align=center bordercolor="#EBFAFE"><input type="checkbox" name="checkbox[]" value="<? echo $rs2[code]?>"></td>
      <td align=center bordercolor="#EBFAFE"><font size="1" face="Tahoma"><?echo $i?></font></td>
      <td bordercolor="#EBFAFE"><div align="center"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Year_com]?></font></div></td>
      <td bordercolor="#EBFAFE"><font color="#993333" size="2" face="Tahoma">
      <a href="../Develop_person_depart/Committee/FrmEditCommittee.php?code=<? echo $rs2[code]?>" class="d">
      <? echo $rs2[Title]?>
      </a>
      </font></td>
      <td bordercolor="#EBFAFE"> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
          <tr> 
            <td width="25%" height="18"> <div align="center"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Edu]?></font></div></td>
            <td width="25%"> <div align="center"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Edu_job]?></font></div></td>
            <td width="25%"> <div align="center"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Tsis]?></font></div></td>
          </tr>
        </table></td>
      <td bordercolor="#EBFAFE" bgcolor="#F9FEFF"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="2">
          <tr> 
            <td width="20%" height="18"> <div align="center"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Check_tool]?></font></div></td>
            <td width="20%"> <div align="center"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Scp10]?></font></div></td>
            <td width="20%"> <div align="center"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Club_bcnlp]?></font></div></td>
            <td width="20%"> <div align="center"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[North_network]?></font></div></td>
            <td width="20%"> <div align="center"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Else_commit]?></font></div></td>
          </tr>
        </table></td>
    </tr>
    <?
    $count
=1;
     }
else
{
?>
    <tr bordercolor="#FFFFFF" bgcolor="#FFFFFF"> 
      <td align="center"><input type="checkbox" name="checkbox[]" value="<? echo $rs2[code]?>"></td>
      <td align="center"><font size="1" face="Tahoma"><?echo $i?></font></td>
      <td><div align="center"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Year_com]?></font></div></td>
      <td><font color="#993333" size="2" face="Tahoma"> <a href="../Develop_person_depart/Committee/FrmEditCommittee.php?code=<? echo $rs2[code]?>" class="c"> 
        </a><a href="../Develop_person_depart/Committee/FrmEditCommittee.php?code=<? echo $rs2[code]?>" class="d"><? echo $rs2[Title]?></a><a href="../Develop_person_depart/Committee/FrmEditCommittee.php?code=<? echo $rs2[code]?>" class="c"> 
        </a> </font></td>
      <td> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
          <tr> 
            <td width="25%"> <div align="center"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Edu]?></font></div></td>
            <td width="25%"> <div align="center"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Edu_job]?></font></div></td>
            <td width="25%"> <div align="center"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Tsis]?></font></div></td>
          </tr>
        </table></td>
      <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="2">
          <tr> 
            <td width="20%"> <div align="center"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Check_tool]?></font></div></td>
            <td width="20%"><div align="center"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Scp10]?></font></div></td>
            <td width="20%"> <div align="center"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Club_bcnlp]?></font></div></td>
            <td width="20%"><div align="center"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[North_network]?></font></div></td>
            <td width="20%"> <div align="center"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Else_commit]?></font></div></td>
          </tr>
        </table></td>
    </tr>
    <?
$count
=0;
}
$i++;
 }    
?>
    <tr bordercolor="#FFFFFF" bgcolor="#DFEBF9"> 
      <td colspan="6" align="center"> 
        <input type="submit" name="Submit" value="   ลบ   ">
      </td>
    </tr>
  </form>
</table>
</body>
</html>
<?php 
    
}
else
{
       echo
"<meta http-equiv=\"refresh\" content=\"3;URL=../../login.php\">\n";
       echo
"Please Login ";
}
?>