- Timestamp:
- 2007/08/24 13:13:08 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update/data/class/SC_CheckError.php
r15080 r15346 75 75 return; 76 76 } 77 if (!isset($this->arrParam[$value[1]])) $this->arrParam[$value[1]] = ""; 77 78 if(strlen($this->arrParam[$value[1]]) != 0 && ereg("^[ \t\r\n]+$", $this->arrParam[$value[1]])){ 78 79 $this->arrErr[$value[1]] = "※ " . $value[0] . "にスペース、タブ、改行のみの入力はできません。<br />"; … … 86 87 return; 87 88 } 89 if (!isset($this->arrParam[$value[1]])) $this->arrParam[$value[1]] = ""; 88 90 if(strlen($this->arrParam[$value[1]]) != 0 && mb_ereg("[ \t\r\n]+", $this->arrParam[$value[1]])){ 89 91 $this->arrErr[$value[1]] = "※ " . $value[0] . "にスペース、タブ、改行は含めないで下さい。<br />"; … … 96 98 return; 97 99 } 100 if (!isset($this->arrParam[$value[1]])) $this->arrParam[$value[1]] = ""; 98 101 if(strlen($this->arrParam[$value[1]]) != 0 && ereg("^[0]+[0-9]+$", $this->arrParam[$value[1]])){ 99 102 $this->arrErr[$value[1]] = "※ " . $value[0] . "に0で始まる数値が入力されています。<br />"; … … 107 110 return; 108 111 } 112 if (!isset($this->arrParam[$value[1]])) $this->arrParam[$value[1]] = ""; 109 113 if( strlen($this->arrParam[$value[1]]) == 0 ){ 110 114 $this->arrErr[$value[1]] = "※ " . $value[0] . "が選択されていません。<br />"; … … 118 122 return; 119 123 } 124 if (!isset($this->arrParam[$value[1]])) $this->arrParam[$value[1]] = ""; 120 125 // 文字数の取得 121 126 if( $this->arrParam[$value[2]] != $this->arrParam[$value[3]]) { … … 130 135 return; 131 136 } 137 if (!isset($this->arrParam[$value[1]])) $this->arrParam[$value[1]] = ""; 132 138 // 文字数の取得 133 139 if( $this->arrParam[$value[2]] == $this->arrParam[$value[3]]) { … … 142 148 return; 143 149 } 150 if (!isset($this->arrParam[$value[1]])) $this->arrParam[$value[1]] = ""; 144 151 // 文字数の取得 145 152 if($this->arrParam[$value[2]] != "" && $this->arrParam[$value[3]] != "" && ($this->arrParam[$value[2]] > $this->arrParam[$value[3]])) { … … 155 162 return; 156 163 } 164 if (!isset($this->arrParam[$value[1]])) $this->arrParam[$value[1]] = ""; 157 165 // 文字数の取得 158 166 if( mb_strlen($this->arrParam[$value[1]]) > $value[2] ) { … … 167 175 return; 168 176 } 177 if (!isset($this->arrParam[$value[1]])) $this->arrParam[$value[1]] = ""; 169 178 // 文字数の取得 170 179 if( mb_strlen($this->arrParam[$value[1]]) < $value[2] ) { … … 179 188 return; 180 189 } 190 if (!isset($this->arrParam[$value[1]])) $this->arrParam[$value[1]] = ""; 181 191 // 文字数の取得 182 192 if($this->arrParam[$value[1]] > $value[2] ) { … … 191 201 return; 192 202 } 203 if (!isset($this->arrParam[$value[1]])) $this->arrParam[$value[1]] = ""; 193 204 if($this->arrParam[$value[1]] < $value[2] ) { 194 205 $this->arrErr[$value[1]] = "※ " . $value[0] . "は" . $value[2] . "以上で入力してください。<br />"; … … 203 214 return; 204 215 } 216 if (!isset($this->arrParam[$value[1]])) $this->arrParam[$value[1]] = ""; 205 217 if( strlen($this->arrParam[$value[1]]) > 0 && !EregI("^[[:digit:]]+$", $this->arrParam[$value[1]])) { 206 218 $this->arrErr[$value[1]] = "※ " . $value[0] . "は数字で入力してください。<br />"; … … 214 226 return; 215 227 } 228 if (!isset($this->arrParam[$value[1]])) $this->arrParam[$value[1]] = ""; 216 229 if( strlen($this->arrParam[$value[1]]) > 0 && !EregI("^[[:digit:]]+[\.]?[[:digit:]]+$", $this->arrParam[$value[1]])) { 217 230 $this->arrErr[$value[1]] = "※ " . $value[0] . "は数字で入力してください。<br />"; … … 223 236 return; 224 237 } 238 if (!isset($this->arrParam[$value[1]])) $this->arrParam[$value[1]] = ""; 225 239 if( strlen($this->arrParam[$value[1]]) > 0 && !EregI("^[[:alpha:]]+$", $this->arrParam[$value[1]])) { 226 240 $this->arrErr[$value[1]] = "※ " . $value[0] . "は半角英字で入力してください。<br />";
Note: See TracChangeset
for help on using the changeset viewer.