<?php
include_once("../../class/clsConnection.php");
include_once(
"../../class/clsDB.php");
include_once 
"../global.php";
include_once 
"../class/clsTable.php";
include_once 
"../class/clsDepartment.php";
include_once 
"../class/clsPerson.php";
include_once 
"../class/clsWorkGroup.php";
include_once 
"../link/function.php";

$oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EOFFICE'], $GLOBALS['DBUSER_EOFFICE'], $GLOBALS['DBPASS_EOFFICE']);

$oDP = new Department($oC);
$oPS = new person($oC);
$oWG = new workGroup($oC);
echo 
$DLCID."--".$DlcPS2;
?>
<html>
<head>
<title>เพิ่มข้อมูลงาน</title>
<script language="javascript" src="../source/calendarDateInput.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<link href="../source/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<fieldset>
      <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_2"];?>">
      &nbsp;<img src="../picture/map.gif"><strong> เพิ่มข้อมูลงาน  </strong>
       </font></legend><br>
       <table border="0" align="center" width="100%">
       <tr><td colspan="4">&nbsp;<strong>ช่วงเวลาที่ลงทะเบียน เสนอเซ็น</strong></td></tr>
      <tr>
      <td width="25%">&nbsp;&nbsp;ตั้งแต่วันที่</td>
      <td width="30%"><script>DateInput('startDate', true, 'DD/MM/YYYY','<?php echo getNowDateFw2();?>');</script></td>
                  <td width="15%" align="center">ถึง</td>
                  <td width="30%"><script>DateInput('endDate', true, 'DD/MM/YYYY','<?php echo getNowDateFw2();?>');</script></td>
      </tr>
      </table>
  <table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse"  background="<? if($DtID=="6" || $DtID=="7" || $DtID=="9"){ echo "../picture/table_header_bg2.gif"; }else{ echo "../picture/table_header_bg.gif";  }?>">
      <tr height=22>
      <td width="3%" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>&nbsp;</strong></font></td>
      </tr>
      
      </table>
      <table border="0" align="center">
      <tr bgcolor="#FFFFFF"><td align="center"><input type="button" name="cancel" value="ยกเลิก" onClick="window.close();"></td></tr>
      </table>
 </fieldset>
</body>
</html>
<script language="JavaScript">
function checkSubmitAll(){
    if(document.ff.workGroupName.value == ""){
        alert("กรุณากรอกชื่องาน");
        document.ff.workGroupName.focus();
        return false;
    }
}
</script>