• customer service QQ:    WeChat: Contact number: 18613993467     

Yiyou eyoucms Modification of list pagination style

Suyou Network (10 years of experience), serves tens of thousands of companies, and has fixed transparent quotations. Domain name registration, hosting /One-stop service for server and website source code. A physical company, a professional team, worth choosing! Website building business: corporate website construction, company official website production, foreign trade website construction, website imitation, website copying, imitation site, foreign trade website construction, single-page customer service WeChat【 suyoufuwu】


Our eyoucms The code for list pagination is {eyou:pagelist listitem="info,index,end,pre,next,pageno" listsize="2"/}

So what should we do if we want to modify the style? Then we'll change it PHP File, file directory is /
core/library/think/paginator/driver
 Modification of list pagination style (Figure 1 )
These two PHP File is the file we want to modify.


Output style in 192 lines

 Modification of list pagination style (Figure 2 )

Similarly, the same is true for mobile phones. I hope the article will be helpful to everyone


If you need to modify the text on the previous page and the next page, you can refer to the following tutorial:

97 lines found  lang('sys5'),Replace with'common <strong>%s</strong>Page& nbsp;<strong>%s</strong>strip',

/**
     * common N Page N strip
     * @param string $text
     * @return string
     */
    protected function getTotalResult()
    {
        return sprintf(
            lang('sys5'),
            $this->lastPage,
            $this->total
        );
    }



166Start, the following paragraph

$pageArr = array();
if (in_array('index', $listitemArr)) {
    array_push($pageArr, $this->getFirstButton(lang('sys1')));
}
if (in_array('pre', $listitemArr)) {
    array_push($pageArr, $this->getPreviousButton(lang('sys2')));
}
if (in_array('pageno', $listitemArr)) {
    array_push($pageArr, $this->getLinks($listsize));
}
if (in_array('next', $listitemArr)) {
    array_push($pageArr, $this->getNextButton(lang('sys3')));
}
if (in_array('end', $listitemArr)) {
    array_push($pageArr, $this->getLastButton(lang('sys4')));
}
if (in_array('info', $listitemArr)) {
    array_push($pageArr, $this->getTotalResult());
}
$pageStr = implode(' ', $pageArr);

Change to

$pageArr = array();
if (in_array('index', $listitemArr)) {
    array_push($pageArr, $this->getFirstButton('front page'));
}
if (in_array('pre', $listitemArr)) {
    array_push($pageArr, $this->getPreviousButton('Previous page'));
}
if (in_array('pageno', $listitemArr)) {
    array_push($pageArr, $this->getLinks($listsize));
}
if (in_array('next', $listitemArr)) {
    array_push($pageArr, $this->getNextButton('Next page'));
}
if (in_array('end', $listitemArr)) {
    array_push($pageArr, $this->getLastButton('Last page'));
}
if (in_array('info', $listitemArr)) {
    array_push($pageArr, $this->getTotalResult());
}
$pageStr = implode(' ', $pageArr);


The above is "Yiyou" shared by Suyou Network with everyone eyoucms Modification of list pagination style", thank you very much for your patience to read this article, we will provide you with more information on reference, use or learning and communication. We can also provide you with: Enterprise website construction, website imitation, website copying, imitation site, foreign trade website construction, foreign trade website construction, company official website productionFor services, our company serves customers with the service concept of "integrity, professionalism, pragmatism and innovation". If you need cooperation, please scan the code to consult, and we will serve you sincerely.

TAG Label:Domain name registration Yiyou cms

National branch station

National branch station