Viewing file: showSelectRegisDoc.php (13.09 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
SearchMaxDocGroup();
$InputThai=$oSys->SearchByInputThai();
?>
">
" size="2">เลข |
" size="2"> |
" size="2"> |
" size="2"> |
" size="2"> |
" size="2">วันที่เสนอหนังสือ |
![ต้องการแสดงหนังสือที่อ่านแล้ว](../picture/importdoc.gif) |
DlpID=="1"){
$oDoc4->SearchViewCountRegisDocMainDept($MaxDocGroup,$RsID,$DtID,$monthe,th2a($searchYear),th2a($searchName),th2a($searchNo));
}else{
$oDoc4->SearchViewCountRegisDocNoMainDept($DLCID,$MaxDocGroup,$DlcPS2,$RsID,$DtID,$monthe,th2a($searchYear),th2a($searchName),th2a($searchNo));
}
}else{
$oDoc4->SearchViewCountRegisDocNoMainDept($DLCID,$MaxDocGroup,$DlcPS2,$RsID,$DtID,$monthe,th2a($searchYear),th2a($searchName),th2a($searchNo));
}
$numRow = $oDoc4->NumRow();
$total_page = (int)($numRow/$GLOBALS['PAGE_SIZE']);
if(($numRow%$GLOBALS['PAGE_SIZE']) != 0)
$total_page++;
if(isset($page_id))
$start = $GLOBALS['PAGE_SIZE']*($page_id-1);
else {
$page_id = 1;
$start = 0;
}
//-------------------------------
if($RsID=="5" || $RsID=="2"){
if($oDlp->DlpID=="1"){
if($DtID=="13"){
$oDoc3->SearchViewRegisDocMainDeptLimit13($MaxDocGroup, $start, $GLOBALS['PAGE_SIZE'],$RsID,$DtID,$monthe,th2a($searchYear),th2a($searchName),th2a($searchNo));
}else{
$oDoc3->SearchViewRegisDocMainDeptLimit($MaxDocGroup, $start, $GLOBALS['PAGE_SIZE'],$RsID,$DtID,$monthe,th2a($searchYear),th2a($searchName),th2a($searchNo));
}
}else{
if($DtID=="13"){
$oDoc3->SearchViewRegisDocNoMainDeptLimit13($DLCID,$MaxDocGroup,$DlcPS2, $start, $GLOBALS['PAGE_SIZE'],$RsID,$DtID,$monthe,th2a($searchYear),th2a($searchName),th2a($searchNo));
}else{
$oDoc3->SearchViewRegisDocNoMainDeptLimit($DLCID,$MaxDocGroup,$DlcPS2, $start, $GLOBALS['PAGE_SIZE'],$RsID,$DtID,$monthe,th2a($searchYear),th2a($searchName),th2a($searchNo));
}
}
}else{
$oDoc3->SearchViewRegisDocNoMainDeptLimit($DLCID,$MaxDocGroup,$DlcPS2, $start, $GLOBALS['PAGE_SIZE'],$RsID,$DtID,$monthe,th2a($searchYear),th2a($searchName),th2a($searchNo));
}
$z=0;
while($oDoc3->GetRecord()){
$oDoc5->SearchByViewRegisDoc($oDoc3->DocID);
$oDoc5->GetRecord();
$oRs4->SearchByDocIDStatus1($oDoc5->DocID);
$oRs4->GetRecord();
if(($z%2) == 0)
echo "";
else
echo " ";
?>
DocTypeNo); ?> |
DocNo; ?> |
DocDate =="0000-00-00"){ echo ""; }else{ echo abbreDate(splitDateDb2($oDoc5->DocDate ,'/')); }?> |
DocSubject; ?>
if($RsID=="3"){
echo " (จาก";
echo $oDoc5->DocFrom;
echo ")";
}
?>
DlpPID!="0"){ if($DLCID==$oDoc5->DlcID){ echo " [รักษาการ]"; }} ?>
DlpPID=="0"){ if($DlcPS2==$oDoc5->DlcID){ echo " [รักษาการ]"; }} ?>
endDoc=="Y"){
echo "[ยุติหนังสือ]";
}
?>
DlcID!=$DLCID) && ($oDoc5->DlcID!=$DlcPS2)){
$oDlc4->SearchByKey($oDoc5->DlcID); $oDlc4->GetRecord();
$oDP4->SearchByKey($oDlc4->deptId); $oDP4->GetRecord();
echo " (จาก$oDP4->deptName)";
}
?>
|
DocDateCreate);
echo abbreDate2($DocD,'/')." ".a2th($DocT);
?> |
SearchByDocIDStatus1($oDoc5->DocID);
if($oRs3->GetRecord()==1){
if($oRs3->DrsByPass=="Y"){
if($oDoc5->DtID!="15"){ echo "ส่งผ่าน"; }else{ echo "ส่งผ่าน/ลงนามแล้ว"; }
}else{
$oRs5->SearchByDrsFromDrsID($oRs3->DrsID);
if($oRs5->GetRecord()=="1"){
list($DocD,$DocT) = split(' ',$oRs5->DrsReceiveDate);
echo abbreDate2($DocD,'/')." ".a2th($DocT);
}else{
echo " ";
}
}
}
?> |
DrsflagRead=="N"){ ?> |
" size="2">** ไม่มี ** |
หน้า->
";}?>
|
|