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에서 해주시기 바랍니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 5852 | 10년 전 | 637 | ||
| 5851 | 10년 전 | 570 | ||
| 5850 | 10년 전 | 414 | ||
| 5849 | 10년 전 | 317 | ||
| 5848 | 10년 전 | 314 | ||
| 5847 | 10년 전 | 310 | ||
| 5846 | 10년 전 | 296 | ||
| 5845 | 10년 전 | 314 | ||
| 5844 | 10년 전 | 348 | ||
| 5843 | 10년 전 | 434 | ||
| 5842 | 10년 전 | 327 | ||
| 5841 | 10년 전 | 1103 | ||
| 5840 |
|
10년 전 | 1220 | |
| 5839 | 10년 전 | 607 | ||
| 5838 | 10년 전 | 338 | ||
| 5837 | 10년 전 | 385 | ||
| 5836 | 10년 전 | 380 | ||
| 5835 | 10년 전 | 509 | ||
| 5834 | 10년 전 | 348 | ||
| 5833 | 10년 전 | 463 | ||
| 5832 | 10년 전 | 298 | ||
| 5831 | 10년 전 | 285 | ||
| 5830 | 10년 전 | 311 | ||
| 5829 | 10년 전 | 355 | ||
| 5828 | 10년 전 | 336 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기