📄 edit.jsp
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ include file="/inc/pv/developer.jsp"%>
<%@ include file="/inc/public/msg.jsp"%>
<%
String strModelType = igec.util.Tool.getStr(request.getParameter("type"));
if(igec.util.Tool.IsEmpty(strModelType)){
showError("未指定模板类型!",out);
return;
}
String strModelId = igec.util.Tool.getStr(request.getParameter("id"));
if(igec.util.Tool.IsEmpty(strModelId)){
showError("未指定编辑的模板!",out);
return;
}
igec.site.base.bean.SysObj info = new igec.site.base.bean.SysObj();
info.setStrValue1(strModelId);
info.setStrValue5(strModelType);
int iFlag = igec.site.base.business.MModelBusiness.getModel(info);
if(iFlag==-2){
showError("不存在您要编辑的模板信息!",out);
return;
}else if(iFlag<0){
showError(out);
return;
}
%>
<html>
<head>
<title>编辑模板</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="<%=site.bean.SitePara.strVirtualName%>/js/xmlhttp.js"></script>
<script language="javascript" src="<%=strSkinBase%>/js/forbid.js"></script>
<script language="javascript">
<!--
function sendForm(loForm){
if(!Check(loForm)) return false;
try{
aJax_SendForm(loForm,"");
}catch(eee){
alert(eee.description);
}
}
//-->
</script>
</script>
</head>
<body class="bodycolor" topmargin="5" onload="setFocus('ROLENAME');">
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="<%=strSkinBase%>/images/edit.gif" WIDTH="22" HEIGHT="20" align="absmiddle"><span class="big3"> 编辑模板</span>
</td>
</tr>
</table>
<table border="0" cellspacing="1" width="450" class="small" bgcolor="#000000" cellpadding="3" align="center" >
<form action="<%=site.bean.SitePara.strVirtualName + site.bean.SitePara.strManageFolder%>/model.do?action=update&id=<%=strModelId%>&type=<%=strModelType%>" method="post" name="form1" onsubmit="javascript:sendForm(this);return false;">
<tr>
<td nowrap class="TableData">序号:</td>
<td nowrap class="TableData">
<input type="text" name="XH" class="BigInput" size="5" maxlength="8" value="<%=info.getStrValue4()%>" EmptyDisable label="序号"> 控制显示顺序<br>
</td>
</tr>
<tr>
<td nowrap class="TableData">模板名称:</td>
<td nowrap class="TableData">
<input type="text" name="NAME" class="BigInput" size="25" maxlength="30" value="<%=info.getStrValue2()%>" EmptyDisable label="模板名称"> 不能为空
</td>
</tr>
<tr style="display:none">
<td nowrap class="TableData">是否为默认:</td>
<td nowrap class="TableData">
<input type="radio" name="ISDEFAULT" value="0" <%if("0".equals(info.getStrValue3())) out.print("checked");%>> 非默认 <input type="radio" name="ISDEFAULT" value="1" <%if("1".equals(info.getStrValue3())) out.print("checked");%>> 默认
</td>
</tr>
<td nowrap class="TableControl" colspan="2" align="center">
<input type="submit" value="确定" class="BigButton">
<input type="button" value="返回" class="BigButton" onclick="location='index.jsp?iid=<%=strModelType%>'">
</td>
</form>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -