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