c

최신글 문의

링크에 나와있는 소스를 적용하고자 합니다.
 
좌측 이미지는 하나만 나오고
이미지 밑의 리스트를 우측으로 옮길 수는 없나요?
 
현재 이미지 하나만 나오는건 되는데 이미지 밑에 있는 리스트는 우측으로 옯겨지지 않아서 질문드립니다.
|

댓글 3개

이게 맞는지 모르겠네요?
밑에꺼 모두 복사하셔서 붙여넣기 해 보세요?

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<?
// 미리보기 이미지사이즈
$img_w = "100";
$img_h = "80";
?>
<table width="420" height="28" border="0" cellpadding="0" cellspacing="0">
<tr>
<td> <table width="420" height="28" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="30" style="font-family:Tahoma,굴림; font-size:9pt; color:#333333;"><img src="<?=$latest_skin_path?>/img/stick.gif" align="absmiddle" border=0>
<a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>' class="title">
<?=$board[bo_subject]?>
</a></td>
<td align="right"><a href="<?=$g4['path']?>/bbs/board.php?bo_table=<?=$bo_table?>"><img src="<?=$latest_skin_path?>/img/more.gif" border=0></a></td>
</tr>
<tr>
<td width="40%" bgcolor="#EF4900"></td>
<td width="60%" bgcolor="#FBB95B"></td>
</tr>
<tr>
<td height="5"></td>
</tr>
</table></td>
</tr>
</table>
<table width="320" border="0" cellpadding="0" cellspacing="0">
<? for ($i=0; $i<count($list); $i++) { ?>
<? if ($i==i) { ?>
<tr>
<td width="3"></td>
<td valign="top">
<table width="210" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="100" align="center">
<? $image = urlencode($list[$i][file][0][file]); // 첫번째 파일이 이미지라면
if (preg_match("/\.(gif|jpg|png)$/i", $image) && file_exists("$g4[path]/data/file/$bo_table/$image")) {
echo "<a href='{$list[$i][href]}'><img src='$g4[path]/data/file/$bo_table/$image' width='{$img_w}' height='{$img_h}' border='0'></a>";
} else {
echo "<a href='{$list[$i][href]}'><img src='$latest_skin_path/img/no_image.gif' width='{$img_w}' height='{$img_h}' border='0'></a>";
} ?>
</td>
<td width="5" rowspan="3"></td>
<td width="100" align="center"> <a href='<?=$list[$i][href]?>'><?=$list[$i][subject]?></a>
</td>
<td width="5" rowspan="3"></td>
</tr>
<tr>
<td align="center"></td>
<td align="center"></td>
</tr>
</table>
</td>
<td width="10"></td>
<td width="215" align="left" valign="top">
<table width="205" border="0" cellpadding="0" cellspacing="0">
<? } else {?>
<tr>
<td height="25"><img src="<?=$latest_skin_path?>/img/top.gif" width="2" height="2" align="absmiddle" border="0"> <a href='<?=$list[$i][href]?>'><?=$list[$i][subject]?></a></td>
</tr>
<tr><td width="100%" background="<?=$latest_skin_path?>/img/dot_line.gif"></td></tr>
<? } ?>
<? } ?>
</table>
</td>
</tr>
</table>
별도로 해결 했습니다.^^;
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
18년 전 조회 1,516
18년 전 조회 1,378
18년 전 조회 1,558
18년 전 조회 1,673
18년 전 조회 1,534
18년 전 조회 1,517
18년 전 조회 1,989
18년 전 조회 1,752
18년 전 조회 1,421
18년 전 조회 1,429
18년 전 조회 1,584
18년 전 조회 1,717
18년 전 조회 1,530
18년 전 조회 1,723
18년 전 조회 1,579
18년 전 조회 1,686
18년 전 조회 1,625
18년 전 조회 1,214
18년 전 조회 1,474
18년 전 조회 1,576
🐛 버그신고