Changeset 10261 for temp/trunk
- Timestamp:
- 2006/12/06 09:30:07 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/html/admin/products/index.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/admin/products/index.php
r10260 r10261 236 236 237 237 // ¹Ô¿ô¤Î¼èÆÀ 238 //$linemax = $objQuery->count($from, $where, $arrval);239 238 $linemax = $objQuery->count("dtb_products", $where, $arrval); 240 239 $objPage->tpl_linemax = $linemax; // ²¿·ï¤¬³ºÅö¤·¤Þ¤·¤¿¡£É½¼¨ÍÑ … … 263 262 264 263 // ¼èÆÀÈϰϤλØÄê(³«»Ï¹ÔÈֹ桢¹Ô¿ô¤Î¥»¥Ã¥È) 265 //$objQuery->setlimitoffset($page_max, $startno); 264 if(DB_TYPE != "mysql"){ 265 $objQuery->setlimitoffset($page_max, $startno); 266 } 266 267 // ɽ¼¨½ç½ø 267 268 $objQuery->setorder($order); … … 271 272 global $arrViewWhere; 272 273 $arrWhere = split("[?]", $where); 273 $where_tmp = "";274 274 $where_tmp = " WHERE " . $arrWhere[0]; 275 275 for($i = 1; $i < count($arrWhere); $i++){ … … 278 278 $arrViewWhere["&&noncls_where&&"] = $where_tmp . " " . $objQuery->order . " " . $objQuery->setlimitoffset($page_max, $startno, true); 279 279 280 sfprintr($objQuery->option);281 sfprintr($objQuery->order);282 283 284 280 // ¸¡º÷·ë²Ì¤Î¼èÆÀ 285 281 $objPage->arrProducts = $objQuery->select($col, $from, $where, $arrval); 286 287 sfprintr($objQuery->getlastquery(false)); 288 282 289 283 break; 290 284 }
Note: See TracChangeset
for help on using the changeset viewer.
