Index: temp/trunk/html/admin/products/index.php
===================================================================
--- temp/trunk/html/admin/products/index.php	(revision 10260)
+++ temp/trunk/html/admin/products/index.php	(revision 10261)
@@ -236,5 +236,4 @@
 
 			// ¹Ô¿ô¤Î¼èÆÀ
-			//$linemax = $objQuery->count($from, $where, $arrval);
 			$linemax = $objQuery->count("dtb_products", $where, $arrval);
 			$objPage->tpl_linemax = $linemax;				// ²¿·ï¤¬³ºÅö¤·¤Þ¤·¤¿¡£É½¼¨ÍÑ
@@ -263,5 +262,7 @@
 
 			// ¼èÆÀÈÏ°Ï¤Î»ØÄê(³«»Ï¹ÔÈÖ¹æ¡¢¹Ô¿ô¤Î¥»¥Ã¥È)
-			//$objQuery->setlimitoffset($page_max, $startno);
+			if(DB_TYPE != "mysql"){
+				$objQuery->setlimitoffset($page_max, $startno);
+			}
 			// É½¼¨½ç½ø
 			$objQuery->setorder($order);
@@ -271,5 +272,4 @@
 			global $arrViewWhere;
 			$arrWhere = split("[?]", $where);
-			$where_tmp = "";
 			$where_tmp = " WHERE " . $arrWhere[0];
 			for($i = 1; $i < count($arrWhere); $i++){
@@ -278,13 +278,7 @@
 			$arrViewWhere["&&noncls_where&&"] = $where_tmp . " " . $objQuery->order . " " .  $objQuery->setlimitoffset($page_max, $startno, true);
 			
-			sfprintr($objQuery->option);
-			sfprintr($objQuery->order);
-			
-			
 			// ¸¡º÷·ë²Ì¤Î¼èÆÀ
 			$objPage->arrProducts = $objQuery->select($col, $from, $where, $arrval);
-			
-			sfprintr($objQuery->getlastquery(false));
-			
+
 			break;
 		}
