Index: branches/dev/html/admin/basis/mail.php
===================================================================
--- branches/dev/html/admin/basis/mail.php	(revision 13498)
+++ branches/dev/html/admin/basis/mail.php	(revision 13510)
@@ -20,10 +20,57 @@
 
 $conn = new SC_DBConn();
+$objQuery = new SC_Query();
 $objPage = new LC_Page();
 $objView = new SC_AdminView();
 $objSess = new SC_Session();
 
-// Ç§¾Ú²ÄÈÝ¤ÎÈ½Äê
+//Ç§¾Ú²ÄÈÝ¤ÎÈ½Äê
 sfIsSuccess($objSess);
+
+//------------------------------------------------------------------
+
+if (count($objPage->arrErr) == 0) {
+        
+        //-- ¸¡º÷¥Ç¡¼¥¿¼èÆÀ
+        $mail_list = $objQuery->getall("dtb_template");
+        print_r($mail_list);exit;
+        
+        // É½¼¨·ï¿ôÀßÄê
+        $page_rows = $objPage->arrForm['page_rows'];
+        if(is_numeric($page_rows)) {    
+            $page_max = $page_rows;
+        } else {
+            $page_max = SEARCH_PMAX;
+        }
+        
+        if ($objPage->arrForm['search_pageno'] == 0){
+            $objPage->arrForm['search_pageno'] = 1;
+        }
+        
+        $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();
+        }
+        
+        $objPage->search_data = $objQuery->conn->getAll($searchSql, $objSelect->arrVal);
+
+        // ¹Ô¿ô¤Î¼èÆÀ
+            $linemax = $objQuery->conn->getOne( $objSelect->getListCount(), $objSelect->arrVal);
+            $objPage->tpl_linemax = $linemax;               // ²¿·ï¤¬³ºÅö¤·¤Þ¤·¤¿¡£É½¼¨ÍÑ
+
+            // ¥Ú¡¼¥¸Á÷¤ê¤Î¼èÆÀ
+            $objNavi = new SC_PageNavi($_POST['search_pageno'], $linemax, $page_max, "fnCustomerPage", NAVI_PMAX);
+            $startno = $objNavi->start_row;
+            $objPage->arrPagenavi = $objNavi->arrPagenavi;      
+        }
+
+
+//-----------------------------------------------------------------
+
+
 
 $objPage->arrMailTEMPLATE = $arrMAILTEMPLATE;
