최근 게시물 스킨 배열 수정해주세요 파일 올렸어요! 정보
최근 게시물 스킨 배열 수정해주세요 파일 올렸어요!본문
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
//두줄 최신글
$ia_width = '600'; //테이블폭
?>
<style type="text/css">
<!--
.w_t { font-family:굴림; font-size:9pt; color:#598389; }
.w_s { font-family:굴림; font-size:9pt; color:#676b72; padding-top:4px; padding-left:2px;}
-->
</style>
<table width=<?=$ia_width?> border=0 cellpadding=0 cellspacing=0>
<tr>
<td valign='top' align=center>
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
<? for ($i=0; $i<count($list); $i++) {
if ($i>0 && $i%2==0) { echo "</tr><tr>"; }
?>
<td width="49%" height=24><?
$style = "";
$image = urlencode($list[$i][file][1][file]); // 첫번째 파일이 이미지라면
if (preg_match("/\.(gif|jpg|png)$/i", $image)) {
echo "<table><tr><td><img src='$g4[path]/data/file/$bo_table/$image' width='100' height='42' border=0 >"; // 이미지크기
} else
echo "<img src='$latest_skin_path/img/no_image.gif' width='60' height='40' border=0>";
if ($list[$i][icon_new])
$style = "style='vertical-align:bottom;'";
$subject = "<span $style>".cut_str($list[$i][subject],37)."{$list[$i]['wr_datetime']}</td></tr></td></tr></table>
</span> "; //제목 글자수
echo $list[$i][icon_reply] . " ";
echo "<a href='{$list[$i][href]}' title='{$list[$i][subject]}' onfocus='this.blur()'>";
if ($list[$i]['is_notice'])
echo "{$subject}";
else
echo "{$subject}";
if ($list[$i][comment_cnt])
echo " <span style='font-size:8pt; color:#9A9A9A;'>{$list[$i][comment_cnt]}</span>";
echo " " . $list[$i][icon_new];
echo "</a>";
?> </td>
<? } ?>
<?
$cnt = ($i%2);
for ($k=$cnt; $k<2 && $cnt; $k++) {
echo "<td width=5><img width=5 height=1 border=0></td><td width=49%> </td><td width=5><img width=5 height=1 border=0></td>";
}
?>
<? if (count($list) == 0) { ?><td colspan=6 align=center height=150 class=w_s>게시물이 없습니다.</td><? } ?>
</tr>
</table></td>
</tr>
</table>
소스 인데요.
내용이,
제목
사진
날짜
이렇게 하고 싶습니다
그런데
사진 제목날짜
계속 이렇게 제목 뒤에 날짜가 오네요. <br>을 먹이니 이미지 밑으로 날짜가 들어가버리구요.
수정 부탁드려도 될까요? ^^;;;
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
//두줄 최신글
$ia_width = '600'; //테이블폭
?>
<style type="text/css">
<!--
.w_t { font-family:굴림; font-size:9pt; color:#598389; }
.w_s { font-family:굴림; font-size:9pt; color:#676b72; padding-top:4px; padding-left:2px;}
-->
</style>
<table width=<?=$ia_width?> border=0 cellpadding=0 cellspacing=0>
<tr>
<td valign='top' align=center>
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
<? for ($i=0; $i<count($list); $i++) {
if ($i>0 && $i%2==0) { echo "</tr><tr>"; }
?>
<td width="49%" height=24><?
$style = "";
$image = urlencode($list[$i][file][1][file]); // 첫번째 파일이 이미지라면
if (preg_match("/\.(gif|jpg|png)$/i", $image)) {
echo "<table><tr><td><img src='$g4[path]/data/file/$bo_table/$image' width='100' height='42' border=0 >"; // 이미지크기
} else
echo "<img src='$latest_skin_path/img/no_image.gif' width='60' height='40' border=0>";
if ($list[$i][icon_new])
$style = "style='vertical-align:bottom;'";
$subject = "<span $style>".cut_str($list[$i][subject],37)."{$list[$i]['wr_datetime']}</td></tr></td></tr></table>
</span> "; //제목 글자수
echo $list[$i][icon_reply] . " ";
echo "<a href='{$list[$i][href]}' title='{$list[$i][subject]}' onfocus='this.blur()'>";
if ($list[$i]['is_notice'])
echo "{$subject}";
else
echo "{$subject}";
if ($list[$i][comment_cnt])
echo " <span style='font-size:8pt; color:#9A9A9A;'>{$list[$i][comment_cnt]}</span>";
echo " " . $list[$i][icon_new];
echo "</a>";
?> </td>
<? } ?>
<?
$cnt = ($i%2);
for ($k=$cnt; $k<2 && $cnt; $k++) {
echo "<td width=5><img width=5 height=1 border=0></td><td width=49%> </td><td width=5><img width=5 height=1 border=0></td>";
}
?>
<? if (count($list) == 0) { ?><td colspan=6 align=center height=150 class=w_s>게시물이 없습니다.</td><? } ?>
</tr>
</table></td>
</tr>
</table>
소스 인데요.
내용이,
제목
사진
날짜
이렇게 하고 싶습니다
그런데
사진 제목날짜
계속 이렇게 제목 뒤에 날짜가 오네요. <br>을 먹이니 이미지 밑으로 날짜가 들어가버리구요.
수정 부탁드려도 될까요? ^^;;;
댓글 전체
이렇게 해 보세요. 더 간단한 방법도 있긴 하지만....
<td width="49%" height=24><?
$style = "";
$image = urlencode($list[$i][file][1][file]); // 첫번째 파일이 이미지라면
if (preg_match("/\.(gif|jpg|png)$/i", $image)) {
echo "<table><tr><td><img src='$g4[path]/data/file/$bo_table/$image' width='100' height='42' border=0 >"; // 이미지크기
} else
echo "<img src='$latest_skin_path/img/no_image.gif' width='60' height='40' border=0></td>";
if ($list[$i][icon_new])
$style = "style='vertical-align:bottom;'";
$subject = "<td><table><tr><td><span $style>".cut_str($list[$i][subject],37)."</span></td></tr><tr><td><span $style>{$list[$i]['wr_datetime']}</span></td></tr></table></td></tr></table>
</span> "; //제목 글자수
<td width="49%" height=24><?
$style = "";
$image = urlencode($list[$i][file][1][file]); // 첫번째 파일이 이미지라면
if (preg_match("/\.(gif|jpg|png)$/i", $image)) {
echo "<table><tr><td><img src='$g4[path]/data/file/$bo_table/$image' width='100' height='42' border=0 >"; // 이미지크기
} else
echo "<img src='$latest_skin_path/img/no_image.gif' width='60' height='40' border=0></td>";
if ($list[$i][icon_new])
$style = "style='vertical-align:bottom;'";
$subject = "<td><table><tr><td><span $style>".cut_str($list[$i][subject],37)."</span></td></tr><tr><td><span $style>{$list[$i]['wr_datetime']}</span></td></tr></table></td></tr></table>
</span> "; //제목 글자수
정말감사합니다!! ^^