리스트에 분류를 가로정렬되게출력되는소스봐주세요
본문

<select name=wr_8 onChange="location='<?=$category_location?>&sca='+this.form.sca.value+'&wr_7='+this.form.wr_7.value+'&wr_8='+this.value+'&wr_10='+this.form.wr_10.value;">
<option value=''><?=$board[bo_8_subj]?></option><?=$bo_8_option?></select>
<option value=''><?=$board[bo_8_subj]?></option><?=$bo_8_option?></select>
이분류소스를

도와주세요 어떻게 쓰면 가로나올가요
답변 2
셀렉트 박스를 위에 사진처럼 바꿀수 없습니다.
jqeury ui 중에 이런 ui 있을 지는 모르겟지만 그런 ui를 만들빠에는
그냥 div와 텍스트를 이용하는 게 더 편합니다.
셀렉트 박스는 지우시고 아래의 소스를 그자리에 붙여넣어 확인해보세요
<table width="<?=$width?>" align=center cellpadding=0 cellspacing=0>
<tr>
<td>
<!-- 분류 셀렉트 박스, 게시물 몇건, 관리자화면 링크 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr height="27">
<td>
<!-- 카테고리&관리버튼 -->
<? if ($is_category) { ?>
<? if (!$wr_id) { ?>
<?
$cnt_bo_1 = $bo_1[0] ? $bo_1[0] : 10; // 한줄당 분류 갯수(현재:10)
$cnt = 1;
$cnt0 = 0;
$bb_s=""; $bb_e="";
$b_s=""; $b_e="";
$arr = explode("|", $board[bo_category_list]); // 구분자가 , 로 되어 있음
$str = " <span style='font-size:11px; color:#D2D2D2;'>|</span> ";
for ($i=0; $i<count($arr); $i++)
if (trim($arr[$i])) {
if ($sca == $arr[$i]) { $cnt0++; $b_s="<b>"; $b_e="</b>"; } else {$b_s=""; $b_e="";}
$str .= " <a href='./board.php?bo_table=$bo_table&sca=".urlencode($arr[$i])."'>$b_s$arr[$i]$b_e</a> <span style='font-size:11px; color:#D2D2D2;'>|</span> ";
if ($cnt == $cnt_bo_1) { $cnt = 0; $str .= "<br>"; }
$cnt++;
}
if ($cnt0 == 0 ) { $bb_s="<b>"; $bb_e="</b>"; }
?>
<?echo " ";echo $bb_s;?><a href='./board.php?bo_table=<?=$bo_table?>&page=<?=$page?>'>전체</a><?=$bb_e?> <span style="font-size:8pt; color=#AEAEAE;">(<?=number_format($total_count)?>)</span>
<?=$str?></td>
<? } ?>
<? } ?>
<td align="right"> <? if ($admin_href) { ?><span style="font-size:8pt;"><font face="Tahoma" color="#999999">Total. <?=number_format($total_count)?></font></span> <? }?>
<? if ($rss_href) { ?><a href='<?=$rss_href?>'><img src='<?=$board_skin_path?>/img/btn_rss.gif' border=0 align=absmiddle></a><?}?>
<? if ($admin_href) { ?><a href="<?=$admin_href?>"><img src="<?=$board_skin_path?>/img/admin_button.gif" title="관리자" border="0" align="absmiddle"></a><?}?></td>
</tr>
</table>
답변감사합니다.
이런형식으로햇으어요 처음 분류는 가로잘됩니다.
예를 들어 두번째 카테고리 세번째카테고리
분류1 뷴루2 분류 3 분류4 를 알려주신것처럼 모두가로 출력되고 작동되게할렵니다.
분류1는 잘되지만 2분류부터 카테고리잘안됩니다.
좀도와주세요
답변을 작성하시기 전에 로그인 해주세요.