📄 add.jsp
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ include file="/inc/pv/admin.jsp"%>
<%@ include file="/inc/public/msg.jsp"%>
<%
/*****
*
* 功能介绍:根据当前的MenuId,对应的action名和当前用户,判断是否有进入此页面的权限
*
*/
if(checkPv(strMenuId,"add",user)<0){
noPv(out);
return;
}
%>
<%
/****************************具体的功能实现代码****************************/
String strIndexType = request.getParameter("type");
if(igec.util.Tool.IsEmpty(strIndexType)){
showError("没有指定对应的分类类型!",out);
return;
}
String strParentId = request.getParameter("pid");
if(igec.util.Tool.IsEmpty(strParentId)) strParentId = "0";
String strCurMenuName = igec.site.base.business.DataUtilBusiness.getFieldValue("TITLE","TAB_IGECMENU","WHERE ID='" + strMenuId + "'");
String strCurMenuPic = igec.site.base.business.DataUtilBusiness.getFieldValue("SHOWIMG","TAB_IGECMENU","WHERE ID='" + strMenuId + "'");
java.util.ArrayList pathList = new java.util.ArrayList();
int iFlag = igec.site.extend.business.IndexTypeBusiness.getPathList(pathList,strIndexType,strParentId);
if(iFlag<0){
showError(out);
return;
}
String strNextId = igec.site.extend.business.IndexTypeBusiness.getNextId();
%>
<html>
<head>
<title>分类管理-><%=strCurMenuName%><%for(int i=0;i<pathList.size();i++){igec.site.base.bean.SysObj so = (igec.site.base.bean.SysObj)pathList.get(i);%>-><%=so.getStrValue2()%><%}%>->添加分类</title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<link rel="stylesheet" type="text/css" href="<%=strCssPath%>">
<script language="javascript" src="<%=site.bean.SitePara.strVirtualName%>/js/public.js"></script>
<script language="javascript" src="<%=site.bean.SitePara.strVirtualName%>/js/check.js"></script>
<script language="javascript" src="<%=strSkinBase%>/js/forbid.js"></script>
</head>
<body class="bodycolor" topmargin="5" onload="resizeWin('objBody');setFocus('NAME');">
<table border="0" name="objBody" id="objBody" width="400" cellpadding="2" cellspacing="1" align="center" bgcolor="#000000" class="small">
<form action="<%=site.bean.SitePara.strVirtualName + site.bean.SitePara.strManageFolder%>/indextype.do?action=save&iid=<%=strMenuId%>&type=<%=strIndexType%>&pid=<%=strParentId%>" method="post" name="form1" onsubmit="return Check(this);">
<tr>
<td colspan=2 class="TableHeader"><img src="<%=strSkinBase%>/images/menu/sys/<%=strCurMenuPic%>" align="absmiddle"> 基本选项 (必填)</td>
</td>
</tr>
<tr height="28">
<td nowrap class="TableContent">上级路径:</td>
<td nowrap class="TableContent">
<span class="big3"><%=strCurMenuName%><%for(int i=0;i<pathList.size();i++){igec.site.base.bean.SysObj so = (igec.site.base.bean.SysObj)pathList.get(i);%>-><%=so.getStrValue2()%><%}%></span>
</td>
</tr>
<tr>
<td nowrap class="TableContent"> ID(唯一标志):</td>
<td class="TableContent">
<input type="text" name="ID" size="10" maxlength="8" class="BigInput" value="<%=strNextId%>" EmptyDisable label="ID"> 不允许重复,建议使用默认值 <font color="#FF0000">必填</font>
</td>
</tr>
<tr>
<td nowrap class="TableContent"> 名称:</td>
<td class="TableContent">
<input type="text" name="NAME" size="20" maxlength="50" class="BigInput" value="" EmptyDisable label="名称"> <font color="#FF0000">必填</font>
</td>
</tr>
<tr align="center" class="TableControl">
<td colspan="2" nowrap>
<input type="hidden" value="" name="ATTACHMENT_NAME" >
<input type="submit" value="保存" class="BigButton">
<input type="button" value="关闭" class="BigButton" onClick="javascript:window.close();">
</td>
</tr>
</form>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -