RSumgroup(); $aGp = array(); while($oGp->GetRecord()){ $aGp += array($oGp->GpID=>$oGp->GpNameT); } $oGp->Close(); $loginname = $_REQUEST['loginname']; $name = $_REQUEST['name']; $UsWgID = $_REQUEST['UsWgID']; $oUs->SearchByNameWGroup($loginname, $name, $UsWgID); ?>
 ค้นหา   ชื่อ-นามสกุล    ชื่อเข้าใช้ระบบ    กลุ่มผู้ใช้ selectHTML("UsWgID", $UsWgID)?>   
rowPerPage=($nrpp=="")? 30 : $nrpp ; //if (! session_is_registered ("currpg")){ //session_register("currpg"); $pg = $_GET['pg']; if ($pg == "") { $pg = 1; } $oUs->gotoPage($pg); //$oTbl = new clsTable(array("#","รหัสผู้ใช้","ชื่อ-สกุล","ชื่อผู้ใช้","กลุ่มผู้ใช้","กลุ่มงาน","ดำเนินการ")); $oTbl = new clsTable(array("#","รหัสผู้ใช้","ชื่อ-นามสกุล","ชื่อเข้าใช้ระบบ","กลุ่มงาน","ดำเนินการ")); $oTbl->align="center"; $oTbl->headerBgColor="#dddddd"; $i=$oUs->frRowNum+1; $j=0; $j=$oUs->rowPerPage*($pg-1)+1; while ($oUs->GetRecord()){ $oTbl->rowStart($i%2); //$oTbl->addCell($oUs->UsID ,"center"); $oTbl->addCell($j ,"center"); $oTbl->addCell($oUs->UsPsCode); $oTbl->addCell($oUs->UsName); $oTbl->addCell($oUs->UsLogin); $j++; // $oWg->SearchByKey($oUs->UsWgID); // $oWg->GetRecord(); //$oTbl->addCell($oWg->WgNameT); $ss=""; $oUg->RSgroupByUs($oUs->UsID); while ($oUg->GetRecord()){ $oGp->SearchByKey($oUg->UgGpID); $oGp->GetRecord(); $ss.="UsID . "&UgGpID=" . $oUg->UgGpID . "\" title=\"กำหนดสิทธิ์การใช้รายคน\">".$oGp->GpNameT."
"; } $oTbl->addCell($ss); /*$s="UsID . "\">\"แก้ไข\" UsLogin', $oUs->UsID)\" >\"ลบ\" UsID . "\">\"กำหนดสิทธิ์การใช้รายคน\" \"แก้ไข\" UsLogin', $oUs->UsID)\" >\"ลบ\" UsActive==1) $s.="images/useractive.png\" "; else $s.="images/userlock.gif\" "; $s.="alt=\"set/unset active\" border=\"0\">"; $oTbl->addCell($s,"center"); $oTbl->rowEnd(); $i++; } $oTbl->rowStart(0,$oTbl->footerBgColor); $oTbl->addCell(" ","","",5); $oTbl->addCell(" \"เพิ่มระบบงาน\"","center"); $oTbl->rowEnd(); $oTbl->rowStart(); $s=""; $mxPage=$oUs->numPages(); for ($i=1; $i<=$mxPage; $i++){ $s.=""; if ($i==$pg) $s.=" $i "; else $s.=" $i "; $s.=" "; if ($i % 30 ==0) $s.="
"; } $oTbl->addCell($s,"center","",6); $oTbl->rowEnd(); echo $oTbl->output(); //echo ""; //echo " "; //echo "\"เพิ่มระบบงาน\""; //echo ""; //////////////////////// ?>
Close(); pageFooter(); ?>