?? add.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 strNextXh = igec.site.base.business.DataUtilBusiness.getMaxField("XH","TAB_IGECMODEL");
try{
strNextXh = String.valueOf(Integer.parseInt(strNextXh,10) + 1);
}catch(Exception ee){
strNextXh = "1";
}
%>
<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('NAME');">
<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=save&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="<%=strNextXh%>" 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="" EmptyDisable label="模板名稱"> 不能為空
</td>
</tr>
<tr style="display:none">
<td nowrap class="TableData">是否為默認:</td>
<td nowrap class="TableData">
<input type="radio" name="ISDEFAULT" value="0" checked> 非默認 <input type="radio" name="ISDEFAULT" value="1"> 默認
</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 + -