Changeset 15662 for branches/feature-module-update/data
- Timestamp:
- 2007/09/10 18:20:44 (17 years ago)
- Location:
- branches/feature-module-update/data/class
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update/data/class/pages/inquiry/LC_Page_Inquiry.php
r15532 r15662 14 14 * @package Page 15 15 * @author LOCKON CO.,LTD. 16 * @version $Id $16 * @version $Id:LC_Page_Inquiry.php 15532 2007-08-31 14:39:46Z nanasess $ 17 17 */ 18 18 class LC_Page_Inquiry extends LC_Page { … … 46 46 // 都道府県プルダウン用配列 47 47 $masterData = new SC_DB_MasterData_Ex(); 48 $this->arrPr fef = $masterData->getMasterData("mtb_pref",48 $this->arrPref = $masterData->getMasterData("mtb_pref", 49 49 array("pref_id", "pref_name", "rank")); 50 50 … … 69 69 70 70 71 if (!isset($_POST['mode'])) $_POST['mode'] = ""; 71 72 72 73 if ( ( ! $_POST['mode'] == 'confirm' ) && ( ! is_numeric($_REQUEST['question_id']) ) ){ … … 85 86 unset($this->arrHidden['mode']); 86 87 87 if ( (int)$this->QUESTION["delete"] !== 0 ){ 88 if (isset($this->QUESTION["delete"]) 89 && (int)$this->QUESTION["delete"] !== 0 ){ 88 90 89 91 $objPage->tpl_mainpage = "inquiry/closed.tpl"; … … 111 113 $this->arrForm = $this->lfConvertParam($this->arrForm, $arrRegistColumn); 112 114 $this->arrErr = $this->lfErrorCheck($this->arrForm); 113 $this->arrErr = $this-> GGlfGetArrInput($this->arrErr);115 $this->arrErr = $this->lfGetArrInput($this->arrErr); 114 116 115 117 … … 153 155 154 156 $this->cnt_question = 6; 155 $this->arrActive = $arrActive;156 $this->arrQuestion = $arrQuestion;157 $this->arrActive = isset($arrActive) ? $arrActive : ""; 158 $this->arrQuestion = isset($arrQuestion) ? $arrQuestion : ""; 157 159 158 160 159 161 //---- ページ表示 160 $objView->_smarty->register_ function("lfArray_Search_key_Smarty","lfArray_Search_key_Smarty");162 $objView->_smarty->register_modifier("lfArray_Search_key_Smarty","lfArray_Search_key_Smarty"); 161 163 $objView->assignobj($this); 162 164 $objView->display($this->tpl_mainpage); … … 202 204 $objErr->doFunc(array('メールアドレス', 'メールアドレス(確認)', "email", "email02") ,array("EQUAL_CHECK")); 203 205 204 $objErr->arrErr["option"] = array_map( "lfCheckNull", (array)$_POST['option'] );206 $objErr->arrErr["option"] = array_map(array($this, "lfCheckNull"), (array)$_POST['option'] ); 205 207 206 208 return $objErr->arrErr; … … 250 252 function lfGetArrInput( $arr ){ 251 253 // 値が入力された配列のみを返す 254 $return = array(); 252 255 253 256 if ( is_array($arr) ){ … … 256 259 $return[$key] = $val; 257 260 } elseif ( is_array( $val ) ) { 258 $data = lfGetArrInput ( $val );261 $data = $this->lfGetArrInput ( $val ); 259 262 if ( $data ){ 260 263 $return[$key] = $data; … … 290 293 */ 291 294 function lfCheckNull ( $val ){ 295 $return = array(); 292 296 293 297 if ( ( ! is_array( $val ) ) && ( strlen( $val ) < 1 ) ){ … … 295 299 } elseif ( is_array( $val ) ) { 296 300 foreach ($val as $line) { 297 $return = lfCheckNull( $line );301 $return = $this->lfCheckNull( $line ); 298 302 } 299 303 } -
branches/feature-module-update/data/class/util/SC_Utils.php
r15634 r15662 1277 1277 } 1278 1278 if(is_array($val)) { 1279 $arrDst = sfMakeHiddenArray($val, $arrDst, $keyname);1279 $arrDst = SC_Utils::sfMakeHiddenArray($val, $arrDst, $keyname); 1280 1280 } else { 1281 1281 $arrDst[$keyname] = $val;
Note: See TracChangeset
for help on using the changeset viewer.