Viewing file: editRegisterUploadDoc.php (2.25 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?PHP function manageDocAtt($DLCID,$DocID){ include_once("../../class/clsConnection.php"); include_once("../../class/clsDB.php"); include_once "../global.php"; include_once "../link/function.php"; include_once "../link/functionshow.php"; include_once "funct.php"; include_once "../link/keyThai.php"; include_once "../class/clsDocattatches.php"; include_once "../class/clsDocattatchesTmp.php"; include_once "../class/clsSysConfig.php";
$oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EOFFICE'], $GLOBALS['DBUSER_EOFFICE'], $GLOBALS['DBPASS_EOFFICE']); $oDatt = new Docattatches($oC); $oDatt2 = new Docattatches($oC); $oDatt3 = new Docattatches($oC); $oDatt1 = new Docattatches($oC); $oDtmp = new DocattatchesTmp($oC); $oSys = new sysConfig($oC);
$oSys->RSsysConfig(); $oSys->GetRecord();
$showdetaildoc="<table width=\"100%\" border=1 cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#6CABF9\" style=\"border-collapse:collapse\">"; $countAllDoc=$oDtmp->CountDocDlcID($DLCID)+$oDatt->CountDocByDocID($DocID); $showdetaildoc=$showdetaildoc."<tr><td width=\"246\" bgcolor=".$GLOBALS["COLOR_BG_TD_20"]." align=left>"; $showdetaildoc=$showdetaildoc."<font size=\"2\" color=".$GLOBALS["COLOR_FONT_2"].">"; $showdetaildoc=$showdetaildoc." <img src=\"../picture/attach_ico.gif\" border=\"0\"> á¿éÁ·Õèà¡ÕèÂÇ¢éͧ ".a2th($countAllDoc)." ÃÒ¡ÒÃ</font>"; $showdetaildoc=$showdetaildoc."</td></tr>"; $showdetaildoc=$showdetaildoc."<tr><td height=\"68\" align=left>"; $oDatt->SearchByDocID($DocID); while($oDatt->GetRecord()){ $c++; $pathfile=$GLOBALS['path_download_documents'].$oDatt->DaUpFileName; $showdetaildoc=$showdetaildoc." <a href=".$pathfile." target=\"_blank\"><img src=\"../picture/allregistered_ico.gif\" title=\"à»Ô´´Ùá¿éÁ˹ѧÊ×Í\" border=\"0\" style=\"cursor:pointer;\" ></a> "; $showdetaildoc=$showdetaildoc."<img src=\"../picture/delete1.gif\" title=\"źá¿éÁ˹ѧÊ×Í\" border=\"0\" style=\"cursor:pointer;\" onClick=\"startDel(".$oDatt->DaID.",".$DocID.",".$DLCID.")\"> "; $showdetaildoc=$showdetaildoc.a2th($c).". ".$oDatt->DaFileName."<br>"; }
$showdetaildoc=$showdetaildoc."<br></td></tr></table>"; return $showdetaildoc; } ?>
|