国产探花免费观看_亚洲丰满少妇自慰呻吟_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ā)表
主站蜘蛛池模板: 揭阳市| 玉环县| 邵武市| 钦州市| 泾阳县| 枣阳市| 灵山县| 徐闻县| 宜兰县| 文成县| 咸宁市| 石棉县| 中山市| 寿光市| 涟水县| 和静县| 洪泽县| 礼泉县| 苍山县| 湖口县| 衡水市| 巴林右旗| 揭东县| 石林| 台前县| 通道| 扶余县| 岚皋县| 莫力| 通榆县| 郧西县| 天等县| 海晏县| 河西区| 赣州市| 体育| 沙田区| 隆回县| 灵寿县| 即墨市| 玉屏|