📄 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 strLinkType = igec.util.Tool.getStr(request.getParameter("type"));
if(igec.util.Tool.IsEmpty(strLinkType)) strLinkType = "0";
String strPicType = igec.util.Tool.getStr(request.getParameter("pic"));
if(igec.util.Tool.IsEmpty(strPicType)) strPicType = "0";
String strCurMenuName = igec.site.base.business.SysUtilBusiness.getMenuName(strMenuId);
String strCurMenuPic = igec.site.base.business.DataUtilBusiness.getFieldValue("SHOWIMG","TAB_IGECMENU","WHERE ID='" + strMenuId + "'");
%>
<html>
<head>
<title>添加<%=strCurMenuName%>--<%=igec.site.base.bean.SitePara.strWebTitle%></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>
<script language="javascript">
<!--
function addUploadFile_Show(strFilePath,strFileType){
try{
document.all("picPath").value = strFilePath;
document.all("specialShowPic").src = "<%=site.bean.SitePara.strVirtualName%>/"+strFilePath;
document.all("specialShowPic").style.display="";
}catch(e){
alert(e.description);
}
resizeWin('objBody');
}
//-->
</script>
</head>
<body class="bodycolor" topmargin="0" onload="resizeWin('objBody');setFocus('title');">
<table border="0" name="objBody" id="objBody" width="600" cellpadding="2" cellspacing="1" align="center" bgcolor="#000000" class="small">
<form action="?action=save&iid=<%=strMenuId%>&type=<%=strLinkType%>" method="post" name="form1" onSubmit="return Check(this);" target="_IGEC_YL_IFRAME">
<input type="hidden" value="" name="picPath" id="picPath">
<tr>
<td colspan=2 class="TableHeader"><img src="<%=strSkinBase%>/images/menu/sys/<%=strCurMenuPic%>" align="absmiddle"> 基本选项 (必填) <font color="blue"><b>添加<%=strCurMenuName%></b></font>
</td>
</tr>
<tr>
<td nowrap class="TableData"> 名称:</td>
<td class="TableData">
<input type="text" name="title" size="20" maxlength="40" class="BigInput" value="" EmptyDisable label="名称"> <font color="#FF0000">必填</font> </td>
</tr>
<tr>
<td nowrap class="TableData"> 链接路径:</td>
<td class="TableData">
<input type="text" name="linkPath" size="40" maxlength="127" class="BigInput" value="" label="链接路径"></td>
</tr>
<tr>
<td colspan=2 class="TableHeader"><img src="<%=strSkinBase%>/images/menu/sys/<%=strCurMenuPic%>" align="absmiddle"> 高级选项 (建议使用默认值)</td>
</td>
</tr>
<tr>
<td nowrap class="TableData">是否显示:</td>
<td class="TableData">
<input type="radio" name="showFlag" value="1" checked> 是
<input type="radio" name="showFlag" value="0"> 否
</td>
</tr>
<%
if("1".equals(strPicType)){
%>
<tr>
<td nowrap class="TableData">上传图片:</td>
<td valign="middle" class="TableData"><iframe class="TBGen" style="top:2px" ID="UploadFiles" src="<%=site.bean.SitePara.strVirtualName%>/inc/upload/?wt=<%=request.getParameter("wt")%>&ft=pic&recf=addUploadFile_Show" frameborder=0 scrolling=no width="350" height="25"></iframe><br>
<img src="" name="specialShowPic" style="display:none" width="100" height="45" style="cursor:hand" onclick="window.open(this.src);" alt="点击看原图"/></td>
</tr>
<%
}
%>
<tr>
<td nowrap class="TableData">排序号(同级信息排序):</td>
<td class="TableData">
<input type="text" name="xh" size="6" maxlength="5" class="BigInput" value="999"> 可输入任意整数</td>
</tr>
<tr align="center" class="TableControl">
<td colspan="2" nowrap>
<input type="submit" value="保存" class="BigButton">
<input type="button" value="关闭" class="BigButton" onClick="javascript:window.close();"> </td>
</tr>
</form>
</table>
<iframe name="_IGEC_YL_IFRAME" id="_IGEC_YL_IFRAME" width="100" height="100" style="display:none"></iframe>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -