ASPµÝ¹éÎÞ¼«Ï޲˵¥Ê÷
dataurl=Server.MapPath("menutree.mdb")'Êý¾Ý¿âµØÖ·
dim conn,strQuery,rs
set conn = server.CreateObject("adodb.connection")
conn.Open "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE="&dataurl
strQuery="select * from menufun"
set rs=server.createobject("adodb.recordset")
rs.open strQuery,conn,1,1
allnum=rs.RecordCount
'È¡µÃ×î´óµÄ²ãÊýMaxLevel
MaxLevel=1
for i=1 to allnum
if rs("PartLevel")>MaxLevel then
MaxLevel=rs("PartLevel")
else
MaxLevel=MaxLevel
end if
rs.movenext
next
rs.close
set rs=nothing
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>ToumhÎÞ¼«Ï޲˵¥Ê÷</title>
<style type="text/css">
<!--
td {
font-size: 12px;
}
-->
</style>
<script language="javascript">
<!--
function divshow(cmy1,cmy2,cmy3)
//Õ¹¿ª/ºÏ²¢²Ëµ¥º¯Êý
{
if(document.all("div"+cmy1+cmy2+cmy3).style.display==""){
document.all("div"+cmy1+cmy2+cmy3).style.display="none"
}else{
document.all("div"+cmy1+cmy2+cmy3).style.display=""
}
}
//-->
</script>
</head>
<body bgcolor="#6699CC" topmargin="0">
<table border="0" cellpadding="0" cellspacing="0">
<tr onClick="javascript:divshow(1,0,1);" style="cursor:hand"><TD><img src="images/admin.gif">ToumhÎÞ¼«Ï޲˵¥Ê÷</TD></tr>
<%
dim toumh(10) '¶¨ÒåÓÃÓÚ´æ·Å²Ëµ¥Ç°ÏÔʾÊ÷ͼƬµÄÊý×飬Èç¹ûÓ¦ÓÃʱµÄ×î´ó¼¶Êý´óÓÚÊ®£¬ÇëÀ©´óÊý×éάÊý
call menutree(1,0,MaxLevel,1)'Ê״ε÷Óò˵¥Êä³öº¯Êý
'µÚÒ»¸ö²ÎÊý£º²Ëµ¥µÄ¼¶Êý
'µÚ¶þ¸ö²ÎÊý£º¸¸²Ëµ¥µÄID£¬Ò»¼¶²Ëµ¥Ä¬ÈÏΪÁã
'µÚÈý¸ö²ÎÊý£º²Ëµ¥µÄ×î´ó¼¶Êý
'µÚËĸö²ÎÊý£ºÓÃÓÚÇø·Ö²ãµÄÃû³Æ£¬·½±ãʵÏֲ˵¥µÄÕ¹¿ªºÏ²¢
%>
</table>
<%
'funno ²Ëµ¥µÄ¼¶Êý
'funcid ¸¸²Ëµ¥µÄID£¬Ò»¼¶²Ëµ¥¸¸¼¶IDֵΪ0
'MaxLevel ²Ëµ¥µÄ×î´ó¼¶Êý
'divno ÓÃÓÚÇø·Ö²ãµÄÃû³Æ£¬·½±ãʵÏֲ˵¥µÄÕ¹¿ªºÏ²¢
'menutree() ÊýÐβ˵¥Êä³öº¯Êý
function menutree(funno,funcid,MaxLevel,divno)
dim rsfun,numfun,funcidfun
strQuery1="select * from menufun where sup_funcid='"&funcid&
Ïà¹ØÎĵµ£º
<%
'
Set http=Server.CreateObject("Microsoft.XMLHTTP")
http.Open "GET","http://127.0.0.1/1.xml",False
http.send
Dim xml
Set xml = Server.CreateObject("Microsoft.XMLDOM")
xml.async = False
'xml.load (Server.MapPath("1.xml"))¡¡'Èç¹û²»ÊÇÔ¶³ÌÎļþÖ±½ÓÕâÒ»²½
xml.Load(http.ResponseXML)
Dim t ......
¡¡¡¡ÔÚASP±à³ÌµÄ¹ý³ÌÖУ¬»ñÈ¡µ±Ç°²Ù×÷µÄÎļþµÄÎļþÃû£¬ÊÇÒ»¸ö·Ç³£³£Óõ͝×÷£¬ASPºÃÏñûÓÐ×Ô¼ºÄÚÖú¯Êý£¬ËùÒÔÕâ¸ö²Ù×÷ÎÒÃÇÐèÒª×Ô¼º±àº¯ÊýÀ´Íê³É¡£½ñÌìÒ»¸öÀÏÅóÓÑÎÊÎÒÔõô×ö£¬ÎÒã¶ÁËһϣ¬»¹ÔÚÏëÓÐûÓÐÄÚÖú¯Êý£¬ÊµÔÚûÏëÆðÀ´£¬²»ÖªµÀÊÇÕæµÄûÓл¹ÊÇÎÒ²»ÖªµÀ¡£ºÇºÇ~²»¹ÜÁË£¬×îºóÎÒ»¹ÊÇ×Ô¼ºÐ´ÁËÒ»¸öСº¯ÊýÀ´Íê³ÉµÄ£¬²»¹ý²»ÊÇÎ ......
Óöµ½ÁËÒ»¸öÄÑÌ⣬2003²Ù×÷ϵͳ ÔÙ°²×°Íê²¢ÅäÖúÃiisºóä¯ÀÀ.csÎļþµÄûÓÐÎÊÌ⣬¿ÉÊÇÒ»µ©ä¯ÀÀaspµÄÎļþ¾Í±¨http 500·þÎñÆ÷ÄÚ²¿´íÎó£¬ÎÒÔÚÆäËû»úÆ÷ÉÏͬÑùÊǺÍÎÒµÄÅäÖÃÒ»Ñù¾Í¿ÉÒÔä¯ÀÀaspµÄÎļþ£¬ºÜÓôÃÆ²»ÖªµÀÔõô»ØÊ£¬°´ÕÕÍøÉϵÄ˵·¨¶¼½øÐÐÁËÐ޸Ϲ²»Äܳɹ¦ä¯ÀÀaspÎļþ£¬ÄѵÀ»¹ÒªÖØÐÂװϵͳÂð£¿ÎÒ¸ÃÔõô°ì£¡£¡£¡ ......
µ±´íÎóÐÅÏ¢³öÏÖÔÚÒ³ÉÏʱ£¬Ëü³ÉΪҳ²¼¾ÖµÄÒ»²¿·Ö¡£ÄúÐèÒªÉè¼ÆÒ³µÄ²¼¾ÖÒÔ·ÅÖÿÉÄܳöÏÖµÄÈκδíÎóÎı¾¡£
Èç¹ûÑéÖ¤ÔÚ·þÎñÆ÷ÉÏÖ´ÐУ¬Ôò³ý·Ç³öÏÖ´íÎ󣬷ñÔòÑéÖ¤¿Ø¼þ²»»á³ÊÏÖµ½Ò³£¬²¢Òò´Ë²»»áÕ¼ÓÃÈκοռ䡣Èç¹û³öÏÖ´íÎó£¬Ò³½«ÔÚÍù·µÆÚ¼äÖØÐ´´½¨£¬²¢½«´íÎóÎı¾Ìí¼Óµ½Ò³¡£
Èç¹ûÓû§¾ßÓÐÖ§³Ö¶¯Ì ......
±¾ÑÝÁ·Í¨¹ýʹÓôúÂëе÷ͬһҳÉϵÄÁ½¸ö²Ëµ¥£¬ÑÝʾÈçºÎÒÔ±à³Ì·½Ê½Ê¹Óà ASP.NET Menu ¿Ø¼þ¡£
¿ÉÒÔʹÓà ASP.NET Menu ¿Ø¼þÎªÍøÕ¾´´½¨µ¼º½²Ëµ¥¡£ÔÚ±¾ÑÝÁ·ÖУ¬½«¿¼²ì ASP.NET Menu ¿Ø¼þµÄ±à³Ì·½Ã棬²¢´´½¨Á½¸öÐͬ¹¤×÷µÄ²Ëµ¥£¬ËüÃǶ¼°ó¶¨µ½Í¬Ò»¸ö Web.sitemap Îļþ¡£µÚÒ»¸ö²Ëµ¥ÊǾ²Ì¬ÏÔʾµÄÀà±ð£¨Èç²úÆ·¡¢·þÎñºÍÖ§³Ö£©²Ëµ¥¡£Ë ......