Viewing file: menuAdmin.php (1.89 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<? include_once("../../um/clsConnection.php"); include_once("../../um/clsUmMenu.php"); include_once("../../um/clsUmPermission.php"); include_once("../../um/clsUmGPermission.php"); include_once("../../um/clsUmUserGroup.php"); $oC = new clsConnection(); $oG = new umusergroup($oC->c); $oMmn = new ummenu($oC->c); $oUp = new umpermission($oC->c); $oGp = new umgpermission($oC->c); ?> <script language="JavaScript1.2"> var tmenuItems = [ [" ʶҹмÙ黯Ժѵԧҹ","index.php","../picture/titleLogin.gif","","", "ʶҹмÙ黯Ժѵԧҹ",,"0"], ["|<?=$oU->userLogin?>","","../picture/ico9.gif","","","ª×èͼÙ黯Ժѵԧҹ","_self"], ["|<?=$oU->userIP?>","","../picture/ico10.gif","","","ʶҹмÙ黯Ժѵԧҹ","_self"], ["|<?=$dd?>","","../picture/ico11.gif","","","Çѹ·Õ軯Ժѵԧҹ","_self"], //[" àÁ¹Ù¡ÒÃãªé§Ò¹","index.php","../picture/titleMain.gif","","", "àÁ¹Ù¡ÒÃãªé§Ò¹",,"0"], <?php // for ecah group app////////////////////////////////////////// $oG->RSgroupByUs($oU->userID); while ($oG->GetRecord()){ $StrMenu = "[\" $oG->UgGpID\",\"index.php\",\"../picture/titleMain.gif\",\"\",\"\", \"àÁ¹Ù¡ÒÃãªé§Ò¹\",,\"0\"],"; $oU->GpID=$oG->UgGpID; $oMmn->RSMainMenuBySt($oU->StID); while ($oMmn->GetRecord()){ $flg=1; $oUp->SearchByKey($oU->userID, $oMmn->MnID); if ($oUp->GetRecord()){ $flg = $oUp->pmX; }else{ $oGp->SearchByKey($oU->GpID, $oMmn->MnID); if ($oGp->GetRecord()){ $flg = $oGp->gpX; } } if ($flg==1){ //if(true){ $StrMenu .= "[\"|"; $StrMenu .= "$oMmn->MnNameT\","; $StrMenu .= "\"$oMmn->MnURL\","; $StrMenu .= "\"../picture/ico6.gif\","; $StrMenu .= "\"\","; $StrMenu .= "\"\","; $StrMenu .= "\"$oMmn->MnDesc\","; $StrMenu .= "\"_self\"],\n"; } } $StrMenu = substr($StrMenu,0,strlen($StrMenu)-1); $StrMenu .= "];\n"; } $oMmn->Close(); $oGp->Close(); $oUp->Close(); echo $StrMenu; echo "\n"; echo "apy_tmenuInit();"; ?> </script>
|