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에서 해주시기 바랍니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 5877 | 9년 전 | 260 | ||
| 5876 | 9년 전 | 312 | ||
| 5875 | 9년 전 | 299 | ||
| 5874 | 9년 전 | 324 | ||
| 5873 | 9년 전 | 433 | ||
| 5872 | 9년 전 | 326 | ||
| 5871 | 9년 전 | 283 | ||
| 5870 | 9년 전 | 305 | ||
| 5869 | 9년 전 | 419 | ||
| 5868 | 9년 전 | 320 | ||
| 5867 | 9년 전 | 268 | ||
| 5866 | 9년 전 | 265 | ||
| 5865 | 9년 전 | 277 | ||
| 5864 | 9년 전 | 238 | ||
| 5863 | 9년 전 | 233 | ||
| 5862 | 9년 전 | 416 | ||
| 5861 | 9년 전 | 466 | ||
| 5860 | 9년 전 | 259 | ||
| 5859 | 9년 전 | 251 | ||
| 5858 | 9년 전 | 226 | ||
| 5857 | 9년 전 | 256 | ||
| 5856 | 9년 전 | 350 | ||
| 5855 | 9년 전 | 304 | ||
| 5854 | 9년 전 | 204 | ||
| 5853 | 9년 전 | 264 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기