Software: Apache/2.2.3 (CentOS). PHP/5.1.6 uname -a: Linux mx-ll-110-164-51-230.static.3bb.co.th 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44 uid=48(apache) gid=48(apache) groups=48(apache) Safe-mode: OFF (not secure) /var/www/html/manage/person/admin/ drwxr-xr-x |
Viewing file: Select action/file-type: <?php include_once "template.php"; include_once "../class/clsTable.php"; include_once "../class/clsDepartment.php"; include_once "../class/clsPerson.php"; include_once "../link/function.php"; include_once "../class/clsDocLinePosition.php"; include_once "../class/clsDocLineConfig.php"; include_once "../link/keyThai.php"; include_once "getPrefix.php"; $oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EOFFICE'], $GLOBALS['DBUSER_EOFFICE'], $GLOBALS['DBPASS_EOFFICE']); $oDP = new Department($oC); $oDP2 = new Department($oC); $oDP3 = new Department($oC); $oPS = new person($oC); $oDlc = new DocLineConfig($oC); $oDlp = new docLinePosition($oC); $oDlp2 = new docLinePosition($oC); ?> <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> <iframe id="addConfig" name="addConfig" src="" style="width:0px;height:0px;border:0"></iframe> <br> <table width=703 align="center"> <tr><td height="150"> <fieldset> <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="?mm=1">ตั้งค่าการใช้งานระบบ</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle">กำหนดลำดับหน้าที่งานสารบรรณของบุคคลทีละหน่วยงาน</font></legend> <form name="ff" METHOD="POST" action="searchPsTable.php" target="addConfig"><? // ?> <table border="0" align="center" width="100%"><tr><td align="center"> <table width="87%" height="21" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse"> <tr><td width="13%" align="left"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_2"];?>"><strong>หน่วยงาน :: </strong> </font></td> <td width="87%" align="left"> <select name="deptId" onChange='return showdept2();' > <option value="0">- เลือกหน่วยงาน -</option> <? $oDP->SearchBydeptDateDocGroup($oDP2->SearchMaxDocGroup()); while($oDP->GetRecord()){?> <option value="<? echo $oDP->deptId;?>" <? if($oDP->deptId==$deptId){ echo "selected"; }?>><? echo $oDP->deptName; ?></option> <? } ?> </select> <input type="hidden" name="method" value="pp"> <input type="hidden" name="showdeptId"> </td> </tr> </table><br> <? if($deptId!="" && $deptId!="0"){ ?> <table width="100%" height="22" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse"> <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_15'];?>"> <td width="4%" align="center"><strong>ลำดับ</strong></td> <td width="24%" align="center"><strong>ตำแหน่ง</strong></td> <td colspan="2" align="center" ><strong>บุคลากร</strong><strong></strong></td> <td width="8%" align="center"><strong>เสนอเซ็น</strong></td> <td width="5%" align="center"><strong>ลงนาม</strong></td> <td width="5%" align="center"><strong>ส่งผ่าน</strong></td> <td width="4%" align="center"><strong>ส่ง</strong></td> <td width="10%" align="center"><strong>ดูเส้นทาง<br> เดินหนังสือ</strong></td> <td width="6%" align="center"><strong>active</strong></td> </tr> <? $oDlc->SearchByDeptMaxDocGroup($deptId,$oDP2->SearchMaxDocGroup()); $i=0; while($oDlc->GetRecord()){?> <tr> <td align="center"><? echo a2th($oDlc->DlcSeq); ?></td> <td align="left" > <? $oDlp2->SearchByKey($oDlc->DlpID); $oDlp2->GetRecord(); if($oDlp2->DlpPID=="0" || $oDlp2->DlpPID==""){ ?> <select name="DlpID[<? echo $i; ?>]" onChange="return showdept('newposition');"> <option value="0">- เลือกตำแหน่งงาน -</option> <? $oDlp->RSdocLinePositionParentorderByDlpOrder(); while($oDlp->GetRecord()){?> <option value="<? echo $oDlp->DlpID;?>" <? if($oDlp->DlpID==$oDlc->DlpID){ echo "selected"; }?>><? echo $oDlp->DlpName; ?></option> <? } ?> </select> <? }else{ echo " ".$oDlp2->DlpName; ?> <input type="hidden" name="DlpID[<? echo $i; ?>]" value="<? echo $oDlc->DlpID; ?>"><? }?> </td> <? $oPS->SearchByKey($oDlc->personId); $oPS->GetRecord();?> <td width="24%" align="left"><? echo " ".GetPrefix($oPS->prefixId).$oPS->fName." ".$oPS->lName; ?></td> <td align="center" width="2%"><img src="../picture/search2.jpg" alt="ค้นหา" border="0" style="cursor:pointer;" onClick = "searchps('<? echo $oDlc->DlcID;?>','<? echo $oDlc->deptId;?>')"></td> <td align="center"><input type="checkbox" name="DlcPropose[<? echo $i; ?>]" value="Y" <? if($oDlc->DlcPropose=="Y"){ echo "checked"; }?> onClick="return showdept();" <? if($oDlp2->DlpPropose=='N'){ echo 'disabled'; }?>></td> <td align="center"><input type="checkbox" name="DlcSign[<? echo $i; ?>]" value="Y" <? if($oDlc->DlcSign=="Y"){ echo "checked"; }?> onClick="return showdept();" <? if($oDlp2->DlpSign=='N'){ echo 'disabled'; }?>></td> <td align="center"><input type="checkbox" name="DlcByPass[<? echo $i; ?>]" value="Y" <? if($oDlc->DlcByPass=="Y"){ echo "checked"; }?> onClick="return showdept();" <? if($oDlp2->DlpByPass=='N'){ echo 'disabled'; }?>></td> <td align="center"><input type="checkbox" name="DlcSend[<? echo $i; ?>]" value="Y" <? if($oDlc->DlcSend=="Y"){ echo "checked"; }?> onClick="return showdept();" <? if($oDlp2->DlpSend=='N'){ echo 'disabled'; }?>></td> <td align="center"><input type="checkbox" name="DlcView[<? echo $i; ?>]" value="Y" <? if($oDlc->DlcView=="Y"){ echo "checked"; }?> onClick="return showdept();" <? if($oDlp2->DlpView=='N'){ echo 'disabled'; }?>></td> <td align="center"><input type="checkbox" name="DlcActive[<? echo $i; ?>]" value="Y" <? if($oDlc->DlcActive=="Y"){ echo "checked"; }?> onClick="return showdept();" ></td> </tr> <input type="hidden" name="DlcSeq[<? echo $i; ?>]" value="<? echo $oDlc->DlcSeq; ?>"> <input type="hidden" name="DlcID[<? echo $i; ?>]" value="<? echo $oDlc->DlcID; ?>"> <input type="hidden" name="personId[<? echo $i; ?>]" value="<? echo $oDlc->personId; ?>"> <input type="hidden" name="DlcSeq[<? echo $i; ?>]" value="<? echo $oDlc->DlcSeq; ?>"> <? $i++; } ?> <? if($addline=="1"){ ?> <tr> <td align="center"><? echo a2th(($oDlc->SearchMaxDeptDlcSeq($deptId)+1)); ?></td> <td align="left" > <select name="DlpIDadd" onChange="return showdept();"> <option value="0">- เลือกตำแหน่งงาน -</option> <? $oDlp->RSdocLinePositionParentorderByDlpOrder(); while($oDlp->GetRecord()){?> <option value="<? echo $oDlp->DlpID;?>"><? echo $oDlp->DlpName; ?></option> <? } ?> </select></td> <? $oPS->SearchByKey($oDlc->personId); $oPS->GetRecord();?> <td align="left" colspan="2"><? echo " ".GetPrefix($oPS->prefixId).$oPS->fName." ".$oPS->lName; ?></td> <td align="center"><input type="checkbox" name="DlcProposeadd" disabled ></td> <td align="center"><input type="checkbox" name="DlcSignadd" disabled></td> <td align="center"><input type="checkbox" name="DlcByPassadd" disabled></td> <td align="center"><input type="checkbox" name="DlcSendadd" disabled></td> <td align="center"><input type="checkbox" name="DlcViewadd" disabled></td> <td align="center"><input type="checkbox" name="DlcActiveadd" disabled></td> </tr> <input type="hidden" name="DlcIDadd" value="<? echo ($oDlc->SearchMaxDlc()+1); ?>"> <input type="hidden" name="docGroupadd" value="<? echo $oDlc->SearchMaxDocGroup(); ?>"> <input type="hidden" name="personIdadd" value="<? echo $oDlc->personId; ?>"> <input type="hidden" name="DlcSeqadd" value="<? echo ($oDlc->SearchMaxDeptDlcSeq($deptId)+1); ?>"> <? } //new line?> </table> <table width="100%" height="22" border="0" align="center" cellpadding="0" cellspacing="0" > <tr><td colspan="9"> </td></tr> <tr><td align="right" colspan="9"> <? if($deptId!="" && $deptId!="0"){ ?> <input type="button" name="addLine" value="เพิ่มตำแหน่ง" onClick="location.href = 'docLineConfig.php?deptId=<? echo $deptId; ?>&addline=1'" <? if($oDlc->SearchDeptconfirm($deptId)=="Y"){ echo "disabled"; } ?>> <? } ?> <? if($oDlc->SearchMaxDeptDlcSeq($deptId)!=0){?> <input type="submit" name="addconfirm" value="ยืนยันการใช้งาน" onClick="return checkFormat2('<? echo $deptId; ?>');" <? if($oDlc->SearchDeptconfirm($deptId)=="Y"){ echo "disabled"; } ?>> <input type="submit" name="addconfirm" value="ลบข้อมูล" onClick="return checkFormat3('<? echo $deptId; ?>');"> <? } ?> </td></tr> </table> <input type="hidden" name="fconfirm" > <input type="hidden" name="fdelete" > <input type="hidden" name="method" value="pp"> <input type="hidden" name="newposition"> <input type="hidden" name="countline" value="<? echo $i; ?>"> <input type="hidden" name="addline" value="<? echo $addline;?>"> <? } //if $deptId!="" && $deptId!="0" ?> </td></tr> <tr><td> </td></tr> <tr><td align="center"><input type="button" name="cancel" value="กลับสู่เมนูหลัก" onClick="location.href = '?mm=1'"></td></tr> <tr><td align="right"><a href="comfirmdoclineconfig.php">[ <img src="../picture/yes.png" border="0" align="absmiddle"> <strong>ยืนยันการใช้งานทุกหน่วยงาน</strong>]</a></td></tr> <tr><td align="right"><a href="searchPrintDocLineConfig.php?deptId=<? echo $deptId;?>">[ <img src="../picture/search.gif" alt="ค้นหา" border="0" style="cursor:pointer;"> <strong>สรุปลำดับหน้าที่งานสารบรรณของบุคคลทีละหน่วยงาน</strong>]</a></td></tr> </table> </form> </fieldset> <br> <br> <br><br> <br><br> </td> </tr> </table> </body> </html> <script language="javascript"> function checkFormat2(p){ window.alert("หมายเหตุ :: เมื่อกดยืนยันการใช้งานแล้ว\nจะไม่สามารถเพิ่มตำแหน่งงานใหม่ให้กับ \nหน่วยงานนี้ได้อีก"); var agree=confirm("คุณต้องการยืนยันการใช้งานใช่หรือไม่ ?"); if (agree){ document.ff.fconfirm.value="1"; return true ; }else{ return false ; } } function checkFormat3(p){ window.alert("หมายเหตุ :: การลบข้อมูลหมายถึงหน้าที่งานสารบรรณ\nที่กำหนดขึ้นทั้งหมดของหน่วยงานนี้จะถูกลบ"); var agree=confirm("คุณต้องการลบข้อมูล\nหน้าที่งานสารบรรณนี้ใช่หรือไม่ ?"); if (agree){ document.ff.fdelete.value="1"; return true ; }else{ return false ; } } function showdept(p){ document.ff.newposition.value=p; document.ff.submit(); } function showdept2(){ document.ff.showdeptId.value="1"; document.ff.submit(); } function searchps(p,q){ FileName = "searchPsTable.php?DlcID="+p+"&deptId="+q; var w=360; var h=300; strOption = "scrollbars=yes,left=400,top=100,width=" + w + ",height=" + h; window.open(FileName,"",strOption); } </script> |
:: Command execute :: | |
:: Shadow's tricks :D :: | |
Useful Commands
|
:: Preddy's tricks :D :: | |
Php Safe-Mode Bypass (Read Files)
|
--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0061 ]-- |