제목 출력시 "echo" 도 함께 나오네요... 소스가 잘못된것같은데.. 정보
제목 출력시 "echo" 도 함께 나오네요... 소스가 잘못된것같은데..본문
제목 출력시 "echo" 도 함께 나오네요... 소스가 잘못된것같은데.. 어디서 잘못된건지 잘모르겠네요... 여러 소스를 합쳐서 수정하다보니 실력이 부족한 관계로 쉽제 풀리지 않네요...
아래가 그 소스인데.. 좀 길더라도 봐주시면 감사하겠습니다. "echo" 가 출력되는 부분은 하단
<td>1111</td>바로 위에 있습니다.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!function_exists("imagecopyresampled")) alert("GD 2.0.1 이상 버전이 설치되어 있어야 사용할 수 있는 스킨 입니다.");
$la_content = "35"; //내용길이
$img_w = "160"; //썸네일 가로
$img_h = "95"; //썸네일 세로
$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb_'.$img_w.'_'.$img_h;
@mkdir($thumb_path, 0707);
@chmod($thumb_path, 0707);
?>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=14><img src='<?=$latest_skin_path?>/img/latest_t01.gif'></td>
<td width='100%' background='<?=$latest_skin_path?>/img/bg_latest.gif'>
<strong><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>&sca=<?=$ca_name?>'><?=$ca_name?></a></strong>
</td>
<td width=37 background='<?=$latest_skin_path?>/img/bg_latest.gif'>
<a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>&sca=<?=$ca_name?>'><img src='<?=$latest_skin_path?>/img/more.gif' border=0></a>
</td>
<td width=14><img src='<?=$latest_skin_path?>/img/latest_t02.gif'></td>
</tr>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td colspan=4 align=center>
<table width=95%>
<tr><td><style type="text/css">
#photo_v27_img, #photo_v27_list{float:left}
#photo_v27_img{width:10px;border:0px solid #ffffff;padding:3px;}
#photo_v27_list{
width:200px;
height:80px;
padding:0 0 0 5px;
color:#000000;
font-family: "돋움";
font-size: 9pt;
text-decoration: none;
}
.photo_v27_sub{
height:18px;
font-family: "돋움";
font-size: 9pt;
font-weight: bold;
text-decoration: none;
}
.photo_v27_con {
height:17px;
font-family: "돋움";
font-size: 8pt;
font-weight: normal;
text-decoration: none;
}
</style>
<?
for ($i=0; $i<count($list); $i++) {
//썸네일 코드 시작
$img = "<div style='width:100px;height:55px;'></div>";
$thumb = $thumb_path . '/' . $list[$i][file][0][file] . '.thumb';
if (!file_exists($thumb))
{
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
if (preg_match("/\.(jp[e]?g|gif|bmp|png)$/i", $file) && file_exists($file))
{
$size = getimagesize($file);
if ($size[2] == 1)
$src = imagecreatefromgif($file);
else if ($size[2] == 2)
$src = imagecreatefromjpeg($file);
else if ($size[2] == 3)
$src = imagecreatefrompng($file);
else
continue;
$rate = $img_w / $size[0];
$height = (int)($size[1] * $rate);
if ($height < $img_h)
$dst = imagecreatetruecolor($img_w, $height);
else
$dst = imagecreatetruecolor($img_w, $img_h);
imagecopyresampled($dst, $src, 0, 0, 0, 0, $img_w, $height, $size[0], $size[1]);
imagejpeg($dst, $thumb_path . '/' . $list[$i][file][0][file] . '.thumb', 100);
chmod($thumb_path . '/' . $list[$i][file][0][file] . '.thumb', 0606);
}
}
if (file_exists($thumb))
$img = "<img src='$thumb' align='absmiddle' border='0'>";
$href = "{$list[$i][href]}";
$wr_1 = "<span $href>".cut_str($list[$i][wr_1],12)."</span>";
$wr_content ="<span $style>".cut_str(strip_tags($list[$i][wr_content]),$la_content)."</span>";
// 출력
echo <<<HEREDOC
<div>
<div id="photo_v27_img">
<table width=103 border="0" cellspacing="0" cellpadding="0">
<tr><td width=30></td><td>
<table border="0" cellspacing="0" cellpadding="0">
<tr><td height=10></td></tr>
<tr><td align=center>
<a href='{$href}' onfocus='this.blur()'>{$img}</a>
</td></tr>
<tr><td height=7 align=center></td></tr>
<tr><td align=center height=3><a href='{$href}' onfocus='this.blur()' class=red>
<b>$wr_1</b></td></tr>
</table>
<table>
<tr>
<td>echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9;'><strong>{$list[$i]['subject']}</strong></font>";</td>
</tr>
<td>1111</td>
</tr>
</table>
</td></tr></table>
</div>
HEREDOC;
}
?>
</td></tr>
<tr>
<td height=25>
<!-- <img src='<?=$latest_skin_path?>/img/latest_icon.gif' align=absmiddle> -->
<?
echo $list[$i]['icon_reply'] . " ";
echo "<a href='{$list[$i]['href']}&sca={$ca_name}'>";
if ($list[$i]['is_notice'])
echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9;'><strong>{$list[$i]['subject']}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$list[$i]['subject']}</font>";
echo "</a>";
if ($list[$i]['comment_cnt'])
echo " <a href=\"{$list[$i]['comment_href']}&sca={$ca_name}\"><span style='font-family:돋움; font-size:8pt; color:#9A9A9A;'>{$list[$i]['comment_cnt']}</span></a>";
//echo " " . $list[$i]['icon_new'];
//echo " " . $list[$i]['icon_file'];
//echo " " . $list[$i]['icon_link'];
//echo " " . $list[$i]['icon_hot'];
//echo " " . $list[$i]['icon_secret'];
?>
</td>
</tr>
<tr><td bgcolor=#EBEBEB height=1></td></tr>
</table>
</td>
</tr>
<? } ?>
<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=50><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>
</table>
댓글 전체
<td>echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9;'><strong>{$list[$i]['subject']}</strong></font>";</td>
이부분을
<td><font style='font-family:돋움; font-size:9pt; color:#2C88B9;'><strong>{$list[$i]['subject']}</strong></font></td>
이렇게 해주셔요