- Timestamp:
- 2013/06/08 16:35:27 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/data/class/pages/products/LC_Page_Products_List.php
r22833 r22856 22 22 */ 23 23 24 // {{{ requires25 24 require_once CLASS_EX_REALDIR . 'page_extends/LC_Page_Ex.php'; 26 25 … … 34 33 class LC_Page_Products_List extends LC_Page_Ex 35 34 { 36 37 // {{{ properties38 39 35 /** テンプレートクラス名1 */ 40 36 var $tpl_class_name1 = array(); … … 61 57 var $tpl_rnd = ''; 62 58 63 // }}}64 // {{{ functions65 59 66 60 /** … … 99 93 function action() 100 94 { 101 102 95 $objProduct = new SC_Product_Ex(); 103 96 … … 137 130 138 131 switch ($this->getMode()) { 139 140 132 case 'json': 141 133 $this->doJson($objProduct); … … 167 159 function lfGetCategoryId($category_id) 168 160 { 169 170 161 // 指定なしの場合、0 を返す 171 162 if (empty($category_id)) return 0; … … 192 183 function lfGetProductsList($searchCondition, $disp_number, $startno, $linemax, &$objProduct) 193 184 { 194 195 185 $arrOrderVal = array(); 196 186 … … 245 235 $objProduct->setProductsClassByProductIds($arrProductId); 246 236 $arrProducts['productStatus'] = $objProduct->getProductStatus($arrProductId); 237 247 238 return $arrProducts; 248 239 } … … 251 242 function lfCheckError($product_id, &$arrForm, $tpl_classcat_find1, $tpl_classcat_find2) 252 243 { 253 254 244 // 入力データを渡す。 255 245 $objErr = new SC_CheckError_Ex($arrForm); … … 325 315 $arrSearch['name'] = $arrSearchData['name']; 326 316 } 317 327 318 return $arrSearch; 328 319 } … … 339 330 $objQuery->setWhere($searchCondition['where_for_count']); 340 331 $objProduct = new SC_Product_Ex(); 332 341 333 return $objProduct->findProductCount($objQuery, $searchCondition['arrval']); 342 334 } … … 412 404 foreach ($arrProducts as $key => $value) { 413 405 if ($arrProducts[$key]['product_id'] == $product_id) { 414 415 406 $arrProducts[$key]['product_class_id'] = $arrForm['product_class_id']; 416 407 $arrProducts[$key]['classcategory_id1'] = $arrForm['classcategory_id1']; … … 421 412 } 422 413 } 414 423 415 return $js_fnOnLoad; 424 416 } … … 446 438 function setStatusDataTo($arrProducts, $arrStatus, $arrStatusImage) 447 439 { 448 449 440 foreach ($arrProducts['productStatus'] as $product_id => $arrValues) { 450 441 for ($i = 0; $i < count($arrValues); $i++) { … … 460 451 } 461 452 } 453 462 454 return $arrProducts; 463 455 }
Note: See TracChangeset
for help on using the changeset viewer.