사진 리스트가 안 보이는군요 정보
사진 리스트가 안 보이는군요본문
include($DOCUMENT_ROOT."/g4/bbs/list.php");
include($DOCUMENT_ROOT."/g4/skin/board/product_02/ca.list.skin.php");
위에 인클루드시키고...
ca.list.skin.php 아래 파일을 불러오는데 ...
사진이 안보이네요
잘못된 부분이 있나요?
-----------------------------------------------------------------------------------------
<!-- 목록 시작 -->
<table width=100% cellpadding=0 cellspacing=2 border="1">
<tr align="center" valign="top">
<? for ($i=0; $i<count($list); $i++) { ?>
<td width="25%" style='word-break:break-all;'>
<?
echo $nobr_begin;
$photo_view = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
if($list[$i][icon_file]) echo "<!--a href=\"javascript:view_photo('{$photo_view}');\"--><img src='{$photo_view}' width='145' height='145' border='0'><br>";
else echo "<table width='145' height='145' bgcolor='DCDCDC'><tr align='center'><td><font color='AAAAAA'>no image</td></tr></table>";
if ($list[$i][is_notice])
echo "<font color='#FF6600'><strong>{$list[$i][subject]}</strong></font>";
else
{
$style1 = $style2 = "";
if ($list[$i][icon_new]) // 최신글은 검정
$style1 = "color:#112222;";
if (!$list[$i][comment_cnt]) // 코멘트 없는것만 굵게
$style2 = "";
echo "<span style='$style1 $style2'>{$list[$i][subject]}</span>";
}
echo "</a>";
echo $nobr_end;
?>
<? if ($admin_href){ echo "<br><a href='{$list[$i][href]}'>수정</a>"; } ?>
</td>
<?
$j = $i + 1;
if($j % 4 == 0) echo "</tr><tr align='center' valign='top'>";
}
?>
</tr>
<? if (count($list) == 0) { echo "<tr><td colspan='$colspan' height=100 align=center>등록된 상품이 없습니다.</td></tr>"; } ?>
</table>
<!-- 목록 끝 -->
include($DOCUMENT_ROOT."/g4/skin/board/product_02/ca.list.skin.php");
위에 인클루드시키고...
ca.list.skin.php 아래 파일을 불러오는데 ...
사진이 안보이네요
잘못된 부분이 있나요?
-----------------------------------------------------------------------------------------
<!-- 목록 시작 -->
<table width=100% cellpadding=0 cellspacing=2 border="1">
<tr align="center" valign="top">
<? for ($i=0; $i<count($list); $i++) { ?>
<td width="25%" style='word-break:break-all;'>
<?
echo $nobr_begin;
$photo_view = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
if($list[$i][icon_file]) echo "<!--a href=\"javascript:view_photo('{$photo_view}');\"--><img src='{$photo_view}' width='145' height='145' border='0'><br>";
else echo "<table width='145' height='145' bgcolor='DCDCDC'><tr align='center'><td><font color='AAAAAA'>no image</td></tr></table>";
if ($list[$i][is_notice])
echo "<font color='#FF6600'><strong>{$list[$i][subject]}</strong></font>";
else
{
$style1 = $style2 = "";
if ($list[$i][icon_new]) // 최신글은 검정
$style1 = "color:#112222;";
if (!$list[$i][comment_cnt]) // 코멘트 없는것만 굵게
$style2 = "";
echo "<span style='$style1 $style2'>{$list[$i][subject]}</span>";
}
echo "</a>";
echo $nobr_end;
?>
<? if ($admin_href){ echo "<br><a href='{$list[$i][href]}'>수정</a>"; } ?>
</td>
<?
$j = $i + 1;
if($j % 4 == 0) echo "</tr><tr align='center' valign='top'>";
}
?>
</tr>
<? if (count($list) == 0) { echo "<tr><td colspan='$colspan' height=100 align=center>등록된 상품이 없습니다.</td></tr>"; } ?>
</table>
<!-- 목록 끝 -->
댓글 전체

처리파일 list.php를 불러오기전에 $bo_table 값이 있어야합니다
맨위에 $bo_table = "게시판아이디"; 를 추가하거나 주소창에서 실행할때 http://도메인/파일?bo_table=게시판아이디 가있어야겠죠
ca.list.skin.php 스킨파일은 관리자에서 게시판설정으로 하여 list.php에서 자동으로 불러오게 하는게
좋습니다
맨위에 $bo_table = "게시판아이디"; 를 추가하거나 주소창에서 실행할때 http://도메인/파일?bo_table=게시판아이디 가있어야겠죠
ca.list.skin.php 스킨파일은 관리자에서 게시판설정으로 하여 list.php에서 자동으로 불러오게 하는게
좋습니다