id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	modified_flg
1008	ページ送りの取得の処理が冗長じゃないでしょうか	kimoto	somebody	"いたるところで

{{{
        //ページ送り用
        if (isset($_POST['pageno'])) {
            $this->tpl_pageno = htmlspecialchars($_POST['pageno'], ENT_QUOTES, CHAR_CODE);
        }

        $col = ""order_id, create_date, payment_id, payment_total"";
        $from = ""dtb_order"";
        $where = ""del_flg = 0 AND customer_id=?"";
        $arrval = array($objCustomer->getvalue('customer_id'));
        $order = ""order_id DESC"";

        $linemax = $objQuery->count($from, $where, $arrval);
        $this->tpl_linemax = $linemax;

            // ページ送りの取得
            $objNavi = new SC_PageNavi($this->tpl_pageno, $linemax, SEARCH_PMAX, ""fnNaviPage"", NAVI_PMAX);
            $this->tpl_strnavi = $objNavi->strnavi;		// 表示文字列
            $startno = $objNavi->start_row;

            // 取得範囲の指定(開始行番号、行数のセット)
            $objQuery->setLimitOffset(SEARCH_PMAX, $startno);

        // 表示順序
        $objQuery->setOrder($order);

        //購入履歴の取得
        $this->arrOrder = $objQuery->select($col, $from, $where, $arrval);
}}}

こんな処理をしていますが、


{{{
$objNavi = new SC_PageNavi($this->tpl_pageno, $this->getOrderData, SEARCH_PMAX, ""fnNaviPage"", NAVI_PMAX);
}}}

こんな感じでページングも検索結果も一度に表示できるように出来ないものでしょうか"	改善提案	closed	中	EC-CUBE2.11.0 リファクタリングProject	その他	2.11.0 β	修正済			0
