Changeset 22796 for branches/version-2_12-dev/data/class/pages/admin/order/LC_Page_Admin_Order_ProductSelect.php
- Timestamp:
- 2013/05/02 18:11:36 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/pages/admin/order/LC_Page_Admin_Order_ProductSelect.php
r22567 r22796 32 32 * @version $Id$ 33 33 */ 34 class LC_Page_Admin_Order_ProductSelect extends LC_Page_Admin_Ex 35 { 34 class LC_Page_Admin_Order_ProductSelect extends LC_Page_Admin_Ex { 36 35 37 36 // }}} … … 43 42 * @return void 44 43 */ 45 function init() 46 { 44 function init() { 47 45 parent::init(); 48 46 $this->tpl_mainpage = 'order/product_select.tpl'; … … 61 59 * @return void 62 60 */ 63 function process() 64 { 61 function process() { 65 62 $this->action(); 66 63 $this->sendResponse(); … … 72 69 * @return void 73 70 */ 74 function action() 75 { 71 function action() { 76 72 77 73 $objDb = new SC_Helper_DB_Ex(); … … 82 78 83 79 $this->tpl_no = $this->getNo(array($_GET,$_POST)); 84 $this->shipping_id = $this->getShippingId(array($_GET,$_POST));85 80 86 81 switch ($this->getMode()) { … … 106 101 $this->tpl_javascript .= $this->getTplJavascript($objProduct); 107 102 $js_fnOnLoad = $this->getFnOnload($this->arrProducts); 108 $this->tpl_javascript .= 'function fnOnLoad() 109 {' . $js_fnOnLoad . '}'; 103 $this->tpl_javascript .= 'function fnOnLoad(){' . $js_fnOnLoad . '}'; 110 104 $this->tpl_onload .= 'fnOnLoad();'; 111 105 // 規格1クラス名 … … 138 132 * @param SC_Product $objProduct 139 133 */ 140 function getProductList($arrProductId, &$objProduct) 141 { 134 function getProductList($arrProductId, &$objProduct) { 142 135 $objQuery =& SC_Query_Ex::getSingletonInstance(); 143 136 … … 153 146 * @param array $arrProducts 154 147 */ 155 function getFnOnload($arrProducts) 156 { 148 function getFnOnload($arrProducts) { 157 149 foreach ($arrProducts as $arrProduct) { 158 150 $js_fnOnLoad .= "fnSetClassCategories(document.product_form{$arrProduct['product_id']});"; … … 165 157 * @param SC_Product $objProduct 166 158 */ 167 function getTplJavascript(&$objProduct) 168 { 159 function getTplJavascript(&$objProduct) { 169 160 return 'productsClassCategories = ' . SC_Utils_Ex::jsonEncode($objProduct->classCategories) . '; '; 170 161 } … … 175 166 * @param SC_Product $objProduct 176 167 */ 177 function getProducts($whereAndBind,&$objProduct, $page_max, $startno) 178 { 168 function getProducts($whereAndBind,&$objProduct, $page_max, $startno) { 179 169 $where = $whereAndBind['where']; 180 170 $bind = $whereAndBind['bind']; … … 196 186 * @param SC_Product $objProduct 197 187 */ 198 function getLineCount($whereAndBind,&$objProduct) 199 { 188 function getLineCount($whereAndBind,&$objProduct) { 200 189 $where = $whereAndBind['where']; 201 190 $bind = $whereAndBind['bind']; … … 213 202 * @param SC_FormParam $objFormParam 214 203 */ 215 function createWhere(&$objFormParam,&$objDb) 216 { 204 function createWhere(&$objFormParam,&$objDb) { 217 205 $arrForm = $objFormParam->getHashArray(); 218 206 $where = 'alldtl.del_flg = 0'; … … 254 242 * @param unknown_type $globalParams 255 243 */ 256 function getNo($globalParams) 257 { 244 function getNo($globalParams) { 258 245 foreach ($globalParams as $params) { 259 246 if (isset($params['no']) && $params['no']!= '') { … … 265 252 266 253 /** 267 * リクエストパラメーター shipping_id を取ってくる。268 * @param unknown_type $globalParams269 */270 function getShippingId($globalParams)271 {272 foreach ($globalParams as $params) {273 if (isset($params['shipping_id']) && $params['shipping_id']!= '') {274 return intval($params['shipping_id']);275 }276 }277 return null;278 }279 280 281 /**282 254 * 取得している並び順で並び替え 283 255 * @param $arrProduct_id 284 256 * @param $productList 285 257 */ 286 function sortProducts($arrProduct_id,$productList) 287 { 258 function sortProducts($arrProduct_id,$productList) { 288 259 $products = array(); 289 260 foreach ($productList as $item) { … … 301 272 * @return void 302 273 */ 303 function destroy() 304 { 274 function destroy() { 305 275 parent::destroy(); 306 276 } … … 310 280 * @param SC_FormParam $objFormParam 311 281 */ 312 function lfInitParam(&$objFormParam) 313 { 282 function lfInitParam(&$objFormParam) { 314 283 $objFormParam->addParam('オーダーID', 'order_id', INT_LEN, 'n', array('EXIST_CHECK', 'MAX_LENGTH_CHECK', 'NUM_CHECK')); 315 284 $objFormParam->addParam('商品名', 'search_name', STEXT_LEN, 'KVa', array('MAX_LENGTH_CHECK')); … … 317 286 $objFormParam->addParam('商品コード', 'search_product_code', LTEXT_LEN, 'KVa', array('MAX_LENGTH_CHECK', 'SPTAB_CHECK')); 318 287 $objFormParam->addParam('フッター', 'footer', LTEXT_LEN, 'KVa', array('MAX_LENGTH_CHECK', 'SPTAB_CHECK')); 319 $objFormParam->addParam('届け先ID', 'shipping_id', LTEXT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK'));320 288 } 321 289 }
Note: See TracChangeset
for help on using the changeset viewer.