- Timestamp:
- 2009/02/13 22:08:52 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_4/data/class/pages/admin/basis/LC_Page_Admin_Basis.php
r16741 r17775 52 52 $this->arrTAXRULE = $masterData->getMasterData("mtb_taxrule"); 53 53 $this->tpl_subtitle = 'SHOPマスタ'; 54 55 //定休日用配列 56 $this->arrRegularHoliday[0] = '日'; 57 $this->arrRegularHoliday[1] = '月'; 58 $this->arrRegularHoliday[2] = '火'; 59 $this->arrRegularHoliday[3] = '水'; 60 $this->arrRegularHoliday[4] = '木'; 61 $this->arrRegularHoliday[5] = '金'; 62 $this->arrRegularHoliday[6] = '土'; 54 63 } 55 64 … … 82 91 // 入力データの変換 83 92 $this->arrForm = $this->lfConvertParam($this->arrForm); 93 $this->arrForm['regular_holiday_ids'] = $_POST['regular_holiday_ids']; // 定休日情報を付加 84 94 // 入力データのエラーチェック 85 95 $this->arrErr = $this->lfErrorCheck($this->arrForm); … … 98 108 $this->tpl_onload = "window.alert('SHOPマスタの登録が完了しました。');"; 99 109 } 110 if( empty($this->arrForm['regular_holiday_ids']) ) { 111 $this->arrSel = array(); 112 } else { 113 $this->arrSel = $this->arrForm['regular_holiday_ids']; 114 } 100 115 } else { 101 116 $arrCol = $this->lfGetCol(); … … 103 118 $arrRet = $objQuery->select($col, "dtb_baseinfo"); 104 119 $this->arrForm = $arrRet[0]; 120 121 $regular_holiday_ids = explode('|', $this->arrForm['regular_holiday_ids']); 122 $this->arrForm['regular_holiday_ids'] = $regular_holiday_ids; 105 123 } 106 124 … … 145 163 "free_rule", 146 164 "good_traded", 147 "message" 165 "message", 166 "regular_holiday_ids" 148 167 149 168 ); … … 155 174 $arrCol = $this->lfGetCol(); 156 175 foreach($arrCol as $val) { 157 $sqlval[$val] = $array[$val]; 176 //$sqlval[$val] = $array[$val]; 177 //配列の場合は、パイプ区切りの文字列に変換 178 if(is_array($array[$val])) { 179 $sqlval[$val] = implode("|", $array[$val]); 180 } else { 181 $sqlval[$val] = $array[$val]; 182 } 158 183 } 159 184 $sqlval['update_date'] = 'Now()';
Note: See TracChangeset
for help on using the changeset viewer.