⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tree_page.jsp

📁 电信的网厅的整站代码
💻 JSP
📖 第 1 页 / 共 2 页
字号:
                    document.faqForm.to_page.value = src.innerText;
                    document.faqForm.city.value = src.city;

                    document.faqForm.submit();
                }
            }
            catch(ex){}
        }
        
        function fn_onload() {
			cltScript_Toolbar();
		}
		
		function cltScript_Toolbar() {
            if ( self.parent != self ){
                var pel = parent.document.all.tags("frame");
                for ( i=0; i< pel.length; i++)
                {
                    if ( pel(i).name == "main") {
						divTop.style.width = pel(i).width;
						divMain.style.width = pel(i).width;
						divMain.style.height = pel(i).height - divTop.clientHeight;
                    }
                }
            }
		}
    </script>
	
	<SCRIPT >
			<!--
			
			var lastTypeName2;
			var lastTypeID2;
			lastTypeName2 = "";
			lastTypeID2 = "";
			
			//根据传入的组名(type_id)与组说明(type_id2)值,动态将文字改为输入框,并加上两个按钮
			function ren_type(type_id2) {
				
				
				//取到组说明.....................
				var TypeName2;
				var TypeID2;
				if ( lastTypeID2 != "") document.all.item(lastTypeID2).innerText = lastTypeName2;
				TypeName2 = document.all.item(type_id2).innerText;
				document.all.item(type_id2).innerHTML = "<input type=text size=30 maxLength=55 value=" + TypeName2 + " id=desc name=desc style='font-size: 12px;color: #333333;BORDER: #cccccc 1px solid;'>&nbsp;<input type=button value=Yes onclick=confirm_rename('"+type_id2+"'); style='font-size: 12px;color: #333333;BORDER: #cccccc 1px solid;'>&nbsp;<input type=button value=No onclick=cancel_rename2(); style='font-size: 12px;color: #333333;BORDER: #cccccc 1px solid;'><input type=\"hidden\" id=\"name\" name=\"name\" value="+type_id2+" /><input type=hidden name=oldTypeName value='" + TypeName2 + "'>";
				lastTypeName2 = TypeName2;
				lastTypeID2 = type_id2;
				
			  
				}
			
			
			//用于响应取消改名操作的按钮
			
			function cancel_rename2() {
				document.all.item(lastTypeID2).innerText = lastTypeName2;
				
			}
			function confirm_rename(type_id2){
			      //var nv = document.all.desc.value;
				  //set_data.src = "updatepage.jsp?name="+type_id2+"&code=<%=code%>&desc="+nv;
				  //document.all.item(type_id2).innerText = nv;  
				  //lastTypeName2 = nv;
				  updateForm.submit();
			}
			function addpage(name,url){
			      document.addpageForm.desc.value = name;
				  
				  document.addpageForm.name.value = url; 
				  //alert(document.addpageForm.desc.value+","+document.addpageForm.name.value);
				  addpageForm.submit();
			}
			
			function deltreepage(code,name){
			   //删除
			   //action=del&code="+code+"&name="+pc.getName()
			      document.delpage.code.value = code;
				  document.delpage.name.value = name; 
				  delpage.submit();
			}

        //-->
     </SCRIPT>
	
	<style>
		.botton {
		font-size: 12px;
		color: #804000;
		BORDER-RIGHT: #666666 1px solid; 
		BORDER-TOP: #666666 1px solid; 
		 BORDER-LEFT: #666666 1px solid;
		  BORDER-BOTTOM: #666666 1px solid;
		BACKGROUND-COLOR: #ffffff;
		}
		.add_zl {
			font-size: 12px;
			line-height: 18px;
			color: #333333;
			text-decoration: none;
		}
		
		body {
			margin-top: 0px;
		}
		.biaoti {
			font-size: 12px;
			color: #FFFFFF;
			text-decoration: none;
		}
		.style2 {font-weight: bold}
		.style3 {font-size: 12px; color: #FFFFFF; text-decoration: none; font-weight: bold; }
</style>
    <link href="../../common/style/main.css" rel="stylesheet" type="text/css">
</head>
<body onLoad="fn_onload();" style="margin: 0">
<div onresize="cltScript_Toolbar();" >
			<div id="divTop" style="overflow: hidden" class="add_zl">
				<table id="ibtnPanel" style="font-size: 9pt; border-bottom: #efefef 1px outset" cellspacing="0"
					cellpadding="0" width="100%" border="0">
					<tr bgcolor="#efefef" height="33">
						<td><table width="100%"  border="0" cellpadding="0" cellspacing="1" class="add_zl">
      <tr>
        <td height="27" bgcolor="#f5f5f5">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="edit_web_index.jsp">返回修改首页导航</a></td>
      </tr>
    </table></td>
					</tr>
				</table>
			</div>
    <form action="add_tree_page.jsp" method="post" name="delpage">
	    <input name="menucode" type="hidden" id="menucode" value="<%=menucode%>">
	    <input type="hidden" id="code" name="code"  />
		<input type="hidden" id="name" name="name"  />
		<input type="hidden" id="action" name="action" value="del" />
	</form>

    <form action="tree_page.jsp" method="post" name="faqForm">
	    <input name="menucode" type="hidden" id="menucode" value="<%=menucode%>">
		<input type="hidden" id="city" name="city" value="" />
		<input type="hidden" id="a_currpage" name="a_currpage" value="<%= a_currPage %>" />
		<input type="hidden" id="c_currpage" name="c_currpage" value="<%= c_currPage %>" />
		<input type="hidden" id="to_page" name="to_page" value="" />
    </form>
    <div id="divMain" style="overflow: auto">
      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td width="54%" valign="top" background="../../images/t_l_bg.gif" class="add_zl">
                <br>
				<table width="100%" class="add_zl">
				 <form action="add_tree_page.jsp" method="post" name="updateForm">
				   <input name="menucode" type="hidden" id="menucode" value="<%=menucode%>">
				   <input type="hidden" id="code" name="code" value="<%= code %>" />
				   <input type="hidden" id="action" name="action" value="update" />
				     <%=sPromotionList.toString()%>
				 </form>
			    </table>
                <br>
          </td>
            <td width="46%" valign="top" background="../../images/t_l_bg.gif"><br>
			<table width="96%"   border="0" align="center" cellpadding="0" cellspacing="0" background="images/sc_sheet.gif" class="add_zl"> 
              <tr>
                <td align="left" valign="top">	  
                  <table width="100%" border="0"
					        cellpadding="0" cellspacing="1" bgcolor="#CCCCCC" class="OuterTable" style="font-size: 9pt; border-bottom: #efefef 1px outset">
                    <tr align="center" valign="middle" bgcolor="#f5f5f5" class="add_zl">
                      <td width="35%" height="25">父名称</td>
								  <td width="33%" >子名称</td>
								  <td width="32%" >操作</td>
			        </tr>
                    <%
									 
									  String uri_tree = request.getContextPath();
									  ExistsFileDBA efd = new ExistsFileDBA();
									  String select_citycode = citycode.substring(1,4);
									  DataTable dt = efd.TreeList(select_citycode, menucode);
									   for( int i = 0; i < dt.getRows ().getCount (); i++ ) {
											DataRow dr = dt.getRow ( i );
											String treeid = dr.getString("TREEID");
											String pid = dr.getString("PARENT");
											String name = dr.getString("NAMET");
											String url = dr.getString("URL");
											//String menucode = dr.getString("MENUCODE");
										
										 if(url != null && !"".equals(url)){
										     //如果菜单有显示了,那么全部菜单里将不显示
												 int b = url.indexOf("?");
												//查看路径是否带有参数
												String  parabole = "";
												if(b == -1){
												  parabole = url+"?city_code_id="+citycode;
												}else{
												  parabole = url+"&city_code_id="+citycode;
												}
										     if(!isEx.contains(parabole)){
										
							 %>
                    <tr bgcolor="#FFFFFF" class="add_zl">
                      <td height="20" align="left">&nbsp;<%=pid%></td>
										    <td align="left">&nbsp;<%=name%></td>
										    <td align="center"><span style="cursor:hand " onClick="addpage('<%=name%>','<%=url%>')"><img src="../../common/images/pansol_logo.jpg" width="10" height="9">加入快捷菜单</span></td>
				    </tr>
                    
                    <%
							                 }
							             }
							           }
							%>
                  </table>
			    </td>
			  </tr>
              </table>
			  
			  <br>
			  <form name="addpageForm" method="post" action="add_tree_page.jsp">
			    <input name="menucode" type="hidden" id="menucode" value="<%=menucode%>">
			    <input name="desc" type="hidden" id="desc">
			    <input name="name" type="hidden" id="name">
			    <input name="code" type="hidden" id="code" value="<%=code%>">
			    <input name="action" type="hidden" id="action" value="add">
		      </form></td></tr>
</table>
</div>
</div>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -