?? inf_to_server.asp
字號(hào):
<!--#INCLUDE FILE="data.asp" -->
<!--#include file="html.asp"-->
<%if Session("Urule")<>"a" then
Response.write "你沒有足夠權(quán)限"
response.end
end if
myUid=Session("Uid")
myUname=Session("Uname")
myUpass=Session("Upass")
myUrealname=Session("Rname")
myUpart=Session("Upart")
myUrule=Session("Urule")
myUlogin=Session("Ulogin")
nowtime=now()
sj=cstr(year(nowtime))+"-"+cstr(month(nowtime))+"-"+cstr(day(nowtime))+" "+cstr(hour(nowtime))+":"+right("0"+cstr(minute(nowtime)),2)+":"+right("0"+cstr(second(nowtime)),2)
Set my_rs= Server.CreateObject("ADODB.Recordset")
StrSQL = "Select * FROM jhtdata"
my_rs.Open StrSQL,Conn,1,3
my_rs.Addnew
my_rs("inid") = myUid
my_rs("outid") = 0
my_rs("真實(shí)姓名") = myUrealname
my_rs("部門") = myUpart
my_rs("標(biāo)題") = htmlencode2(request("biaoti"))
my_rs("內(nèi)容") = htmlencode2(request("neirong"))
my_rs("時(shí)間") =sj
my_rs.Update
%>
<script language=javascript>
opener.location=opener.location;
</script>
<title>您的信息已經(jīng)成功添加</title>
<LINK href="oa.css" rel=stylesheet>
<body style="background-image: url('images/main_bg.gif'); background-attachment: scroll; background-repeat: no-repeat; background-position: left bottom">
<div align="center">
<center>
<table border="1" width="100%" cellspacing="0" cellpadding=0 height="209" bordercolorlight=#000000 bordercolordark=#ffffff>
<tr>
<td align=center colspan=2>您的信息已經(jīng)成功添加
</td>
</tr>
<tr valign=top>
<td width="21%" align="center" height="14">
主 題</td>
<td width="79%" height="14"><%=my_rs("標(biāo)題")%></td>
</tr>
<tr>
<td width="21%" align="center" height="18">
發(fā) 布 人</td>
<td width="79%" height="18"><%=my_rs("部門")%> <%=my_rs("真實(shí)姓名")%></td>
</tr>
<tr>
<td width="21%" align="center" height="17">
發(fā)布時(shí)間</td>
<td width="79%" height="17"><%=my_rs("時(shí)間")%></td>
</tr>
<tr valign=top>
<td width="21%" align="center" height="122">
內(nèi) 容</td>
<td width="79%" height="200"><%=my_rs("內(nèi)容")%></td>
</tr>
</table>
</center><BR>
<CENTER><a href="Javascript:window.close();"><img name="Image3" border="0" src="images/close_1.gif" width="85" height="19" hspace="5"></a></CENTER>
</div>
<script language=javascript>
opener.location=opener.location;
</script>
</body>
<%
my_rs.close
Set my_rs=nothing
my_Conn.Close
Set my_Conn=nothing
%>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -