Viewing file: createDoc.php (2.34 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php include_once "template.php"; include_once "../link/function.php"; include_once "../class/clsDocType.php"; include_once "../link/keyThai.php"; include_once "../class/clsDocLinePosition.php"; include_once "../class/clsDocLineConfig.php"; include_once "funct.php";
$oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EOFFICE'], $GLOBALS['DBUSER_EOFFICE'], $GLOBALS['DBPASS_EOFFICE']); $oDt = new doctype($oC); $oDlc = new DocLineConfig($oC); $oDlc2 = new DocLineConfig($oC); $oDlc3 = new DocLineConfig($oC); $oDlp = new docLinePosition($oC);
$oDlc->SearchByKey($_SESSION['DLCID']); $oDlc->GetRecord(); $oDlp->SearchByKey($oDlc->DlpID); $oDlp->GetRecord(); ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=tis-620"> <link href="../source/style.css" rel="stylesheet" type="text/css"> </head> <body> <table width="100%" align="center"> <tr><td > <fieldset> <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>">ÊÃéÒ§ËÃ×;ÔÁ¾ì˹ѧÊ×ÍÃÒª¡ÒÃ</font></legend> <table width="85%" border="0" align="center" cellpadding="6" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse"> <tr><td align="center" height="22" ><strong>ÊÃéÒ§ËÃ×;ÔÁ¾ì˹ѧÊ×ÍÃÒª¡ÒÃ</strong></td></tr> <tr><td height="22" align=left><font color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>" size="2"><strong>àÅ×Í¡ª¹Ô´Ë¹Ñ§Ê×Í</strong></font></td></tr> <? $oDt->RSdoctype(); while($oDt->GetRecord()){ if($oDt->DtID!='14' && $oDt->DtID!='15') if($oDt->DtP=="1"){ echo "<tr height=22><td colspan=5 align=\"left\"> "; if($oDt->DtPDtID=="0"){ echo "<strong>"; }else{ echo " - "; } echo $oDt->DtName; if($oDt->DtPDtID=="0"){ echo "<strong></td></tr>"; } }else{ ?> <tr height=22> <td align="left"> <? if($oDt->DtPDtID=="0"){ echo "<strong>"; }else{ echo " - "; } if(SearchDlpIDSarabunCenter()==$oDlp->DlpID && $oDt->DtID=="3"){ echo ""; }else{ echo "<a href=\"formCreateDoc.php?dt=".$oDt->DtID."\">"; } echo $oDt->DtName; if(SearchDlpIDSarabunCenter()==$oDlp->DlpID && $oDt->DtID=="3"){ echo ""; }else{ echo "</a>"; } if($oDt->DtPDtID=="0"){ echo "<strong>"; } ?></td> <? } }?> </table> </fieldset> </td></tr></table> </body> </html>
|