<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<?
$image_height = 120; // 높이
$image_width = 120; // 너비
?>
<table width="576" border="0" cellspacing="0" cellpadding="0">
<tr>
<Td height="3" bgcolor="#FFFFFF"></Td>
</tr>
<tr>
<td height="28"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td heigt="24"><img src="<?=$latest_skin_path?>/img/event_navi.gif"></td>
</tr>
</table></td>
</tr>
<tr>
<Td height="1" bgcolor="#CCCCCC"></Td>
</tr>
</table>
<table width=576 cellpadding=0 cellspacing=1 border=0 style="table-layout: fixed;">
<? for ($i=0; $i<count($list); $i++) { ?>
<? if ($i==0){?>
<tr>
<td width="22%" rowspan=5> <!--리스크 개수 !-->
<?
echo "<a href='{$list[$i][href]}'>";
$image = urlencode($list[$i][file][0][file]); // 첫번째 파일이 이미지라면
if (preg_match("/\.(gif|jpg|png)$/i", $image)) {
echo "<img src='$g4[path]/data/file/$bo_table/$image' width='$image_width' height='$image_height' border=3 style='border-color:EFEFEF;' align=left>"; // 이미지크기
} else
echo "<img src='$latest_skin_path/img/noimage.gif' width='$image_width' height='$image_height' border=3 style='border-color:EFEFEF;' align=left>";
echo "</a>";
?>
</td>
<? }else{?>
<td width="63%" style="border-bottom-width:1;border-bottom-color:#dddddd;border-bottom-style:dotted;">
<?
echo $list[$i][icon_reply] . " ";
echo "<a href='{$list[$i][href]}'>";
if ($list[$i][is_notice])
echo "<font style='font-family:돋움; font-size:9pt; color:#281900;'>{$list[$i][subject]}</font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#281900;'>[{$list[$i][ca_name]}] </font>";
echo "<font style='font-family:돋움; font-size:9pt; color:#281900;'>{$list[$i][subject]}</font>";
echo "</a>";
if ($list[$i][comment_cnt])
echo " <a href=\"{$list[$i][comment_href]}\"><span style='font-family:돋움; font-size:8pt; color:#281900;'>{$list[$i][comment_cnt]}</span></a>";
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
echo " " . $list[$i][icon_new];
echo " " . $list[$i][icon_file];
echo " " . $list[$i][icon_link];
echo " " . $list[$i][icon_hot];
echo " " . $list[$i][icon_secret];
?>
</td>
<td width="15%" align="center" style="border-bottom-width:1;border-bottom-color:#dddddd;border-bottom-style:dotted;"><span style='font-family:돋움; font-size:8pt; color:#281900;'>[<?=$list[$i][datetime2]?>]</span></td>
</tr>
<? } ?>
<? } ?>
</table>
최신글이고요....게시판에 글이 하나 있으면 안나오고 두개 이상있어야 나옵니다
왜 이럴까요...
고수님들의 많은 조언 부탁드립니다
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<?
$image_height = 120; // 높이
$image_width = 120; // 너비
?>
<table width="576" border="0" cellspacing="0" cellpadding="0">
<tr>
<Td height="3" bgcolor="#FFFFFF"></Td>
</tr>
<tr>
<td height="28"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td heigt="24"><img src="<?=$latest_skin_path?>/img/event_navi.gif"></td>
</tr>
</table></td>
</tr>
<tr>
<Td height="1" bgcolor="#CCCCCC"></Td>
</tr>
</table>
<table width=576 cellpadding=0 cellspacing=1 border=0 style="table-layout: fixed;">
<? for ($i=0; $i<count($list); $i++) { ?>
<? if ($i==0){?>
<tr>
<td width="22%" rowspan=5> <!--리스크 개수 !-->
<?
echo "<a href='{$list[$i][href]}'>";
$image = urlencode($list[$i][file][0][file]); // 첫번째 파일이 이미지라면
if (preg_match("/\.(gif|jpg|png)$/i", $image)) {
echo "<img src='$g4[path]/data/file/$bo_table/$image' width='$image_width' height='$image_height' border=3 style='border-color:EFEFEF;' align=left>"; // 이미지크기
} else
echo "<img src='$latest_skin_path/img/noimage.gif' width='$image_width' height='$image_height' border=3 style='border-color:EFEFEF;' align=left>";
echo "</a>";
?>
</td>
<? }else{?>
<td width="63%" style="border-bottom-width:1;border-bottom-color:#dddddd;border-bottom-style:dotted;">
<?
echo $list[$i][icon_reply] . " ";
echo "<a href='{$list[$i][href]}'>";
if ($list[$i][is_notice])
echo "<font style='font-family:돋움; font-size:9pt; color:#281900;'>{$list[$i][subject]}</font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#281900;'>[{$list[$i][ca_name]}] </font>";
echo "<font style='font-family:돋움; font-size:9pt; color:#281900;'>{$list[$i][subject]}</font>";
echo "</a>";
if ($list[$i][comment_cnt])
echo " <a href=\"{$list[$i][comment_href]}\"><span style='font-family:돋움; font-size:8pt; color:#281900;'>{$list[$i][comment_cnt]}</span></a>";
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
echo " " . $list[$i][icon_new];
echo " " . $list[$i][icon_file];
echo " " . $list[$i][icon_link];
echo " " . $list[$i][icon_hot];
echo " " . $list[$i][icon_secret];
?>
</td>
<td width="15%" align="center" style="border-bottom-width:1;border-bottom-color:#dddddd;border-bottom-style:dotted;"><span style='font-family:돋움; font-size:8pt; color:#281900;'>[<?=$list[$i][datetime2]?>]</span></td>
</tr>
<? } ?>
<? } ?>
</table>
최신글이고요....게시판에 글이 하나 있으면 안나오고 두개 이상있어야 나옵니다
왜 이럴까요...
고수님들의 많은 조언 부탁드립니다
댓글 1개
게시글 목록
| 번호 | 제목 |
|---|---|
| 284508 | |
| 284499 | |
| 284492 | |
| 284490 | |
| 284484 | |
| 284481 | |
| 284478 | |
| 284476 | |
| 284474 | |
| 284472 | |
| 284470 | |
| 284458 | |
| 284457 | |
| 284454 | |
| 284453 | |
| 284447 | |
| 284446 | |
| 284444 | |
| 284441 | |
| 284440 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기