Server IP : 108.163.255.210 / Your IP : 18.119.248.48 Web Server : Apache System : Linux blossom.urlnameserver.com 3.10.0-1160.80.1.el7.x86_64 #1 SMP Tue Nov 8 15:48:59 UTC 2022 x86_64 User : ( 1172) PHP Version : 7.2.34 Disable Function : eval,escapeshellarg,proc_close,proc_get_status,proc_nice,proc_open,symlink,system,pcntl_exec,getrusage,chown,chgp,closelog,openlog,syslog,define_syslog_variables,php_ini_loaded_file,getservbyname,getservbyport,posix_getgid,posix_getgrgid,proc_terminate,pfsockopen,apache_child_terminate,posix_mkfifo,posix_setpgid,posix_setuid,hypot,pg_host,pos,posix_access,posix_getcwd,posix_getservbyname,myshellexec,getpid,posix_getsid,posix_isatty,posix_kill,posix_mknod,posix_setgid,posix_setsid,posix_setuid,posix_times,posix_uname,ps_fill,posix_getpwuid,global,ini_restore,zip_open,zip_read,rar_open,bzopen,bzread,bzwrite,apache_get_modules,apache_get_version,phpversionphpinfo,php_ini_scanned_files,get_current_user,disk_total_space,diskfreespace,leak,imap_list,hypo,filedump,safe_mode,getmygid,apache_getenv,apache_setenv,bzread,bzwrite,bzopen,phpini,higlight_file,dos_conv,get_cwd,er_log,cmd,e_name,vdir,get_dir,only_read,ftok,ftpexec,posix_getpwnam,mysql_list_dbs,disk_free_space,session_save_path,confirm_phpdoc_compiled,zip_entry_rea,php_u,psockopen,crack_opendict,crack_getlastmessage,crack_closedict,crack_check,fpassthru,posix_get_last_error,posix_getlogin,posix_getgroups,posix_strerror,posix_getrlimit,posix_getpgrp,posix_getgrnam,pos,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/unilinki/www/Intellilead/includes/ |
Upload File : |
<?php class PagerClass { var $noCols = 1; var $thispage = "index.php"; var $noRows = 10; var $noDbRows = 10; var $curFetchedRows = 0; var $query = ""; var $PageResult = ""; var $style = "V"; var $showHeader=0; var $mainheaderContent = ""; var $headerContent = ""; var $pWidth = 100; var $isRowPage = true; var $isGotoPage = true; var $isTopMidContent = true; var $noTotalRows = 0; var $curPage = 1; var $InitLimit = 0; var $LastLimit = 1; var $TotalNoPages = 1; var $exactHeader = false; var $isFbtn = true; var $isPbtn = true; var $isNbtn = true; var $isLbtn = true; var $isFbtnText = "First"; var $isPbtnText = "←"; var $isNbtnText = "→"; var $isLbtnText = "Last"; var $ispaging = true; var $pagingStyle = "left"; var $breakneed = "Yes"; function SetCurpage($cpage) { if(stristr($cpage, '?') === FALSE) { $this->thispage = $cpage.'?'; } else { $this->thispage = $cpage.'&'; } } function SetGameId($gid) { $this->gameid=$gid; } function showNumOfRecords($nr){ $this->isRowPage = $nr; } function showPageCurrentInfo($pci){ $this->isTopMidContent = $pci; } function showGotoPage($gtp){ $this->isGotoPage = $gtp; } function SetPagingStyle($isP=true,$PStt="left") { $this->ispaging = $isP; $this->pagingStyle = $PStt; } function showFirstButton($btntxt="",$btnimg="", $isbtn=true) { if($isbtn) { if($btnimg!=""){ $this->isFbtnText="<img src='".$btnimg."' alt='' border='0' />"; } else{ $this->isFbtnText=$btntxt; } } else{ $this->isFbtn=false; } } function showPrevButton($btntxt="",$btnimg="", $isbtn=true) { if($isbtn) { if($btnimg!=""){ $this->isPbtnText="<img src='".$btnimg."' alt='' border='0' />"; } else{ $this->isPbtnText=$btntxt; } } else{ $this->isPbtn=false; } } function showNextButton($btntxt="",$btnimg="", $isbtn=true) { if($isbtn) { if($btnimg!=""){ $this->isNbtnText="<img src='".$btnimg."' alt='' border='0' />"; } else{ $this->isNbtnText=$btntxt; } } else{ $this->isNbtn=false; } } function showLastButton($btntxt="",$btnimg="", $isbtn=true) { if($isbtn) { if($btnimg!=""){ $this->isLbtnText="<img src='".$btnimg."' alt='' border='0' />"; } else{ $this->isLbtnText=$btntxt; } } else{ $this->isLbtn=false; } } function showPagerContent() { $spc = ""; if(($this->ispaging)&&($this->TotalNoPages>1)) { if(($this->isFbtn && $this->isLbtn)||($this->isPbtn && $this->isNbtn)) { $createAnch=""; if(($this->TotalNoPages<$this->curPage)||($this->curPage<1)){ $this->curPage=1; } if($this->curPage<$this->TotalNoPages) { $this->isNbtnText = "<li><a href='".$this->thispage."page=".($this->curPage+1)."'>".$this->isNbtnText."</a></li>"; $this->isLbtnText = "<li><a href='".$this->thispage."page=".$this->TotalNoPages."'>".$this->isLbtnText."</a></li>"; }else{ $this->isNbtnText=""; $this->isLbtnText=""; } if($this->curPage>1) { $this->isPbtnText = "<li><a href='".$this->thispage."page=".($this->curPage-1)."'>".$this->isPbtnText."</a></li>"; $this->isFbtnText = "<li><a href='".$this->thispage."page=1'>".$this->isFbtnText."</a></li>"; }else{ $this->isPbtnText=""; $this->isFbtnText=""; } $pagetodisp=4; $totdisp = ($pagetodisp*2)-1; $q=1; for($l=1;$l<=$this->TotalNoPages;$l++) { if($q<=$totdisp) { if(($this->curPage>=$pagetodisp)&&($this->curPage<=($this->TotalNoPages-$pagetodisp))) { if($l==$this->curPage) { $createAnch.="<li><a href='#' class='active'>".$l."</a>"; $q++; }else{ if($l>($this->curPage-$pagetodisp)){ $createAnch.="<li><a href='".$this->thispage."page=".$l."' class='active2'>".$l."</a></li>"; $q++; } } } else { if($l==$this->curPage){ $createAnch.="<li><a href='#' class='active'>".$l."</a>"; $q++; }else { if($this->curPage>=($this->TotalNoPages+1-$totdisp)){ if($l>=($this->TotalNoPages+1-$totdisp)){ $createAnch.="<li><a href='".$this->thispage."page=".$l."'>".$l."</a></li>"; $q++; } } else { $createAnch.="<li><a href='".$this->thispage."page=".$l."'>".$l."</a></li>"; $q++; } } } } } if(($this->isPbtn)&&($this->isNbtn)){ $createAnch = $this->isPbtnText.$createAnch.$this->isNbtnText; } if(($this->isFbtn)&&($this->isLbtn)){ $createAnch = $this->isFbtnText.$createAnch.$this->isLbtnText; } $spc = '<div class="dataTables_paginate paging_bootstrap pagination" style="margin: 0;"><ul class="pagination pull-right">'.$createAnch.'</ul></div>'; } } return $spc; } function MyPaging($tRows, $limit=10) { $this->SetDbRows($limit); $this->SetTotalRows($tRows); $start=($this->curPage-1)*$limit; //$totr = $nrow*$cp; return " LIMIT ".$start.", ".$limit; } function showEntries($currNoOfEntries){ if($currNoOfEntries>0){ $start=($this->curPage-1)*$this->noDbRows; $from=$start+1; $to=$start+$currNoOfEntries; return "Showing ".$from." to ".$to." of ".$this->noTotalRows." entries"; }else return ""; } function CalculateLimit() { $this->LastLimit = $this->noDbRows*($this->curPage); if($this->curPage>1) { $this->InitLimit = $this->noDbRows*($this->curPage-1); } if($this->noTotalRows>=$this->LastLimit) { $this->curFetchedRows = $this->noRows; } else { $this->curFetchedRows = $this->noTotalRows-$this->InitLimit;} } function setCurrentPage($cp) { $this->curPage = $cp; } function SetTotalRows($numr) { $this->noTotalRows = $numr; if(($this->noTotalRows%$this->noDbRows)==0){ $this->TotalNoPages =floor($this->noTotalRows/$this->noDbRows); } else{ $this->TotalNoPages = floor($this->noTotalRows/$this->noDbRows)+1; } } function SetDbRows($nd) { if(intval($nd)>0) { $this->noRows = $nd; $this->noDbRows = $nd; //*$this->noCols; } } } ?>