Changeset 15350 for branches/feature-module-update
- Timestamp:
- 2007/08/24 21:46:51 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update/data/class/pages/admin/products/LC_Page_Admin_Products.php
r15342 r15350 51 51 function process() { 52 52 $objView = new SC_AdminView(); 53 53 $objDb = new SC_Helper_DB_Ex(); 54 54 $objDate = new SC_Date(); 55 55 … … 93 93 case 'search_product_flag': 94 94 case 'search_status': 95 $this->arrHidden[$key] = sfMergeParamCheckBoxes($val);95 $this->arrHidden[$key] = SC_Utils_Ex::sfMergeParamCheckBoxes($val); 96 96 if(!is_array($val)) { 97 97 $this->arrForm[$key] = split("-", $val); … … 114 114 // ランク付きレコードの削除 115 115 $where = "category_id = " . addslashes($_POST['category_id']); 116 sfDeleteRankRecord("dtb_products", "product_id", $_POST['product_id'], $where);116 $objDb->sfDeleteRankRecord("dtb_products", "product_id", $_POST['product_id'], $where); 117 117 } else { 118 sfDeleteRankRecord("dtb_products", "product_id", $_POST['product_id']);118 $objDb->sfDeleteRankRecord("dtb_products", "product_id", $_POST['product_id']); 119 119 } 120 120 // 子テーブル(商品規格)の削除 … … 123 123 124 124 // 件数カウントバッチ実行 125 SC_Utils_Ex::sfCategory_Count($objQuery);125 $objDb->sfCategory_Count($objQuery); 126 126 } 127 127 … … 182 182 break; 183 183 case 'search_startyear': // 登録更新日(FROM) 184 $date = sfGetTimestamp($_POST['search_startyear'], $_POST['search_startmonth'], $_POST['search_startday']);184 $date = SC_Utils_Ex::sfGetTimestamp($_POST['search_startyear'], $_POST['search_startmonth'], $_POST['search_startday']); 185 185 $where.= " AND update_date >= '" . $_POST['search_startyear'] . "/" . $_POST['search_startmonth']. "/" .$_POST['search_startday'] . "'"; 186 186 $view_where.= " AND update_date >= '" . $_POST['search_startyear'] . "/" . $_POST['search_startmonth']. "/" .$_POST['search_startday'] . "'"; 187 187 break; 188 188 case 'search_endyear': // 登録更新日(TO) 189 $date = sfGetTimestamp($_POST['search_endyear'], $_POST['search_endmonth'], $_POST['search_endday']);189 $date = SC_Utils_Ex::sfGetTimestamp($_POST['search_endyear'], $_POST['search_endmonth'], $_POST['search_endday']); 190 190 $date = date('Y/m/d', strtotime($date) + 86400); 191 191 $where.= " AND update_date < date('" . $date . "')"; … … 194 194 case 'search_product_flag': //種別 195 195 global $arrSTATUS; 196 $search_product_flag = sfSearchCheckBoxes($val);196 $search_product_flag = SC_Utils_Ex::sfSearchCheckBoxes($val); 197 197 if($search_product_flag != "") { 198 198 $where.= " AND product_flag LIKE ?"; … … 232 232 $option = "ORDER BY $order"; 233 233 // CSV出力タイトル行の作成 234 $arrOutput = sfSwapArray(sfgetCsvOutput(1, " WHERE csv_id = 1 AND status = 1"));234 $arrOutput = SC_Utils_Ex::sfSwapArray(sfgetCsvOutput(1, " WHERE csv_id = 1 AND status = 1")); 235 235 236 236 if (count($arrOutput) <= 0) break; … … 239 239 $arrOutputTitle = $arrOutput['disp_name']; 240 240 241 $head = sfGetCSVList($arrOutputTitle);242 243 $data = lfGetProductsCSV($where, $option, $arrval, $arrOutputCols);241 $head = SC_Utils_Ex::sfGetCSVList($arrOutputTitle); 242 243 $data = $this->lfGetProductsCSV($where, $option, $arrval, $arrOutputCols); 244 244 245 245 // CSVを送信する。 246 sfCSVDownload($head.$data);246 SC_Utils_Ex::sfCSVDownload($head.$data); 247 247 exit; 248 248 break;
Note: See TracChangeset
for help on using the changeset viewer.