📄 edit.asp
字号:
<!--#include file="../../includes/keepHouse.asp"-->
<%
call insureID()
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>WebOffice</title>
<script language="JavaScript">
function validate(){
var Title = document.FormCompose.Title.value;
var Content = document.FormCompose.Content.value;
if ( Title==""){
alert("标题不能为空!");
return false;
}
if (Content==""){
alert("内容不能为空!");
return false;
}
}
</script>
<link rel="stylesheet" type="text/css" href="../includes/style1.css">
</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 PersonalNotes WHERE NOTE_ID="&NOTE_ID&" AND PERSONNEL_ID="&session("PERSONNEL_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="FormCompose" action="saveCED.asp?action=Edit&NOTE_ID=<%=NOTE_ID%>" onSubmit="return validate()">
<table border="0" width="75%" cellspacing="0" cellpadding="0">
<tr>
<td width="5%" bgcolor="#0000FF" height="35" align=left><img border="0" src="../../images/back.gif"></td>
<td width="65%" bgcolor="#0000FF" height="35" align=center><b><font color="#FFFFFF">编辑记事本内容</font></b></td>
<td width="5%" bgcolor="#0000FF" height="35" align=right><img border="0" src="../../images/Close2.gif"></td>
</tr>
</table>
<table border="1" width="75%" bordercolorlight="#EFEFEF" bordercolordark="#FCFCFC" cellspacing="0" cellpadding="0">
<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 + -