⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 edit.asp

📁 ASp+SQLServer编写的网上办公系统
💻 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 Summ = document.FormCompose.SUMM_CONTENT.value;
     var Plan = document.FormCompose.PLAN_CONTENT.value;
     if (Summ=="" && Plan==""){
       alert("内容不能为空!");
       return false;
     }
   }
</script>
</head>

<body>
<center>
<table border="0" width="100%" height="40" cellspacing="0" cellpadding="0">
 <tr>
  <td width="100%"></td>
 </tr>
</table>
<form method="POST" name="FormCompose" action="saveCEPS.asp?action=Edit" onSubmit="javaScript: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">编辑<%=session("PERSON_NAME")%>的个人总结与计划</font></b></td>
  <td width="5%" bgcolor="#0000FF" height="35" align=right><img border="0" src="../../images/Close2.gif"></td>
 </tr>
</table>
<% 
dim SUMMPLAN_ID
SUMMPLAN_ID=request("SUMMPLAN_ID")
if SUMMPLAN_ID="" then
	call trigErr()
end if

sql="SELECT SUMMPLAN_TITLE, PLAN_CONTENT, SUMM_CONTENT, COMPOSE_DATE " _
	&"FROM PersonalSummPlan " _
	&"WHERE SUMMPLAN_ID="&SUMMPLAN_ID&"AND PERSONNEL_ID="&session("PERSONNEL_ID")
call openDB()
rs.open sql,conn,1,1
if rs.eof then
	call trigErr()
end if
dim SUMMPLAN_TITLE
dim PLAN_CONTENT
dim SUMM_CONTENT
dim COMPOSE_DATE
SUMMPLAN_TITLE=rs("SUMMPLAN_TITLE")
PLAN_CONTENT=rs("PLAN_CONTENT")
SUMM_CONTENT=rs("SUMM_CONTENT")
COMPOSE_DATE=rs("COMPOSE_DATE")
SUMMPLAN_TITLE = replaceBack(SUMMPLAN_TITLE)
SUMM_CONTENT = replaceBack(SUMM_CONTENT)
PLAN_CONTENT = replaceBack(PLAN_CONTENT)
call closeDB()
%>
<table border="1" width="75%" bordercolorlight="#EFEFEF" bordercolordark="#FCFCFC" cellspacing="0" cellpadding="0">
<tr>
<td width="15%" align="right" valign="top" bgcolor="#FCFCFC"><b>题目:</b></td>                       
<td width="60%" bgcolor="#FCFCFC">
<input type="text" name="SUMMPLAN_TITLE" size="62" value="<%=SUMMPLAN_TITLE%>">
</td>
</tr>
<tr>
<td width="15%" align="right" valign="top" bgcolor="#FCFCFC"><b>总结:</b></td>                       
<td width="60%" bgcolor="#FCFCFC">
<textarea rows="10" name="SUMM_CONTENT" cols="60" wrap="VIRTUAL"><%=SUMM_CONTENT%></textarea>
</td>
</tr>
<tr>
<td width="15%" align="right" valign="top" bgcolor="#FCFCFC"><b>计划:</b></td>                       
<td width="85%" bgcolor="#FCFCFC">
<textarea rows="10" name="PLAN_CONTENT" cols="60" wrap="VIRTUAL"><%=PLAN_CONTENT%></textarea>
</td>
</tr>
<tr>
<td width="15%" align="right" valign="top" bgcolor="#FCFCFC"> </td>                       
<td width="85%" bgcolor="#FCFCFC"> </td>
</tr>
<tr>
<td width="75%" align="center" height="50" colspan="2" bgcolor=#efefef>
<%if session("POSITION_ID")>3 then%>
<input type="checkbox" name="Submit" value="YES"><font size="2">提交给上司&nbsp;</font>&nbsp;&nbsp; 
<%end if%>
<input type="hidden" value="<%=SUMMPLAN_ID%>" name="SUMMPLAN_ID"> 
<input type="submit" value="保 存" name="Submit" class="buttonface">&nbsp;&nbsp; 
<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 + -