Changeset 21441 for branches/version-2_12-dev/data/class/pages/admin/products/LC_Page_Admin_Products_Review.php
- Timestamp:
- 2012/02/06 11:05:15 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/pages/admin/products/LC_Page_Admin_Products_Review.php
r21420 r21441 106 106 // エラーチェック 107 107 $this->arrErr = $this->lfCheckError($objFormParam); 108 if (!$this->arrErr) {108 if (!$this->arrErr) { 109 109 // 検索条件を取得 110 110 list($where, $arrval) = $this->lfGetWhere($this->arrForm); … … 146 146 $objErr->arrErr = $objFormParam->checkError(); 147 147 148 switch ($this->getMode()) {148 switch ($this->getMode()) { 149 149 case 'search': 150 150 $objErr->doFunc(array("投稿者", "search_startyear", "search_startmonth", "search_startday"), array("CHECK_DATE")); … … 185 185 foreach ($arrForm AS $key=>$val) { 186 186 if (preg_match("/^search_/", $key)) { 187 switch ($key) {187 switch ($key) { 188 188 case 'search_sex': 189 189 $arrHidden[$key] = SC_Utils_Ex::sfMergeParamCheckBoxes($val); 190 if (!is_array($val)) {190 if (!is_array($val)) { 191 191 $arrForm[$key] = explode("-", $val); 192 192 } … … 234 234 function lfDoOutputCsv($where, $arrVal) { 235 235 $objCSV = new SC_Helper_CSV_Ex(); 236 if ($where != ""){236 if ($where != "") { 237 237 $where = "WHERE " . $where; 238 238 } … … 250 250 $where = "A.del_flg = 0 AND B.del_flg = 0"; 251 251 252 foreach ($arrForm AS $key=>$val) {252 foreach ($arrForm AS $key=>$val) { 253 253 if (empty($val)) continue; 254 254 255 switch ($key) {255 switch ($key) { 256 256 case 'search_reviewer_name': 257 257 $val = preg_replace("/ /", "%", $val); … … 281 281 $tmp_where = ""; 282 282 //$val=配列の中身,$element=各キーの値(1,2) 283 if (is_array($val)) {284 foreach ($val as $element) {285 if ($element != "") {286 if ($tmp_where == "") {283 if (is_array($val)) { 284 foreach ($val as $element) { 285 if ($element != "") { 286 if ($tmp_where == "") { 287 287 $tmp_where .= " AND (sex = ?"; 288 288 } else { … … 292 292 } 293 293 } 294 if ($tmp_where != "") {294 if ($tmp_where != "") { 295 295 $tmp_where .= ")"; 296 296 $where .= " $tmp_where "; … … 306 306 307 307 case 'search_startyear': 308 if (isset($_POST['search_startyear']) && isset($_POST['search_startmonth']) && isset($_POST['search_startday'])) {308 if (isset($_POST['search_startyear']) && isset($_POST['search_startmonth']) && isset($_POST['search_startday'])) { 309 309 $date = SC_Utils_Ex::sfGetTimestamp($_POST['search_startyear'], $_POST['search_startmonth'], $_POST['search_startday']); 310 310 $where.= " AND A.create_date >= ? "; … … 314 314 315 315 case 'search_endyear': 316 if (isset($_POST['search_startyear']) && isset($_POST['search_startmonth']) && isset($_POST['search_startday'])) {316 if (isset($_POST['search_startyear']) && isset($_POST['search_startmonth']) && isset($_POST['search_startday'])) { 317 317 $date = SC_Utils_Ex::sfGetTimestamp($_POST['search_endyear'], $_POST['search_endmonth'], $_POST['search_endday']); 318 318 $end_date = date("Y/m/d",strtotime("1 day" ,strtotime($date)));
Note: See TracChangeset
for help on using the changeset viewer.