<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$cols = 1; // 이미지 가로갯수 // 이미지 세로 갯수는 메인에서 지정(총 이미지 수)
$imgwidth=16; //표시할 이미지의 가로사이즈
$imgheight=16; //표시할 이미지의 세로사이즈
$col_width = (int)(100 / $cols);
$data_path = $g4[path]."/data/file/$bo_table";
?>
<table width="145" height="30" cellpadding=0 cellspacing=0>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr onmouseover='this.style.backgroundColor="#f0f0f0"' onmouseout='this.style.backgroundColor="#FFFFFF"'>
<td colspan=4 align=center>
<table width="145" height="30">
<tr>
<td height="20">
<img src='<?=$latest_skin_path?>/img/<?=$i+1;?>.gif' align=absmiddle>
<?
$image = $list[$i][file][0][file]; //원본
$img=$data_path. "/".$image; //썸네일이 없을경우 원본출력
echo "<a href='{$list[$i][link_href][1]}' target=_blank><img src='$img' width='{$imgwidth}' height='{$imgheight}' align='center' style='width:{$imgwidth}px;height:{$imgheight}px;border:1px solid #ffffff; padding:0px'></a>";
echo $list[$i]['icon_reply'] . " ";
echo "<a style='text-decoration:none;' onMouseover='this.style.textDecoration='underline';' onMouseout='this.style.textDecoration='none';' href='{$list[$i]['wr_link1']}' target=_blank>";
if ($list[$i]['is_notice'])
echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9; position:relative; top:2px'><strong>{$list[$i]['subject']}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A; position:relative; top:2px'>{$list[$i]['subject']}</font>";
echo "</a>";?>
</td></tr>
<tr>
<td height="1"><img src='<?=$latest_skin_path?>/img/line.gif' align=absmiddle></td>
</tr>
</table></td>
</tr>
<? } ?>
<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=50><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>
</table>
==============================================================================
위 소스는 최근게시물 짜집기 한건데 실행은 잘돼요 근데 스크립트오류가 너무 심하게 나오는데
뭔가 문제인지 도무지 모르겟어요 ㅠㅠ
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$cols = 1; // 이미지 가로갯수 // 이미지 세로 갯수는 메인에서 지정(총 이미지 수)
$imgwidth=16; //표시할 이미지의 가로사이즈
$imgheight=16; //표시할 이미지의 세로사이즈
$col_width = (int)(100 / $cols);
$data_path = $g4[path]."/data/file/$bo_table";
?>
<table width="145" height="30" cellpadding=0 cellspacing=0>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr onmouseover='this.style.backgroundColor="#f0f0f0"' onmouseout='this.style.backgroundColor="#FFFFFF"'>
<td colspan=4 align=center>
<table width="145" height="30">
<tr>
<td height="20">
<img src='<?=$latest_skin_path?>/img/<?=$i+1;?>.gif' align=absmiddle>
<?
$image = $list[$i][file][0][file]; //원본
$img=$data_path. "/".$image; //썸네일이 없을경우 원본출력
echo "<a href='{$list[$i][link_href][1]}' target=_blank><img src='$img' width='{$imgwidth}' height='{$imgheight}' align='center' style='width:{$imgwidth}px;height:{$imgheight}px;border:1px solid #ffffff; padding:0px'></a>";
echo $list[$i]['icon_reply'] . " ";
echo "<a style='text-decoration:none;' onMouseover='this.style.textDecoration='underline';' onMouseout='this.style.textDecoration='none';' href='{$list[$i]['wr_link1']}' target=_blank>";
if ($list[$i]['is_notice'])
echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9; position:relative; top:2px'><strong>{$list[$i]['subject']}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A; position:relative; top:2px'>{$list[$i]['subject']}</font>";
echo "</a>";?>
</td></tr>
<tr>
<td height="1"><img src='<?=$latest_skin_path?>/img/line.gif' align=absmiddle></td>
</tr>
</table></td>
</tr>
<? } ?>
<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=50><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>
</table>
==============================================================================
위 소스는 최근게시물 짜집기 한건데 실행은 잘돼요 근데 스크립트오류가 너무 심하게 나오는데
뭔가 문제인지 도무지 모르겟어요 ㅠㅠ
첨부파일
댓글 7개
echo "<a style='text-decoration:none;' onMouseover='this.style.textDecoration='underline';' onMouseout='this.style.textDecoration='none';' href='{$list[$i]['wr_link1']}' target=_blank>";
눈에 보이는 건 이쪽... ' 가 중복되어 사용되고 있습니다.
아래로 변경
echo "<a style='text-decoration:none;' onMouseover=\"this.style.textDecoration='underline';\" onMouseout=\"this.style.textDecoration='none';\" href=\"{$list[$i]['wr_link1']}\" target=_blank>";
눈에 보이는 건 이쪽... ' 가 중복되어 사용되고 있습니다.
아래로 변경
echo "<a style='text-decoration:none;' onMouseover=\"this.style.textDecoration='underline';\" onMouseout=\"this.style.textDecoration='none';\" href=\"{$list[$i]['wr_link1']}\" target=_blank>";
[code]
<tr><td colspan=4 align=center height=50 valign='middle'><br><a style='text-decoration:none;' onMouseover='this.style.textDecoration='underline';' onMouseout='this.style.textDecoration='none';' href='../bbs/board.php?bo_table=mylink'><font color='#979797'>나만의 <b>즐겨찾기</b><br> 무료 등록하세요</font></a></td></tr></table>
</td>
</tr>
[/code]
[code]
<tr><td colspan=4 align=center height=50 valign='middle'><br><a style='text-decoration:none;' onMouseover='this.style.textDecoration=underline;' onMouseout='this.style.textDecoration='none';' href='../bbs/board.php?bo_table=mylink'><font color='#979797'>나만의 <b>즐겨찾기</b><br> 무료 등록하세요</font></a></td></tr></table>
</td>
</tr>
[/code]
로 수정이요
<tr><td colspan=4 align=center height=50 valign='middle'><br><a style='text-decoration:none;' onMouseover='this.style.textDecoration='underline';' onMouseout='this.style.textDecoration='none';' href='../bbs/board.php?bo_table=mylink'><font color='#979797'>나만의 <b>즐겨찾기</b><br> 무료 등록하세요</font></a></td></tr></table>
</td>
</tr>
[/code]
[code]
<tr><td colspan=4 align=center height=50 valign='middle'><br><a style='text-decoration:none;' onMouseover='this.style.textDecoration=underline;' onMouseout='this.style.textDecoration='none';' href='../bbs/board.php?bo_table=mylink'><font color='#979797'>나만의 <b>즐겨찾기</b><br> 무료 등록하세요</font></a></td></tr></table>
</td>
</tr>
[/code]
로 수정이요
게시글 목록
| 번호 | 제목 |
|---|---|
| 284044 | |
| 284041 | |
| 284040 | |
| 284034 | |
| 284033 | |
| 284029 | |
| 284024 | |
| 284015 | |
| 284011 | |
| 284010 | |
| 284009 | |
| 283998 | |
| 283992 | |
| 283989 | |
| 283984 | |
| 283983 | |
| 283981 | |
| 283976 | |
| 283974 | |
| 283966 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기