게시판분류 select option 을 ul li 로 변경
This commit is contained in:
@ -15,10 +15,10 @@ if ($is_nogood) $colspan++;
|
||||
<div id="bo_cate">
|
||||
<? if ($is_category) { ?>
|
||||
<form id="fcategory" name="fcategory" method="get">
|
||||
<select name="sca" onchange="location='<?=$category_location?>'+<?=strtolower($g4['charset'])=='utf-8' ? "encodeURIComponent(this.value)" : "this.value"?>;">
|
||||
<option value=''>전체</option>
|
||||
<ul>
|
||||
<li>전체</li>
|
||||
<?=$category_option?>
|
||||
</select>
|
||||
</ul>
|
||||
</form>
|
||||
<? } ?>
|
||||
</div>
|
||||
|
||||
@ -152,13 +152,12 @@ echo $option_hidden;
|
||||
// 관리자라면 분류 선택에 '공지' 옵션을 추가함
|
||||
if ($is_admin)
|
||||
{
|
||||
echo "
|
||||
if (typeof(document.fwrite.ca_name) != 'undefined')
|
||||
{
|
||||
document.fwrite.ca_name.options.length += 1;
|
||||
document.fwrite.ca_name.options[document.fwrite.ca_name.options.length-1].value = '공지';
|
||||
document.fwrite.ca_name.options[document.fwrite.ca_name.options.length-1].text = '공지';
|
||||
}";
|
||||
echo '
|
||||
if (ca_name_select = document.getElementById("ca_name")) {
|
||||
ca_name_select.options.length += 1;
|
||||
ca_name_select.options[ca_name_select.options.length-1].value = "공지";
|
||||
ca_name_select.options[ca_name_select.options.length-1].text = "공지";
|
||||
}';
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user