濮阳杆衣贸易有限公司

主頁 > 知識(shí)庫 > ShowPage 顯示“上一頁 下一頁”等信息的封裝代碼

ShowPage 顯示“上一頁 下一頁”等信息的封裝代碼

熱門標(biāo)簽:河北智能外呼系統(tǒng)軟件 伊春外呼業(yè)務(wù)系統(tǒng) 調(diào)度系統(tǒng)外呼 綿陽防封電銷卡價(jià)格 福建外呼增值業(yè)務(wù)線路 中國辦理電信400電話 電銷機(jī)器人教育 電銷機(jī)器人源碼網(wǎng)盤下載 宜賓語音外呼系統(tǒng)軟件
'**************************************************
'函數(shù)名:ShowPage
'作  用:顯示“上一頁 下一頁”等信息
'參  數(shù):sFileName  ----鏈接地址
'       TotalNumber ----總數(shù)量
'       MaxPerPage  ----每頁數(shù)量
'       ShowTotal   ----是否顯示總數(shù)量
'       ShowAllPages ---是否用下拉列表顯示所有頁面以供跳轉(zhuǎn)。有某些頁面不能使用,否則會(huì)出現(xiàn)JS錯(cuò)誤。
'       strUnit     ----計(jì)數(shù)單位
'返回值:“上一頁 下一頁”等信息的HTML代碼
'**************************************************
function ShowPage(sFileName,TotalNumber,MaxPerPage,ShowTotal,ShowAllPages,strUnit)
    dim TotalPage,strTemp,strUrl,i

    if TotalNumber=0 or MaxPerPage=0 or isNull(MaxPerPage) then
        ShowPage=""
        exit function
    end if
    if totalnumber mod maxperpage=0 then
        TotalPage= totalnumber \&;maxperpage
      Else
        TotalPage= totalnumber \&;maxperpage+1
      end if
    if CurrentPage>TotalPage then CurrentPage=TotalPage

      strTemp= "table align='center'>tr>td>"
    if ShowTotal=true then 
        strTemp=strTemp  "共 b>"  totalnumber  "/b> "  strUnit  "nbsp;nbsp;"
    end if
    strUrl=JoinChar(sfilename)
      if CurrentPage2 then
        strTemp=strTemp  "首頁 上一頁nbsp;"
      Else
        strTemp=strTemp  "a href='"  strUrl  "page=1'>首頁/a>nbsp;"
        strTemp=strTemp  "a href='"  strUrl  "page="  (CurrentPage-1)  "'>上一頁/a>nbsp;"
      end if

      if CurrentPage>=TotalPage then
        strTemp=strTemp  "下一頁 尾頁"
      Else
        strTemp=strTemp  "a href='"  strUrl  "page="  (CurrentPage+1)  "'>下一頁/a>nbsp;"
        strTemp=strTemp  "a href='"  strUrl  "page="  TotalPage  "'>尾頁/a>"
      end if
       strTemp=strTemp  "nbsp;頁次:strong>font color=red>"  CurrentPage  "/font>/"  TotalPage  "/strong>頁 "
        strTemp=strTemp  "nbsp;b>"  maxperpage  "/b>"  strUnit  "/頁"
    if ShowAllPages=True then
        strTemp=strTemp  "nbsp;nbsp;轉(zhuǎn)到第input type='text' name='page' size='3' maxlength='5' value='"  CurrentPage  "' onKeyPress=""if (event.keyCode==13) window.location='"  strUrl  "page="  "'+this.value;""'>頁"
         'strTemp  = strTemp "nbsp;Input type=""button""  onClick=""window.location.href='"  strUrl  "page='+document.all.page.value;""  name=button1  value=GO >"
    end if
    strTemp=strTemp  "/td>/tr>/table>"
    ShowPage=strTemp
end function

標(biāo)簽:優(yōu)質(zhì)小號(hào) 延邊 那曲 銅川 河池 蘇州 電商邀評(píng) 新鄉(xiāng)

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《ShowPage 顯示“上一頁 下一頁”等信息的封裝代碼》,本文關(guān)鍵詞  ShowPage,顯示,上一頁,下,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《ShowPage 顯示“上一頁 下一頁”等信息的封裝代碼》相關(guān)的同類信息!
  • 本頁收集關(guān)于ShowPage 顯示“上一頁 下一頁”等信息的封裝代碼的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    宁武县| 龙井市| 得荣县| 江油市| 闸北区| 牟定县| 陆丰市| 班玛县| 呼和浩特市| 建湖县| 长顺县| 晋中市| 牡丹江市| 嘉定区| 靖安县| 巴青县| 河曲县| 盐边县| 连平县| 花莲县| 宁乡县| 竹溪县| 鄂托克前旗| 宝丰县| 栾川县| 石渠县| 宾阳县| 绥滨县| 郁南县| 麦盖提县| 西乌珠穆沁旗| 虞城县| 宿迁市| 安宁市| 馆陶县| 甘孜县| 略阳县| 池州市| 蓝山县| 勐海县| 集安市|