Changeset 22567 for branches/version-2_12-dev/data/class/pages/admin/order/LC_Page_Admin_Order_ProductSelect.php
- Timestamp:
- 2013/02/18 19:09:54 (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
r22493 r22567 32 32 * @version $Id$ 33 33 */ 34 class LC_Page_Admin_Order_ProductSelect extends LC_Page_Admin_Ex { 34 class LC_Page_Admin_Order_ProductSelect extends LC_Page_Admin_Ex 35 { 35 36 36 37 // }}} … … 42 43 * @return void 43 44 */ 44 function init() { 45 function init() 46 { 45 47 parent::init(); 46 48 $this->tpl_mainpage = 'order/product_select.tpl'; … … 59 61 * @return void 60 62 */ 61 function process() { 63 function process() 64 { 62 65 $this->action(); 63 66 $this->sendResponse(); … … 69 72 * @return void 70 73 */ 71 function action() { 74 function action() 75 { 72 76 73 77 $objDb = new SC_Helper_DB_Ex(); … … 102 106 $this->tpl_javascript .= $this->getTplJavascript($objProduct); 103 107 $js_fnOnLoad = $this->getFnOnload($this->arrProducts); 104 $this->tpl_javascript .= 'function fnOnLoad(){' . $js_fnOnLoad . '}'; 108 $this->tpl_javascript .= 'function fnOnLoad() 109 {' . $js_fnOnLoad . '}'; 105 110 $this->tpl_onload .= 'fnOnLoad();'; 106 111 // 規格1クラス名 … … 133 138 * @param SC_Product $objProduct 134 139 */ 135 function getProductList($arrProductId, &$objProduct) { 140 function getProductList($arrProductId, &$objProduct) 141 { 136 142 $objQuery =& SC_Query_Ex::getSingletonInstance(); 137 143 … … 147 153 * @param array $arrProducts 148 154 */ 149 function getFnOnload($arrProducts) { 155 function getFnOnload($arrProducts) 156 { 150 157 foreach ($arrProducts as $arrProduct) { 151 158 $js_fnOnLoad .= "fnSetClassCategories(document.product_form{$arrProduct['product_id']});"; … … 158 165 * @param SC_Product $objProduct 159 166 */ 160 function getTplJavascript(&$objProduct) { 167 function getTplJavascript(&$objProduct) 168 { 161 169 return 'productsClassCategories = ' . SC_Utils_Ex::jsonEncode($objProduct->classCategories) . '; '; 162 170 } … … 167 175 * @param SC_Product $objProduct 168 176 */ 169 function getProducts($whereAndBind,&$objProduct, $page_max, $startno) { 177 function getProducts($whereAndBind,&$objProduct, $page_max, $startno) 178 { 170 179 $where = $whereAndBind['where']; 171 180 $bind = $whereAndBind['bind']; … … 187 196 * @param SC_Product $objProduct 188 197 */ 189 function getLineCount($whereAndBind,&$objProduct) { 198 function getLineCount($whereAndBind,&$objProduct) 199 { 190 200 $where = $whereAndBind['where']; 191 201 $bind = $whereAndBind['bind']; … … 203 213 * @param SC_FormParam $objFormParam 204 214 */ 205 function createWhere(&$objFormParam,&$objDb) { 215 function createWhere(&$objFormParam,&$objDb) 216 { 206 217 $arrForm = $objFormParam->getHashArray(); 207 218 $where = 'alldtl.del_flg = 0'; … … 243 254 * @param unknown_type $globalParams 244 255 */ 245 function getNo($globalParams) { 256 function getNo($globalParams) 257 { 246 258 foreach ($globalParams as $params) { 247 259 if (isset($params['no']) && $params['no']!= '') { … … 256 268 * @param unknown_type $globalParams 257 269 */ 258 function getShippingId($globalParams) { 270 function getShippingId($globalParams) 271 { 259 272 foreach ($globalParams as $params) { 260 273 if (isset($params['shipping_id']) && $params['shipping_id']!= '') { … … 271 284 * @param $productList 272 285 */ 273 function sortProducts($arrProduct_id,$productList) { 286 function sortProducts($arrProduct_id,$productList) 287 { 274 288 $products = array(); 275 289 foreach ($productList as $item) { … … 287 301 * @return void 288 302 */ 289 function destroy() { 303 function destroy() 304 { 290 305 parent::destroy(); 291 306 } … … 295 310 * @param SC_FormParam $objFormParam 296 311 */ 297 function lfInitParam(&$objFormParam) { 312 function lfInitParam(&$objFormParam) 313 { 298 314 $objFormParam->addParam('オーダーID', 'order_id', INT_LEN, 'n', array('EXIST_CHECK', 'MAX_LENGTH_CHECK', 'NUM_CHECK')); 299 315 $objFormParam->addParam('商品名', 'search_name', STEXT_LEN, 'KVa', array('MAX_LENGTH_CHECK'));
Note: See TracChangeset
for help on using the changeset viewer.