Changeset 15354 for branches/feature-module-update/data/class
- Timestamp:
- 2007/08/24 21:59:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update/data/class/pages/products/LC_Page_Products_List.php
r15344 r15354 58 58 function process() { 59 59 $conn = new SC_DBConn(); 60 $objDb = new SC_Helper_DB_Ex(); 60 61 61 62 //表示件数の選択 … … 133 134 $this = $layout->sfGetPageLayout($this, false, "products/list.php"); 134 135 135 if(isset($_POST['mode']) && $_POST['mode'] == "cart" 136 if(isset($_POST['mode']) && $_POST['mode'] == "cart" 136 137 && $_POST['product_id'] != "") { 137 138 138 139 // 値の正当性チェック 139 if(!SC_Utils_Ex::sfIsInt($_POST['product_id']) || ! SC_Utils_Ex::sfIsRecord("dtb_products", "product_id", $_POST['product_id'], "del_flg = 0 AND status = 1")) {140 if(!SC_Utils_Ex::sfIsInt($_POST['product_id']) || !$objDb->sfIsRecord("dtb_products", "product_id", $_POST['product_id'], "del_flg = 0 AND status = 1")) { 140 141 SC_Utils_Ex::sfDispSiteError(PRODUCT_NOT_FOUND); 141 142 } else { … … 158 159 $objCartSess->setPrevURL($_SERVER['REQUEST_URI']); 159 160 $objCartSess->addProduct(array($_POST['product_id'], $classcategory_id1, $classcategory_id2), $_POST[$quantity]); 160 header("Location: " . URL_CART_TOP);161 $this->sendRedirect($this->getLocation(URL_CART_TOP)); 161 162 exit; 162 163 } 163 164 } 164 165 } 165 166 166 167 167 $this->tpl_subtitle = $tpl_subtitle; … … 228 228 // カテゴリからのWHERE文字列取得 229 229 if ( $category_id ) { 230 list($tmp_where, $arrval) = SC_Utils_Ex::sfGetCatWhere($category_id);230 list($tmp_where, $arrval) = $objDb->sfGetCatWhere($category_id); 231 231 if($tmp_where != "") { 232 232 $where.= " AND $tmp_where";
Note: See TracChangeset
for help on using the changeset viewer.