자동차매매 최신글에 대하여 [정말 모르겠어요ㅠㅜ""] 정보
자동차매매 최신글에 대하여 [정말 모르겠어요ㅠㅜ""]본문
안녕하세요.
이렇게 새벽까지 뜯고 고쳤는데 안되네요.ㅠㅜ
최신글에 이미자와 제목 그리고 가격을 출력하려거든요.
근데 이놈 가격이 출력이 안되네요.-,,-
가격은 [nine12]
아래는 토마토님의 원본 최신글 소스입니다.
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=1130
----------------------------------------------------------------------------------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$mod = 1;
?>
<table width="100%" cellpadding="0" cellspacing="0"><tr>
<? for ($i=0; $i<count($list); $i++) { ?>
<?
if ($i>0 && $i%$mod==0) { echo "</tr><tr>"; }
?>
<td>
<table width="100%">
<?
$p_four = explode("|",$list[$i][wr_4]);
$four01 = $p_four[0];
$four02 = $p_four[1];
$four03 = $p_four[2];
$four04 = $p_four[3];
$four05 = $p_four[4];
?>
<?
$p_nine = explode("|",$list[$i][wr_9]);
$nine01 = $p_nine[0];
$nine02 = $p_nine[1];
$nine03 = $p_nine[2];
$nine04 = $p_nine[3];
$nine05 = $p_nine[4];
$nine06 = $p_nine[5];
$nine07 = $p_nine[6];
$nine08 = $p_nine[7];
$nine09 = $p_nine[8];
$nine10 = $p_nine[9];
$nine11 = $p_nine[10];
$nine12 = $p_nine[11];
$nine13 = $p_nine[12];
$nine14 = $p_nine[13];
$nine15 = $p_nine[14];
$nine16 = $p_nine[15];
?>
<tr>
<td width="10" align="center"> </td>
<td><? if ($list[$i][is_notice]) {?>
<a href='<?=$list[$i][href]?>'><span class=black><b>
<?=$list[$i][subject]?>
</b></span></a>
<? } else {?>
<a href='<?=$list[$i][href]?>'>
<? if ($four02) echo '<b>';?>
<? if ($four03) echo '<span class="blue">';?>
<?=$list[$i][subject]?>
<? if ($four03) echo '</span>';?>
<? if ($four02) echo '</b>';?>
</a>
<? }?>
<? if ($list[$i][comment_cnt]) {?>
<a href="<?=$list[$i][comment_href]?>">
<?=$list[$i][comment_cnt]?>
</a>
<? }?>
<?=$list[$i][icon_new]?>
<?=$list[$i][icon_hot]?>
<? if ($four01)
echo "<img src='$latest_skin_path/img/car_icon_1.gif' border='0' align='absmiddle'>";?>
<? if ($four04)
echo "<img src='$latest_skin_path/img/car_icon_2.gif' border='0' align='absmiddle'>";?>
<? if ($four05)
echo "<img src='$latest_skin_path/img/car_icon_3.gif' border='0' align='absmiddle'>";?>
<br>
<span class=gray>
<?=$nine07?>
/
<?=$nine08?>
/
<?=$nine09?>
</span> </td>
<td width="50" align="center"><?=$nine10?>년</td>
<td width="50" align="center"><?=$nine06?></td>
<td width="90" align="center"><span class="red">
<?=$nine12?>
</span> 원</td>
<td width="40" align="center"><?=$list[$i][wr_5]?></td>
<td width="60" align="center"><?=$list[$i][datetime2]?></td>
<td width="20" align="center"><?=$list[$i][wr_hit]?></td>
</tr>
<tr bgcolor="eeeeee">
<td height="1" colspan="8"></td>
</tr>
</table>
</td><? } ?>
<?
$nam = ($i%$mod);
for ($k=$nam; $k<$mod && $nam; $k++)
{ echo "<td> </td>";}
?>
<? if (count($list) == 0) { echo "<td colspan=$mod class=bbs>내용이 없습니다.</td>"; } ?>
</tr></table>
----------------------------------------------------------------------------------------------------------------------
아래는 제각 수정한 소스입니다,가격이 출력이 안됩니다...
--------------------------------------------------------------------------------------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$mod = 1;
?>
<!-- <?=$board[bo_subject]?> (<?=$board[bo_table]?>) 최신글 -->
<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
<tr><td align="center">
</td></tr>
<tr><td align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<?
for ($i=0; $i<count($list); $i++)
{
if ($i > 0)
echo "<td width=20> </td>";
$title = get_text($list[$i][wr_subject]);
$content = cut_str(get_text($list[$i][wr_content]), 80);
$img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
if (!file_exists($img) || !$list[$i][file][0][file])
$img = "$latest_skin_path/img/no_image.gif";
$href = "$g4[bbs_path]/board.php?bo_table=$bo_table";
echo <<<HEREDOC
<td style="border-top: 0px solid #6CACA4; border-right: 1px solid #6CACA4;border-left: 0px solid #dddddd;"
width="146" valign="top" align="center">
<table width="146" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="146" height="5" align="center"></td>
</tr>
<tr>
<td align="center">
<div style="width:146px;height:180px;border:0px solid #CCCCCC;padding:3px" align="center">
<table width="124" height="17" background="$latest_skin_path/img/124-cg.gif" align="center" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}'>{$list[$i][subject]}</a>
{$list[$i][comment_cnt]}</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="5"> </td>
</tr>
</table>
<a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}'><img src="{$img}" width="134" height="140" border="0" align="absmiddle" title="$title"></a> </div> </td>
</tr>
<tr>
<td align="center"> 확정가 : <?=$nine12?> </td>
</tr>
<tr>
<td width="106" height="5" align="center"></td>
</tr>
<tr>
<td width="146" height="20" align="center" class="sub"><a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}'><img src="$latest_skin_path/img/buy_09.gif" border="0" /></a>
</td>
</tr>
</table>
</td>
HEREDOC;
}
?>
</tr>
<? if (count($list) == 0) { ?>
<tr><td height=25 colspan=2 align="center" >게시물이 없습니다.</td>
</tr>
<? } ?>
</table>
</td></tr>
</table>
----------------------------------------------------------------------------------------------------------------------
고수님들 조금만 봐주시면 될것같습니다.
가격만 출력하려고 합니다.
감사합니다.
--------------------------------------------------------------------------------------------------------------
이렇게 새벽까지 뜯고 고쳤는데 안되네요.ㅠㅜ
최신글에 이미자와 제목 그리고 가격을 출력하려거든요.
근데 이놈 가격이 출력이 안되네요.-,,-
가격은 [nine12]
아래는 토마토님의 원본 최신글 소스입니다.
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=1130
----------------------------------------------------------------------------------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$mod = 1;
?>
<table width="100%" cellpadding="0" cellspacing="0"><tr>
<? for ($i=0; $i<count($list); $i++) { ?>
<?
if ($i>0 && $i%$mod==0) { echo "</tr><tr>"; }
?>
<td>
<table width="100%">
<?
$p_four = explode("|",$list[$i][wr_4]);
$four01 = $p_four[0];
$four02 = $p_four[1];
$four03 = $p_four[2];
$four04 = $p_four[3];
$four05 = $p_four[4];
?>
<?
$p_nine = explode("|",$list[$i][wr_9]);
$nine01 = $p_nine[0];
$nine02 = $p_nine[1];
$nine03 = $p_nine[2];
$nine04 = $p_nine[3];
$nine05 = $p_nine[4];
$nine06 = $p_nine[5];
$nine07 = $p_nine[6];
$nine08 = $p_nine[7];
$nine09 = $p_nine[8];
$nine10 = $p_nine[9];
$nine11 = $p_nine[10];
$nine12 = $p_nine[11];
$nine13 = $p_nine[12];
$nine14 = $p_nine[13];
$nine15 = $p_nine[14];
$nine16 = $p_nine[15];
?>
<tr>
<td width="10" align="center"> </td>
<td><? if ($list[$i][is_notice]) {?>
<a href='<?=$list[$i][href]?>'><span class=black><b>
<?=$list[$i][subject]?>
</b></span></a>
<? } else {?>
<a href='<?=$list[$i][href]?>'>
<? if ($four02) echo '<b>';?>
<? if ($four03) echo '<span class="blue">';?>
<?=$list[$i][subject]?>
<? if ($four03) echo '</span>';?>
<? if ($four02) echo '</b>';?>
</a>
<? }?>
<? if ($list[$i][comment_cnt]) {?>
<a href="<?=$list[$i][comment_href]?>">
<?=$list[$i][comment_cnt]?>
</a>
<? }?>
<?=$list[$i][icon_new]?>
<?=$list[$i][icon_hot]?>
<? if ($four01)
echo "<img src='$latest_skin_path/img/car_icon_1.gif' border='0' align='absmiddle'>";?>
<? if ($four04)
echo "<img src='$latest_skin_path/img/car_icon_2.gif' border='0' align='absmiddle'>";?>
<? if ($four05)
echo "<img src='$latest_skin_path/img/car_icon_3.gif' border='0' align='absmiddle'>";?>
<br>
<span class=gray>
<?=$nine07?>
/
<?=$nine08?>
/
<?=$nine09?>
</span> </td>
<td width="50" align="center"><?=$nine10?>년</td>
<td width="50" align="center"><?=$nine06?></td>
<td width="90" align="center"><span class="red">
<?=$nine12?>
</span> 원</td>
<td width="40" align="center"><?=$list[$i][wr_5]?></td>
<td width="60" align="center"><?=$list[$i][datetime2]?></td>
<td width="20" align="center"><?=$list[$i][wr_hit]?></td>
</tr>
<tr bgcolor="eeeeee">
<td height="1" colspan="8"></td>
</tr>
</table>
</td><? } ?>
<?
$nam = ($i%$mod);
for ($k=$nam; $k<$mod && $nam; $k++)
{ echo "<td> </td>";}
?>
<? if (count($list) == 0) { echo "<td colspan=$mod class=bbs>내용이 없습니다.</td>"; } ?>
</tr></table>
----------------------------------------------------------------------------------------------------------------------
아래는 제각 수정한 소스입니다,가격이 출력이 안됩니다...
--------------------------------------------------------------------------------------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$mod = 1;
?>
<!-- <?=$board[bo_subject]?> (<?=$board[bo_table]?>) 최신글 -->
<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
<tr><td align="center">
</td></tr>
<tr><td align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<?
for ($i=0; $i<count($list); $i++)
{
if ($i > 0)
echo "<td width=20> </td>";
$title = get_text($list[$i][wr_subject]);
$content = cut_str(get_text($list[$i][wr_content]), 80);
$img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
if (!file_exists($img) || !$list[$i][file][0][file])
$img = "$latest_skin_path/img/no_image.gif";
$href = "$g4[bbs_path]/board.php?bo_table=$bo_table";
echo <<<HEREDOC
<td style="border-top: 0px solid #6CACA4; border-right: 1px solid #6CACA4;border-left: 0px solid #dddddd;"
width="146" valign="top" align="center">
<table width="146" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="146" height="5" align="center"></td>
</tr>
<tr>
<td align="center">
<div style="width:146px;height:180px;border:0px solid #CCCCCC;padding:3px" align="center">
<table width="124" height="17" background="$latest_skin_path/img/124-cg.gif" align="center" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}'>{$list[$i][subject]}</a>
{$list[$i][comment_cnt]}</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="5"> </td>
</tr>
</table>
<a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}'><img src="{$img}" width="134" height="140" border="0" align="absmiddle" title="$title"></a> </div> </td>
</tr>
<tr>
<td align="center"> 확정가 : <?=$nine12?> </td>
</tr>
<tr>
<td width="106" height="5" align="center"></td>
</tr>
<tr>
<td width="146" height="20" align="center" class="sub"><a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}'><img src="$latest_skin_path/img/buy_09.gif" border="0" /></a>
</td>
</tr>
</table>
</td>
HEREDOC;
}
?>
</tr>
<? if (count($list) == 0) { ?>
<tr><td height=25 colspan=2 align="center" >게시물이 없습니다.</td>
</tr>
<? } ?>
</table>
</td></tr>
</table>
----------------------------------------------------------------------------------------------------------------------
고수님들 조금만 봐주시면 될것같습니다.
가격만 출력하려고 합니다.
감사합니다.
--------------------------------------------------------------------------------------------------------------
댓글 전체
수정 하신 아래 부분 소스에
<?
$p_four = explode("|",$list[$i][wr_4]);
$four01 = $p_four[0];
$four02 = $p_four[1];
$four03 = $p_four[2];
$four04 = $p_four[3];
$four05 = $p_four[4];
?>
<?
$p_nine = explode("|",$list[$i][wr_9]);
$nine01 = $p_nine[0];
$nine02 = $p_nine[1];
$nine03 = $p_nine[2];
$nine04 = $p_nine[3];
$nine05 = $p_nine[4];
$nine06 = $p_nine[5];
$nine07 = $p_nine[6];
$nine08 = $p_nine[7];
$nine09 = $p_nine[8];
$nine10 = $p_nine[9];
$nine11 = $p_nine[10];
$nine12 = $p_nine[11];
$nine13 = $p_nine[12];
$nine14 = $p_nine[13];
$nine15 = $p_nine[14];
$nine16 = $p_nine[15];
?>
넣으십시오
<?
$p_four = explode("|",$list[$i][wr_4]);
$four01 = $p_four[0];
$four02 = $p_four[1];
$four03 = $p_four[2];
$four04 = $p_four[3];
$four05 = $p_four[4];
?>
<?
$p_nine = explode("|",$list[$i][wr_9]);
$nine01 = $p_nine[0];
$nine02 = $p_nine[1];
$nine03 = $p_nine[2];
$nine04 = $p_nine[3];
$nine05 = $p_nine[4];
$nine06 = $p_nine[5];
$nine07 = $p_nine[6];
$nine08 = $p_nine[7];
$nine09 = $p_nine[8];
$nine10 = $p_nine[9];
$nine11 = $p_nine[10];
$nine12 = $p_nine[11];
$nine13 = $p_nine[12];
$nine14 = $p_nine[13];
$nine15 = $p_nine[14];
$nine16 = $p_nine[15];
?>
넣으십시오
그 부분을 추가해도 안됩니다,
다른 방법 알려주세요!!
다른 방법 알려주세요!!
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$mod = 1;
?>
<table width=100% border=0 cellpadding=0 cellspacing=0>
<tr>
<td align=center>
<table width=100% cellpadding="0" cellspacing="2">
<tr>
<? for ($i=0; $i<count($list); $i++) {
$p_four = explode("|",$list[$i][wr_4]);
$four01 = $p_four[0];
$four02 = $p_four[1];
$four03 = $p_four[2];
$four04 = $p_four[3];
$four05 = $p_four[4];
$p_nine = explode("|",$list[$i][wr_9]);
$nine01 = $p_nine[0];
$nine02 = $p_nine[1];
$nine03 = $p_nine[2];
$nine04 = $p_nine[3];
$nine05 = $p_nine[4];
$nine06 = $p_nine[5];
$nine07 = $p_nine[6];
$nine08 = $p_nine[7];
$nine09 = $p_nine[8];
$nine10 = $p_nine[9];
$nine11 = $p_nine[10];
$nine12 = $p_nine[11];
$nine13 = $p_nine[12];
$nine14 = $p_nine[13];
$nine15 = $p_nine[14];
$nine16 = $p_nine[15];
$title = get_text($list[$i][wr_subject]);
$content = cut_str(get_text($list[$i][wr_content]), 80);
$img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
if (!file_exists($img) || !$list[$i][file][0][file])
$img = "$latest_skin_path/img/no_image.gif";
$href = "$g4[bbs_path]/board.php?bo_table=$bo_table";
?>
<? if ($i>0 && $i%$mod==0) { echo "<td width=20> </td>"; } ?>
<td style="border-top: 0px solid #6CACA4; border-right: 1px solid #6CACA4;border-left: 0px solid #dddddd;" width="146" valign="top" align="center">
<table width="146" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="146" height="5" align="center"></td>
</tr>
<tr>
<td align="center">
<div style="width:146px;height:180px;border:0px solid #CCCCCC;padding:3px" align="center">
<table width="124" height="17" background="$latest_skin_path/img/124-cg.gif" align="center" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}'><?=$list[$i][subject]?></a><?=$list[$i][comment_cnt]?></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="5"> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}'><img src="{$img}" width="134" height="140" border="0" align="absmiddle" title="$title"></a></td>
</tr>
<tr>
<td align="center"> 확정가 : <?=$nine12?> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="5"> </td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td width="146" height="20" align="center" class="sub"><a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}'><img src="$latest_skin_path/img/buy_09.gif" border="0" /></a></td>
</tr>
</table>
</td>
<? } ?>
<?
// td(열)의 나머지 갯수를 구한후 빈 td(열)을 출력한다.
$nam = ($i%$mod);
for ($k=$nam; $k<$mod && $nam; $k++) {
echo "<td> </td>";
}
?>
<? if (count($list) == 0) { echo "<td colspan=$mod>게시물이 없습니다.</td>"; } ?>
</tr>
</table>
</td>
</tr>
</table>
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$mod = 1;
?>
<table width=100% border=0 cellpadding=0 cellspacing=0>
<tr>
<td align=center>
<table width=100% cellpadding="0" cellspacing="2">
<tr>
<? for ($i=0; $i<count($list); $i++) {
$p_four = explode("|",$list[$i][wr_4]);
$four01 = $p_four[0];
$four02 = $p_four[1];
$four03 = $p_four[2];
$four04 = $p_four[3];
$four05 = $p_four[4];
$p_nine = explode("|",$list[$i][wr_9]);
$nine01 = $p_nine[0];
$nine02 = $p_nine[1];
$nine03 = $p_nine[2];
$nine04 = $p_nine[3];
$nine05 = $p_nine[4];
$nine06 = $p_nine[5];
$nine07 = $p_nine[6];
$nine08 = $p_nine[7];
$nine09 = $p_nine[8];
$nine10 = $p_nine[9];
$nine11 = $p_nine[10];
$nine12 = $p_nine[11];
$nine13 = $p_nine[12];
$nine14 = $p_nine[13];
$nine15 = $p_nine[14];
$nine16 = $p_nine[15];
$title = get_text($list[$i][wr_subject]);
$content = cut_str(get_text($list[$i][wr_content]), 80);
$img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
if (!file_exists($img) || !$list[$i][file][0][file])
$img = "$latest_skin_path/img/no_image.gif";
$href = "$g4[bbs_path]/board.php?bo_table=$bo_table";
?>
<? if ($i>0 && $i%$mod==0) { echo "<td width=20> </td>"; } ?>
<td style="border-top: 0px solid #6CACA4; border-right: 1px solid #6CACA4;border-left: 0px solid #dddddd;" width="146" valign="top" align="center">
<table width="146" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="146" height="5" align="center"></td>
</tr>
<tr>
<td align="center">
<div style="width:146px;height:180px;border:0px solid #CCCCCC;padding:3px" align="center">
<table width="124" height="17" background="$latest_skin_path/img/124-cg.gif" align="center" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}'><?=$list[$i][subject]?></a><?=$list[$i][comment_cnt]?></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="5"> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}'><img src="{$img}" width="134" height="140" border="0" align="absmiddle" title="$title"></a></td>
</tr>
<tr>
<td align="center"> 확정가 : <?=$nine12?> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="5"> </td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td width="146" height="20" align="center" class="sub"><a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}'><img src="$latest_skin_path/img/buy_09.gif" border="0" /></a></td>
</tr>
</table>
</td>
<? } ?>
<?
// td(열)의 나머지 갯수를 구한후 빈 td(열)을 출력한다.
$nam = ($i%$mod);
for ($k=$nam; $k<$mod && $nam; $k++) {
echo "<td> </td>";
}
?>
<? if (count($list) == 0) { echo "<td colspan=$mod>게시물이 없습니다.</td>"; } ?>
</tr>
</table>
</td>
</tr>
</table>
이미지과 링크가 깨져요.ㅠㅜ""
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$mod = 1;
?>
<table width=100% border=0 cellpadding=0 cellspacing=0>
<tr>
<td align=center>
<table width=100% cellpadding="0" cellspacing="2">
<tr>
<? for ($i=0; $i<count($list); $i++) {
$p_four = explode("|",$list[$i][wr_4]);
$four01 = $p_four[0];
$four02 = $p_four[1];
$four03 = $p_four[2];
$four04 = $p_four[3];
$four05 = $p_four[4];
$p_nine = explode("|",$list[$i][wr_9]);
$nine01 = $p_nine[0];
$nine02 = $p_nine[1];
$nine03 = $p_nine[2];
$nine04 = $p_nine[3];
$nine05 = $p_nine[4];
$nine06 = $p_nine[5];
$nine07 = $p_nine[6];
$nine08 = $p_nine[7];
$nine09 = $p_nine[8];
$nine10 = $p_nine[9];
$nine11 = $p_nine[10];
$nine12 = $p_nine[11];
$nine13 = $p_nine[12];
$nine14 = $p_nine[13];
$nine15 = $p_nine[14];
$nine16 = $p_nine[15];
$title = get_text($list[$i][wr_subject]);
$content = cut_str(get_text($list[$i][wr_content]), 80);
$img = urlencode($list[$i][file][0][file]);
if (!file_exists($img) || !$list[$i][file][0][file])
$img = "$latest_skin_path/img/no_image.gif";
?>
<? if ($i>0 && $i%$mod==0) { echo "<td width=20> </td>"; } ?>
<td style="border-top: 0px solid #6CACA4; border-right: 1px solid #6CACA4;border-left: 0px solid #dddddd;" width="146" valign="top" align="center">
<table width="146" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="146" height="5" align="center"></td>
</tr>
<tr>
<td align="center">
<div style="width:146px;height:180px;border:0px solid #CCCCCC;padding:3px" align="center">
<table width="124" height="17" background="$latest_skin_path/img/124-cg.gif" align="center" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><a href='<?=$list[$i][href]?>'><?=$list[$i][subject]?></a><?=$list[$i][comment_cnt]?></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="5"> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><a href='<?=$list[$i][href]?>'><img src="$img" width="134" height="140" border="0" align="absmiddle" title="$title"></a></td>
</tr>
<tr>
<td align="center"> 확정가 : <?=$nine12?> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="5"> </td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td width="146" height="20" align="center" class="sub"><a href='<?=$list[$i][href]?>'><img src="$latest_skin_path/img/buy_09.gif" border="0" /></a></td>
</tr>
</table>
</td>
<? } ?>
<?
// td(열)의 나머지 갯수를 구한후 빈 td(열)을 출력한다.
$nam = ($i%$mod);
for ($k=$nam; $k<$mod && $nam; $k++) {
echo "<td> </td>";
}
?>
<? if (count($list) == 0) { echo "<td colspan=$mod>게시물이 없습니다.</td>"; } ?>
</tr>
</table>
</td>
</tr>
</table>
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$mod = 1;
?>
<table width=100% border=0 cellpadding=0 cellspacing=0>
<tr>
<td align=center>
<table width=100% cellpadding="0" cellspacing="2">
<tr>
<? for ($i=0; $i<count($list); $i++) {
$p_four = explode("|",$list[$i][wr_4]);
$four01 = $p_four[0];
$four02 = $p_four[1];
$four03 = $p_four[2];
$four04 = $p_four[3];
$four05 = $p_four[4];
$p_nine = explode("|",$list[$i][wr_9]);
$nine01 = $p_nine[0];
$nine02 = $p_nine[1];
$nine03 = $p_nine[2];
$nine04 = $p_nine[3];
$nine05 = $p_nine[4];
$nine06 = $p_nine[5];
$nine07 = $p_nine[6];
$nine08 = $p_nine[7];
$nine09 = $p_nine[8];
$nine10 = $p_nine[9];
$nine11 = $p_nine[10];
$nine12 = $p_nine[11];
$nine13 = $p_nine[12];
$nine14 = $p_nine[13];
$nine15 = $p_nine[14];
$nine16 = $p_nine[15];
$title = get_text($list[$i][wr_subject]);
$content = cut_str(get_text($list[$i][wr_content]), 80);
$img = urlencode($list[$i][file][0][file]);
if (!file_exists($img) || !$list[$i][file][0][file])
$img = "$latest_skin_path/img/no_image.gif";
?>
<? if ($i>0 && $i%$mod==0) { echo "<td width=20> </td>"; } ?>
<td style="border-top: 0px solid #6CACA4; border-right: 1px solid #6CACA4;border-left: 0px solid #dddddd;" width="146" valign="top" align="center">
<table width="146" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="146" height="5" align="center"></td>
</tr>
<tr>
<td align="center">
<div style="width:146px;height:180px;border:0px solid #CCCCCC;padding:3px" align="center">
<table width="124" height="17" background="$latest_skin_path/img/124-cg.gif" align="center" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><a href='<?=$list[$i][href]?>'><?=$list[$i][subject]?></a><?=$list[$i][comment_cnt]?></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="5"> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><a href='<?=$list[$i][href]?>'><img src="$img" width="134" height="140" border="0" align="absmiddle" title="$title"></a></td>
</tr>
<tr>
<td align="center"> 확정가 : <?=$nine12?> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="5"> </td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td width="146" height="20" align="center" class="sub"><a href='<?=$list[$i][href]?>'><img src="$latest_skin_path/img/buy_09.gif" border="0" /></a></td>
</tr>
</table>
</td>
<? } ?>
<?
// td(열)의 나머지 갯수를 구한후 빈 td(열)을 출력한다.
$nam = ($i%$mod);
for ($k=$nam; $k<$mod && $nam; $k++) {
echo "<td> </td>";
}
?>
<? if (count($list) == 0) { echo "<td colspan=$mod>게시물이 없습니다.</td>"; } ?>
</tr>
</table>
</td>
</tr>
</table>