?? viewinfo.asp
字號:
<TD></TD>
</TR>
</TBODY>
</TABLE></TD>
<TD vAlign=top align=left width=580 id="Right_width" style="width:580px">
<%
set rs=server.createobject("adodb.recordset")
sqltext="select top 1 * from Info where Id="&request("id")&""
rs.open sqltext,conn,1,1
do while not rs.eof
InfoID=rs("Id")
Discussion=rs("Discussion")
Title=rs("Title")
%>
<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
<TBODY>
<TR>
<TD> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD width="9%" background=Img/homedhbg.gif
height=34><img src="Img/tp.gif" width="55" height="34"></TD>
<TD width="79%"
background=Img/homedhbg.gif><div align="center"><b><%=Title%></b></div></TD>
<TD width="150"
background=Img/homedhbg.gif> <span style="cursor:hand" Id="ShowHiddenHtmlEdit" Title="顯示/隱藏" onClick="if(trNewsContent.style.display==''){trNewsContent.style.display='none';Right_width.style.width='778Px';ShowHiddenHtmlEdit.innerHTML='顯示左欄'}else{trNewsContent.style.display='';ShowHiddenHtmlEdit.innerHTML='隱藏左欄'}">隱藏左欄</span></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR>
<TD height="161"> <TABLE style="WORD-BREAK: break-all" cellSpacing=0
cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD height="10" vAlign=top></TD>
</TR>
<TR>
<TD height="91" vAlign=top>
<%
if Session("Grade")="" then
Grade=0
else
Grade=Session("Grade")+1
end if
if Grade>=RS("ReadGrade") then
Call ReadContent()
Call Discu()
else
Call ReadErro()
end if %>
</TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
</TBODY>
</TABLE>
<%
rs.movenext
loop
%>
<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
<TBODY>
<TR>
<TD width="54%" height=34 align="right" background=Img/homedhbg.gif> </TD>
<TD width="46%" align="right" background=Img/homedhbg.gif><a href='javascript:history.back()'><<
后退</a> <a href="javascript:window.scroll(0,-360)">返回頂部</a> <a href="javascript:window.close()">關閉窗口</a> </TD>
</TR>
</TBODY>
</TABLE>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="8"> </td>
</tr>
</table>
</TD>
</TR>
</TBODY>
</TABLE></td>
</tr>
</table>
<!--#include file="Bottom.asp" -->
</body></html>
<% sub ReadContent()%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center"> 添加時間:<%=rs("date")%> 作者:
<%if not isnull(rs("writer")) then%>
<%=rs("writer")%>
<%else%>
未知
<%end if%>
來源:
<%if not isnull(rs("writefrom")) then%>
<%=rs("writefrom")%>
<%else%>
未知
<%end if%>
錄入:<font color="#FF0000"><%=rs("author")%></font> 閱讀次數:<font color="#FF0000"><%=rs("hits")%></font> </div></td>
</tr>
</table>
<hr size="1" width="98%">
<table width="100%" border="0" align="center" cellpadding="5" cellspacing="4" style="word-break:break-all" oncopy="return false;" oncut="return false;">
<tr>
<td width="100%" height="54" style="word-break:break-all"><%=RS("content")%></td>
</tr>
</table>
<% end sub %>
<% sub ReadErro()%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="32">
<div align="center"><font color="#FF0000">您的瀏覽權限不夠!</font><br>
這條信息要
<font color=red><%if rs("ReadGrade")=1 then%>
注冊用戶
<%end if%>
<%if rs("ReadGrade")=2 then%>
VIP 用戶
<%end if%>
</font>
才能游覽!
</div></td>
</tr>
</table>
<% end sub %>
<%
sub Discu()
if Discussion=true then
%>
<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
<TBODY>
<TR>
<TD width="34" height=34 align="right" background=Img/homedhbg.gif><img src="Img/tp.gif" width="55" height="34"></TD>
<TD width="80%" align="right" background=Img/homedhbg.gif><div align="left">相關評論</div></TD>
<TD width="11%" align="right" background=Img/homedhbg.gif><a href="Review.asp?InfoID=<%=InfoID%>">More...</a></TD>
</TR>
</TBODY>
</TABLE>
<table width="100%" border="0" cellspacing="0" cellpadding="5">
<form name="form1" method="post" action="Review.asp?Action=save"><tr>
<td width="45%" height="91" Valign="top">
<%
sqld="select top 3 * from Review where InfoID="&InfoID&" ORDER BY ReTime DESC"
Set rs2=Conn.execute(sqld)
if rs2.bof and rs2.eof then
response.Write("暫無評論!")
end if
do while not rs2.eof
%>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td height="21" colspan="2">網友:<%=rs2("Reply")%> Email:<a href="mailto:<%=rs2("UserEmail")%>"><%=rs2("UserEmail")%></a> </td>
</tr>
<tr>
<td height="21" colspan="2">評論:<%=rs2("Content")%></td>
</tr>
<tr>
<td height="1" colspan="2" bgcolor="#CCCCCC"></td>
</tr>
</table>
<%
rs2.movenext
loop
%>
</td>
<td width="55%" Valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="21" colspan="3">
<div align="center">歡迎大家發表自己的高見!(<font color="#FF0000">不支持HTML</font>)<input name="InfoID" type="Hidden" value="<%=InfoID%>"><input name="Title" type="Hidden" value="<%=Title%>">
</div></td>
</tr>
<tr>
<td width="14%" height="23"> <div align="right">網名:
</div></td>
<td width="27%" height="23"> <input name="Reply" type="text" id="Reply" value="<%=Session("Pw_Sys_User")%>" size="8" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; COLOR: rgb(0,0,0); BORDER-BOTTOM: rgb(0,0,0) 1px solid"></td>
<td width="59%">郵件:
<input name="UserEmail" type="text" id="UserEmail" value="<%=Session("UserEmail")%>" size="18" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; COLOR: rgb(0,0,0); BORDER-BOTTOM: rgb(0,0,0) 1px solid"></td>
</tr>
<tr>
<td height="23"> <div align="right">評論:</div></td>
<td height="23" colspan="2"> <textarea name="Content" cols="35" rows="4" id="Content"></textarea></td>
</tr>
<tr>
<td height="23"> <div align="right">發表:</div></td>
<td height="23" colspan="2"> <input type="submit" name="Submit" value=" 提交 ">
<input name="Reset" type="reset" id="Reset" value=" 重來 ">
</td>
</tr>
</table></td>
</tr> </form>
</table>
<% end if %>
<% end sub %>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -