Changeset 2138
- Timestamp:
- 2006/08/26 18:15:08 (20 years ago)
- Location:
- temp/trunk
- Files:
-
- 3 edited
-
data/Smarty/templates/admin/customer/index.tpl (modified) (previous)
-
data/class/SC_CustomerList.php (modified) (1 diff)
-
html/admin/customer/index.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/data/class/SC_CustomerList.php
r2134 r2138 245 245 } 246 246 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 } 251 253 252 254 $this->setOrder( "customer_id DESC" ); -
temp/trunk/html/admin/customer/index.php
r2136 r2138 145 145 //-- ¸¡º÷¥Ç¡¼¥¿¼èÆÀ 146 146 $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 147 158 if ($_POST["mode"] == 'csv') { 148 159 $searchSql = $objSelect->getListCSV($arrColumnCSV); … … 207 218 $linemax = $objConn->getOne( $objSelect->getListCount(), $objSelect->arrVal); 208 219 $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 216 221 // ¥Ú¡¼¥¸Á÷¤ê¤Î¼èÆÀ 217 222 $objNavi = new SC_PageNavi($_POST['search_pageno'], $linemax, $page_max, "fnCustomerPage", NAVI_PMAX);
Note: See TracChangeset
for help on using the changeset viewer.
