Destoon Modifying the phone-side paging

Source: Internet
Author: User

1. global.func.php pages function and listpages function

Add $DT _touch at the beginning of the function, $newsamplepages variable

Global $DT _url, $DT, $L,$DT _touch, $newsamplepages;

function last include Dt_root. ' /api/pages. '. ($DT [' Pages_mode '] && $page < 100)? ' Default ': ' Sample '). PHP '; Change to

if ($newsamplepages) {//No matter what the case is, use simple paging on the phone side
Include Dt_root. ' /api/pages.newsample.php ';
}else{
Include Dt_root. ' /api/pages. '. ($DT [' Pages_mode '] && $page < 100)? ' Default ': ' Sample '). PHP ';
}

2, the API directory under the letter pages.newsample.php file

3. Where new paging styles are required such as User Center list paging

if ($DT _touch) {
$newsamplepages = 1; Simple paging on the mobile side
}

$lists = $do->get_list ($condition, $MOD [' Order ']);

Destoon Modifying the phone-side paging

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.