최신글 뿌려주는<?=latest 와 관련하여 문제가 발생했습니다 ㅠㅠ
본문
최신글을 다음과 같이 코딩하였으며,
basic 을 수정하였거든요~ ^^ ;;
<?=latest("basic","webzine_1",3,100); ?>
이렇게 올렸습니다만
<?
?>
<div style='height:40px;'> </div>
<table width="100%" cellpadding=0 cellspacing=0 border="0">
<tr>
<td width=14></td>
<td width="100%">
<strong><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><font style='font-size:12pt; color:#c17d00;'>[리샘컬럼]</font></a></strong>
</td>
</tr></table>
<table border=0 cellpadding=0 cellspacing=0>
<?
for ($i=0; $i<$rows; $i++) { ?>
<tr>
<?
$tmp_table = $bo_table;
if (!$bo_table)
$tmp_table = $list[$i]['bo_table'];
$list[$i]['subject'] = ($list[$i]['subject']);
$list[$i]['href'] = "{$g4['bbs_path']}/board.php?bo_table={$tmp_table}&wr_id={$list[$i]['wr_id']}";
?>
<? if ($img) { ?>
<td align="center" class="file"><div class="post-img"><a href="<?=$list[$i][href]?>"><img src="<?=$img?>" class="file-img"></a></div></td></tr>
<tr><td>
<div class="post-subject">
<a href="<?=$list[$i][href]?>"><span style="font-size:12px; font-weight:bold;"><?=$list[$i][subject]?></span></a>
</div>
<div style="color:#333333; ><a href="<?=$list[$i][href]?>">
<span style="color:#747172; font-size:12px; word-break:break-all;"><?=cut_str(strip_tags($list[$i][wr_content]),120,"...")?>
</span></a></div>
</td>
<? } else { ?>
<td rowspan="2" height="67" align="left">
<div class="post-subject2" style="margin:0px 0px 5px 0px;"><a href="<?=$list[$i][href]?>">
<span style="font-size:14px; font-weight:bold; color:#ff0066"><?=cut_str(strip_tags($list[$i][subject]),60,"...")?></span></a></div>
<div style="width:220px; color:#333333; height:30px;">
<a href="<?=$list[$i][href]?>"><span style="color:#747172; font-size:12px; word-break:break-all;">
<?=cut_str(strip_tags($list[$i][wr_content]),280,"...")?></span>
<div align="right" style="margin:5px 0px 0px 0px;"><img src="../imgs/main_bottom_01.gif"></div>
</a></div>
</td>
<? } ?>
</tr>
<? } ?>
</table>
</div>
이렇게.. 아작 나서 올라가 버리는 야속한 녀석이 되어 버렸어요 ㅠㅠ
일반 table안에 td 태그에 width 까지 지정해서 안에다가..
<?=latest("basic","webzine_1",3,100); ?>
이렇게 넣었는데.. 왜 저렇게 나올까요 ㅠㅠ
혹시 어느 파일을 손봐야 하나요~?
<?=latest 이 구문을 출력하는 명령문을 고쳐야 할까요..?
기존에 있던 skin 수정해보았는데 ㅠ
왜 이렇게 출력 되는지.. 으으 ㅠ
고수님들의 도움을 요청해봅니다 !!
!-->
답변을 작성하시기 전에 로그인 해주세요.