Changeset 2138


Ignore:
Timestamp:
2006/08/26 18:15:08 (20 years ago)
Author:
kakinaka
Message:

blank

Location:
temp/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/data/class/SC_CustomerList.php

    r2134 r2138  
    245245        } 
    246246         
    247         $limit = $array['page_rows']; 
    248         $offset = $array['page_rows'] * ($array['search_pageno'] - 1); 
    249 //      $offset = 0; 
    250         $this->setLimitOffset($limit, $offset); 
     247        // ɽ¼¨·ï¿ôÀßÄê 
     248        if ($array['page_rows'] > 0) { 
     249            $limit = $array['page_rows']; 
     250            $offset = $array['page_rows'] * ($array['search_pageno'] - 1); 
     251            $this->setLimitOffset($limit, $offset); 
     252        } 
    251253 
    252254        $this->setOrder( "customer_id DESC" ); 
  • temp/trunk/html/admin/customer/index.php

    r2136 r2138  
    145145        //-- ¸¡º÷¥Ç¡¼¥¿¼èÆÀ 
    146146        $objSelect = new SC_CustomerList($objPage->arrForm, "customer"); 
     147         
     148        // ɽ¼¨·ï¿ôÀßÄê 
     149        $page_rows = $objPage->arrForm['page_rows']; 
     150        if(is_numeric($page_rows)) {     
     151            $page_max = $page_rows; 
     152        } else { 
     153            $page_max = SEARCH_PMAX; 
     154        } 
     155        $offset = $page_max * ($objPage->arrForm['search_pageno'] - 1); 
     156        $objSelect->setLimitOffset($page_max, $offset);      
     157         
    147158        if ($_POST["mode"] == 'csv') { 
    148159            $searchSql = $objSelect->getListCSV($arrColumnCSV); 
     
    207218            $linemax = $objConn->getOne( $objSelect->getListCount(), $objSelect->arrVal); 
    208219            $objPage->tpl_linemax = $linemax;               // ²¿·ï¤¬³ºÅö¤·¤Þ¤·¤¿¡£É½¼¨ÍÑ 
    209              
    210             // ¥Ú¡¼¥¸Á÷¤ê¤Î½èÍý 
    211             if(is_numeric($_POST['page_rows'])) {    
    212                 $page_max = $_POST['page_rows']; 
    213             } else { 
    214                 $page_max = SEARCH_PMAX; 
    215             } 
     220 
    216221            // ¥Ú¡¼¥¸Á÷¤ê¤Î¼èÆÀ 
    217222            $objNavi = new SC_PageNavi($_POST['search_pageno'], $linemax, $page_max, "fnCustomerPage", NAVI_PMAX); 
Note: See TracChangeset for help on using the changeset viewer.