⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 myfriend.asp

📁 大学的综合测评
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="const.asp" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="img/Style.css" rel="stylesheet" type="text/css" />
<title>无标题文档</title>
<style type="text/css">
<!--
.STYLE1 {
	color: #FFFFFF;
	font-weight: bold;
}
.STYLE2 {color: #FFFFFF}
-->
</style>
</head>
<body>

<p>
  <%
user_no=Request.Cookies("zcas")("user_no")
if user_no="" then 
Response.Write("<li>登录超时,请重新登录</li>")
Response.End()
end if
%>
  
  <%
 Dim rs1
		Set rs1 = Server.CreateObject("ADODB.Recordset")
		rs1.ActiveConnection = dbconn
		rs1.Source = "SELECT myfriend FROM pc_user where  user_no='"&user_no&"'"
		rs1.CursorType = 0
		rs1.CursorLocation = 2
		rs1.LockType = 1
		rs1.Open()
		if rs1.eof or rs1.bof then 
		response.Write("系统错误")
		response.End()
		end if
dim myfriend
myfriend=rs1(0)
%>
</p>
<p>&nbsp;</p>
<table width="60%" border="0" align="center" cellpadding="1" cellspacing="0" class="atable1">
  <tr>
    <td width="48%" bgcolor="#333"><span class="STYLE1"><span class="STYLE1">&nbsp;&nbsp;</span></span><span class="STYLE2">我的关注好友</span></td>
    <td width="48%" bgcolor="#333" class="STYLE1"><div align="right"><a href="guanzhu.asp"><font color="#FFFFFF">添加</font></a>&nbsp;&nbsp;</div></td>
  </tr>
  <tr>
    <td colspan="2"  class="tdmenu"><%if isnull(myfriend) or myfriend=""  then Response.Write("<br />&nbsp;&nbsp;还没有关注好友") end if %><%=tolist(myfriend)%></td>
  </tr>
</table>
  <%
rs1.close
set rs1=nothing
%>
</body>
</html>
<%dbconn.close%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -