최근 스킨 노이미지 연결좀 부탁드려요 정보
최근 스킨 노이미지 연결좀 부탁드려요
본문
<?
unset($roll_text);
for ($i=0; $i<count($list); $i++) {
$http = explode("://", $list[$i][wr_link1]);
if (($http[0] != "http") && ($http[0] != "ftp")) {
$link_01 = "http://" . $list[$i][wr_link1];
}else{
$link_01 = $list[$i][wr_link1];
}
$p_four = explode("|",$list[$i][wr_4]);
$four01 = $p_four[0];
$four02 = $p_four[1];
$four03 = $p_four[2];
$four04 = $p_four[3];
$img = "<img src=\"$latest_skin_path/img/noimage.gif\" border=0 heigth=\"$img_height\" width=\"$img_width\" title=\"이미지 없음\">";
$file = $list[$i][file][0][path] ."/". $list[$i][file][0][file];
if($file){
$img = "<a href=\"{$four04}\" target=\"_blank\"><img src=\"$file\" style=\"border:1px solid #efefef;margin-right:".$margin_right."px;\" border=0 height=\"$img_height\" width=\"$img_width\"></a>";
$subject = cut_str($list[$i][wr_subject], 20, '..');
$k = (int)($i / $td_mod);
$roll_text[$k] .= "<table width=100% cellpadding=0 cellspacing=0 border=0 ><tr><td height=45 style=\"border-bottom:1px solid #f2f2f2;padding:2px 0 3px 0;\">";
$roll_text[$k] .= "{$img}";
$roll_text[$k] .= "</td><td height=45 style=\"border-bottom:1px solid #f2f2f2;width:160px; line-height:15px; padding:2px 0 3px 0;\" valign=\"center\"><div class=\"title\">{$subject}</div><br><div class=\"title1\"><b>{$list[$i][wr_1]}</b></div><br><div class=\"title2\">{$list[$i][wr_2]}원</div></td></tr>";
$roll_text[$k] .= "</table>";
}
}
for ($i=0; $i<=$k; $i++) {
echo "roll_text_{$uni}[$i] = '{$roll_text[$i]}';\n";
}
?>
위로 하나식 스크롤되는 최근 게시물 입니다.
노이미지 소스가 잘못된듯합니다.
소스 수정좀 부탁드립니다.
unset($roll_text);
for ($i=0; $i<count($list); $i++) {
$http = explode("://", $list[$i][wr_link1]);
if (($http[0] != "http") && ($http[0] != "ftp")) {
$link_01 = "http://" . $list[$i][wr_link1];
}else{
$link_01 = $list[$i][wr_link1];
}
$p_four = explode("|",$list[$i][wr_4]);
$four01 = $p_four[0];
$four02 = $p_four[1];
$four03 = $p_four[2];
$four04 = $p_four[3];
$img = "<img src=\"$latest_skin_path/img/noimage.gif\" border=0 heigth=\"$img_height\" width=\"$img_width\" title=\"이미지 없음\">";
$file = $list[$i][file][0][path] ."/". $list[$i][file][0][file];
if($file){
$img = "<a href=\"{$four04}\" target=\"_blank\"><img src=\"$file\" style=\"border:1px solid #efefef;margin-right:".$margin_right."px;\" border=0 height=\"$img_height\" width=\"$img_width\"></a>";
$subject = cut_str($list[$i][wr_subject], 20, '..');
$k = (int)($i / $td_mod);
$roll_text[$k] .= "<table width=100% cellpadding=0 cellspacing=0 border=0 ><tr><td height=45 style=\"border-bottom:1px solid #f2f2f2;padding:2px 0 3px 0;\">";
$roll_text[$k] .= "{$img}";
$roll_text[$k] .= "</td><td height=45 style=\"border-bottom:1px solid #f2f2f2;width:160px; line-height:15px; padding:2px 0 3px 0;\" valign=\"center\"><div class=\"title\">{$subject}</div><br><div class=\"title1\"><b>{$list[$i][wr_1]}</b></div><br><div class=\"title2\">{$list[$i][wr_2]}원</div></td></tr>";
$roll_text[$k] .= "</table>";
}
}
for ($i=0; $i<=$k; $i++) {
echo "roll_text_{$uni}[$i] = '{$roll_text[$i]}';\n";
}
?>
위로 하나식 스크롤되는 최근 게시물 입니다.
노이미지 소스가 잘못된듯합니다.
소스 수정좀 부탁드립니다.
댓글 전체
안되네요 소스가 안먹히나...왜이러져
$file = $list[$i][file][0][path] ."/". $list[$i][file][0][file];
if($file){ <--if(file_exists($file) 로 수정
$img =................
} <-----------추가
.
.
.
$roll_text[$k] .= "</table>";
} <-------------삭제
if($file){ <--if(file_exists($file) 로 수정
$img =................
} <-----------추가
.
.
.
$roll_text[$k] .= "</table>";
} <-------------삭제