forumstree.ascx
上传用户:wenllgg125
上传日期:2020-04-09
资源大小:7277k
文件大小:2k
源码类别:

SCSI/ASPI

开发平台:

Others

  1. <%@ Control Language="c#" Inherits="Discuz.Web.Admin.forumtree" Codebehind="forumstree.ascx.cs" %>
  2. <%if(WithCheckBox){%>
  3. <style type="text/css">
  4. .input1
  5.  {
  6.     border:0px;
  7. padding-right: 0px; 
  8. padding-left: 0px;
  9. padding-bottom: 0px; 
  10. padding-top: 0px; 
  11. height:18 px;
  12. vertical-align:middle;
  13. margin: 0px;
  14.  }
  15.  
  16. .treetd
  17. {
  18.     border: 0px;
  19.     width: 100%;
  20.     white-space:nowrap; 
  21.   
  22.  
  23. .treeimg
  24.  {
  25.     align:absmiddle;
  26.     vertical-align:middle;
  27.     border:0px;
  28.     height:16px
  29.  }
  30.  
  31. </style>
  32. <script type="text/javascript">
  33. function CheckAllTreeNode(form)
  34.   {
  35.   for (var i=0;i<form.elements.length;i++)
  36.     {
  37.     var e = form.elements[i];
  38.     if (e.name != '<%=this.ClientID%>_chkall')
  39.        e.checked = form.<%=this.ClientID%>_chkall.checked;
  40.     }
  41. }
  42. function CheckAllTreeByName(form,name,noname)
  43. {
  44.   for (var i=0;i<form.elements.length;i++)
  45.     {
  46.     var e = form.elements[i];
  47.     if(e.name.indexOf(name)>=0)
  48. {
  49.            if(noname!="")
  50.            {
  51.               if(e.name.indexOf(noname)>=0) ;
  52.               else
  53.               {
  54.                  e.checked = form.<%=this.ClientID%>_chkall.checked;
  55.               }
  56.               //alert(e.name+' '+noname);
  57.    }   
  58.    else
  59.    {
  60.       e.checked = form.<%=this.ClientID%>_chkall.checked;
  61.    }
  62.     }
  63. }
  64. }
  65. function Tree_SelectOneNode(obj)
  66. {
  67. if( obj.checked == false)
  68. {
  69. document.getElementById('<%=this.ClientID%>_CheckAll').checked = obj.checked;
  70. }
  71. }
  72. </script>
  73. <%}%>
  74. <% if (this.HintInfo != ""){Response.Write("<span id="" + this.ClientID + ""  onmouseover="showhintinfo(this," + this.HintLeftOffSet + "," + this.HintTopOffSet + ",'" + this.HintTitle + "','" + this.HintInfo + "','" + this.HintHeight + "','" + this.HintShowType + "');" onmouseout="hidehintinfo();">");} %>
  75. <asp:Literal id="TreeContent" runat="server"></asp:Literal>
  76. <% if (this.HintInfo != "") { Response.Write("</span>"); } %>