📄 luntan_lookmessage.asp
字号:
<!--#include file="luntan_check.asp"-->
<!--#include file="conn.asp"-->
<%
strsql="select * from friend where name='"&session("loginname")&"' "
set rst=conn.execute(strsql)
%>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<link href="css/Style.css" rel="stylesheet" type="text/css">
<META content=CnSohoW设计 name=description>
<META content="firekinger@163.com" name=author>
<style type="text/css">
<!--
.style1 {color: #FF0000}
-->
</style>
</head>
<body>
<table width="436" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#d2ebff" class="Xsmall">
<tr bgcolor="#FFFFFF">
<td height="28" colspan="4">
<TABLE width="109%" height="25"
border=0 cellPadding=0 cellSpacing=0>
<TBODY>
<TR>
<TD width="31%" background=img/backt.gif class="Xsmall"> </TD>
<TD width="31%" align="center" background=img/backt.gif class="Xsmall">留言管理</TD>
<TD width="38%"
height=25 background=img/backt.gif class="Xsmall"> <strong><strong> </strong></strong></TD>
</TR>
</TBODY>
</TABLE></td>
</tr>
<tr align="left" bgcolor="#FFFFFF">
<td height="55" colspan="4"> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="66" height="23" align="center">好友名</td>
<td width="200" align="center">留言</td>
<td width="74" align="center">留言时间</td>
<td width="75" align="center">删除</td>
</tr>
<%
while not rsT.eof
friendid=trim(rst(0))
friend=trim(rsT(2))
message=trim(rst(3))
time1=trim(rst("time"))
if message<>"" then
response.Write("<tr bgcolor='#FFFFFF'><td height='25'> ⊙ "&friend&"</td><td>"&message&"</td><td>"&time1&"</td><td><div align='center'><a href='#' onclick=javascript:window.confirm('你真的要把此留言删除吗?')?window.location.href('luntan_message_del.asp?friendid="&friendid&"'):window.location.href('#')>删除</a></div></td></tr>")
end if
rsT.movenext
wend
%>
<tr align="center" bgcolor="#FFFFFF">
<td height="22" colspan="4"> </td>
</tr>
</table>
<%
rst.close
conn.close
set conn=nothing
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -