- Timestamp:
- 2011/07/29 15:17:30 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_11-dev/data/class/pages/mypage/LC_Page_Mypage_Delivery.php
r20970 r21072 85 85 $this->deleteOtherDeliv($customer_id, $objFormParam->getValue('other_deliv_id')); 86 86 break; 87 88 // スマートフォン版のもっと見るボタン用 89 case 'getList': 90 $arrData = $objFormParam->getHashArray(); 91 //別のお届け先情報 92 $arrOtherDeliv = $this->getOtherDeliv($customer_id, (($arrData['pageno'] - 1) * SEARCH_PMAX)); 93 $arrOtherDeliv['delivCount'] = count($arrOtherDeliv); 94 $this->arrOtherDeliv = $arrOtherDeliv; 95 echo SC_Utils_Ex::jsonEncode($this->arrOtherDeliv); 96 exit; 97 break; 87 98 88 99 // お届け先の表示 … … 96 107 //お届け先登録数 97 108 $this->tpl_linemax = count($this->arrOtherDeliv); 109 110 // 1ページあたりの件数 111 $this->dispNumber = SEARCH_PMAX; 98 112 } 99 113 … … 108 122 109 123 /** 110 * フォームパラメータ ーの初期化124 * フォームパラメータの初期化 111 125 * 112 126 * @return SC_FormParam … … 114 128 function lfInitParam(&$objFormParam) { 115 129 $objFormParam->addParam('お届け先ID', 'other_deliv_id', INT_LEN, '', array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK')); 130 $objFormParam->addParam("現在ページ", "pageno", INT_LEN, 'n', array("NUM_CHECK", "MAX_LENGTH_CHECK"), "", false); 116 131 } 117 132 … … 120 135 * 121 136 * @param integer $customerId 137 * @param integer $startno 122 138 * @return array 123 139 */ 124 function getOtherDeliv($customer_id ) {140 function getOtherDeliv($customer_id, $startno = '') { 125 141 $objQuery =& SC_Query_Ex::getSingletonInstance(); 126 142 $objQuery->setOrder('other_deliv_id DESC'); 143 //スマートフォン用の処理 144 if ($startno != '') { 145 $objQuery->setLimitOffset(SEARCH_PMAX, $startno); 146 } 127 147 return $objQuery->select('*', 'dtb_other_deliv', 'customer_id = ?', array($customer_id)); 128 148 }
Note: See TracChangeset
for help on using the changeset viewer.