国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 開(kāi)發(fā) > 綜合 > 正文

一個(gè)顯示Grid的VBScript對(duì)象

2024-07-21 02:24:43
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友

商業(yè)源碼熱門(mén)下載www.html.org.cn

是根據(jù)ms提供的代碼修改而成,目前還不支持編輯,可以排序、查詢(xún)、分頁(yè)顯示
<%@ language=vbscript %>
<% option explicit %>
<%
class classdatagrid

private m_strsql
private m_strconn
private m_strrowcolor1
private m_strrowcolor2
private m_strmode
private m_strprocesspage
                        
private m_strtitle
private m_strrsname
private m_strfindfields

public property get sql()
    sql = m_strsql
end property

public property let sql(strsql)
    m_strsql = strsql
end property

public property get conn()
    conn = m_strconn
end property

public property let conn(strconn)
    m_strconn = strconn
end property

public property get rowcolor1()
    if isnull(m_strrowcolor1) or len(m_strrowcolor1) = 0 then
        rowcolor1 = "#ffffff"
    else
        rowcolor1 = m_strrowcolor1
    end if
end property

public property let rowcolor1(strrowcolor1)
    m_strrowcolor1 = strrowcolor1
end property

public property get rowcolor2()
    if isnull(m_strrowcolor2) or len(m_strrowcolor2) = 0 then
        rowcolor2 = "#00ffff"
    else
        rowcolor2 = m_strrowcolor2
    end if
end property

public property let rowcolor2(strrowcolor2)
    m_strrowcolor2 = strrowcolor2
end property

public property get mode()
    if isnull(m_strmode) or len(m_strmode) = 0 then
        mode = "view"
    else
        mode = m_strmode
    end if
end property

public property let mode(strmode)
    if strmode <> "view" and strmode <> "edit" then
        response.write ("模式錯(cuò)誤——只允許使用view和edit<br>")
        response.end
    else
        m_strmode = strmode
    end if
end property

public property get processpage()
    processpage = m_strprocesspage
end property

public property let processpage(strprocesspage)
    m_strprocesspage = strprocesspage
end property

public property get title()
    if isnull(m_strtitle) or len(m_strtitle) = 0 then
        title = "data grid"
    else
        title = m_strtitle
    end if
end property

public property let title(strtitle)
    m_strtitle = strtitle
end property

public property get rsname()
    if isnull(m_strrsname) or len(m_strrsname) = 0 then
        rsname = "grid"
    else
        rsname = m_strrsname
    end if
end property

public property let rsname(strrsname)
    m_strrsname = strrsname
end property

public property get findfields()
    findfields = m_strfindfields
end property

public property let findfields(strfindfields)
    m_strfindfields = strfindfields
end property

sub showdatagrid()

dim intpagenum
dim objconn
dim objrs
dim intabs
dim intcurrentpage
dim intfindcol
dim intpagesize
dim introw
dim intcol
dim i
dim intpos
dim intdisplayrows
dim strsort
dim strsortdir
dim strlastsort
dim strlastsortdir
dim strcolor
dim strfind
dim boolfind
dim boolfound

發(fā)表評(píng)論 共有條評(píng)論
用戶(hù)名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 武夷山市| 高平市| 三门县| 岑溪市| 清镇市| 镇巴县| 全州县| 固镇县| 贵南县| 益阳市| 阿克陶县| 额济纳旗| 咸丰县| 潞城市| 迁西县| 凌源市| 长春市| 湛江市| 临朐县| 家居| 曲阜市| 江安县| 前郭尔| 静安区| 镇江市| 扎兰屯市| 襄樊市| 庄浪县| 满洲里市| 昭平县| 顺平县| 黎川县| 仪陇县| 饶平县| 安顺市| 贵港市| 蒙阴县| 吉木萨尔县| 汪清县| 祁连县| 安宁市|