Changeset 17497 for branches/version-2/data/class
- Timestamp:
- 2008/08/05 20:02:22 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2/data/class/pages/admin/products/LC_Page_Admin_Products_Product.php
r17345 r17497 96 96 $this->objUpFile->setHiddenFileList($_POST); 97 97 98 // 規格の有り無し判定 99 $this->tpl_nonclass = $this->lfCheckNonClass($_POST['product_id']); 100 98 101 // 検索パラメータの引き継ぎ 99 102 foreach ($_POST as $key => $val) { … … 139 142 $this->arrRecommend = $this->lfPreGetRecommendProducts($_POST['product_id']); 140 143 141 // 規格登録ありなし判定142 $this->tpl_nonclass = $this->lfCheckNonClass($_POST['product_id']);143 144 $this->lfProductPage(); // 商品登録ページ 144 145 } … … 146 147 // 商品登録・編集 147 148 case 'edit': 148 // 規格登録ありなし判定149 $tpl_nonclass = $this->lfCheckNonClass($_POST['product_id']);150 151 149 if($_POST['product_id'] == "" and SC_Utils_Ex::sfIsInt($_POST['copy_product_id'])){ 152 $tpl_nonclass = $this->lfCheckNonClass($_POST['copy_product_id']); 153 } 154 $this->tpl_nonclass = $tpl_nonclass; 150 $this->tpl_nonclass = $this->lfCheckNonClass($_POST['copy_product_id']); 151 } 155 152 156 153 // 入力値の変換 … … 198 195 // 確認ページからの戻り 199 196 case 'confirm_return': 200 // 規格登録ありなし判定201 $this->tpl_nonclass = $this->lfCheckNonClass($_POST['product_id']);202 197 $this->lfProductPage(); // 商品登録ページ 203 198 break; … … 438 433 $sqlval['product_id'] = $product_id; 439 434 } 440 435 441 436 // INSERTの実行 442 437 $sqlval['create_date'] = "Now()"; 443 438 $objQuery->insert("dtb_products", $sqlval); 444 439 445 440 // product_id 取得(MySQLの場合) 446 441 if(DB_TYPE=='mysql'){ 447 442 $product_id = $objQuery->nextval("dtb_products", "product_id"); 448 443 } 449 444 450 445 // カテゴリを更新 451 446 $objDb->updateProductCategories($arrList['category_id'], $product_id); … … 687 682 if($forced) $this->objUpFile->save_file[$arrImageKey[$to_key]] = ""; 688 683 689 if(empty($this->objUpFile->temp_file[$arrImageKey[$to_key]]) && 684 if(empty($this->objUpFile->temp_file[$arrImageKey[$to_key]]) && 690 685 empty($this->objUpFile->save_file[$arrImageKey[$to_key]])) { 691 686
Note: See TracChangeset
for help on using the changeset viewer.