📄 friend_admin.aspx.vb
字号:
' ***************************************************
' * 本程序由AspToAspX风火轮0.99转换生成 *
' * http://Www.AspToAspX.Cn *
' * Q Q : 139227536 *
' * QQ群: 17152722 *
' * MSN : gzliangjianhua@hotmail.com *
' * EMail AspToDll@vip.163.com *
' ***************************************************
Imports Microsoft.VisualBasic
Imports System.Web
Imports System.Math
Imports System.Web.SessionState
Public Class _FRIEND_ADMIN
Inherits System.Web.UI.Page
Implements IHttpHandler, AspToAspX_Interface
Public AspToAspX_Host_Class_Object As Object
Public i
Public userid
Public pltype
Public tyname
Public searchstr
Public sql
Public rs As ADODB.Recordset
Public wzrep
Public wzpage
Public wzpagecount
Public wzcount
Public linkdb
Public ft
Public ku
Public ckiesdomain
Public conndb
Public ConnectionString
Public username
Public userimg
Public homepagetitle
Public cssfile
Public bokeer
Public blog_mid
Public blogheadimg
Public clubuser_id
Public rs8
Public ASPX_CONN As _CONN
Public ASPX_INC_PUBLICFUN As _INC_PUBLICFUN
Public ASPX_INC_MD5 As _INC_MD5
Public ASPX_BBSUSER As _BBSUSER
Public ASPX_ISBOKER As _ISBOKER
Public ASPX_GBTOUTF8 As _GBTOUTF8
Public ASPX_MEMBERINFO As _MEMBERINFO
Public ASPX_USERNAV As _USERNAV
Public ASPX_HAOYOUHEAD As _HAOYOUHEAD
Public ASPX_USERCALOG As _USERCALOG
Public ASPX_TAIL As _TAIL
#Region "..."
Public Sub AspToAspX_InitIncludeFiles()
ASPX_CONN = New _CONN()
ASPX_CONN.AspToAspX_Host_Class_Object = AspToAspX_Host_Class_Object
ASPX_CONN.AspToAspX_InitIncludeFiles()
ASPX_INC_PUBLICFUN = New _INC_PUBLICFUN()
ASPX_INC_PUBLICFUN.AspToAspX_Host_Class_Object = AspToAspX_Host_Class_Object
ASPX_INC_PUBLICFUN.AspToAspX_InitIncludeFiles()
ASPX_INC_MD5 = New _INC_MD5()
ASPX_INC_MD5.AspToAspX_Host_Class_Object = AspToAspX_Host_Class_Object
ASPX_INC_MD5.AspToAspX_InitIncludeFiles()
ASPX_BBSUSER = New _BBSUSER()
ASPX_BBSUSER.AspToAspX_Host_Class_Object = AspToAspX_Host_Class_Object
ASPX_BBSUSER.AspToAspX_InitIncludeFiles()
ASPX_ISBOKER = New _ISBOKER()
ASPX_ISBOKER.AspToAspX_Host_Class_Object = AspToAspX_Host_Class_Object
ASPX_ISBOKER.AspToAspX_InitIncludeFiles()
ASPX_GBTOUTF8 = New _GBTOUTF8()
ASPX_GBTOUTF8.AspToAspX_Host_Class_Object = AspToAspX_Host_Class_Object
ASPX_GBTOUTF8.AspToAspX_InitIncludeFiles()
ASPX_MEMBERINFO = New _MEMBERINFO()
ASPX_MEMBERINFO.AspToAspX_Host_Class_Object = AspToAspX_Host_Class_Object
ASPX_MEMBERINFO.AspToAspX_InitIncludeFiles()
ASPX_USERNAV = New _USERNAV()
ASPX_USERNAV.AspToAspX_Host_Class_Object = AspToAspX_Host_Class_Object
ASPX_USERNAV.AspToAspX_InitIncludeFiles()
ASPX_HAOYOUHEAD = New _HAOYOUHEAD()
ASPX_HAOYOUHEAD.AspToAspX_Host_Class_Object = AspToAspX_Host_Class_Object
ASPX_HAOYOUHEAD.AspToAspX_InitIncludeFiles()
ASPX_USERCALOG = New _USERCALOG()
ASPX_USERCALOG.AspToAspX_Host_Class_Object = AspToAspX_Host_Class_Object
ASPX_USERCALOG.AspToAspX_InitIncludeFiles()
ASPX_TAIL = New _TAIL()
ASPX_TAIL.AspToAspX_Host_Class_Object = AspToAspX_Host_Class_Object
ASPX_TAIL.AspToAspX_InitIncludeFiles()
End Sub
Public Sub AspToAspX_UnloadIncludeFiles()
ASPX_CONN.AspToAspX_UnloadIncludeFiles()
ASPX_CONN = Nothing
ASPX_INC_PUBLICFUN.AspToAspX_UnloadIncludeFiles()
ASPX_INC_PUBLICFUN = Nothing
ASPX_INC_MD5.AspToAspX_UnloadIncludeFiles()
ASPX_INC_MD5 = Nothing
ASPX_BBSUSER.AspToAspX_UnloadIncludeFiles()
ASPX_BBSUSER = Nothing
ASPX_ISBOKER.AspToAspX_UnloadIncludeFiles()
ASPX_ISBOKER = Nothing
ASPX_GBTOUTF8.AspToAspX_UnloadIncludeFiles()
ASPX_GBTOUTF8 = Nothing
ASPX_MEMBERINFO.AspToAspX_UnloadIncludeFiles()
ASPX_MEMBERINFO = Nothing
ASPX_USERNAV.AspToAspX_UnloadIncludeFiles()
ASPX_USERNAV = Nothing
ASPX_HAOYOUHEAD.AspToAspX_UnloadIncludeFiles()
ASPX_HAOYOUHEAD = Nothing
ASPX_USERCALOG.AspToAspX_UnloadIncludeFiles()
ASPX_USERCALOG = Nothing
ASPX_TAIL.AspToAspX_UnloadIncludeFiles()
ASPX_TAIL = Nothing
End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)
AspToAspXGlobal.Application = Application
AspToAspXGlobal.Server = Server
AspToAspXGlobal.Response = Response
AspToAspXGlobal.Request = Request
AspToAspXGlobal.Session = Session
AspToAspX_Host_Class_Object = Me
AspToAspX_InitIncludeFiles()
AspToAspX_Page_Init()
End Sub
Public Sub AspToAspX_Page_Init()
On Error GoTo _AspToAspX_Err
ASPX_CONN.AspToAspX_Page_Init ( )
ASPX_INC_PUBLICFUN.AspToAspX_Page_Init ( )
ASPX_INC_MD5.AspToAspX_Page_Init ( )
ASPX_BBSUSER.AspToAspX_Page_Init ( )
ASPX_ISBOKER.AspToAspX_Page_Init ( )
ASPX_GBTOUTF8.AspToAspX_Page_Init ( )
userid = getcookie ( "clubuser_id" ) '8
pltype = Checkstr ( Request ( "groupname" ) ) '9
tyname = "groupname" '10
If AspToAspX_CheckDBNull ( pltype ) < > EmptyString.Value Then '11
searchstr = " and groupname='" & pltype & "'" '12
End If '13
Response.Write ( vbCrLf )
ASPX_MEMBERINFO.AspToAspX_Page_Init ( )
Response.Write ( "<html><head><meta http-equiv=content-type content=""text/html; charset=utf-8"">" & Chr ( 13 ) ) '16
Response.Write ( "</head>" & Chr ( 13 ) ) '17
Response.Write ( "<body>" & Chr ( 13 ) ) '18
Response.Write ( "<center>" & Chr ( 13 ) ) '19
Response.Write ( "<title>" ) '20
Response.Write ( username ) '20
Response.Write ( "的好友管理中心</title>" & Chr ( 13 ) ) '20
Response.Write ( "<link rel=""stylesheet"" type=""text/css"" href=""" ) '21
Response.Write ( cssfile ) '21
Response.Write ( """>" & Chr ( 13 ) ) '21
ASPX_USERNAV.AspToAspX_Page_Init ( )
ASPX_HAOYOUHEAD.AspToAspX_Page_Init ( )
Response.Write ( "<div class=""stage"">" & Chr ( 13 ) ) '24
Response.Write ( "<table width=""100%"" border=""0"" cellspacing=""0"" cellpadding=""0"" id=""layout"">" & Chr ( 13 ) ) '25
Response.Write ( "<tr>" & Chr ( 13 ) ) '26
Response.Write ( "<td valign=""top"" class=""c2t3"">" & Chr ( 13 ) ) '27
Response.Write ( "<div id=""m_blog"" class=""modbox"">" & Chr ( 13 ) ) '28
ASPX_USERCALOG.AspToAspX_Page_Init ( )
Response.Write ( "</div>" & Chr ( 13 ) ) '30
Response.Write ( "</td>" & Chr ( 13 ) ) '31
Response.Write ( "<td valign=""top"" class=""c2t1"">" & Chr ( 13 ) ) '32
Response.Write ( "<div id=""m_blog"" class=""modbox"">" & Chr ( 13 ) ) '33
Response.Write ( " <table width=""100%"" border=""0"" cellspacing=""0"" cellpadding=""0"">" & Chr ( 13 ) ) '34
Response.Write ( " <tr valign=""middle""> " & Chr ( 13 ) ) '35
Response.Write ( " <td height=""50"" colspan=""6"" class=""f14"" align=""center""><strong>好友管理</strong></td>" & Chr ( 13 ) ) '36
Response.Write ( " </tr>" & Chr ( 13 ) ) '37
Response.Write ( " <tr> " & Chr ( 13 ) ) '38
Response.Write ( " <td height=""1"" colspan=""6"" bgcolor=""#336699"" class=new14><spacer height=""1"" type=""block""></td>" & Chr ( 13 ) ) '39
Response.Write ( " </tr>" & Chr ( 13 ) ) '40
Response.Write ( " <tr> " & Chr ( 13 ) ) '41
Response.Write ( " <td width=""24%"" height=""25""> <div align=""left""><strong>好友用户名</strong></div></td>" & Chr ( 13 ) ) '42
Response.Write ( " <td width=""54%"" height=""25"">所属组名</td>" & Chr ( 13 ) ) '43
Response.Write ( " <td width=""7%"" >" & Chr ( 13 ) ) '44
Response.Write ( "<div align=""center"">隐藏</div></td>" & Chr ( 13 ) ) '45
Response.Write ( " <td width=""7%"" ><div align=""center"">编辑</div></td>" & Chr ( 13 ) ) '46
Response.Write ( " <td width=""7%"" >" & Chr ( 13 ) ) '47
Response.Write ( "<div align=""center"">删除</div></td>" & Chr ( 13 ) ) '48
Response.Write ( " </tr>" & Chr ( 13 ) ) '49
Response.Write ( " <tr> " & Chr ( 13 ) ) '50
Response.Write ( " <td height=""1"" colspan=""6"" background=""blogimages/dotbg.gif""><spacer height=""1"" type=""block""></td>" & Chr ( 13 ) ) '51
Response.Write ( " </tr>" & Chr ( 13 ) ) '52
sql = "select * from " & ft & "haoyou where userid=" & getcookie ( "clubuser_id" ) & searchstr & " order by id desc" '54
rs = New ADODB.Recordset ( ) '55
rs.Open ( sql , conn , 1 , 1 ) '56
If Not rs.EOF Then '57
wzrep = 30 '58
wzpage = AspToAspX_CInt ( ( Request.QueryString ( "page" ) ) ) '59
If AspToAspX_Len ( wzpage ) = 0 Or AspToAspX_CheckDBNull ( wzpage ) = 0 Then
wzpage = 1
End If
'60
rs.PageSize = wzrep '61
rs.AbsolutePage = wzpage '62
wzpagecount = rs.PageCount '63
wzcount = rs.RecordCount '64
For i = 0 To Val ( wzrep ) - 1 '65
If rs.EOF Then
Exit For
End If
'66
Response.Write ( vbCrLf )
Response.Write ( " <tr> " & Chr ( 13 ) ) '68
Response.Write ( " <td height=""25"" ><div class=""opt""> <a href=""home.aspx?userid=" ) '69
Response.Write ( AspToAspX_CheckDBNull(rs.Fields ( "userid" ) .Value) ) '69
Response.Write ( """ target=""_blank"">" ) '69
Response.Write ( AspToAspX_CheckDBNull(rs.Fields ( "haoyouname" ) .Value) ) '69
Response.Write ( "</a></div></td>" & Chr ( 13 ) ) '69
Response.Write ( " <td><div class=""opt""><a href=""?groupname=" ) '70
Response.Write ( GBtoUTF8 ( AspToAspX_CheckDBNull(rs.Fields ( "groupname" ) .Value) ) ) '70
Response.Write ( """>" ) '70
Response.Write ( AspToAspX_CheckDBNull(rs.Fields ( "groupname" ) .Value) ) '70
Response.Write ( "</a></div></td>" & Chr ( 13 ) ) '70
Response.Write ( " <td height=""25"" align=""center""><div class=""opt""> " & Chr ( 13 ) ) '71
Response.Write ( " " ) '72
If AspToAspX_CheckDBNull ( AspToAspX_CheckDBNull(rs.Fields ( "sign" ) .Value) ) = 0 Then '72
Response.Write ( vbCrLf )
Response.Write ( " <a href=""haoyouop.aspx?id=" ) '73
Response.Write ( AspToAspX_CheckDBNull(rs.Fields ( "id" ) .Value) ) '73
Response.Write ( "&op=top&v=1"">显示</a> " & Chr ( 13 ) ) '73
Response.Write ( " " ) '74
Else '74
Response.Write ( vbCrLf )
Response.Write ( " <a href=""haoyouop.aspx?id=" ) '75
Response.Write ( AspToAspX_CheckDBNull(rs.Fields ( "id" ) .Value) ) '75
Response.Write ( "&op=top&v=0""><font color=""#FF0000"">隐藏</font></a> " & Chr ( 13 ) ) '75
Response.Write ( " " ) '76
End If '76
Response.Write ( vbCrLf )
Response.Write ( " </div></td>" & Chr ( 13 ) ) '77
Response.Write ( " <td height=""25"" align=""center""><div class=""opt""><a href=""friend_edit.aspx?id=" ) '78
Response.Write ( AspToAspX_CheckDBNull(rs.Fields ( "id" ) .Value) ) '78
Response.Write ( """>编辑</a></div></td>" & Chr ( 13 ) ) '78
Response.Write ( " <td height=""25"" align=""center""><div class=""opt""><a href=""haoyouop.aspx?id=" ) '79
Response.Write ( AspToAspX_CheckDBNull(rs.Fields ( "id" ) .Value) ) '79
Response.Write ( "&op=del"">删除</a></div></td>" & Chr ( 13 ) ) '79
Response.Write ( " </tr>" & Chr ( 13 ) ) '80
Response.Write ( " <tr> " & Chr ( 13 ) ) '81
Response.Write ( " <td height=""1"" colspan=""6"" background=""blogimages/dotbg.gif""><spacer height=""1"" type=""block""></td>" & Chr ( 13 ) ) '82
Response.Write ( " </tr>" & Chr ( 13 ) ) '83
rs.MoveNext ( ) '85
Next '86
rs.Close ( ) '87
Response.Write ( vbCrLf )
Response.Write ( " <tr> " & Chr ( 13 ) ) '89
Response.Write ( " <td colspan=""6"" height=""35""> 共<font color=red>" ) '90
Response.Write ( wzcount ) '90
Response.Write ( "</font>条 " & Chr ( 13 ) ) '90
Response.Write ( " <font color=red>" ) '91
Response.Write ( wzrep ) '91
Response.Write ( "</font>/页 共<font color=red>" ) '91
Response.Write ( wzpagecount ) '91
Response.Write ( "</font>页 " & Chr ( 13 ) ) '91
Response.Write ( " " ) '92
Response.Write ( pagenar ( wzpagecount , userid , tyname , pltype ) ) '92
Response.Write ( "</td>" & Chr ( 13 ) ) '92
Response.Write ( " </tr>" & Chr ( 13 ) ) '93
Response.Write ( " " ) '94
Else '94
Response.Write ( vbCrLf )
Response.Write ( " <tr> " & Chr ( 13 ) ) '95
Response.Write ( " <td colspan=""6"" height=""25"">你还没有任何评论</td>" & Chr ( 13 ) ) '96
Response.Write ( " </tr>" & Chr ( 13 ) ) '97
Response.Write ( " " ) '98
End If '98
Response.Write ( vbCrLf )
Response.Write ( " </table>" & Chr ( 13 ) ) '99
Response.Write ( " </div>" & Chr ( 13 ) ) '100
Response.Write ( "</td>" & Chr ( 13 ) ) '101
Response.Write ( "</tr></table>" & Chr ( 13 ) ) '102
Response.Write ( "</div>" & Chr ( 13 ) ) '103
Response.Write ( "</div>" & Chr ( 13 ) ) '104
Response.Write ( "<br><center>" & Chr ( 13 ) ) '105
Response.Write ( " " ) '106
ASPX_TAIL.AspToAspX_Page_Init ( )
Response.Write ( " </center>" & Chr ( 13 ) ) '107
Response.Write ( "</center>" & Chr ( 13 ) ) '108
Response.Write ( "</body>" & Chr ( 13 ) ) '109
Response.Write ( "</html>" & Chr ( 13 ) ) '110
closedb ( ) '111
Response.Write ( vbCrLf )
AspToAspX_UnloadIncludeFiles()
Exit Sub
_AspToAspX_Err:
AspToAspX_WriteLog ("friend_admin_aspx Page_Init:" & Err.Description)
Resume Next
End Sub
#Region "..."
Public Property conn
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -