asp代码,点复选框没反应,点复选框后面的文字才能勾选
百度说我字符太多了,我只好贴一部分上来,麻烦大家看看。<inputtype="hidden"name="keySelectIds"value="<%=rs("title"...
百度说我字符太多了,我只好贴一部分上来,麻烦大家看看。
<input type="hidden" name="keySelectIds" value="<%=rs("title")%>"> <script language="JavaScript"> var tree = new MzTreeView("tree"); tree.icons["property"] = "property.gif"; tree.icons["css"] = "collection.gif"; tree.icons["book"] = "book.gif"; tree.iconsExpand["book"] = "bookopen.gif"; //???????? tree.setIconPath("../images/treeview/"); //?????? tree.nodes["-1_1"] = "text:单位部门; icon: roo;url:main_defult.html;t"; <% kqdepartments=rs("kqdepartments")&"@" set departRs=Gf_GetRS("select DeptID,DeptName,code,supdeptid,type from departments where (supdeptid=1 and ( DeptName like'%部门')) or ( supdeptid>1 and ( DeptName like'%小组')) order by DeptID asc") do while not departRs.eof DeptID=departRs("DeptID") DeptName=departRs("DeptName") supdeptid = departRs("supdeptid") if instr(kqdepartments,"@"&DeptID&"@")>0 then checkStr="checked" : else checkStr="" '主节点权限 %> tree.nodes["<%=supdeptid%>_<%=DeptID%>"] ="text:<%=DeptName%>;syscode:<%=DeptID%>;checked:<%=checkStr%>;icon:book;url:;data:id ="; //checked 展开
<input type="hidden" name="keySelectIds" value="<%=rs("title")%>"> <script language="JavaScript"> var tree = new MzTreeView("tree"); tree.icons["property"] = "property.gif"; tree.icons["css"] = "collection.gif"; tree.icons["book"] = "book.gif"; tree.iconsExpand["book"] = "bookopen.gif"; //???????? tree.setIconPath("../images/treeview/"); //?????? tree.nodes["-1_1"] = "text:单位部门; icon: roo;url:main_defult.html;t"; <% kqdepartments=rs("kqdepartments")&"@" set departRs=Gf_GetRS("select DeptID,DeptName,code,supdeptid,type from departments where (supdeptid=1 and ( DeptName like'%部门')) or ( supdeptid>1 and ( DeptName like'%小组')) order by DeptID asc") do while not departRs.eof DeptID=departRs("DeptID") DeptName=departRs("DeptName") supdeptid = departRs("supdeptid") if instr(kqdepartments,"@"&DeptID&"@")>0 then checkStr="checked" : else checkStr="" '主节点权限 %> tree.nodes["<%=supdeptid%>_<%=DeptID%>"] ="text:<%=DeptName%>;syscode:<%=DeptID%>;checked:<%=checkStr%>;icon:book;url:;data:id ="; //checked 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询