HEX
Server: nginx/1.16.1
System: Linux iZ7xv2zauie3qihz0jlnrxZ 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: www (1000)
PHP: 7.2.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/shzthfdcpg.com/wp-content/themes/shzhaotao/js/internal_page.js
var InnerPage,PageHtml,TheContent,A_TheContent;
var currentPage=0;
var pagecount=0;
var P=6; //表示开始时显示的页码总数
var M=3; //超过p页后左右两边显示页码数
var LastPage;
function Build_InnerPage()
 {
   PageHtml="";
  if(currentPage<P)
   {
     LastPage=P;
     if(LastPage>pagecount)
     {
       LastPage=pagecount;
     }
     for(i=1;i<=LastPage;i++)
      {
      if(currentPage==i)
        {
         PageHtml+=" <span class='c'>"+i+"</span>";
        }
       else
       {
        PageHtml+=" <a href='javascript:page("+i+")'>"+i+"</a>";
       }
     }
   } 
  else
   {
     LastPage=currentPage+M;
     if(LastPage>pagecount)
     {
       LastPage=pagecount;
     }
     for(i=currentPage-M;i<=LastPage;i++)
      {
      if(currentPage==i)
        {
         PageHtml+=" <span class='c'>"+i+"</span>";
        }
       else
       {
        PageHtml+=" <a href='javascript:page("+i+")'>"+i+"</a>";
       }
     }

   }

    if(currentPage>1)
    {
     PageHtml=" <a href='javascript:page(1)' class='firstpage'>首页</a> <a href='javascript:page("+(currentPage-1)+")' class='prevpage'>上一页</a>"+PageHtml;
    }
   if(currentPage>=1 && currentPage<pagecount)
    {
     PageHtml+=" <a href='javascript:page("+(currentPage+1)+")' class='nextpage'>下一页</a> <a href='javascript:page("+(pagecount)+")' class='lastpage'>尾页</a>";
    }
  InnerPage.innerHTML=PageHtml+" <span>页次:"+currentPage+"/"+pagecount+"</span>";
 }

function page(j)
{ 
 currentPage=j;
 document.documentElement.scrollTop=0;
 ContentObj.innerHTML=A_TheContent[currentPage-1];
 Build_InnerPage();
}

var ContentObj=document.getElementById("Content");
if(ContentObj!=null)
{
  TheContent=ContentObj.innerHTML;
  //A_TheContent=TheContent.split(/<div style=\"page-break-after:\s*always;*\"><span style=\"display:\s*none;*\">&nbsp;<\/span><\/div>/i);
  A_TheContent=TheContent.split(/<hr\s*style=\"page-break-after:\s*always[;]?"\s*class=[\"]?ke-pagebreak[\"]?>/i);
  pagecount=A_TheContent.length;
  if(pagecount>1)
  {
    document.write('<div class="sublanmu_page" id="ContentInnerPage" align="center"></div>');
    InnerPage=document.getElementById("ContentInnerPage");
    page(1);
  }
}