SearchMaxDocGroup(); if($method=="setFlag"){ $flagCommit = true; $checkflagCommit= true; $oC->BeginTrans(); for($k=0;$k<=$i;$k++){ if($notshow[$k]!=""){ //echo "--".$unread[$k]."
"; $oRs->SearchByKey($notshow[$k]); $oRs->GetRecord(); $oRs->Edit(); $oRs->DrsfSendBack='Y'; $checkflagCommit = $oRs->Save(); if(!$checkflagCommit){ $flagCommit=$checkflagCommit; } } } if($flagCommit) $oC->CommitTrans(); else $oC->RollbackTrans(); echo ""; }else{ echo ""; } ?>