알려주세요~~

· 17년 전 · 746 · 2
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=76222&sca=&sfl=wr_subject&stx=%BF%DE%C2%CA&sop=and

위 좌측메뉴 스킨 그룹명을 이미지로 불러오려면 어떻게 해야 하나요? 메뉴도 이미지로 불러올수 있는방법 부탁드려요~

아래는 소스입니다.

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<? if($gr_id){ ?>
<!-- 테두리 -->

<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="white">
<tr><td>
<table width="100%" border="0" cellpadding="0" cellspacing="4" bgcolor="white">
<tr><td align="center" valign="top" bgcolor="white" style="padding:0px">
<!--/왼쪽 메뉴-->
</td></tr>
</table> </td></tr>
</table><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="white">
<tr><td>
<table width="100%" border="0" cellpadding="0" cellspacing="4" bgcolor="white">
<tr><td align="center" valign="top" bgcolor="white" style="padding:0px">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td align="center" bgcolor="white">
<table width="95%" align="center" cellpadding="0" cellspacing="0">
<?
$blue_bullet="<img src='$leftmenu_skin_path/img/icl.gif' border='0'>";
$blue_bullet1="<img src='$leftmenu_skin_path/img/icl1.gif' border='0'>";
$line_shadow = "<tr><td height=1 background='$leftmenu_skin_path/img/dot_line.gif'></td></tr>";
$sql = " select gr_id, gr_subject, gr_9, gr_10 from $g4[group_table] where gr_id = '$gr_id'";//해당그룹 $gr_id를 해당그룹명으로 대체가능
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++){
//그룹을 보여준다면
$gSubject = "<span style='color:#323232;'><b>" .$row['gr_subject']."</b></span>";//그룹제목
$gLink = (!empty($row['gr_10']))?$row['gr_10']:$g4['bbs_path'].'/'.'group.php?gr_id=' .$row['gr_id'];//그룹링크 - 별도링크 필요하면 gr_10 필드에 전체 url 입력
echo "<tr><td height='30' align='right' style='padding:0 0 0 10'>";
echo "<a href='" . $gLink . "' target='$row[gr_9]'>" . $gSubject . "</a></td></tr>";
echo $line_shadow;
//제외보드설정
//$sql2 = " select bo_subject, bo_table, bo_10 from $g4[board_table] where bo_table not in ('z7_2') and gr_id = '$gr_id' and bo_list_level <= '$member[mb_level]' order by bo_order_search";
//게시판 권한 설정 적용, 전체 검색사용에 체크된 게시판만 검색순서에 따라 추출
$sql2 = " select bo_subject, bo_table, bo_9, bo_10 from $g4[board_table] where (bo_list_level <= $member[mb_level]) and (gr_id = '$row[gr_id]') order by bo_order_search";
$resultb = sql_query($sql2);
for ($j=0; $rowb=sql_fetch_array($resultb); $j++) {
$bSubject = ($rowb['bo_table'] == $bo_table)?"<span style='font-weight:bold;color:#222222;'>".cut_str(get_text($rowb['bo_subject']),100,"")."</span><img src='$leftmenu_skin_path/img/icl1.gif' border=0>":"<span style='color:#222222;'>".cut_str(get_text($rowb['bo_subject']), 20,"")."</span><img src='$leftmenu_skin_path/img/ic2.gif' border=0>";//게시판제목 - 해당게시판은 #222222 나머지는 #222222
$bLink = (!empty($rowb['bo_10']))?$rowb['bo_10']:$g4['bbs_path'].'/'.'board.php?bo_table=' .$rowb['bo_table'];//게시판링크 - 별도링크 필요하면 bo_10 필드에 전체 url 입력
echo "<tr align='right' bgcolor='FFFFFF' onMouseOver=this.style.backgroundColor='F8F8F8' onMouseOut=this.style.backgroundColor=''><td width=\"100%\" height='25' class='left_menu_btn'>";
echo "<a href='" . $bLink . "' target='$rowb[bo_9]'>" . $bSubject . "</a>";
echo "</td></tr>"; //칸 닫기
echo $line_shadow;//경계선
}
}//}
?>
</table>
</td></tr>
</table>
<!--/왼쪽 메뉴-->
</td></tr>
</table>
</td></tr>
</table>
<!--/테두리-->
<? } ?>
|

댓글 2개

답변이 없어서 제가..

이미지를 하나하나 만들어서 사용할수는 있습니다.
그런데 그거 언제 다 만듭니까?
소스도 변경해야하고..

차라리 그룹이나 메뉴에
배경이미지를 삽입해서 쓰세요,
간단하고 편리합니다.

대부분 그렇게해서 씁니다.
죄송하지만 좀더 구체적으로 알수 있을까요?
관리자 페이지에서 이미지를 넣는것이라면 그룹이미지는 어떻게 넣어야하나요???
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
17년 전 조회 803
17년 전 조회 860
17년 전 조회 849
17년 전 조회 771
17년 전 조회 712
17년 전 조회 718
17년 전 조회 802
17년 전 조회 961
17년 전 조회 736
17년 전 조회 747
17년 전 조회 783
17년 전 조회 910
17년 전 조회 851
17년 전 조회 748
17년 전 조회 780
17년 전 조회 732
17년 전 조회 790
17년 전 조회 771
17년 전 조회 795
17년 전 조회 768