You are here

修改ecshop后台 查看商品页面的每页商品数量

后台默认是15个有点少
每次总要从新给设置一下比较麻烦

admin\includes\inc_main.php

function page_and_size($filter)
{
    if (isset($_REQUEST['page_size']) && intval($_REQUEST['page_size']) > 0)
    {
        $filter['page_size'] = intval($_REQUEST['page_size']);
    }
    elseif (isset($_COOKIE['ECSCP']['page_size']) && intval($_COOKIE['ECSCP']['page_size']) > 0)
    {
        $filter['page_size'] = intval($_COOKIE['ECSCP']['page_size']);
    }
    else
    {
        $filter['page_size'] = 15;
    }

最后的$filter['page_size'] = 15;
改为$filter['page_size'] = 20;

关键字: 
文章类型: