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

📄 haoyou.aspx.vb

📁 本程序修改自飞天BBS 7.0 将原来的ASP语法迁移为ASP.NET并封装成DLL ASP.NET相对ASP有更快的执行效率以及更高的并发访问量 基于ASP.NET的DLL可以运行在支持ASP
💻 VB
📖 第 1 页 / 共 2 页
字号:
' ***************************************************
' *        本程序由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 _HAOYOU
    Inherits System.Web.UI.Page
    Implements IHttpHandler, AspToAspX_Interface

    Public AspToAspX_Host_Class_Object As Object

Public userid
Public sql
Public rs As ADODB.Recordset
Public page
Public ipagesize
Public i
Public photourl
Public sqlm
Public rsm
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_MEMBERINFO As _MEMBERINFO
    Public ASPX_USERNAV As _USERNAV
    Public ASPX_HAOYOUHEAD As _HAOYOUHEAD
    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_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_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_MEMBERINFO.AspToAspX_UnloadIncludeFiles()
        ASPX_MEMBERINFO = Nothing
        ASPX_USERNAV.AspToAspX_UnloadIncludeFiles()
        ASPX_USERNAV = Nothing
        ASPX_HAOYOUHEAD.AspToAspX_UnloadIncludeFiles()
        ASPX_HAOYOUHEAD = 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 ( )
    userid = AspToAspX_CInt ( Request ( "userid" ) ) '4
    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 ) ) '7
    Response.Write ( "<title>" ) '8
    Response.Write ( username ) '8
    Response.Write ( "的好友</title>" & Chr ( 13 ) ) '8
    Response.Write ( "<link rel=""stylesheet"" type=""text/css"" href=""" ) '9
    Response.Write ( cssfile ) '9
    Response.Write ( """>" & Chr ( 13 ) ) '9
    Response.Write ( "</head>" & Chr ( 13 ) ) '10
    Response.Write ( "<script language=""javascript"" src=""js/publicfun.js""></script>" & Chr ( 13 ) ) '11
    Response.Write ( "<body>" & Chr ( 13 ) ) '12
    Response.Write ( "<center>" & Chr ( 13 ) ) '13
    ASPX_USERNAV.AspToAspX_Page_Init ( )
    ASPX_HAOYOUHEAD.AspToAspX_Page_Init ( )
    Response.Write ( "<div class=""stage"">" & Chr ( 13 ) ) '16
    Response.Write ( "<div class=""stagepad"">" & Chr ( 13 ) ) '17
    Response.Write ( "<div style=""width:100%"">" & Chr ( 13 ) ) '18
    Response.Write ( "" & Chr ( 9 ) & "<table width=""100%"" border=""0"" cellspacing=""0"" cellpadding=""0"" class=""modth"">" & Chr ( 13 ) ) '19
    Response.Write ( "" & Chr ( 9 ) & "<tr><td class=""modtl"" width=""7"">&nbsp;</td>" & Chr ( 13 ) ) '20
    Response.Write ( "" & Chr ( 9 ) & "<td class=""modtc"" nowrap>" & Chr ( 13 ) ) '21
    Response.Write ( "" & Chr ( 9 ) & Chr ( 9 ) & "<table border=""0"" cellspacing=""0"" cellpadding=""0""><tr><td>" & Chr ( 13 ) ) '22
    Response.Write ( "" & Chr ( 9 ) & Chr ( 9 ) & "<div class=""modhead""><span class=""modtit"">好友列表</span> </div>" & Chr ( 13 ) ) '23
    Response.Write ( "" & Chr ( 9 ) & Chr ( 9 ) & "</td></tr></table>" & Chr ( 13 ) ) '24
    Response.Write ( "" & Chr ( 9 ) & "</td>" & Chr ( 13 ) ) '25
    Response.Write ( "" & Chr ( 9 ) & "<td class=""modtc"" nowrap align=""right""></td>" & Chr ( 13 ) ) '26
    Response.Write ( "" & Chr ( 9 ) & "<td class=""modtr"" width=""7"">&nbsp;</td>" & Chr ( 13 ) ) '27
    Response.Write ( "" & Chr ( 9 ) & "</tr></table>" & Chr ( 13 ) ) '28
    Response.Write ( "<div style=""width:100%"">" & Chr ( 13 ) ) '29
    Response.Write ( "<div id=""m_blog"" class=""modbox"">" & Chr ( 13 ) ) '30
    Response.Write ( "" & Chr ( 9 ) & "<table width=""100%"" border=""0"" cellspacing=""0"" cellpadding=""0"" class=""modact"">" & Chr ( 13 ) ) '31
    Response.Write ( "" & Chr ( 9 ) & "<tr>" & Chr ( 13 ) ) '32
    sql = "SELECT * FROM " & ft & "haoyou WHERE sign=0 and userid=" & userid & " order by id desc" '35
    rs = New ADODB.Recordset ( ) '36
    rs.Open ( sql , conn , 3 , 1 ) '37
    page = Request ( "page" ) '38
    If AspToAspX_CheckDBNull ( page ) = EmptyString.Value Then '39
        page = 1 '40
    Else '41
        page = AspToAspX_CInt ( trim ( Request ( "page" ) ) ) '42
    End If '43
    ipagesize = 24 '44
    rs.pagesize = ipagesize '45
    If Not rs.EOF Then '46
        rs.absolutepage = page '47
        i = 0 '48
        photourl = "" '49
        Do While Not rs.EOF '50
            sqlm = "SELECT * FROM " & ft & "clubuser WHERE clubuser_name='" & AspToAspX_CheckDBNull(rs.Fields ( "haoyouname" ) .Value) & "'" '51
            rsm = New ADODB.Recordset ( ) '52
            rsm.Open ( sqlm , conn , 3 , 1 ) '53
            If AspToAspX_CheckDBNull ( AspToAspX_CheckDBNull(rsm.Fields ( "userimg" ) .Value) ) < > EmptyString.Value Then '54
                photourl = "userheadimg/" & AspToAspX_CheckDBNull(rsm.Fields ( "userimg" ) .Value) '55
            Else '56
                photourl = "blogimages/nophoto.gif" '57
            End If '58
            Response.Write ( vbCrLf )
            Response.Write ( "" & Chr ( 9 ) & "<td align=""center"" valign=""bottom"" width=""25%"">" & Chr ( 13 ) ) '60
            Response.Write ( "" & Chr ( 9 ) & Chr ( 9 ) & "<table border=""0"" cellspacing=""0"" cellpadding=""0"">" & Chr ( 13 ) ) '61
            Response.Write ( "" & Chr ( 9 ) & Chr ( 9 ) & "<tr>" & Chr ( 13 ) ) '62
            Response.Write ( "" & Chr ( 9 ) & Chr ( 9 ) & "              <td><img src=""" ) '63
            Response.Write ( photourl ) '63
            Response.Write ( """ width=""84"" height=""84""></td>" & Chr ( 13 ) ) '63
            Response.Write ( "" & Chr ( 9 ) & Chr ( 9 ) & "</tr>" & Chr ( 13 ) ) '64
            Response.Write ( "" & Chr ( 9 ) & Chr ( 9 ) & "</table>" & Chr ( 13 ) ) '65
            Response.Write ( "" & Chr ( 9 ) & Chr ( 9 ) & "<div class=""opt""><a href=""home.aspx?userid=" ) '66
            Response.Write ( AspToAspX_CheckDBNull(rsm.Fields ( "clubuser_id" ) .Value) ) '66
            Response.Write ( """>" ) '66
            Response.Write ( AspToAspX_CheckDBNull(rsm.Fields ( "clubuser_name" ) .Value) ) '66
            Response.Write ( "</a><a href=""blogsms_add.aspx?postuser=" ) '66
            Response.Write ( AspToAspX_CheckDBNull(rsm.Fields ( "clubuser_name" ) .Value) ) '66
            Response.Write ( """><img src=""blogimages/ico_sendmsg.gif"" border=""0"" align=""absmiddle""></a></div>" & Chr ( 9 ) & "" & Chr ( 13 ) ) '66
            Response.Write ( "" & Chr ( 9 ) & "</td>" & Chr ( 13 ) ) '67
            Response.Write ( "  " ) '68
            rsm.Close ( ) '69
            i = i + 1 '70
            If AspToAspX_CheckDBNull ( i Mod 6 ) = 0 Then '71
                Response.Write ( "<tr align=center>" ) '72
            End If '73
            rs.MoveNext ( ) '74
        If AspToAspX_CheckDBNull ( i ) > = ipagesize Then
Exit Do
End If
    '75
        Loop '76
        Response.Write ( vbCrLf )
        Response.Write ( "" & Chr ( 9 ) & "</tr>" & Chr ( 13 ) ) '78
        Response.Write ( "  <tr align=center> " & Chr ( 13 ) ) '79
        Response.Write ( "    <td colspan=""15""> <table width=""100%"" border=""0"" align=""center"" cellpadding=""0"" cellspacing=""0"" class=""modact"">" & Chr ( 13 ) ) '80
        Response.Write ( "                    <tr> " & Chr ( 13 ) ) '81
        Response.Write ( "                      <td width=""77%""> " & Chr ( 13 ) ) '82
        Response.Write ( "                        <div align=""center""><font color=""#000000"">共" ) '83
        Response.Write ( rs.RecordCount ) '83
        Response.Write ( "个 第" ) '83
        Response.Write ( page ) '83
        Response.Write ( "页/共" ) '83
        Response.Write ( rs.pagecount ) '83
        Response.Write ( "页  " & Chr ( 13 ) ) '83
        Response.Write ( "              " ) '84
        If AspToAspX_CheckDBNull ( page ) > 1 Then '84
        Response.Write ( vbCrLf )
            Response.Write ( "              <a href=""haoyou.aspx?page=1&userid=" ) '85
            Response.Write ( userid ) '85
            Response.Write ( """>[首 页]</a> " & Chr ( 13 ) ) '85
            Response.Write ( "              " ) '86
        Else '86
        Response.Write ( vbCrLf )
            Response.Write ( "              [首 页] " & Chr ( 13 ) ) '87
            Response.Write ( "              " ) '88
        End If '88
        Response.Write ( vbCrLf )
        Response.Write ( "              " ) '89
        If AspToAspX_CheckDBNull ( page ) > 1 Then '89
        Response.Write ( vbCrLf )
            Response.Write ( "              <a href=""haoyou.aspx?page=" ) '90
            Response.Write ( page - 1 ) '90
            Response.Write ( "&userid=" ) '90
            Response.Write ( userid ) '90
            Response.Write ( """>[上一页]</a> " & Chr ( 13 ) ) '90
            Response.Write ( "              " ) '91
        Else '91
        Response.Write ( vbCrLf )
            Response.Write ( "              [上一页] " & Chr ( 13 ) ) '92
            Response.Write ( "              " ) '93
        End If '93
        Response.Write ( vbCrLf )
        Response.Write ( "              " ) '94
        If AspToAspX_CheckDBNull ( page ) < rs.pagecount Then '94
        Response.Write ( vbCrLf )
            Response.Write ( "              <a href=""haoyou.aspx?page=" ) '95
            Response.Write ( page + 1 ) '95
            Response.Write ( "&userid=" ) '95
            Response.Write ( userid ) '95
            Response.Write ( """>[下一页]</a> " & Chr ( 13 ) ) '95
            Response.Write ( "              " ) '96
        Else '96
        Response.Write ( vbCrLf )
            Response.Write ( "              [下一页] " & Chr ( 13 ) ) '97
            Response.Write ( "              " ) '98
        End If '98
        Response.Write ( vbCrLf )
        Response.Write ( "              " ) '99
        If AspToAspX_CheckDBNull ( page ) < > rs.pagecount Then '99
        Response.Write ( vbCrLf )
            Response.Write ( "              <a href=""haoyou.aspx?page=" ) '100
            Response.Write ( rs.pagecount ) '100
            Response.Write ( "&userid=" ) '100
            Response.Write ( userid ) '100
            Response.Write ( """>[尾 页]</a> " & Chr ( 13 ) ) '100
            Response.Write ( "              " ) '101
        Else '101
        Response.Write ( vbCrLf )

⌨️ 快捷键说明

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