• 全部
  • .NET Framework
  • ASP
  • Web Services
  • .NET互联网桌面应用
  • VB
  • 图表区
  • 分析与设计
  • 组件/控件开发
  • AppLauncher
  • 问答

200分跪求js+xml+数据库的树并具有权限功能!!(再现等待,如果今天弄不出来老板该找事了~!求求各位老大了)

zxggwan 2003-12-02 03:04:29
100求js+xml+数据库的树并具有权限功能!!
要asp.net版的最好能告诉我怎么使用~!谢谢了~!~!~!


http://fason.nease.net/download/deeptree.rar
这个是asp得而且结构有点乱~!那位有好的树一定要给我啊~!~!
...全文
12 点赞 收藏 36
写回复
36 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
KevinCao 2003-12-04
xslt:

<?xml version="1.0" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:FCS="http://google.com">
<msxsl:script language="VB" implements-prefix="FCS">
<![CDATA[
Public Function GetActionID(ByVal id As String) As Integer
GetActionID = CInt(Mid(id, 2, 2))
End Function
]]>
</msxsl:script>
<xsl:template match="/Menu">
<xsl:choose>
<xsl:when test="count(./MenuLevel1) > 0">
<style>
.CSPB {
position:relative;
top:0;
left:0;
z-index:100
}
.cspbBtnCell {
background-image:
url(<xsl:apply-templates select="//Path" />images/Menu/misc/panelbar_tile.gif);
cursor:hand;
height:20
}
.cspbBtnCell_selected {
background-image:
url(<xsl:apply-templates select="//Path" />images/Menu/misc/panelbar_tile_selected.gif);
cursor:hand;
height:20
}
.cspbBtn {
font-family:Arial, Helvetica, Sans-Serif;
font-size:12px;
font-weight:bold;
font-style:normal;
color:#ffffff;
text-decoration:none;
text-align:Center;
Padding-left:0px;
Padding-right:0px
}
.cspbItm {
font-family:Arial, Helvetica, Sans-Serif;
font-size:11px;
font-weight:normal;
font-style:normal;
color:#3f577d;
text-decoration:none
}
A.cspbItm:visited,A.cspbItm:active,A.cspbItm:Link {
font-family:Arial, Helvetica, Sans-Serif;
font-size:11px;
font-weight:normal;
font-style:normal;
color:#3f577d;
text-decoration:underline
}
A.cspbItm:Hover{
font-family:Arial, Helvetica, Sans-Serif;
font-size:11px;
font-weight:normal;
font-style:normal;
color:red;
text-decoration:none
}
.cspbItmAlign {
text-align:Center;
Padding-left:0;
Padding-right:0
}
</style>
<script Language="JavaScript">
<xsl:attribute name="src">
<xsl:apply-templates select="//Path" />javascript/MenuScroll.js
</xsl:attribute>
</script>
<script language="javascript">
<xsl:comment><![CDATA[
var cspbVS="CSPBPanelBarLoading";
var cspbVI="";
var cspbGD=new Object();
var cspbID=new Object();
var cspbBoH=32;
var cspbBuH=0;
var cspbSH=0;
var cspbBM=0;
var cspbBS=0;
var cspbAF=false;
var cspbCT=0;
var cspbCB=0;
var cspbSS=false;
var cspbMA=0;
var OriginalHeight=0;
var IsRefresh=0;
]]>
var cspbUEI="<xsl:apply-templates select="//Path" />images/Menu/misc/scrollup_enable.gif";
var cspbUDI="<xsl:apply-templates select="//Path" />images/Menu/misc/scrollup_disable.gif";
var cspbUAI="<xsl:apply-templates select="//Path" />images/Menu/misc/scrollup_active.gif";
var cspbDEI="<xsl:apply-templates select="//Path" />images/Menu/misc/scrolldown_enable.gif";
var cspbDDI="<xsl:apply-templates select="//Path" />images/Menu/misc/scrolldown_disable.gif";
var cspbDownActiveImg="<xsl:apply-templates select="//Path" />images/Menu/misc/scrolldown_active.gif";
var cspbSelI=0;
<![CDATA[
function cspbShowSection(id){
if(cspbVS=="CSPBPanelBarLoading")
{
document.all.CSPBButtons.style.display="inline";
}
else
{
document.all[cspbVI].style.height=OriginalHeight;
document.all[cspbVS].style.overflowY="visible";
}
if(("CSPBGroup" + id)!=cspbVS || IsRefresh==1)
{
IsRefresh=0;
cspbSelI=id;
document.all[cspbVS].style.display="none";
if(!((id==0)||(typeof(id) == "undefined")))
{
cspbGD=document.all["CSPBGroup" + id];
cspbGD.style.display="none";
cspbVS="CSPBGroup"+id;
cspbVI="CSPBIcons"+id;
cspbRS(cspbVS);
cspbGD.style.display="inline";
cspbPI(id);
cspbID.style.overflowY="visible";
if(cspbID.clientHeight>cspbSH)
{
cspbID.style.overflowY="hidden";
cspbID.style.height=cspbSH+1;
ScrollStop=false;
cspbCT=0;
cspbCB=0;
cspbMA=0;
cspbCI(id);
cspbSP();
cspbSI();
}
else
{
document.all.CSPBScrollUp.style.display="none";
document.all.CSPBScrollDown.style.display="none";
}
document.all.CSPanelBar.style.display="none";
document.all.CSPanelBar.style.display="block";
}
}
function cspbRS(id){
cspbSSH(id);
if(cspbSH>0)
{
cspbGD.style.height = cspbSH;
}
}
}
function cspbSSH(id){
if(cspbAF==true)
{
cspbBM=document.all.CSPanelBar.offsetTop*2;
cspbBoH=document.body.clientHeight;
if(navigator.platform=="MacPPC")
{
cspbBuH=document.all.CSPBButtons.clientHeight+(cspbBS*2);
}
else
{
cspbBuH=document.all.CSPBButtons.offsetHeight+(cspbBS*2);
}
cspbSH=(cspbBoH-cspbBM)-(cspbBuH);
}
else
{
cspbBuH=document.all.CSPBButtons.offsetHeight+(cspbBS*2);
cspbSH=cspbBoH-cspbBuH;
}
if(cspbSH<32)
{
cspbSH=32;
}
}
function cspbPI(id){
cspbID=document.all["CSPBIcons" + id];
OriginalHeight=cspbID.offsetHeight;
cspbID.style.clip="rect(0 "+cspbGD.clientWidth+" "+cspbSH+" 0)";
cspbID.y=0;
if(cspbBS>0 && navigator.platform!="MacPPC")
{
cspbID.y=1;
}
cspbID.x=cspbBS;
var cspbPO=cspbGD;
var cspbPId="";
while(cspbPId!="CSPBButtons")
{
cspbID.y+=cspbPO.offsetTop;
cspbPO=cspbPO.parentElement;
if(cspbPO.tagName=="TR")
{
cspbPO=cspbPO.parentElement;
}
cspbPId=cspbPO.id;
}
if(navigator.platform=="MacPPC")
{
cspbID.style.top="auto";
cspbID.style.left="auto";
}
else
{
cspbID.style.top=cspbID.y;
cspbID.style.left=cspbID.x;
}
}
function cspbCI(id){
cspbID.style.clip="rect(0 "+cspbGD.clientWidth+" "+cspbSH+" 0)";
}
function cspbSP(){
document.all.CSPBScrollUp.style.top=cspbID.y;
document.all.CSPBScrollUp.style.left=(cspbID.clientWidth-16)+cspbBS;
document.all.CSPBScrollDown.style.top=(cspbID.y+cspbSH)-16;
document.all.CSPBScrollDown.style.left=(cspbID.clientWidth-16)+cspbBS;
document.all.CSPBScrollUp.style.display="block";
document.all.CSPBScrollDown.style.display="block";
}
function cspbSI(dir){
var UE;
var DE;
if(cspbCB>=OriginalHeight+1)
{
document.all.CSPBScrollDownImg.src=cspbDDI;
DE=false;
}
else
{
document.all.CSPBScrollDownImg.src=cspbDEI;
DE=true;
}
if(cspbMA != 0)
{
document.all.CSPBScrollUpImg.src=cspbUEI;
UE=true;
}
else
{
document.all.CSPBScrollUpImg.src=cspbUDI;
UE=false;
}
if(dir=="inactive")
{
if(DE==true)
{
document.all.CSPBScrollDownImg.src=cspbDEI;
}
}
else if(dir=="down")
{
document.all.CSPBScrollDownImg.src=cspbDownActiveImg;
}
else if(dir=="up")
{
document.all.CSPBScrollUpImg.src=cspbUAI;
}
}
function cspbSD(speed){
if(cspbSS==false)
{
cspbCB=cspbSH+cspbMA;
if(cspbCB<=OriginalHeight+1)
{
cspbMA+=7;
cspbID.style.top=cspbID.offsetTop-7;
cspbCT=cspbMA;
cspbCB=cspbSH+cspbMA;
cspbID.style.height=cspbID.offsetHeight+7;
cspbID.style.clip="rect("+cspbCT+" "+cspbID.clientWidth+" "+cspbCB+" 0)";
cspbSI("down");
setTimeout("cspbSD("+speed+");",speed);
}
else
{
cspbSS=true;
cspbSI();
}
}
}
function cspbSU(speed){
if(cspbSS==false)
{
cspbCB=cspbSH+cspbMA;
if(cspbMA>0)
{
cspbMA-=7;
cspbID.style.top=cspbID.offsetTop+7;
cspbCT=cspbMA;
cspbCB=cspbSH+cspbMA;
cspbID.style.height=cspbID.offsetHeight-7;
cspbID.style.clip="rect("+cspbCT+" "+cspbID.clientWidth+" "+cspbCB+" 0)";
cspbSI("up");
setTimeout("cspbSU("+speed+");",speed);
}
else
{
cspbSS=true;cspbSI();
}
}
}
function cspbRefresh(){
IsRefresh=1;
//cspbVS="CSPBPanelBarLoading";
cspbShowSection(cspbSelI);
}
function cspbSetHeight(px){
cspbBoH=px;
}
window.onload=csWindowLoad;
window.onresize=csWindowResize;



function csWindowResize()
{
csSetHeight();
csWindowWidthCookie();
cspbRefresh();
}

:stylesheet>
回复
KevinCao 2003-12-04
XML:

<?xml version="1.0" encoding="utf-8" ?>
<Menu id="M">
<MenuLevel1 id="M01" name="内容" Level="0" IsURL="-1">
<MenuLevel2 id="M0101" name="内容" Level="1" IconURL="../LeftMenu/Images/Menu/icons/chat_32.gif" LinkURL="AddNewPaient.aspx" IsURL="0" Com=""/>
<MenuLevel2 id="M0102" name="内容" Level="1" IconURL="../LeftMenu/Images/Menu/icons/paint_32.gif" LinkURL="ModifyPaient.aspx" IsURL="1" Com=""/>
</MenuLevel1>
<MenuLevel1 id="M02" name="内容" Level="0" IsURL="-1">
<MenuLevel2 id="M0201" name="内容" Level="1" IconURL="../LeftMenu/Images/Menu/icons/mail_32.gif" LinkURL="AddNewStudyMain.aspx" IsURL="2" Com=""/>
<MenuLevel2 id="M0202" name="内容" Level="1" IconURL="../LeftMenu/Images/Menu/icons/paint_32.gif" LinkURL="ModifyStudyMain.aspx" IsURL="3" Com=""/>
<MenuLevel2 id="M0203" name="" Level="1" IconURL="../LeftMenu/Images/Menu/icons/magnify_32.gif" LinkURL="ViewApplyMain.aspx" IsURL="4" Com=""/>
</MenuLevel1>
<MenuLevel1 id="M03" name="内容" Level="0" IsURL="-1">
<MenuLevel2 id="M0301" name="内容" Level="1" IconURL="../LeftMenu/Images/Menu/icons/docfolder_32.gif" LinkURL="AddNewDoctor.aspx" IsURL="5" Com=""/>
<MenuLevel2 id="M0302" name="内容" Level="1" IconURL="../LeftMenu/Images/Menu/icons/paint_32.gif" LinkURL="ManageUser.aspx" IsURL="6" Com=""/>
</MenuLevel1>
<MenuLevel1 id="M04" name="内容" Level="0" IsURL="-1">
<MenuLevel2 id="M0401" name="内容" Level="1" IconURL="../LeftMenu/Images/Menu/icons/compare_32.gif" LinkURL="DiagnoseMain.aspx" IsURL="7" Com=""/>
</MenuLevel1>
<MenuLevel1 id="M05" name="内容" Level="0" IsURL="-1">
<MenuLevel2 id="M0501" name="内容" Level="1" IconURL="../LeftMenu/Images/Menu/icons/scroll_32.gif" LinkURL="ReDiagnoseMain.aspx" IsURL="8" Com=""/>
</MenuLevel1>
<MenuLevel1 id="M06" name="内容" Level="0" IsURL="-1">
<MenuLevel2 id="M0601" name="内容" Level="1" IconURL="../LeftMenu/Images/Menu/icons/paint_32.gif" LinkURL="ModifyDoctor.aspx" IsURL="9" Com=""/>
</MenuLevel1>
<MenuLevel1 id="M07" name="内容" Level="0" IsURL="-1">
<MenuLevel2 id="M0701" name="内容" Level="1" IconURL="../LeftMenu/Images/Menu/icons/question_32.gif" LinkURL="SysManager.aspx" IsURL="10" Com="" />
</MenuLevel1>
<Path Value="../LeftMenu/"></Path>
</Menu>
回复
KevinCao 2003-12-04
我来贴:
一般是四个部分:
一个XML,一个xslt,一个js,一个ascx


回复
yuan0211 2003-12-04
谢谢孟子老师
偶也要:-)
youisverygood@163.com
回复
luckweb 2003-12-04
阿灰,你的方法不错,学习中。。。
名字如改成阿辉 好象更帅一点
回复
ahui_net 2003-12-03
抢生意
演示地址:http://Aspx.CC/Download/AhuiTreeXML-XSLT/AhuiTree.xml
下载地址:http://Aspx.CC/Download/AhuiTreeXML-XSLT/AhuiTreeXML-XSLT.rar
回复
camelials 2003-12-03
net_lover(孟子E章)
c.x.friday@163.com


佩服你!
回复
ahui_net 2003-12-03
谢谢孟子老师
偶也要:-)

呵呵......
回复
Nicholasqpl 2003-12-03
谢谢孟子老师
偶也要:-)
nicholasqpl1980@hotmail.com
回复
zxggwan 2003-12-03
还没解决
回复
zxggwan 2003-12-03
阿辉的不错~!有点意思
回复
zxggwan 2003-12-03
阿辉这是你做的么?
回复
zxggwan 2003-12-03
帮帮忙啊~!~!
回复
ahui_net 2003-12-03
什么还没又解决?QQ751227
回复
zxggwan 2003-12-03
在up
回复
zhiks 2003-12-03
up
回复
FoxLinn 2003-12-02
能给我一份吗?谢谢。
jschinsh@163.net
回复
zxggwan 2003-12-02
up
回复
menuvb 2003-12-02


to
zxggwan (pb低手)

我已经将VisualASP.NET 5.1(dll,有例子,已经破解)发到你邮箱中去了,你查收一下(listview,tabview,)
它可以实现 孟子E章 所说的那几句样式
回复
zxggwan 2003-12-02
up
回复
发帖
.NET技术社区
创建于2007-09-28

5.8w+

社区成员

.NET技术交流专区
申请成为版主
帖子事件
创建了帖子
2003-12-02 03:04
社区公告
暂无公告