Changeset 10261 for temp/trunk


Ignore:
Timestamp:
2006/12/06 09:30:07 (20 years ago)
Author:
kaki
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/html/admin/products/index.php

    r10260 r10261  
    236236 
    237237            // ¹Ô¿ô¤Î¼èÆÀ 
    238             //$linemax = $objQuery->count($from, $where, $arrval); 
    239238            $linemax = $objQuery->count("dtb_products", $where, $arrval); 
    240239            $objPage->tpl_linemax = $linemax;               // ²¿·ï¤¬³ºÅö¤·¤Þ¤·¤¿¡£É½¼¨ÍÑ 
     
    263262 
    264263            // ¼èÆÀÈϰϤλØÄê(³«»Ï¹ÔÈֹ桢¹Ô¿ô¤Î¥»¥Ã¥È) 
    265             //$objQuery->setlimitoffset($page_max, $startno); 
     264            if(DB_TYPE != "mysql"){ 
     265                $objQuery->setlimitoffset($page_max, $startno); 
     266            } 
    266267            // ɽ¼¨½ç½ø 
    267268            $objQuery->setorder($order); 
     
    271272            global $arrViewWhere; 
    272273            $arrWhere = split("[?]", $where); 
    273             $where_tmp = ""; 
    274274            $where_tmp = " WHERE " . $arrWhere[0]; 
    275275            for($i = 1; $i < count($arrWhere); $i++){ 
     
    278278            $arrViewWhere["&&noncls_where&&"] = $where_tmp . " " . $objQuery->order . " " .  $objQuery->setlimitoffset($page_max, $startno, true); 
    279279             
    280             sfprintr($objQuery->option); 
    281             sfprintr($objQuery->order); 
    282              
    283              
    284280            // ¸¡º÷·ë²Ì¤Î¼èÆÀ 
    285281            $objPage->arrProducts = $objQuery->select($col, $from, $where, $arrval); 
    286              
    287             sfprintr($objQuery->getlastquery(false)); 
    288              
     282 
    289283            break; 
    290284        } 
Note: See TracChangeset for help on using the changeset viewer.