📄 readdate.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="html.asp"-->
<%
if session("user")="" or session("group")="" then
response.write("<script>alert('您还没有登陆或登陆超时');window.location.href('index.asp')</script>")
response.end
end if
%>
<%
id=session("id")
set rs=server.CreateObject("adodb.recordset")
cmd="select * from riji where id="&id
rs.open cmd,conn,1,1
if rs.eof then
response.write("<script>alert('无此日记!');window.location.href('writedate.asp')</script>")
response.end
end if
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.style1 {
color: #FFFFFF;
font-size: 12px;
}
.style3 {
font-size: 14px;
color: #000000;
}
-->
</style>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<table width="700" border="0" align="center" bgcolor="#6699cc">
<tr>
<td><span class="style1">标题:</span>
<span class="style1">
<% =rs("title")%>
</span> <span class="style1">,该日记写于:</span>
<span class="style1">
<%=rs("time") %>
</span></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><span class="style3">
<% =ubbcode(rs("all"))%>
</span></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -