Changeset 19337 for branches/camp/camp-2_5-C/data/class/pages/admin/products/LC_Page_Admin_Products.php
- Timestamp:
- 2010/11/07 01:28:38 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/camp/camp-2_5-C/data/class/pages/admin/products/LC_Page_Admin_Products.php
r19260 r19337 87 87 if (!isset($_POST['mode'])) $_POST['mode'] = ""; 88 88 89 // 商品一覧での価格変更 89 90 if($_POST['mode'] === "price02_edit") { 90 91 $objQuery = new SC_Query(); … … 98 99 $data["price02"] = $_POST['price02_edit_value']; 99 100 $where = "product_id=" . $_POST['price02_edit_id']; 101 $objQuery->update("dtb_products_class", $data, $where); 102 if($objQuery->isError()) 103 { 104 $err_flag = true; 105 } 106 107 //トランザクション終了 108 if($err_flag) 109 { 110 $objQuery->rollback(); 111 echo("error"); 112 } 113 else 114 { 115 $objQuery->commit(); 116 echo("ok"); 117 } 118 //戻る 119 exit; 120 } 121 122 // 商品一覧での在庫変更 123 if($_POST['mode'] === "stock_edit") { 124 $objQuery = new SC_Query(); 125 126 //トランザクション開始 127 $objQuery->begin(); 128 //エラーフラグ初期化 129 $err_flag = false; 130 131 // データ更新 132 $data["stock"] = $_POST['stock_edit_value']; 133 $where = "product_id=" . $_POST['stock_edit_id']; 100 134 $objQuery->update("dtb_products_class", $data, $where); 101 135 if($objQuery->isError())
Note: See TracChangeset
for help on using the changeset viewer.