- Timestamp:
- 2014/06/03 14:51:51 (12 years ago)
- Location:
- branches/version-2_13-dev/data/class/pages/admin/contents
- Files:
-
- 5 edited
-
LC_Page_Admin_Contents_CSV.php (modified) (2 diffs)
-
LC_Page_Admin_Contents_FileManager.php (modified) (2 diffs)
-
LC_Page_Admin_Contents_FileView.php (modified) (1 diff)
-
LC_Page_Admin_Contents_Recommend.php (modified) (3 diffs)
-
LC_Page_Admin_Contents_RecommendSearch.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_CSV.php
r23124 r23503 135 135 if (SC_Utils_Ex::sfIsInt($csv_id)) { 136 136 if ($csv_status_flg !='') { 137 $arrData = $objCSV->sfGetCsvOutput($csv_id, 'status = ?' , array($csv_status_flg), $order);137 $arrData = $objCSV->sfGetCsvOutput($csv_id, 'status = ?', array($csv_status_flg), $order); 138 138 } else { 139 139 $arrData = $objCSV->sfGetCsvOutput($csv_id, '', array(), $order); … … 190 190 { 191 191 $objCSV = new SC_Helper_CSV_Ex(); 192 $arrKey = array_keys($objCSV->arrSubnavi, $subno_csv);192 $arrKey = array_keys($objCSV->arrSubnavi, $subno_csv); 193 193 $csv_id = $arrKey[0]; 194 194 if (!SC_Utils_Ex::sfIsInt($csv_id)) { -
branches/version-2_13-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_FileManager.php
r23492 r23503 127 127 $this->setDispError('select_file', $disp_error); 128 128 } else { 129 $path_exists = SC_Utils_Ex::checkFileExistsWithInBasePath($objFormParam->getValue('select_file'), USER_REALDIR);129 $path_exists = SC_Utils_Ex::checkFileExistsWithInBasePath($objFormParam->getValue('select_file'), USER_REALDIR); 130 130 if ($path_exists) { 131 131 // ファイルダウンロード … … 143 143 $objFormParam->convParam(); 144 144 $this->arrErr = $objFormParam->checkError(); 145 $path_exists = SC_Utils::checkFileExistsWithInBasePath($objFormParam->getValue('select_file'), USER_REALDIR);145 $path_exists = SC_Utils::checkFileExistsWithInBasePath($objFormParam->getValue('select_file'), USER_REALDIR); 146 146 if (SC_Utils_Ex::isBlank($this->arrErr) && ($path_exists)) { 147 147 SC_Helper_FileManager_Ex::deleteFile($objFormParam->getValue('select_file')); -
branches/version-2_13-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_FileView.php
r23279 r23503 104 104 // FIXME パスのチェック関数が必要 105 105 $file = $objFormParam->getValue('file'); 106 $path_exists = SC_Utils::checkFileExistsWithInBasePath($file, USER_REALDIR);106 $path_exists = SC_Utils::checkFileExistsWithInBasePath($file, USER_REALDIR); 107 107 if ($path_exists){ 108 108 $file_check_flg = true; -
branches/version-2_13-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_Recommend.php
r23481 r23503 92 92 if (SC_Utils_Ex::isBlank($this->arrErr)) { 93 93 $member_id = $_SESSION['member_id']; 94 $this->insertRecommendProduct($arrPost, $member_id,$objRecommend);94 $this->insertRecommendProduct($arrPost, $member_id, $objRecommend); 95 95 $arrItems = $this->getRecommendProducts($objRecommend); 96 96 $this->tpl_onload = "window.alert('編集が完了しました');"; … … 193 193 * @param Object $objRecommend 194 194 */ 195 public function insertRecommendProduct($arrPost, $member_id, SC_Helper_BestProducts_Ex &$objRecommend)195 public function insertRecommendProduct($arrPost, $member_id, SC_Helper_BestProducts_Ex &$objRecommend) 196 196 { 197 197 $sqlval = array(); … … 246 246 * @param Array $arrItems フロントに表示される商品の情報を格納した配列 247 247 */ 248 public function setProducts($arrPost, $arrItems)248 public function setProducts($arrPost, $arrItems) 249 249 { 250 250 $arrProduct = $this->getProduct($arrPost['product_id']); -
branches/version-2_13-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_RecommendSearch.php
r23129 r23503 83 83 $objProduct = new SC_Product_Ex(); 84 84 85 $wheres = $this->createWhere($objFormParam, $objDb);86 $this->tpl_linemax = $this->getLineCount($wheres, $objProduct);85 $wheres = $this->createWhere($objFormParam, $objDb); 86 $this->tpl_linemax = $this->getLineCount($wheres, $objProduct); 87 87 88 88 $page_max = SC_Utils_Ex::sfGetSearchPageMax($arrPost['search_page_max']); … … 94 94 95 95 $arrProduct_id = $this->getProducts($wheres, $objProduct, $page_max, $startno); 96 $this->arrProducts = $this->getProductList($arrProduct_id, $objProduct);96 $this->arrProducts = $this->getProductList($arrProduct_id, $objProduct); 97 97 $this->arrForm = $arrPost; 98 98 } … … 115 115 { 116 116 $objFormParam->addParam('商品ID', 'search_name', LTEXT_LEN, 'KVa', array('MAX_LENGTH_CHECK')); 117 $objFormParam->addParam('商品ID', 'search_category_id', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK'));117 $objFormParam->addParam('商品ID', 'search_category_id', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK')); 118 118 $objFormParam->addParam('商品コード', 'search_product_code', LTEXT_LEN, 'KVa', array('MAX_LENGTH_CHECK')); 119 119 $objFormParam->addParam('商品ステータス', 'search_status', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK')); 120 $objFormParam->addParam('ページ番号', 'search_pageno', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK'));120 $objFormParam->addParam('ページ番号', 'search_pageno', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK')); 121 121 } 122 122 … … 140 140 * @param SC_FormParam $objFormParam 141 141 */ 142 public function createWhere(&$objFormParam, &$objDb)142 public function createWhere(&$objFormParam, &$objDb) 143 143 { 144 144 $arrForm = $objFormParam->getHashArray(); … … 187 187 * @param SC_Product $objProduct 188 188 */ 189 public function getLineCount($whereAndBind, &$objProduct)189 public function getLineCount($whereAndBind, &$objProduct) 190 190 { 191 191 $where = $whereAndBind['where']; … … 204 204 * @param SC_Product $objProduct 205 205 */ 206 public function getProducts($whereAndBind, &$objProduct, $page_max, $startno)206 public function getProducts($whereAndBind, &$objProduct, $page_max, $startno) 207 207 { 208 208 $where = $whereAndBind['where'];
Note: See TracChangeset
for help on using the changeset viewer.
