<?php

    
/**  Define Validate Access  */
    
define'_VALID_ACCESS');
    
    
/**  Configuration  */
    
require_once( "../configuration.php" );
    require_once( 
$_Config_absolute_path "/includes/framework.php" );
    require_once( 
"../include/Function.php" );

    
/**  Create Database Object  */
    
$dbObj = new DBConn;
    
    
$sql " SELECT *  FROM  projectstdplan_tb   GROUP BY   Budget_Year ";
    
$result $dbObj->execQuery($sql);
    
$rs $dbObj->fetchArray($result);

?>
<html>
<head>
<title>Information Detail</title>
<link href="../css/default.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=windows-874" />
<SCRIPT LANGUAGE="JavaScript" src="../source/script.js"></SCRIPT>
<script language="JavaScript">

    function ReturnValue(code,No_in)

    {
     //    if(id == 1){
            window.opener.document.pc.code.value = code;
            window.opener.document.pc.No_in.value = No_in;            
             window.close();        
        
        }
        </script>
<body>
<table width="635" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="10"></td>
  </tr>
</table>
<table width="635" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <th width="632" scope="col"><form name="form1" method="post" action="">
      <fieldset>
        <table width="630" border="0">
          <tr>
            <td width="624"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="30" align="center"><strong class="NOTE">ปีงบประมาณ</strong></td>
              </tr>
            </table>
            <table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#EEEEEE" style="border:0px solid gray">
              <tr>
                <?php 
           $no 
1+($display-1)*$limit;
            while( 
$rs $dbObj->fetchArray($result) ) { 
                
$bgColor = ( $bgColor == "#FFFFFF" ) ? "#F9FBFB" "#FFFFFF";
                
                      
?>
                <td width="15%" align="left" bordercolor="#003366" bgcolor="#EEEEFF"><span class="TEXT-DARK-BLUE10">ปีงบประมาณ</span></td>
                <td width="85%" bordercolor="#CCCCCC" bgcolor="#EEEEFF" class="PADDING-LEFT-5"><font color="#996600" size="2" face="Tahoma"><a href="PlanProjectDetail.php?Budget_Year=<?=$rs["Budget_Year"?>&Flag1=Y "title="Click to see Detail" class="d" >
                  <?=$rs["Budget_Year"]?>
                  </a></font></td>
                
              </tr>
              <tr>
               <?php 
               $no
++;
            } 
# while 
          
?>
                <td align="left" bordercolor="#003366" bgcolor="#EEEEFF">&nbsp;</td>
                <td bordercolor="#CCCCCC" bgcolor="#EEEEFF" class="PADDING-LEFT-5">&nbsp;</td>
              </tr>
              <tr>
                <td colspan="2"></td>
              </tr>
            </table>
          </tr>
        </table>
      </fieldset>
      <div align="center"><br>
        <input type="button" name="Submit2" value=" ปิดหน้าต่าง" onClick="javascript:parent.close();" onMouseOver="this.style.cursor='hand'" />
      </div>
    </form></th>
  </tr>
</table>
</body>
</html>
<?php
    
?>