Index: branches/dev/html/admin/basis/mail.php
===================================================================
--- branches/dev/html/admin/basis/mail.php	(revision 13516)
+++ branches/dev/html/admin/basis/mail.php	(revision 13522)
@@ -35,8 +35,9 @@
         $sql = "SELECT * FROM dtb_templates";
         $mail_list = $objQuery->getall($sql);
+        
         print_r($mail_list);exit;
         
         // É½¼¨·ï¿ôÀßÄê
-        $page_rows = $objPage->arrForm['page_rows'];
+        $page_rows = $objQuery->count("dtb_templates");
         if(is_numeric($page_rows)) {    
             $page_max = $page_rows;
@@ -50,11 +51,5 @@
         
         $offset = $page_max * ($objPage->arrForm['search_pageno'] - 1);
-        $objSelect->setLimitOffset($page_max, $offset);     
-        
-        if ($_POST["mode"] == 'csv') {
-            $searchSql = $objSelect->getListCSV($arrColumnCSV);
-        }else{
-            $searchSql = $objSelect->getList();
-        }
+        $objSelect->setLimitOffset($page_max, $offset);
         
         $objPage->search_data = $objQuery->conn->getAll($searchSql, $objSelect->arrVal);
