SELECT Tag 자동 생성
function replaceHtmlSelectTag( $name = 'select', $aryValue = Array(), $defaultSelect = '', $aryOption = null)
{
$ret = '<select id="'. $name .'" name="'. $name. '"';
if (isset($aryOption)) {
foreach ($aryOption as $key => $value) {
$ret .= ' '. $key . '="'. $value. '"';
}
}
$ret .= '>';
foreach ( $aryValue as $key => $value ) {
$default = '';
if ( strval($key) == strval($defaultSelect) ) {
$default = ' selected';
}
$ret .= '<option value="'. $key . '"';
$ret .= $default . '>'. str_replace( ' ', ' ', $value ) . "</option>";
}
$ret .= "</select>";
return $ret;
}
게시판 목록
팁게시판
디자인과 관련된 유용한 정보를 공유하세요.
질문은 상단의 QA에서 해주시기 바랍니다.
질문은 상단의 QA에서 해주시기 바랍니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 5902 | 9년 전 | 283 | ||
| 5901 | 9년 전 | 294 | ||
| 5900 | 9년 전 | 289 | ||
| 5899 | 9년 전 | 764 | ||
| 5898 | 9년 전 | 249 | ||
| 5897 | 9년 전 | 264 | ||
| 5896 | 9년 전 | 174 | ||
| 5895 | 9년 전 | 708 | ||
| 5894 | 9년 전 | 324 | ||
| 5893 | 9년 전 | 300 | ||
| 5892 | 9년 전 | 358 | ||
| 5891 | 9년 전 | 367 | ||
| 5890 | 9년 전 | 397 | ||
| 5889 | 9년 전 | 272 | ||
| 5888 | 9년 전 | 179 | ||
| 5887 | 9년 전 | 279 | ||
| 5886 | 9년 전 | 212 | ||
| 5885 | 9년 전 | 231 | ||
| 5884 | 9년 전 | 193 | ||
| 5883 | 9년 전 | 238 | ||
| 5882 | 9년 전 | 249 | ||
| 5881 | 9년 전 | 297 | ||
| 5880 | 9년 전 | 205 | ||
| 5879 | 9년 전 | 229 | ||
| 5878 | 9년 전 | 398 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기