📄 new.asp
字号:
<!-- #include file = "../../../include/asphead.asp" -->
<!-- #include file = "../../../include/function.asp" -->
<%CheckUser()%>
<link href="../../../include/main.css" rel="stylesheet" type="text/css">
<script src="../../../include/function.js" type="text/javascript"></script>
<script ID="clientEventHandlersJS" LANGUAGE="javascript">
<!--
function LocalDC()
{
if (JTrim(document.frmData.Caption.value)=="")
{
alert("名称未填写,请填写。")
return false;
}
else
return true;
}
function SavePrompt()
{
frmData.btnSave.disabled =true;
frmData.btnCancel.disabled =true;
}
function EnableButton()
{
frmData.btnSave.disabled =false;
frmData.btnCancel.disabled =false;
}
function OpenSample(file) {
window.showModalDialog(file, "Sample","dialogwidth:195px;dialogheight:200px;Status:0;center:1;resizable=1;");
}
//-->
</script>
<%
dim WExcel
set WExcel=server.CreateObject("WExcel.System")
dim NewRecord,strBody,strScript,Success
NewRecord="1"
DictID=Request.Cookies("System")("DictID")
dim Exist
Exist=WExcel.DictExist(cint(UserID),cint(DictID))
CheckErr
if Exist=false then
Response.Redirect "/hcgis/otfound.asp?Name=选项字典&Depth=2"
end if
Success=WExcel.GetDictItemEditPage(cint(UserID),cint(DictID),cstr(NewRecord),strBody,strScript)
Response.Write strScript
CheckErr
if Success=true then
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form METHOD="post" name="frmData">
<table width="100%" align="center" border="0">
<tr height="35">
<td colspan="5">
<b>
新增项目
</b>
</td>
</tr>
<tr height="90" valign="top">
<td colspan="5">
<table width="95%" border="0" CELLSPACING="1" CELLPADDING="0">
<%=strBody%>
</table>
</td>
</tr>
<tr height="40" valign="bottom">
<td colspan="5">
<table width="100%">
<tr>
<td width="25%"></td>
<td width="25%"><input id="btnSave" type="button" value="确定" name="btnSave" style="cursor:hand; WIDTH: 50px; HEIGHT: 24px" LANGUAGE="javascript" onclick="return Save('save.asp')"></td>
<td width="25%"><input id="btnCancel" type="button" value="取消" name="btnCancel" style="cursor:hand; WIDTH: 50px; HEIGHT: 24px" LANGUAGE="javascript" onclick="return Cancel()"></td>
<td width="25%"></td>
</tr>
</table>
</td>
</tr>
</table>
<input TYPE="hidden" NAME="NewRecord" value="<%=NewRecord%>">
<iframe id="SaveArea" name="SaveArea" style="visibility:hidden" width="0" height="0" frameborder="0" src="">
</iframe>
</form>
</body>
</html>
<%
else
%>
<html>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" align="center" border="0">
<tr height="20">
<td>
您无权新增项目
</td>
</tr>
<tr>
<td><input id="btnCancel" type="button" value="关闭" name="btnCancel" style="cursor:hand;WIDTH: 50px; HEIGHT: 24px" LANGUAGE="javascript" onclick="return Cancel()"></td>
</tr>
</table>
</body>
</html>
<%
end if
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -