칠

요게 왜 안될까요?

뭐가 안되는건지 도저히 모르겠어요..
최신글 스킨부분인데요..
이미지는 나오는데

cut_str ($list[$i][wr_1], 20, '..' )

이부분이 안되네요..!!
최신글에wr_1값이아닌 cut_str (Array[wr_1], 20, '..' ) 이렇게 나와요.!!

<?
$image = $list[$i][file][0][file]; //원본
$img=$data_path. "/".$image; //썸네일이 없을경우 원본출력
$thumb = $thumb_path. "/". $list[$i][wr_id];

if ( file_exists($thumb) )
$img = $thumb;

$style = "style='font-family:돋움; font-size:9pt; color:#686695;' ";
if ($list[$i][icon_new]) {
$style = "style='font-family:돋움; font-size:9pt; color:#134980;' "; }
$subject = "<span $style>".$list[$i][subject]."</span>"; //제목 글자수 자르기
$wr_hit = $list[$i]['wr_hit'];
$wr_id = $list[$i]['wr_id'];
// if ($list[$i]['comment_cnt']) //코
// $cmt = "({$list[$i]['comment_cnt']})";

$bg = ""; //새글?
if ($list[$i][icon_new])
$bg="la_top_2.gif";
else
$bg="la_top_1.gif";

echo $list[$i][icon_reply] . " ";

echo "<table cellpadding='0' cellspacing='0' border='0'>";
echo "<tr><td background='{$latest_skin_path}/img/la_bg.gif' valign='top' align='center'>
<a href=\"$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id=$wr_id\" onFocus=\"this.blur();\" title=\"{$list[$i][subject]}\">
<img src='{$img}' width='150' height='100' border=0' style='border:1 solid #B2BAEE'>
</a></td></tr>";
echo "<tr><td height='12' align='center' style='font-size:11px; color:#CCCCCC;'>cut_str ($list[$i][wr_1], 20, '..' ) </td></tr>";
echo "</table>";
?>

댓글 2개

echo "<tr><td height='12' align='center' style='font-size:11px; color:#CCC;'>".cut_str ($list[$i][wr_1], 20, '..' )."</td></tr>";
감사합니다.^^
댓글을 작성하시려면 로그인이 필요합니다.

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

+
제목 글쓴이 날짜 조회
10-04-01 조회 1,176
10-04-01 조회 1,666
10-04-01 조회 1,630
10-04-01 조회 1,388
10-04-01 조회 1,527
10-04-01 조회 1,660
10-04-01 조회 2,197
10-04-01 조회 1,400
10-04-01 조회 1,091
10-04-01 조회 1,095
10-04-01 조회 1,640
10-03-31 조회 1,075
10-03-31 조회 931
10-03-31 조회 986
10-03-31 조회 988
10-03-31 조회 1,551
10-03-31 조회 1,443
10-03-31 조회 1,042
10-03-31 조회 1,697
10-03-31 조회 1,648