📄 edit.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 GoToInfo()
{
var discard;
discard=true;
if(HasChanged==true)
{
discard=confirm("您已经输入了一些信息,但尚未保存。放弃您所作的输入吗?");
}
if(discard==true)
{
document.frmData.target ="_self";
document.frmData.action="info.asp?RowID=" + frmData.RowID.value ;
document.frmData.submit();
}
}
//-->
</script>
<%
dim WExcel
set WExcel=server.CreateObject("WExcel.System")
dim RowID,NewRecord,strBody,strScript,Success
RowID=Request.QueryString("RowID")
NewRecord="0"
SheetID=Request.Cookies("System")("StructureSheetID")
dim Exist
Exist=WExcel.SheetExist(cint(UserID),cint(SheetID))
CheckErr
if Exist=false then
Response.Redirect "/hcgis/notfound.asp?Name=数据表&Depth=2"
end if
Exist=WExcel.FieldExist(cint(UserID),cint(SheetID),cint(RowID))
CheckErr
if Exist=false then
Response.Redirect "/hcgis/notfound.asp?Name=字段&Depth=2"
end if
Success=WExcel.GetFieldEditPage(cint(UserID),cint(SheetID),cstr(NewRecord),strBody,strScript,clng(RowID))
CheckErr
Response.Write strScript
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" LANGUAGE=javascript onload="return Init()">
<form METHOD="post" name="frmData">
<table width="100%" border=0 CELLSPACING=0 CELLPADDING="0">
<tr height="35">
<td colspan=5>
<table width="100%" border=0 CELLSPACING=0 CELLPADDING="0">
<tr>
<td height=1 rowspan="3" valign="bottom" width="10%"><IMG height=1 src="../../../images/promptline.gif" width="100%"></td>
<td height=1 rowspan="3" width="1%"><IMG height=22 src="../../../images/lefton.gif" width=11></td>
<td height=1 valign="center" width="15%"><IMG height=1 src="../../../images/promptline.gif" width="100%"></td>
<td height=1 rowspan="3" width="1%"><IMG height=22 src="../../../images/righton.gif" width=11></td>
<td height=1 rowspan="3" width="1%"><IMG height=22 src="../../../images/leftoff.gif" width=11></td>
<td height=1 valign="center" width="15%"><IMG height=1 src="../../../images/promptline.gif" width="100%"></td>
<td height=1 rowspan="3" width="1%"><IMG height=22 src="../../../images/rightoff.gif" width=11></td>
<td height=1 rowspan="3" valign="bottom" width="39%"><IMG height=1 src="../../../images/promptline.gif" width="100%"></td>
</tr>
<tr>
<td height=20 valign=bottom>修改</td>
<td height=20 valign=bottom bgcolor="#E0E0E0" style="cursor:hand" onclick="return GoToInfo();">相关数据</td>
</tr>
<tr>
<td></td>
<td height=1 rowspan="3" valign="bottom"><IMG height=1 src="../../../images/promptline.gif" width="100%"></td>
</tr>
</table>
</td>
</tr>
<tr height=220 valign="top">
<td colspan=5>
<table width="95%" border=0 CELLSPACING="1" CELLPADDING="0">
<%=strBody%>
</table>
</td>
</tr>
<tr height=30 valign=top>
<td colspan="5">
<table width="100%">
<tr>
<td width="25%"></td>
<td width="25%"><input id="btnSave" type="button" disabled 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" disabled 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%>">
<input TYPE="hidden" NAME="RowID" value="<%=RowID%>">
<iframe id="SaveArea" name="SaveArea" style="visibility:hidden" width="0" height="0" frameborder="0" src="">
</iframe>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -