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

📄 menutreeedit.jsp

📁 电信的网厅的整站代码
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="com.doone.data.DataTable,
								 java.util.Date,
								 com.doone.data.*,
								 java.text.SimpleDateFormat,
								 com.doone.fj1w.common.SystemConfig,
								 com.doone.fj1w.fjmgr.config.*,
								 com.doone.uurm.*,
								 java.util.Set,
								 java.util.HashSet,
								 java.util.Iterator"%>
<%request.setCharacterEncoding("GBK");%>
<%String sPurvICode="NGB003001002";%>
    <%
	WebAuth auth = WebAuth.getInstance(request);

	if ( ! auth.IsAuthed() ) {
		out.write("<script language=\"javascript\">self.parent.location.replace(\"" + request.getContextPath() + "/view/login/login.jsp" + "\");</script>");
		return;
	}
	else if ( ! auth.CheckPurv(sPurvICode) ) {
		out.write("<script language=javascript src=\"../../common/script/RightForbidden.js\"></script>");
		return;
	}
	String sTreeId = request.getParameter("id");//某节点的ID号
	String sPid = request.getParameter("pid");//某节点的父节点的ID号
	String name = "";
	String upName = "";
    String url = "";
    String title = "";
    String target = "";
    String icon = "";
   	String iconOpen = "";
    String open = "";
    String state = "";
    String explain = "";
    String newtime;
    String cityCode = "";
    String cityName = "";
	MenuTreeBean tb = new MenuTreeBean();
	ArticleBean ab  = new ArticleBean();
	DataTable treeList = tb.getTreeListByTreeId(sTreeId);//某节点的信息列表
	DataTable upTreeList = tb.getTreeListByTreeId(sPid);//某节点的信息列表
	DataTable cityList = null;
	DataRow pidDr = upTreeList.getRow(0);
	upName = pidDr.getString("namet");//父节点的名称
	for(int i=0;i<treeList.getRows().getCount();i++){
	    name = treeList.getRow(i).getString("namet");
		title = treeList.getRow(i).getString("title");
		target = treeList.getRow(i).getString("target");
		icon = treeList.getRow(i).getString("icon");
		iconOpen = treeList.getRow(i).getString("iconOpen");
		open = treeList.getRow(i).getString("opent");
		state = treeList.getRow(i).getString("state");
		explain = treeList.getRow(i).getString("explaint");
		newtime = treeList.getRow(i).getString("newtime");
		cityCode = treeList.getRow(i).getString("cityCode");
		cityList = ab.getCtiyofArticle(new DacClient(),cityCode);
		DataRow cityDr = cityList.getRow(0);
		cityName = cityDr.getString("cityName");
	}
    %>
<form name="MenuTreeEditList" action="<%=request.getContextPath()%>/updateMenuTree" method="get">


      <table style="font-size: 9pt; border-bottom: #efefef 1px outset" cellspacing="0"
					cellpadding="0" width="100%" height="" border="0" class="OuterTable">
		<tr class="OuterHead">
        <td nowrap="nowrap" style="text-align:left">
			<span id="ItemTitle"><font face="webdings">8</font>编辑树</span>
		</td>
        </tr>
      </table>
      <table id="MenuConfigList" border=0 width=100% height="290" cellspacing=0 cellpadding=1 style="behavior:url(../../common/table.htc)" selectedtrcolor="#C8E6E6" keyName="SERIAL" trcolor="white" maxnum="5" class="InnerTable">
	   <tr class="InnerMain">
	    <td><input type="hidden" name="TreeId" value="<%=sTreeId%>"/></td>
	   </tr>
	   <tr class="InnerMain">
          <td class="InnerHead" style="text-align:right" width="25%" nowrap%>
	       菜单名称
	      </td>
	      <td class="InnerMain" width="75%">
	      <%
	      if(auth.getCityCode()==null || auth.getCityCode().equals("")){
		      out.println(name+"("+cityName+upName+")");  //默认没有CITYCODE是高级系统管理员,可以看到全部信息
		    
		  }else{
		      out.println(name);
		  }
		  %>
	      </td>
	   </tr>
	   <tr class="InnerMain">
          <td class="InnerHead" style="text-align:right" width="25%" nowrap%>
	       菜单标题
	      </td>
	      <td class="InnerMain" width="75%">
	      <%
	      if(auth.getCityCode()==null || auth.getCityCode().equals("")){
		      out.println(title+"("+cityName+upName+")");  //默认没有CITYCODE是高级系统管理员,可以看到全部信息
		    
		  }else{
		      out.println(title);
		  }
		  %>
	      </td>
	   </tr>
	   <tr class="InnerMain">
          <td class="InnerHead" style="text-align:right" nowrap>
	       初始时是否展开树
	      </td>
	      <td class="InnerMain">
	  <%
	  if(open.equals("0")){
	  %>
	      <input name="Open" type="radio" value="0" checked>
	       关闭</input>
	      <input name="Open"  type="radio" value="1" >
	       打开</input>
	  <%
	  }
	  else{
	  %>
	      <input name="Open" type="radio" value="0" >
	       关闭</input>
	      <input name="Open"  type="radio" value="1" checked>
	       打开</input>
	  <%
	  }
      %>
	      </td>
	    </tr>
	    <tr class="InnerMain">
           <td class="InnerHead" style="text-align:right" width="169" nowrap>
	        当前状态是否可用
	       </td>
	       <td class="InnerMain" width="585">
	  <%
	  if(state.equals("E")){
	  %>
	      <input name="State" type="radio" value="E" checked>
	       可用</input>
	      <input name="State"  type="radio" value="D" >
	       禁用</input>
	  <%
	  }
	  else{
	  %>
	      <input name="State" type="radio" value="E" >
	       可用</input>
	      <input name="State"  type="radio" value="D" checked>
	       禁用</input>
	  <%
	  }
      %>
	       </td>
	     </tr>	
	     <tr class="InnerMain"><td colspan="8" class="body_td" bgcolor="#e0e0e0"><img src="../../common/images/spacer.gif"/></td></tr>
	     <tr>
		   <td class="OuterFoot" colspan="9">
			<table width="100%"	border="0" cellspacing="0" cellpadding="1">
				<tr>
					<td nowrap="nowrap" style="text-align:left"><span id="ItemTitle"></span></td>
					<td align="right" nowrap>
						<input type="submit" class="button"	value="确定编辑?" style="width:80" >
					</td>
				</tr>
			</table>
		   </td>
	     </tr>
      </table>

</form>





⌨️ 快捷键说明

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