썸네일 리스트부분에서
본문
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$board_skin_path/skin.lib.php");
?>
<style type="text/css">
img { max-width:100%; height:auto;}
</style>
?>
<style type="text/css">
img { max-width:100%; height:auto;}
</style>
<table width="<?=$width;?>" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<?
if ($is_member){ // 로그인했는지 확인
echo" <a href='logout.php'> ";
echo" <span style='font-size:8pt;'><font face='Tahoma' color='#999999'>로그아웃</font></span> ";
echo" </a> ";
} else{ // 로그인 안했다면
echo" <a href='login.php' target='_blank'> ";
echo" <span style='font-size:8pt;'><font face='Tahoma' color='#999999'>관리자 로그인</font></span> ";
echo" </a> ";
}
?>
<? if ($rss_href) { ?><a href='<?=$rss_href?>'><img src='<?=$board_skin_path?>/img/btn_rss.gif' border=0 align=absmiddle></a><?}?>
<? if ($admin_href) { ?><a href="<?=$admin_href?>"><img src="<?=$board_skin_path?>/img/admin_button.gif" title="관리자" border="0" align="absmiddle"></a><?}?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20%" style="font-size:12px;">
<img src="<?=$board_skin_path?>/img/list_icon.gif" width="11" height="16"> Total <strong><?=number_format($total_count)?></strong>
</td>
<td align ='center'>
<?
$write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<b><span style=\"color:#4D6185; font-size:12px; text-decoration:underline;\">$1</span></b>", $write_pages);
?>
<?=$write_pages?>
</td>
<td align ='right' width="25%">
<? if ($admin_href) { ?><a href="<?=$admin_href?>"><img src="<?=$board_skin_path?>/img/btn_admin.gif" border='0' title="관리자" ></a><?}?>
<? if ($write_href) { ?><a href="<?=$write_href?>"><img src="<?=$board_skin_path?>/img/btn_write.gif" border="0"></a><? } ?>
</td>
</tr>
</table>
</td>
</tr>
echo" <a href='logout.php'> ";
echo" <span style='font-size:8pt;'><font face='Tahoma' color='#999999'>로그아웃</font></span> ";
echo" </a> ";
} else{ // 로그인 안했다면
echo" <a href='login.php' target='_blank'> ";
echo" <span style='font-size:8pt;'><font face='Tahoma' color='#999999'>관리자 로그인</font></span> ";
echo" </a> ";
}
?>
<? if ($rss_href) { ?><a href='<?=$rss_href?>'><img src='<?=$board_skin_path?>/img/btn_rss.gif' border=0 align=absmiddle></a><?}?>
<? if ($admin_href) { ?><a href="<?=$admin_href?>"><img src="<?=$board_skin_path?>/img/admin_button.gif" title="관리자" border="0" align="absmiddle"></a><?}?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20%" style="font-size:12px;">
<img src="<?=$board_skin_path?>/img/list_icon.gif" width="11" height="16"> Total <strong><?=number_format($total_count)?></strong>
</td>
<td align ='center'>
<?
$write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<b><span style=\"color:#4D6185; font-size:12px; text-decoration:underline;\">$1</span></b>", $write_pages);
?>
<?=$write_pages?>
</td>
<td align ='right' width="25%">
<? if ($admin_href) { ?><a href="<?=$admin_href?>"><img src="<?=$board_skin_path?>/img/btn_admin.gif" border='0' title="관리자" ></a><?}?>
<? if ($write_href) { ?><a href="<?=$write_href?>"><img src="<?=$board_skin_path?>/img/btn_write.gif" border="0"></a><? } ?>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<form name="fboardlist" method="post">
<input type='hidden' name='bo_table' value='<?=$bo_table?>'>
<input type='hidden' name='sfl' value='<?=$sfl?>'>
<input type='hidden' name='stx' value='<?=$stx?>'>
<input type='hidden' name='spt' value='<?=$spt?>'>
<input type='hidden' name='page' value='<?=$page?>'>
<input type='hidden' name='sw' value=''>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<form name="fboardlist" method="post">
<input type='hidden' name='bo_table' value='<?=$bo_table?>'>
<input type='hidden' name='sfl' value='<?=$sfl?>'>
<input type='hidden' name='stx' value='<?=$stx?>'>
<input type='hidden' name='spt' value='<?=$spt?>'>
<input type='hidden' name='page' value='<?=$page?>'>
<input type='hidden' name='sw' value=''>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<?
if(!$board[bo_1]){
echo "bo_1 를 입력해주세요 (큰이미지 높이를 적어 주세요.)";
}
if(!$board[bo_2]){
echo "bo_2 를 입력해주세요 (큰이미지 넓이를 적어 주세요.)";
}
if(!$board[bo_3]){
echo "bo_3 를 입력해주세요 (작은이미지 높이를 적어 주세요.)";
}
if(!$board[bo_4]){
echo "bo_4 를 입력해주세요 (작은이미지 넓이를 적어 주세요.)";
}
if(!$board[bo_1]){
echo "bo_1 를 입력해주세요 (큰이미지 높이를 적어 주세요.)";
}
if(!$board[bo_2]){
echo "bo_2 를 입력해주세요 (큰이미지 넓이를 적어 주세요.)";
}
if(!$board[bo_3]){
echo "bo_3 를 입력해주세요 (작은이미지 높이를 적어 주세요.)";
}
if(!$board[bo_4]){
echo "bo_4 를 입력해주세요 (작은이미지 넓이를 적어 주세요.)";
}
list($re_img_width, $re_img_height) = explode("x", $board[bo_1]);
for ($i=0; $i<count($list); $i++) {
$src = $list[$i][file][0][path]."/".$list[$i][file][0][file];
$thumb_file_list1[]=$src;
$big_href[]=$list[$i][href];
$big_subject[]=$list[$i][subject];
} // end for
?>
</tr>
</table>
</form>
</td>
</tr>
<tr>
<td>
$src = $list[$i][file][0][path]."/".$list[$i][file][0][file];
$thumb_file_list1[]=$src;
$big_href[]=$list[$i][href];
$big_subject[]=$list[$i][subject];
} // end for
?>
</tr>
</table>
</form>
</td>
</tr>
<tr>
<td>
<script language="JavaScript">
<!--
function transimg(place, bt_file,bt_href) {
for (t=0;t<<?=count($list)?> ;t++ )
{
var k=t+1;
if (place==k) dare.src=bt_file;
if (place==k) bt.href=bt_href;
}
}
// -->
</script>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.smbox {padding-right:0px;padding-bottom:0px;}
.smtext a{padding-right:0px;padding-bottom:0px;color:cccccc;font-size:8pt;}
-->
</style>
<?if(!$first_img and !$thumb_file_list1[0]){$first_img='/skin/board/big_shop/img/noimg.gif';}
else if(!$first_img and $thumb_file_list1[0]){$first_img=$thumb_file_list1[0];}?>
<!--
function transimg(place, bt_file,bt_href) {
for (t=0;t<<?=count($list)?> ;t++ )
{
var k=t+1;
if (place==k) dare.src=bt_file;
if (place==k) bt.href=bt_href;
}
}
// -->
</script>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.smbox {padding-right:0px;padding-bottom:0px;}
.smtext a{padding-right:0px;padding-bottom:0px;color:cccccc;font-size:8pt;}
-->
</style>
<?if(!$first_img and !$thumb_file_list1[0]){$first_img='/skin/board/big_shop/img/noimg.gif';}
else if(!$first_img and $thumb_file_list1[0]){$first_img=$thumb_file_list1[0];}?>
<table width="<?=$width;?>" border=1 bordercolor="#CCCCCC" cellpadding="5" align='center' style="border-collapse:collapse">
<tr>
<td valign='top' width="95%" height="200" colspan="5"><a href='<?=$big_href[0]?>' name=bt><img src="<?=$first_img?>" width="600" height="<?=$board[bo_1]?>" style='border:1 solid #cccccc;' name=dare ></a></td>
</tr>
<tr>
<td width="<?=$board[bo_4]?>" align ='center' valign ='top'>
<!-- 리스트 시작 -->
<table cellpadding="5" cellspacing="0" border='0'>
<?for($i=0; $i<count($list); $i++)
{
$j=$i+1;?>
<tr>
<td><span style="cursor:hand" onMouseOver="transimg('<?=$j?>','<?=$thumb_file_list1[$i]?>','<?=$big_href[$i]?>')"><a href='#'><!--<?=$big_href[$i]?>-->
<img src="<?=$thumb_file_list1[$i]?>" width="<?=$board[bo_4]?>" height="<?=$board[bo_3]?>" style='border:1 solid #cccccc;'></a></span></td>
</tr>
<tr><td><?=$big_subject[$i]?></td></tr>
<?}?>
</table>
</td>
</tr>
</table>
<tr>
<td valign='top' width="95%" height="200" colspan="5"><a href='<?=$big_href[0]?>' name=bt><img src="<?=$first_img?>" width="600" height="<?=$board[bo_1]?>" style='border:1 solid #cccccc;' name=dare ></a></td>
</tr>
<tr>
<td width="<?=$board[bo_4]?>" align ='center' valign ='top'>
<!-- 리스트 시작 -->
<table cellpadding="5" cellspacing="0" border='0'>
<?for($i=0; $i<count($list); $i++)
{
$j=$i+1;?>
<tr>
<td><span style="cursor:hand" onMouseOver="transimg('<?=$j?>','<?=$thumb_file_list1[$i]?>','<?=$big_href[$i]?>')"><a href='#'><!--<?=$big_href[$i]?>-->
<img src="<?=$thumb_file_list1[$i]?>" width="<?=$board[bo_4]?>" height="<?=$board[bo_3]?>" style='border:1 solid #cccccc;'></a></span></td>
</tr>
<tr><td><?=$big_subject[$i]?></td></tr>
<?}?>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</tr>
</table>
<!-- 게시판 목록 끝 -->
답변을 작성하시기 전에 로그인 해주세요.