📄 reportadd.asp
字号:
<!--#include file="islogin.asp"-->
<!--#include file="conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css/css.css" rel="stylesheet" type="text/css">
<title></title>
<style type="text/css">
<!--
@import url("../style/admin.css");
.STYLE1 { font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
color: #FF0000;
}
-->
</style></head>
<body>
<%
function makefilename(fname)
fname = replace(fname,"-","")
fname = replace(fname," ","")
fname = replace(fname,":","")
fname = replace(fname,"PM","")
fname = replace(fname,"AM","")
fname = replace(fname,"上午","")
fname = replace(fname,"下午","")
makefilename=fname
end function
addtimeTT=makefilename(date())
set rs=server.createobject("adodb.recordset")
sql="select * from Report where MemberID="&session("MemberID")&" and addtimeTT='"&addtimeTT&"' "
rs.open sql,conn,1,3
if rs.eof or rs.bof then
%>
<form name="form1" method="post" action="ReportAddDo.asp">
<table width="800" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="25" class="table_1_top"><strong>添加工作日报表</strong></td>
</tr>
<tr>
<td bgcolor="#FFFFFF">
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="0" class="table_1_inc">
<tr>
<td width="68" align="right" valign="top"><strong>内容:</strong></td>
<td><textarea name="nr" cols="88" rows="30" id="nr"></textarea></td>
</tr>
</table></td>
</tr>
<tr>
<td height="25" align="center" bgcolor="#FFFFFF">
<label>
<input type="submit" name="Submit" value="保存信息">
</label>
<input name="button" type="button" onClick="history.go(-1)" value="取消/返回">
<label></label>
</td>
</tr>
</table>
</form>
<%else%>
<form name="form1" method="post" action="ReportAddDo.asp">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_1">
<tr>
<td height="25" class="table_1_top"><strong>添加工作日报表</strong></td>
</tr>
<tr>
<td bgcolor="#FFFFFF">
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="0" class="table_1_inc">
<tr>
<td width="68" align="right" valign="top"><strong>内容:</strong></td>
<td><textarea name="nr" cols="88" rows="30" id="nr"onkeydown="if(event.ctrlKey==true &&event.keyCode=='83'){event.returnValue=false;form1.submit();}"><%=rs("nr")%></textarea></td>
</tr>
</table></td>
</tr>
<tr>
<td height="25" align="center" bgcolor="#FFFFFF">
<label>
<input type="submit" name="Submit" value="保存信息 Ctrl+S">
</label>
<input name="button" type="button" onClick="history.go(-1)" value="取消/返回">
<label></label>
</td>
</tr>
</table>
</form>
<%
rs.close
set rs=nothing
conn.close
set conn=nothing
end if%>
</body>
</html>
<!--#include file="MenuRight.asp"-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -