📄 edit.asp
字号:
<!--#include file="../includes/db.asp"-->
<%
call insureID()
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>办公自动化系统</title>
<script language="JavaScript">
function validate(){
var Title = document.FormAdd.Title.value;
var Content = document.FormAdd.Content.value;
if ( Title==""){
alert("标题不能为空!");
return false;
}
if (Content==""){
alert("内容不能为空!");
return false;
}
}
</script>
<link rel="stylesheet" type="text/css" href="../includes/style1.css">
<link href="../Includes/Style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {
color: #000000;
font-weight: bold;
}
-->
</style>
</head>
<body>
<center>
<table border="0" width="100%" height="50" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"></td>
</tr>
</table>
<%
dim Note_id
dim Note_title
dim Note_content
Note_id=request("Note_id")
if Note_id="" then
call trigErr()
end if
sql="SELECT * FROM Notes WHERE Note_id="&Note_id&" AND User_id="&session("User_id")
call openDB()
rs.open sql,conn,1,1
if rs.eof then
call trigErr()
end if
Note_id=rs("Note_id")
Note_title=rs("Note_title")
Note_content=rs("Note_content")
Note_title=replacePrime(Note_title)
Note_content=replacePrime(Note_content)
call closeDB()
%>
<form method="POST" name="FormAdd" action="save.asp?action=Edit&Note_id=<%=Note_id%>" onSubmit="return validate()">
<table width="75%" border="0" cellpadding="0" cellspacing="1" bgcolor="#5A8BCE">
<tr bgcolor="#0000FF">
<td height="35" align=left bgcolor="#E6F7FF"><div align="center" class="style1">修改记事</div></td>
</tr>
</table>
<table width="75%" border="0" cellpadding="4" cellspacing="1" bordercolorlight="#EFEFEF" bordercolordark="#FCFCFC" bgcolor="#5A8BCE">
<tr>
<td width="15%" align="right" height="30" bgcolor="#FCFCFC">标 题:</td>
<td width="60%" height="30" bgcolor="#FCFCFC">
<input type="text" name="Title" size="61" value="<%=Note_title%>">
</td>
</tr>
<tr>
<td width="15%" align="right" valign="top" bgcolor="#FCFCFC">内 容:</td>
<td width="60%" bgcolor="#FCFCFC">
<textarea rows="15" name="Content" cols="60" ><%=Note_content%>
</textarea>
</td>
</tr>
<tr>
<td width="75%" align=center height="50" colspan="2" bgcolor=#efefef>
<input type="submit" value="提 交" name="Submit" class="buttonface">
<input type="reset" value="清 除" name="Clear" class="buttonface">
</td>
</tr>
</table>
</form>
</center>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -