불썸당이 너무 어려워요 ㅠㅠ 정보
불썸당이 너무 어려워요 ㅠㅠ본문
불썸당이 너무 어렵습니다.
설치까지는 했는데, 적용방법이 너무 어렵네요.
최근게시물과 게시판의 list.php 에 적용을 시켜야하는데...
우째 적용할지 모르겠습니다.
도와주십시요 ㅠㅠ
최근게시물 --------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/lib/thumb.lib.php");
$cols = 4; // 이미지 가로갯수 // 이미지 세로 갯수는 메인에서 지정(총 이미지 수)
$img_width = '160'; //썸네일 가로길이
$img_height = '160'; //썸네일 세로길이
$img_quality = '80'; //퀼리티 100이하로 설정
if (!function_exists("imagecopyresampled")) alert("GD 2.0.1 이상 버전이 설치되어 있어야 사용할 수 있는 갤러리 게시판 입니다.");
$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb';
@mkdir($thumb_path, 0707);
@chmod($thumb_path, 0707);
$col_width = (int)(100 / $cols);
?>
<style type="text/css">
.file-img-t { width:170px; height:180px; border:solid 2px #fff; }
.item_td { padding:10px 0 14px 0; margin:5px 10px 0px 10px; border-bottom:1px dotted #e0e0e0; }
.item_name { margin:3px; height:32px; font-size:11px; font-family:돋움; text-align:left; }
.item_name a { margin:3px; height:32px; font-size:11px; font-family:돋움; text-align:left; }
.title_price { margin:3px; padding-left:3px; color:#FF3300; font-weight:bold; text-align:left; }
.shop { color:#e93100; font-size:11px; font-family:돋움; }
.shop a { color:#e93100; font-size:11px; font-family:돋움; }
</style>
<? include_once("$g4[path]/lib/thumb.lib.php")?>
<!-- 최신글 제목 -->
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<? for ($i=0; $i<count($list); $i++) {
if ($i>0 && $i%$cols==0) { echo "</tr><tr><td colspan='$cols' height='$image_h'></td></tr><tr>"; }
$ex7_filed = explode("|",$list[$i][wr_7]);
$ext7_00 = $ex7_filed[0];
$ext7_01 = $ex7_filed[1];
$ext7_02 = $ex7_filed[2];
$ext7_03 = $ex7_filed[3];
$ext7_04 = $ex7_filed[4];
$ext7_05 = $ex7_filed[5];
$ext7_06 = $ex7_filed[6];
$ext7_07 = $ex7_filed[7];
$ext7_08 = $ex7_filed[8];
$ext7_09 = $ex7_filed[9];
$ext7_10 = $ex7_filed[10];
$ext7_11 = $ex7_filed[11];
$ext7_12 = $ex7_filed[12];
$ext7_13 = $ex7_filed[13];
$ext7_14 = $ex7_filed[14];
?>
<td width="164" align="left" valign='top' class="item_td">
<?
$img = "$g4[path]/data/file/$bo_table/thumb/{$list[$i][wr_id]}";
if (!@file_exists($img)) $img = "$g4[path]/data/file/$bo_table/thumbnail/{$list[$i][wr_id]}";
if (!@file_exists($img)) $img = "{$list[$i][file][0][path]}/{$list[$i][file][0][file]}";
if (!@file_exists($img)) $img = "$latest_skin_path/img/noimage.gif";
if (!$list[$i][wr_id]) $img = "$latest_skin_path/img/noimage.gif";
if (@is_dir($img)) $img = "$latest_skin_path/img/noimage.gif";
?>
<? /* if ($g4[server_time] - strtotime($list[$i][wr_datetime]) > 60*60*24*(30*6)) {
echo "<a href='{$list[$i][wr_9]}' target='_blank'>";
} else {
echo "<a href='{$list[$i][link_href][1]}' target='_blank'>";
} */ ?>
<a href='<?=$list[$i][href]?>' target="_parent"><img src="<?=$img?>" class="file-img-t" onmouseover="this.style.border='2px solid #000'" onmouseout="this.style.border='solid 2px #fff'" alt="<?=$list[$i][subject]?> - <?=$list[$i][wr_7]?>원"></a>
<div style="text-align:left; width:144px; margin-top:5px;">
<span class="shop">
<img src="<?=$latest_skin_path?>/img/list_home_icon.gif" align="top" /> <a href='<?=$list[$i][href]?>' target="_parent">글쓴이 :</a></span></div>
<div class="item_name"><a href="<?=$list[$i][href]?>" target="_parent"><?=$list[$i]['subject']?></a></div>
<?if($ext7_00){?><img src='<?=$latest_skin_path?>/images/dadada_1.gif' align=absmiddle > <?=$ext7_00?>
만
<?}?>
<br>
<div style="height:2px; line-height:1px; font-size:1px;"> </div>
<?if($ext7_10){?><img src='<?=$latest_skin_path?>/images/dadada_bo.jpg' align=absmiddle > <?=$ext7_10?>
만
<?}?>
<?if($ext7_11){?><img src='<?=$latest_skin_path?>/images/dadada_2.gif' align=absmiddle > <?=$ext7_11?>
만
<?}?>
<br>
<div style="height:2px; line-height:1px; font-size:1px;"> </div>
<?if($ext7_13){?><img src='<?=$latest_skin_path?>/images/dadada_bo_1.jpg' align=absmiddle > <?=$ext7_13?>
만
<?}?>
<?if($ext7_14){?><img src='<?=$latest_skin_path?>/images/dadada_bo_2.jpg' align=absmiddle > <?=$ext7_14?>
만
<?}?>
<div style="text-align:center; margin-top:5px;">
<table width="92%" border="0" cellspacing="0" cellpadding="0">
<tr>
</tr>
</table>
</div>
</td>
<? } ?>
<?
$cnt = ($i%$cols);
for ($k=$cnt; $k<$cols && $cnt; $k++) {
echo "<td width=$col_width%> </td>";
}
?>
<? if (count($list) == 0) { echo "<td align=center>게시물이 없습니다.</td>"; } ?>
</tr>
</table>
<script src="<?=$g4[path]?>/js/b4.common.js"></script>
------------------------------------------------
게시판 list.skin.php
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 선택옵션으로 인해 셀합치기가 가변적으로 변함
$colspan = 7;
$sql_common = " from {$g4['write_prefix']}{$bo_table}";
$sql_search = " where 1=1 ";
if($sca) $sql_search .= " and ca_name='$sca' and wr_is_comment=0";
if ($sca || $stx)
{
$sql_search .= " and " .get_sql_search($sca, $sfl, $stx, $sop);
}else{
$sql_search .= " and wr_is_comment = 0";
}
if(!$wr_id){
if($ext8_01) $sql_search .= " and wr_8 like '%|$ext8_01|%' ";
if($ext8_02) $sql_search .= " and wr_8 like '%|$ext8_02|%' ";
if($ext8_02=="월세" && $ext10_00) $sql_search .= " and wr_10 like '$ext10_00|%' ";
else $search2 = "";
if($ext8_02=="전세" && $ext10_01) $sql_search .= " and wr_10 like '%|$ext10_01|%' ";
if($search1){
if($search1==1) $sql_search .= " and substring_index(substring_index(wr_7,'|',1),'|',-1) <= 500 ";
else if($search1==1) $sql_search .= " and substring_index(substring_index(wr_7,'|',1),'|',-1) >= 500 && substring_index(substring_index(wr_7,'|',1),'|',-1) >= 1000 ";
else if($search1==2) $sql_search .= " and substring_index(substring_index(wr_7,'|',1),'|',-1) >= 1000 && substring_index(substring_index(wr_7,'|',1),'|',-1) >= 2000 ";
else if($search1==3) $sql_search .= " and substring_index(substring_index(wr_7,'|',1),'|',-1) >= 2000 && substring_index(substring_index(wr_7,'|',1),'|',-1) >= 5000 ";
else if($search1==4) $sql_search .= " and substring_index(substring_index(wr_7,'|',1),'|',-1) >= 5000 && substring_index(substring_index(wr_7,'|',1),'|',-1) >= 10000 ";
else if($search1==5) $sql_search .= " and substring_index(substring_index(wr_7,'|',1),'|',-1) >= 10000 ";
}
if($search2){
if($search2==1) $sql_search .= " and substring_index(substring_index(wr_7,'|',12),'|',-1) = '' ";
else if($search2==2) $sql_search .= " and substring_index(substring_index(wr_7,'|',12),'|',-1) <= 40 ";
else if($search2==3) $sql_search .= " and substring_index(substring_index(wr_7,'|',12),'|',-1) >= 40 && substring_index(substring_index(wr_7,'|',12),'|',-1) >= 60 ";
else if($search2==4) $sql_search .= " and substring_index(substring_index(wr_7,'|',12),'|',-1) >= 60 && substring_index(substring_index(wr_7,'|',12),'|',-1) >= 80 ";
else if($search2==5) $sql_search .= " and substring_index(substring_index(wr_7,'|',12),'|',-1) >= 80 && substring_index(substring_index(wr_7,'|',12),'|',-1) >= 100 ";
else if($search2==6) $sql_search .= " and substring_index(substring_index(wr_7,'|',12),'|',-1) >= 100 ";
}
}
$sql = " select *
$sql_common
$sql_search
$sql_order ";
$result = sql_query($sql);
$total_count = mysql_num_rows($result);
$rows = $board[bo_page_rows];
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
if ($page == "") $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows; // 시작 열을 구함
$sql = " select *, substring_index(substring_index(wr_7,'|',12),'|',-1) as b
$sql_common
$sql_search
$sql_order
limit $from_record, $rows ";
$result = sql_query($sql);
$list = array();
$i = 0;
if (!$sca && !$stx)
{
$arr_notice = explode("\n", trim($board[bo_notice]));
for ($k=0; $k<count($arr_notice); $k++)
{
if (trim($arr_notice[$k])=='') continue;
$row = sql_fetch(" select * from $write_table where wr_id = '$arr_notice[$k]' ");
if (!$row[wr_id]) continue;
$list[$i] = get_list($row, $board, $board_skin_path, $board[bo_subject_len]);
$list[$i][is_notice] = true;
$i++;
}
}
$k = 0;
while ($row = sql_fetch_array($result))
{
// 검색일 경우 wr_id만 얻었으므로 다시 한행을 얻는다
if ($sca || $stx)
$row = sql_fetch(" select * from $write_table where wr_id = '$row[wr_parent]' ");
$list[$i] = get_list($row, $board, $board_skin_path, $board[bo_subject_len]);
if (strstr($sfl, "subject"))
$list[$i][subject] = search_font($stx, $list[$i][subject]);
$list[$i][is_notice] = false;
//$list[$i][num] = number_format($total_count - ($page - 1) * $board[bo_page_rows] - $k);
$list[$i][num] = $total_count - ($page - 1) * $board[bo_page_rows] - $k;
$i++;
$k++;
}
?>
<link rel='stylesheet' type='text/css' href='<?=$board_skin_path?>/bstyle.css'>
<!-- 테두리 박스 시작 -->
</td>
<style type="text/css">
.num {
font-weight: bold;
}
</style>
<style type="text/css">
.sd {
color: #03F;
font-weight: bold;
font-size: 12px;
}
</style>
<td align="right"> </td>
</tr>
<tr><td height=5></td></tr>
</table><table border="0" cellspacing="0" cellpadding="0" WIDTH=100%>
<tr>
<td width="7" height="7"><img src="<?=$board_skin_path?>/img/box_a_01.gif" width="7" height="7"></td>
<td background="<?=$board_skin_path?>/img/box_a_02.gif"></td>
<td width="6"><img src="<?=$board_skin_path?>/img/box_a_03.gif" width="6" height="7"></td>
</tr>
<tr>
<td background="<?=$board_skin_path?>/img/box_a_04.gif"></td>
<td height="100" align="center" valign="middle"><?include $board_skin_path."/search.php"?></td>
<td background="<?=$board_skin_path?>/img/box_a_05.gif"></td>
</tr>
<tr>
<td height="7"><img src="<?=$board_skin_path?>/img/box_a_06.gif" width="7" height="7"></td>
<td background="<?=$board_skin_path?>/img/box_a_07.gif"></td>
<td><img src="<?=$board_skin_path?>/img/box_a_08.gif" width="6" height="7"></td>
</tr>
</table>
<? if ($is_category) { ?>
<table width="100%" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
<tr>
<td width="100%" height="36" align=left cellpadding="0" cellspcing="0">
<table width="100%" align="center" cellpadding="0" cellspacing="0" style="border-collapse:collapse;">
<tr><td width="40" height="36" align=center style="padding:10 0 6 0; border-top-width:1; border-right-width:0; border-bottom-width:1; border-left-width:1; border-color:rgb(216,216,216); border-style:solid;" bgcolor="F6F6F6">
<?echo $bb_s;?><a href='./board.php?bo_table=<?=$bo_table?>&page=<?=$page?>'><span class=L_Tcategory><b>분류</b></span></a><?=$bb_e?>
</td>
<td width='' height="36" align=left style="padding:10 0 6 6; border-top-width:1; border-right-width:1; border-bottom-width:1; border-left-width:0; border-color:rgb(216,216,216); border-style:solid;">
<? {
//echo "<table width='100%' cellpadding='0' cellspacing='0' style='margin:0 0 0 0;border:solid #55cc55 1px;'>"; //★ (카테고리목록의 테이블 길이를 100%로 할 경우)
echo "<table cellpadding='0' cellspacing='0' style='padding:0 0 0 0;'>"; //◆
$ca_menu = explode("|",$board[bo_category_list]);
$ca_td_num = "13"; //가로칸수. 원하는 칸수만큼 지정해주면 됩니다.
//$ca_td_width = 100 / $ca_td_num ; //★ <td width='%'>값
for ($c=0, $cnt=count($ca_menu); $c<$cnt; $c++) {
if (($c == "0") || (($c >= $ca_td_num) && ($c % $ca_td_num == "0"))) { echo "<tr>"; }
//echo "<td width='".$ca_td_width."%'>"; //★
echo "<td style='padding:2 4 2 4;'>· "; //◆
//★표와 ◆표는 어느 한쪽을 쓸 경우 다른 쪽을 주석처리하면 됩니다.
if ($sca == $ca_menu[$c]) { $bcoral = "<b style='color:coral'>"; } else { $bcoral = ""; }
$sqlCnum = " select count(*) as Cnum from $write_table where wr_is_comment = 0 and ca_name = '$ca_menu[$c]'";
$rowCnum = sql_fetch($sqlCnum);
echo "<a href='".$g4['bbs_path']."/board.php?bo_table=".$bo_table."&sca=".urlencode($ca_menu[$c])."'>";
echo $bcoral.$ca_menu[$c]."</a>";
echo "</td>";
}
echo "</tr></table>";
} ?>
</td>
</tr>
</table>
</td>
</tr>
<tr><td colspan=<?=$colspan?> height=2></td></tr>
</table>
<? } ?>
<div style="height:5px; line-height:1px; font-size:1px;"> </div>
<!-- 제목 테이블 -->
<table width="100%" align="center" cellpadding="0" cellspacing="0" >
<tr>
<td width="32%" height="36" align=center bgcolor="F6F6F6" style="padding:0 0 0 0; border-top-width:1; border-right-width:0; border-bottom-width:1; border-left-width:0; border-color:rgb(216,216,216); border-style:solid;"> 이미지</td>
<td width="35%" align=center bgcolor="F6F6F6" style="padding:0 0 0 0; border-top-width:1; border-right-width:0; border-bottom-width:1; border-left-width:0; border-color:rgb(216,216,216); border-style:solid;">간략정보</td>
<td width="33%" align=center bgcolor="F6F6F6" style="padding:0 0 0 0; border-top-width:1; border-right-width:0; border-bottom-width:1; border-left-width:0; border-color:rgb(216,216,216); border-style:solid;">원룸정보</td>
</tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<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="">
<!-- 게시판 목록 시작 -->
<?
for ($i=0; $i<count($list); $i++) {
if($i%2==0) $bg_color = "#fafafa;";
else if($i%2==1) $bg_color = "#ffffff;";
//
$ex3_filed = explode("|", $list[$i][wr_3]);
$ext3_00 = $ex3_filed[0];
$ext3_01 = $ex3_filed[1];
$ext3_02 = $ex3_filed[2];
$ext3_03 = $ex3_filed[3];
$ext3_04 = $ex3_filed[4];
$ext3_05 = $ex3_filed[5];
$ext3_06 = $ex3_filed[6];
$ext3_07 = $ex3_filed[7];
$ex5_filed = explode("|", $list[$i][wr_5]);
$ext5_01 = $ex5_filed[1];
//
$ex7_filed = explode("|",$list[$i][wr_7]);
$ext7_00 = $ex7_filed[0];
$ext7_01 = $ex7_filed[1];
$ext7_02 = $ex7_filed[2];
$ext7_03 = $ex7_filed[3];
$ext7_04 = $ex7_filed[4];
$ext7_05 = $ex7_filed[5];
$ext7_06 = $ex7_filed[6];
$ext7_07 = $ex7_filed[7];
$ext7_08 = $ex7_filed[8];
$ext7_09 = $ex7_filed[9];
$ext7_10 = $ex7_filed[10];
$ext7_11 = $ex7_filed[11];
$ext7_12 = $ex7_filed[12];
$ext7_13 = $ex7_filed[13];
$ext7_14 = $ex7_filed[14];
$ex8_filed = explode("|",$list[$i][wr_8]);
$ext8_00 = $ex8_filed[0];
$ext8_01 = $ex8_filed[1];
$ext8_02 = $ex8_filed[2];
$ext8_03 = $ex8_filed[3];
if($ext8_02=="월세") $ext8_02_icon = "<img src='$board_skin_path/img/dada_1.gif' border='0' align='absmiddle'>";
else if($ext8_02=="전세") $ext8_02_icon = "<img src='$board_skin_path/img/dada_2.gif' border='0' align='absmiddle'>";
if($ext8_03=="단기") $ext8_03_icon = "<img src='$board_skin_path/img/dada_3.gif' border='0' align='absmiddle'>";
else if($ext8_03=="무보증") $ext8_03_icon = "<img src='$board_skin_path/img/dada_4.gif' border='0' align='absmiddle'>";
else if($ext8_03=="복층") $ext8_03_icon = "<img src='$board_skin_path/img/dada_5.gif' border='0' align='absmiddle'>";
else if($ext8_03=="베란다") $ext8_03_icon = "<img src='$board_skin_path/img/dada_6.gif' border='0' align='absmiddle'>";
//--
$ex10_filed = explode("|",$list[$i][wr_10]);
$ext10_00 = $ex10_filed[0];
$ext10_01 = $ex10_filed[1];
//-- 학원분류
$ex6_filed = explode("|",$list[$i][wr_6]);
$ext6_00 = $ex6_filed[0];
//$ext6_01 = $ex6_filed[1]; {원생수}
$thum_width = 100;
$thum_height = 80;
if ($list[$i][file][0][file])
{
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
$img = "<a href=\"{$list[$i][href]}\"><img src='" .$file. "' style='border:1px solid #eaeaea;' width=$thum_width height=$thum_height></a>";
}
else
{
$img = "<a href=\"{$list[$i][href]}\"><img src='$board_skin_path/img/noimage.gif' style='border:1px solid #eaeaea;' width=$thum_width height=$thum_height></a>";
}
if ($list[$i][file][1][file])
{
$file = $list[$i][file][1][path] .'/'. $list[$i][file][1][file];
$img2 = "<a href=\"{$list[$i][href]}\"><img src='" .$file. "' style='border:1px solid #eaeaea;' width=$thum_width height=$thum_height></a>";
}
else
{
$img2 = "<a href=\"{$list[$i][href]}\"><img src='$board_skin_path/img/noimage.gif' style='border:1px solid #eaeaea;' width=$thum_width height=$thum_height></a>";
}
?>
<tr style="background-color:<?=$bg_color?> color: #03F; font-size: 12px; color: #03F;">
<td width="221" height="100" rowspan="2"><?=$img?>
<?=$img2?></td>
<td width="40" rowspan="2" valign="top" class="num"><br>
<?
if ($list[$i][is_notice]) // 공지사항
echo "<b>추천</b>";
else if ($wr_id == $list[$i][wr_id]) // 현재위치
echo "<span class='current'>{$list[$i][num]}</span>";
else
echo $list[$i][num];
?>
<br>
<? if ($is_checkbox) { ?><input type=checkbox name=chk_wr_id[] value="<?=$list[$i][wr_id]?>"><? } ?>
</td>
<td colspan="4" align="left" valign="top"><br>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="4" align="left" valign="top"><a href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i][wr_id]?>'><span class="sd"><font color=188AD6><?=cut_str($list[$i][wr_subject],100)?></font></span></a></td>
</tr>
<tr>
<td height="10" colspan="4" align="left" valign="top"></td>
</tr>
<tr style="background-color:<?=$bg_color?>">
<td width="80" align="left" valign="top" ><font color="#333333"><b>위치</b>
</td>
<td colspan="3" align="left" valign="top" >
<?=$list[$i][ca_name]?>
<?=$ext3_00?>
</td>
</tr>
<?if($ext8_03){?>
<tr style="background-color:<?=$bg_color?>">
<td align="left" valign="top"><font color="#333333"><b>면적</b></td>
<td width="181" align="left" valign="top"><?=$list[$i][wr_2]?>
평</td>
<td width="37" align="left" valign="top"><font color="#333333"><b>테마</b></td>
<td width="87" align="left" valign="top"><?=$ext8_03_icon?></td>
</tr>
<?}else{?>
<tr style="background-color:<?=$bg_color?>">
<td align="left" valign="top"><font color="#333333"><b>면적</b></td>
<td align="left" valign="top" colspan="3"><?=$list[$i][wr_2]?>
평</td>
</tr>
<?}?>
<tr style="background-color:<?=$bg_color?>">
<td align="left" valign="top"><font color="#333333"><b>건물층수</b></td>
<td colspan="3" align="left" valign="top"><?=$ext3_06?>
건물의
<?=$ext3_07?>
층</td>
</tr>
</table>
</td>
<td width="160" colspan="5" rowspan="2" align="left"class="datetime"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<!--DATE:<?=$list[$i][datetime]?>-->
<font style="font:normal 11px 돋움; color:#BABABA;">조회 :</font><font style="font:normal 11px tahoma; color:#BABABA;"> <?=$list[$i][wr_hit]?> </font>
<br>
<?if($ext7_00){ echo "<img src='$board_skin_path/img/dadada_1.gif' align=absmiddle> $ext7_00";?>만원 <?}?>
<br>
<div style="height:2px; line-height:1px; font-size:1px;"> </div>
<?if($ext7_10){?><img src='<?=$board_skin_path?>/img/dadada_bo.jpg' align=absmiddle > <?=$ext7_10?> 만 <?}?>
<?if($ext7_11){?><img src='<?=$board_skin_path?>/img/dadada_2.gif' align=absmiddle > <?=$ext7_11?> 만 <?}?>
<br>
<div style="height:2px; line-height:1px; font-size:1px;"> </div>
<?if($ext7_13){?><img src='<?=$board_skin_path?>/img/dadada_bo_1.jpg' align=absmiddle > <?=$ext7_13?> 만 <?}?>
<?if($ext7_14){?><img src='<?=$board_skin_path?>/img/dadada_bo_2.jpg' align=absmiddle > <?=$ext7_14?> 만 <?}?>
<br>
<div style="height:2px; line-height:1px; font-size:1px;"> </div>
<a href="javascript:;" onClick="window.open('<?=$board_skin_path?>/list.skin.popup.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i][wr_id]?>','popup','width=740,height=850,scrollbars=yes')"><img src="<?=$board_skin_path?>/img/button_01.gif" width="58" height="25" border="0"></a>
<a href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i][wr_id]?>'><img src="<?=$board_skin_path?>/img/button_02.gif" width="58" height="25" border="0"></a> <?if($list[$i][wr_link1]){?><a href="javascript://" onClick="window.open('<?=$list[$i][wr_link1]?>', '', 'left=100,top=100,width=600,height=400,scrollbars=1,resizable=1');" title='동영상보기'><img src="<?=$board_skin_path?>/img/button_03.gif" border="0"></a><?}?></td>
</tr>
</table>
</td>
</tr>
<tr style="background-color:<?=$bg_color?>">
<td colspan="4" align="left" valign="top">
</td>
</tr>
<tr><td colspan=13 height="1" bgcolor='#cccccc'></td></tr>
<? } ?>
<? if (count($list) == 0) { echo "<tr><td colspan='$colspan' height=100 align=center>게시물이 없습니다.</td></tr>"; } ?>
</form>
</table>
<!-- 페이지 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" align="center" height=30 valign=bottom>
<? if ($prev_part_href) { echo "<a href='$prev_part_href'><img src='$board_skin_path/img/btn_search_prev.gif' border=0 align=absmiddle title='이전검색'></a>"; } ?>
<?
// 기본으로 넘어오는 페이지를 아래와 같이 변환하여 이미지로도 출력할 수 있습니다.
$write_pages = get_paging($config[cf_write_pages], $page, $total_page, "./board.php?bo_table=$bo_table".$qstr."&page=");
$write_pages = str_replace("처음", "<img src='$board_skin_path/img/begin.gif' border='0' align='absmiddle' title='처음'>", $write_pages);
$write_pages = str_replace("이전", "<img src='$board_skin_path/img/prev.gif' border='0' align='absmiddle' title='이전'>", $write_pages);
$write_pages = str_replace("다음", "<img src='$board_skin_path/img/next.gif' border='0' align='absmiddle' title='다음'>", $write_pages);
$write_pages = str_replace("맨끝", "<img src='$board_skin_path/img/end.gif' border='0' align='absmiddle' title='맨끝'>", $write_pages);
$write_pages = preg_replace("/<span>([0-9]*)<\/span>/", "<b><font style=\"font-family:tahoma; font-size:11px; color:#000000\">$1</font></b>", $write_pages);
$write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<b><font style=\"font-family:tahoma; font-size:11px; color:#E15916;\">$1</font></b>", $write_pages);
?>
<?=$write_pages?>
<? if ($next_part_href) { echo "<a href='$next_part_href'><img src='$board_skin_path/img/btn_search_next.gif' border=0 align=absmiddle title='다음검색'></a>"; } ?>
</td>
</tr>
</table>
<!-- 버튼 링크 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="50%" height="40">
<? if ($list_href) { ?><a href="<?=$list_href?>"><img src="<?=$board_skin_path?>/img/btn_list.gif" border="0"></a><? } ?>
<? if ($write_href) { ?><a href="<?=$write_href?>"><img src="<?=$board_skin_path?>/img/btn_write.gif" border="0"></a><? } ?>
<? if ($is_checkbox) { ?>
<a href="javascript:select_delete();"><img src="<?=$board_skin_path?>/img/btn_select_delete.gif" border="0"></a>
<a href="javascript:select_copy('copy');"><img src="<?=$board_skin_path?>/img/btn_select_copy.gif" border="0"></a>
<a href="javascript:select_copy('move');"><img src="<?=$board_skin_path?>/img/btn_select_move.gif" border="0"></a>
<? } ?>
</td>
<form name=fsearch method=get>
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=sca value="<?=$sca?>">
<td width="50%" align="right">
<select name=sfl>
<option value='wr_subject||wr_content'>제목+내용</option>
<option value='wr_2'>면적(㎡)</option>
<option value='wr_4'>방갯수</option>
</select>
<INPUT maxLength=15 size=10 name=stx itemname="검색어" required value="<?=$stx?>">
<SELECT name=sop>
<OPTION value=and>And</OPTION>
<OPTION value=or>Or</OPTION>
</SELECT>
<INPUT type=image src="<?=$board_skin_path?>/img/search_btn.gif" border=0 align=absmiddle></td>
</form>
</tr>
</table>
<!----------- { 레이아웃 테이블 아래. 끝 } --------------------------------------//-->
</td></tr></table>
<script language="JavaScript">
if ("<?=$sca?>") document.fcategory.sca.value = "<?=$sca?>";
if ("<?=$stx?>") {
document.fsearch.sfl.value = "<?=$sfl?>";
document.fsearch.sop.value = "<?=$sop?>";
}
</script>
<? if ($is_checkbox) { ?>
<script language="JavaScript">
function all_checked(sw)
{
var f = document.fboardlist;
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == "chk_wr_id[]")
f.elements[i].checked = sw;
}
}
function check_confirm(str)
{
var f = document.fboardlist;
var chk_count = 0;
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == "chk_wr_id[]" && f.elements[i].checked)
chk_count++;
}
if (!chk_count) {
alert(str + "할 게시물을 하나 이상 선택하세요.");
return false;
}
return true;
}
// 선택한 게시물 삭제
function select_delete()
{
var f = document.fboardlist;
str = "삭제";
if (!check_confirm(str))
return;
if (!confirm("선택한 게시물을 정말 "+str+" 하시겠습니까?\n\n한번 "+str+"한 자료는 복구할 수 없습니다"))
return;
f.action = "./delete_all.php";
f.submit();
}
// 선택한 게시물 복사 및 이동
function select_copy(sw)
{
var f = document.fboardlist;
if (sw == "copy")
str = "복사";
else
str = "이동";
if (!check_confirm(str))
return;
var sub_win = window.open("", "move", "left=50, top=50, width=396, height=550, scrollbars=1");
f.sw.value = sw;
f.target = "move";
f.action = "./move.php";
f.submit();
}
</script>
<? } ?>
<!-- 게시판 목록 끝 -->
</td>
</tr>
<tr>
<td> </td></tr>
</table>
<!-- 테두리 박스 끝 -->
도와주세요 ㅠ.ㅠ
설치까지는 했는데, 적용방법이 너무 어렵네요.
최근게시물과 게시판의 list.php 에 적용을 시켜야하는데...
우째 적용할지 모르겠습니다.
도와주십시요 ㅠㅠ
최근게시물 --------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/lib/thumb.lib.php");
$cols = 4; // 이미지 가로갯수 // 이미지 세로 갯수는 메인에서 지정(총 이미지 수)
$img_width = '160'; //썸네일 가로길이
$img_height = '160'; //썸네일 세로길이
$img_quality = '80'; //퀼리티 100이하로 설정
if (!function_exists("imagecopyresampled")) alert("GD 2.0.1 이상 버전이 설치되어 있어야 사용할 수 있는 갤러리 게시판 입니다.");
$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb';
@mkdir($thumb_path, 0707);
@chmod($thumb_path, 0707);
$col_width = (int)(100 / $cols);
?>
<style type="text/css">
.file-img-t { width:170px; height:180px; border:solid 2px #fff; }
.item_td { padding:10px 0 14px 0; margin:5px 10px 0px 10px; border-bottom:1px dotted #e0e0e0; }
.item_name { margin:3px; height:32px; font-size:11px; font-family:돋움; text-align:left; }
.item_name a { margin:3px; height:32px; font-size:11px; font-family:돋움; text-align:left; }
.title_price { margin:3px; padding-left:3px; color:#FF3300; font-weight:bold; text-align:left; }
.shop { color:#e93100; font-size:11px; font-family:돋움; }
.shop a { color:#e93100; font-size:11px; font-family:돋움; }
</style>
<? include_once("$g4[path]/lib/thumb.lib.php")?>
<!-- 최신글 제목 -->
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<? for ($i=0; $i<count($list); $i++) {
if ($i>0 && $i%$cols==0) { echo "</tr><tr><td colspan='$cols' height='$image_h'></td></tr><tr>"; }
$ex7_filed = explode("|",$list[$i][wr_7]);
$ext7_00 = $ex7_filed[0];
$ext7_01 = $ex7_filed[1];
$ext7_02 = $ex7_filed[2];
$ext7_03 = $ex7_filed[3];
$ext7_04 = $ex7_filed[4];
$ext7_05 = $ex7_filed[5];
$ext7_06 = $ex7_filed[6];
$ext7_07 = $ex7_filed[7];
$ext7_08 = $ex7_filed[8];
$ext7_09 = $ex7_filed[9];
$ext7_10 = $ex7_filed[10];
$ext7_11 = $ex7_filed[11];
$ext7_12 = $ex7_filed[12];
$ext7_13 = $ex7_filed[13];
$ext7_14 = $ex7_filed[14];
?>
<td width="164" align="left" valign='top' class="item_td">
<?
$img = "$g4[path]/data/file/$bo_table/thumb/{$list[$i][wr_id]}";
if (!@file_exists($img)) $img = "$g4[path]/data/file/$bo_table/thumbnail/{$list[$i][wr_id]}";
if (!@file_exists($img)) $img = "{$list[$i][file][0][path]}/{$list[$i][file][0][file]}";
if (!@file_exists($img)) $img = "$latest_skin_path/img/noimage.gif";
if (!$list[$i][wr_id]) $img = "$latest_skin_path/img/noimage.gif";
if (@is_dir($img)) $img = "$latest_skin_path/img/noimage.gif";
?>
<? /* if ($g4[server_time] - strtotime($list[$i][wr_datetime]) > 60*60*24*(30*6)) {
echo "<a href='{$list[$i][wr_9]}' target='_blank'>";
} else {
echo "<a href='{$list[$i][link_href][1]}' target='_blank'>";
} */ ?>
<a href='<?=$list[$i][href]?>' target="_parent"><img src="<?=$img?>" class="file-img-t" onmouseover="this.style.border='2px solid #000'" onmouseout="this.style.border='solid 2px #fff'" alt="<?=$list[$i][subject]?> - <?=$list[$i][wr_7]?>원"></a>
<div style="text-align:left; width:144px; margin-top:5px;">
<span class="shop">
<img src="<?=$latest_skin_path?>/img/list_home_icon.gif" align="top" /> <a href='<?=$list[$i][href]?>' target="_parent">글쓴이 :</a></span></div>
<div class="item_name"><a href="<?=$list[$i][href]?>" target="_parent"><?=$list[$i]['subject']?></a></div>
<?if($ext7_00){?><img src='<?=$latest_skin_path?>/images/dadada_1.gif' align=absmiddle > <?=$ext7_00?>
만
<?}?>
<br>
<div style="height:2px; line-height:1px; font-size:1px;"> </div>
<?if($ext7_10){?><img src='<?=$latest_skin_path?>/images/dadada_bo.jpg' align=absmiddle > <?=$ext7_10?>
만
<?}?>
<?if($ext7_11){?><img src='<?=$latest_skin_path?>/images/dadada_2.gif' align=absmiddle > <?=$ext7_11?>
만
<?}?>
<br>
<div style="height:2px; line-height:1px; font-size:1px;"> </div>
<?if($ext7_13){?><img src='<?=$latest_skin_path?>/images/dadada_bo_1.jpg' align=absmiddle > <?=$ext7_13?>
만
<?}?>
<?if($ext7_14){?><img src='<?=$latest_skin_path?>/images/dadada_bo_2.jpg' align=absmiddle > <?=$ext7_14?>
만
<?}?>
<div style="text-align:center; margin-top:5px;">
<table width="92%" border="0" cellspacing="0" cellpadding="0">
<tr>
</tr>
</table>
</div>
</td>
<? } ?>
<?
$cnt = ($i%$cols);
for ($k=$cnt; $k<$cols && $cnt; $k++) {
echo "<td width=$col_width%> </td>";
}
?>
<? if (count($list) == 0) { echo "<td align=center>게시물이 없습니다.</td>"; } ?>
</tr>
</table>
<script src="<?=$g4[path]?>/js/b4.common.js"></script>
------------------------------------------------
게시판 list.skin.php
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 선택옵션으로 인해 셀합치기가 가변적으로 변함
$colspan = 7;
$sql_common = " from {$g4['write_prefix']}{$bo_table}";
$sql_search = " where 1=1 ";
if($sca) $sql_search .= " and ca_name='$sca' and wr_is_comment=0";
if ($sca || $stx)
{
$sql_search .= " and " .get_sql_search($sca, $sfl, $stx, $sop);
}else{
$sql_search .= " and wr_is_comment = 0";
}
if(!$wr_id){
if($ext8_01) $sql_search .= " and wr_8 like '%|$ext8_01|%' ";
if($ext8_02) $sql_search .= " and wr_8 like '%|$ext8_02|%' ";
if($ext8_02=="월세" && $ext10_00) $sql_search .= " and wr_10 like '$ext10_00|%' ";
else $search2 = "";
if($ext8_02=="전세" && $ext10_01) $sql_search .= " and wr_10 like '%|$ext10_01|%' ";
if($search1){
if($search1==1) $sql_search .= " and substring_index(substring_index(wr_7,'|',1),'|',-1) <= 500 ";
else if($search1==1) $sql_search .= " and substring_index(substring_index(wr_7,'|',1),'|',-1) >= 500 && substring_index(substring_index(wr_7,'|',1),'|',-1) >= 1000 ";
else if($search1==2) $sql_search .= " and substring_index(substring_index(wr_7,'|',1),'|',-1) >= 1000 && substring_index(substring_index(wr_7,'|',1),'|',-1) >= 2000 ";
else if($search1==3) $sql_search .= " and substring_index(substring_index(wr_7,'|',1),'|',-1) >= 2000 && substring_index(substring_index(wr_7,'|',1),'|',-1) >= 5000 ";
else if($search1==4) $sql_search .= " and substring_index(substring_index(wr_7,'|',1),'|',-1) >= 5000 && substring_index(substring_index(wr_7,'|',1),'|',-1) >= 10000 ";
else if($search1==5) $sql_search .= " and substring_index(substring_index(wr_7,'|',1),'|',-1) >= 10000 ";
}
if($search2){
if($search2==1) $sql_search .= " and substring_index(substring_index(wr_7,'|',12),'|',-1) = '' ";
else if($search2==2) $sql_search .= " and substring_index(substring_index(wr_7,'|',12),'|',-1) <= 40 ";
else if($search2==3) $sql_search .= " and substring_index(substring_index(wr_7,'|',12),'|',-1) >= 40 && substring_index(substring_index(wr_7,'|',12),'|',-1) >= 60 ";
else if($search2==4) $sql_search .= " and substring_index(substring_index(wr_7,'|',12),'|',-1) >= 60 && substring_index(substring_index(wr_7,'|',12),'|',-1) >= 80 ";
else if($search2==5) $sql_search .= " and substring_index(substring_index(wr_7,'|',12),'|',-1) >= 80 && substring_index(substring_index(wr_7,'|',12),'|',-1) >= 100 ";
else if($search2==6) $sql_search .= " and substring_index(substring_index(wr_7,'|',12),'|',-1) >= 100 ";
}
}
$sql = " select *
$sql_common
$sql_search
$sql_order ";
$result = sql_query($sql);
$total_count = mysql_num_rows($result);
$rows = $board[bo_page_rows];
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
if ($page == "") $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows; // 시작 열을 구함
$sql = " select *, substring_index(substring_index(wr_7,'|',12),'|',-1) as b
$sql_common
$sql_search
$sql_order
limit $from_record, $rows ";
$result = sql_query($sql);
$list = array();
$i = 0;
if (!$sca && !$stx)
{
$arr_notice = explode("\n", trim($board[bo_notice]));
for ($k=0; $k<count($arr_notice); $k++)
{
if (trim($arr_notice[$k])=='') continue;
$row = sql_fetch(" select * from $write_table where wr_id = '$arr_notice[$k]' ");
if (!$row[wr_id]) continue;
$list[$i] = get_list($row, $board, $board_skin_path, $board[bo_subject_len]);
$list[$i][is_notice] = true;
$i++;
}
}
$k = 0;
while ($row = sql_fetch_array($result))
{
// 검색일 경우 wr_id만 얻었으므로 다시 한행을 얻는다
if ($sca || $stx)
$row = sql_fetch(" select * from $write_table where wr_id = '$row[wr_parent]' ");
$list[$i] = get_list($row, $board, $board_skin_path, $board[bo_subject_len]);
if (strstr($sfl, "subject"))
$list[$i][subject] = search_font($stx, $list[$i][subject]);
$list[$i][is_notice] = false;
//$list[$i][num] = number_format($total_count - ($page - 1) * $board[bo_page_rows] - $k);
$list[$i][num] = $total_count - ($page - 1) * $board[bo_page_rows] - $k;
$i++;
$k++;
}
?>
<link rel='stylesheet' type='text/css' href='<?=$board_skin_path?>/bstyle.css'>
<!-- 테두리 박스 시작 -->
</td>
<style type="text/css">
.num {
font-weight: bold;
}
</style>
<style type="text/css">
.sd {
color: #03F;
font-weight: bold;
font-size: 12px;
}
</style>
<td align="right"> </td>
</tr>
<tr><td height=5></td></tr>
</table><table border="0" cellspacing="0" cellpadding="0" WIDTH=100%>
<tr>
<td width="7" height="7"><img src="<?=$board_skin_path?>/img/box_a_01.gif" width="7" height="7"></td>
<td background="<?=$board_skin_path?>/img/box_a_02.gif"></td>
<td width="6"><img src="<?=$board_skin_path?>/img/box_a_03.gif" width="6" height="7"></td>
</tr>
<tr>
<td background="<?=$board_skin_path?>/img/box_a_04.gif"></td>
<td height="100" align="center" valign="middle"><?include $board_skin_path."/search.php"?></td>
<td background="<?=$board_skin_path?>/img/box_a_05.gif"></td>
</tr>
<tr>
<td height="7"><img src="<?=$board_skin_path?>/img/box_a_06.gif" width="7" height="7"></td>
<td background="<?=$board_skin_path?>/img/box_a_07.gif"></td>
<td><img src="<?=$board_skin_path?>/img/box_a_08.gif" width="6" height="7"></td>
</tr>
</table>
<? if ($is_category) { ?>
<table width="100%" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
<tr>
<td width="100%" height="36" align=left cellpadding="0" cellspcing="0">
<table width="100%" align="center" cellpadding="0" cellspacing="0" style="border-collapse:collapse;">
<tr><td width="40" height="36" align=center style="padding:10 0 6 0; border-top-width:1; border-right-width:0; border-bottom-width:1; border-left-width:1; border-color:rgb(216,216,216); border-style:solid;" bgcolor="F6F6F6">
<?echo $bb_s;?><a href='./board.php?bo_table=<?=$bo_table?>&page=<?=$page?>'><span class=L_Tcategory><b>분류</b></span></a><?=$bb_e?>
</td>
<td width='' height="36" align=left style="padding:10 0 6 6; border-top-width:1; border-right-width:1; border-bottom-width:1; border-left-width:0; border-color:rgb(216,216,216); border-style:solid;">
<? {
//echo "<table width='100%' cellpadding='0' cellspacing='0' style='margin:0 0 0 0;border:solid #55cc55 1px;'>"; //★ (카테고리목록의 테이블 길이를 100%로 할 경우)
echo "<table cellpadding='0' cellspacing='0' style='padding:0 0 0 0;'>"; //◆
$ca_menu = explode("|",$board[bo_category_list]);
$ca_td_num = "13"; //가로칸수. 원하는 칸수만큼 지정해주면 됩니다.
//$ca_td_width = 100 / $ca_td_num ; //★ <td width='%'>값
for ($c=0, $cnt=count($ca_menu); $c<$cnt; $c++) {
if (($c == "0") || (($c >= $ca_td_num) && ($c % $ca_td_num == "0"))) { echo "<tr>"; }
//echo "<td width='".$ca_td_width."%'>"; //★
echo "<td style='padding:2 4 2 4;'>· "; //◆
//★표와 ◆표는 어느 한쪽을 쓸 경우 다른 쪽을 주석처리하면 됩니다.
if ($sca == $ca_menu[$c]) { $bcoral = "<b style='color:coral'>"; } else { $bcoral = ""; }
$sqlCnum = " select count(*) as Cnum from $write_table where wr_is_comment = 0 and ca_name = '$ca_menu[$c]'";
$rowCnum = sql_fetch($sqlCnum);
echo "<a href='".$g4['bbs_path']."/board.php?bo_table=".$bo_table."&sca=".urlencode($ca_menu[$c])."'>";
echo $bcoral.$ca_menu[$c]."</a>";
echo "</td>";
}
echo "</tr></table>";
} ?>
</td>
</tr>
</table>
</td>
</tr>
<tr><td colspan=<?=$colspan?> height=2></td></tr>
</table>
<? } ?>
<div style="height:5px; line-height:1px; font-size:1px;"> </div>
<!-- 제목 테이블 -->
<table width="100%" align="center" cellpadding="0" cellspacing="0" >
<tr>
<td width="32%" height="36" align=center bgcolor="F6F6F6" style="padding:0 0 0 0; border-top-width:1; border-right-width:0; border-bottom-width:1; border-left-width:0; border-color:rgb(216,216,216); border-style:solid;"> 이미지</td>
<td width="35%" align=center bgcolor="F6F6F6" style="padding:0 0 0 0; border-top-width:1; border-right-width:0; border-bottom-width:1; border-left-width:0; border-color:rgb(216,216,216); border-style:solid;">간략정보</td>
<td width="33%" align=center bgcolor="F6F6F6" style="padding:0 0 0 0; border-top-width:1; border-right-width:0; border-bottom-width:1; border-left-width:0; border-color:rgb(216,216,216); border-style:solid;">원룸정보</td>
</tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<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="">
<!-- 게시판 목록 시작 -->
<?
for ($i=0; $i<count($list); $i++) {
if($i%2==0) $bg_color = "#fafafa;";
else if($i%2==1) $bg_color = "#ffffff;";
//
$ex3_filed = explode("|", $list[$i][wr_3]);
$ext3_00 = $ex3_filed[0];
$ext3_01 = $ex3_filed[1];
$ext3_02 = $ex3_filed[2];
$ext3_03 = $ex3_filed[3];
$ext3_04 = $ex3_filed[4];
$ext3_05 = $ex3_filed[5];
$ext3_06 = $ex3_filed[6];
$ext3_07 = $ex3_filed[7];
$ex5_filed = explode("|", $list[$i][wr_5]);
$ext5_01 = $ex5_filed[1];
//
$ex7_filed = explode("|",$list[$i][wr_7]);
$ext7_00 = $ex7_filed[0];
$ext7_01 = $ex7_filed[1];
$ext7_02 = $ex7_filed[2];
$ext7_03 = $ex7_filed[3];
$ext7_04 = $ex7_filed[4];
$ext7_05 = $ex7_filed[5];
$ext7_06 = $ex7_filed[6];
$ext7_07 = $ex7_filed[7];
$ext7_08 = $ex7_filed[8];
$ext7_09 = $ex7_filed[9];
$ext7_10 = $ex7_filed[10];
$ext7_11 = $ex7_filed[11];
$ext7_12 = $ex7_filed[12];
$ext7_13 = $ex7_filed[13];
$ext7_14 = $ex7_filed[14];
$ex8_filed = explode("|",$list[$i][wr_8]);
$ext8_00 = $ex8_filed[0];
$ext8_01 = $ex8_filed[1];
$ext8_02 = $ex8_filed[2];
$ext8_03 = $ex8_filed[3];
if($ext8_02=="월세") $ext8_02_icon = "<img src='$board_skin_path/img/dada_1.gif' border='0' align='absmiddle'>";
else if($ext8_02=="전세") $ext8_02_icon = "<img src='$board_skin_path/img/dada_2.gif' border='0' align='absmiddle'>";
if($ext8_03=="단기") $ext8_03_icon = "<img src='$board_skin_path/img/dada_3.gif' border='0' align='absmiddle'>";
else if($ext8_03=="무보증") $ext8_03_icon = "<img src='$board_skin_path/img/dada_4.gif' border='0' align='absmiddle'>";
else if($ext8_03=="복층") $ext8_03_icon = "<img src='$board_skin_path/img/dada_5.gif' border='0' align='absmiddle'>";
else if($ext8_03=="베란다") $ext8_03_icon = "<img src='$board_skin_path/img/dada_6.gif' border='0' align='absmiddle'>";
//--
$ex10_filed = explode("|",$list[$i][wr_10]);
$ext10_00 = $ex10_filed[0];
$ext10_01 = $ex10_filed[1];
//-- 학원분류
$ex6_filed = explode("|",$list[$i][wr_6]);
$ext6_00 = $ex6_filed[0];
//$ext6_01 = $ex6_filed[1]; {원생수}
$thum_width = 100;
$thum_height = 80;
if ($list[$i][file][0][file])
{
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
$img = "<a href=\"{$list[$i][href]}\"><img src='" .$file. "' style='border:1px solid #eaeaea;' width=$thum_width height=$thum_height></a>";
}
else
{
$img = "<a href=\"{$list[$i][href]}\"><img src='$board_skin_path/img/noimage.gif' style='border:1px solid #eaeaea;' width=$thum_width height=$thum_height></a>";
}
if ($list[$i][file][1][file])
{
$file = $list[$i][file][1][path] .'/'. $list[$i][file][1][file];
$img2 = "<a href=\"{$list[$i][href]}\"><img src='" .$file. "' style='border:1px solid #eaeaea;' width=$thum_width height=$thum_height></a>";
}
else
{
$img2 = "<a href=\"{$list[$i][href]}\"><img src='$board_skin_path/img/noimage.gif' style='border:1px solid #eaeaea;' width=$thum_width height=$thum_height></a>";
}
?>
<tr style="background-color:<?=$bg_color?> color: #03F; font-size: 12px; color: #03F;">
<td width="221" height="100" rowspan="2"><?=$img?>
<?=$img2?></td>
<td width="40" rowspan="2" valign="top" class="num"><br>
<?
if ($list[$i][is_notice]) // 공지사항
echo "<b>추천</b>";
else if ($wr_id == $list[$i][wr_id]) // 현재위치
echo "<span class='current'>{$list[$i][num]}</span>";
else
echo $list[$i][num];
?>
<br>
<? if ($is_checkbox) { ?><input type=checkbox name=chk_wr_id[] value="<?=$list[$i][wr_id]?>"><? } ?>
</td>
<td colspan="4" align="left" valign="top"><br>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="4" align="left" valign="top"><a href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i][wr_id]?>'><span class="sd"><font color=188AD6><?=cut_str($list[$i][wr_subject],100)?></font></span></a></td>
</tr>
<tr>
<td height="10" colspan="4" align="left" valign="top"></td>
</tr>
<tr style="background-color:<?=$bg_color?>">
<td width="80" align="left" valign="top" ><font color="#333333"><b>위치</b>
</td>
<td colspan="3" align="left" valign="top" >
<?=$list[$i][ca_name]?>
<?=$ext3_00?>
</td>
</tr>
<?if($ext8_03){?>
<tr style="background-color:<?=$bg_color?>">
<td align="left" valign="top"><font color="#333333"><b>면적</b></td>
<td width="181" align="left" valign="top"><?=$list[$i][wr_2]?>
평</td>
<td width="37" align="left" valign="top"><font color="#333333"><b>테마</b></td>
<td width="87" align="left" valign="top"><?=$ext8_03_icon?></td>
</tr>
<?}else{?>
<tr style="background-color:<?=$bg_color?>">
<td align="left" valign="top"><font color="#333333"><b>면적</b></td>
<td align="left" valign="top" colspan="3"><?=$list[$i][wr_2]?>
평</td>
</tr>
<?}?>
<tr style="background-color:<?=$bg_color?>">
<td align="left" valign="top"><font color="#333333"><b>건물층수</b></td>
<td colspan="3" align="left" valign="top"><?=$ext3_06?>
건물의
<?=$ext3_07?>
층</td>
</tr>
</table>
</td>
<td width="160" colspan="5" rowspan="2" align="left"class="datetime"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<!--DATE:<?=$list[$i][datetime]?>-->
<font style="font:normal 11px 돋움; color:#BABABA;">조회 :</font><font style="font:normal 11px tahoma; color:#BABABA;"> <?=$list[$i][wr_hit]?> </font>
<br>
<?if($ext7_00){ echo "<img src='$board_skin_path/img/dadada_1.gif' align=absmiddle> $ext7_00";?>만원 <?}?>
<br>
<div style="height:2px; line-height:1px; font-size:1px;"> </div>
<?if($ext7_10){?><img src='<?=$board_skin_path?>/img/dadada_bo.jpg' align=absmiddle > <?=$ext7_10?> 만 <?}?>
<?if($ext7_11){?><img src='<?=$board_skin_path?>/img/dadada_2.gif' align=absmiddle > <?=$ext7_11?> 만 <?}?>
<br>
<div style="height:2px; line-height:1px; font-size:1px;"> </div>
<?if($ext7_13){?><img src='<?=$board_skin_path?>/img/dadada_bo_1.jpg' align=absmiddle > <?=$ext7_13?> 만 <?}?>
<?if($ext7_14){?><img src='<?=$board_skin_path?>/img/dadada_bo_2.jpg' align=absmiddle > <?=$ext7_14?> 만 <?}?>
<br>
<div style="height:2px; line-height:1px; font-size:1px;"> </div>
<a href="javascript:;" onClick="window.open('<?=$board_skin_path?>/list.skin.popup.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i][wr_id]?>','popup','width=740,height=850,scrollbars=yes')"><img src="<?=$board_skin_path?>/img/button_01.gif" width="58" height="25" border="0"></a>
<a href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i][wr_id]?>'><img src="<?=$board_skin_path?>/img/button_02.gif" width="58" height="25" border="0"></a> <?if($list[$i][wr_link1]){?><a href="javascript://" onClick="window.open('<?=$list[$i][wr_link1]?>', '', 'left=100,top=100,width=600,height=400,scrollbars=1,resizable=1');" title='동영상보기'><img src="<?=$board_skin_path?>/img/button_03.gif" border="0"></a><?}?></td>
</tr>
</table>
</td>
</tr>
<tr style="background-color:<?=$bg_color?>">
<td colspan="4" align="left" valign="top">
</td>
</tr>
<tr><td colspan=13 height="1" bgcolor='#cccccc'></td></tr>
<? } ?>
<? if (count($list) == 0) { echo "<tr><td colspan='$colspan' height=100 align=center>게시물이 없습니다.</td></tr>"; } ?>
</form>
</table>
<!-- 페이지 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" align="center" height=30 valign=bottom>
<? if ($prev_part_href) { echo "<a href='$prev_part_href'><img src='$board_skin_path/img/btn_search_prev.gif' border=0 align=absmiddle title='이전검색'></a>"; } ?>
<?
// 기본으로 넘어오는 페이지를 아래와 같이 변환하여 이미지로도 출력할 수 있습니다.
$write_pages = get_paging($config[cf_write_pages], $page, $total_page, "./board.php?bo_table=$bo_table".$qstr."&page=");
$write_pages = str_replace("처음", "<img src='$board_skin_path/img/begin.gif' border='0' align='absmiddle' title='처음'>", $write_pages);
$write_pages = str_replace("이전", "<img src='$board_skin_path/img/prev.gif' border='0' align='absmiddle' title='이전'>", $write_pages);
$write_pages = str_replace("다음", "<img src='$board_skin_path/img/next.gif' border='0' align='absmiddle' title='다음'>", $write_pages);
$write_pages = str_replace("맨끝", "<img src='$board_skin_path/img/end.gif' border='0' align='absmiddle' title='맨끝'>", $write_pages);
$write_pages = preg_replace("/<span>([0-9]*)<\/span>/", "<b><font style=\"font-family:tahoma; font-size:11px; color:#000000\">$1</font></b>", $write_pages);
$write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<b><font style=\"font-family:tahoma; font-size:11px; color:#E15916;\">$1</font></b>", $write_pages);
?>
<?=$write_pages?>
<? if ($next_part_href) { echo "<a href='$next_part_href'><img src='$board_skin_path/img/btn_search_next.gif' border=0 align=absmiddle title='다음검색'></a>"; } ?>
</td>
</tr>
</table>
<!-- 버튼 링크 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="50%" height="40">
<? if ($list_href) { ?><a href="<?=$list_href?>"><img src="<?=$board_skin_path?>/img/btn_list.gif" border="0"></a><? } ?>
<? if ($write_href) { ?><a href="<?=$write_href?>"><img src="<?=$board_skin_path?>/img/btn_write.gif" border="0"></a><? } ?>
<? if ($is_checkbox) { ?>
<a href="javascript:select_delete();"><img src="<?=$board_skin_path?>/img/btn_select_delete.gif" border="0"></a>
<a href="javascript:select_copy('copy');"><img src="<?=$board_skin_path?>/img/btn_select_copy.gif" border="0"></a>
<a href="javascript:select_copy('move');"><img src="<?=$board_skin_path?>/img/btn_select_move.gif" border="0"></a>
<? } ?>
</td>
<form name=fsearch method=get>
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=sca value="<?=$sca?>">
<td width="50%" align="right">
<select name=sfl>
<option value='wr_subject||wr_content'>제목+내용</option>
<option value='wr_2'>면적(㎡)</option>
<option value='wr_4'>방갯수</option>
</select>
<INPUT maxLength=15 size=10 name=stx itemname="검색어" required value="<?=$stx?>">
<SELECT name=sop>
<OPTION value=and>And</OPTION>
<OPTION value=or>Or</OPTION>
</SELECT>
<INPUT type=image src="<?=$board_skin_path?>/img/search_btn.gif" border=0 align=absmiddle></td>
</form>
</tr>
</table>
<!----------- { 레이아웃 테이블 아래. 끝 } --------------------------------------//-->
</td></tr></table>
<script language="JavaScript">
if ("<?=$sca?>") document.fcategory.sca.value = "<?=$sca?>";
if ("<?=$stx?>") {
document.fsearch.sfl.value = "<?=$sfl?>";
document.fsearch.sop.value = "<?=$sop?>";
}
</script>
<? if ($is_checkbox) { ?>
<script language="JavaScript">
function all_checked(sw)
{
var f = document.fboardlist;
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == "chk_wr_id[]")
f.elements[i].checked = sw;
}
}
function check_confirm(str)
{
var f = document.fboardlist;
var chk_count = 0;
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == "chk_wr_id[]" && f.elements[i].checked)
chk_count++;
}
if (!chk_count) {
alert(str + "할 게시물을 하나 이상 선택하세요.");
return false;
}
return true;
}
// 선택한 게시물 삭제
function select_delete()
{
var f = document.fboardlist;
str = "삭제";
if (!check_confirm(str))
return;
if (!confirm("선택한 게시물을 정말 "+str+" 하시겠습니까?\n\n한번 "+str+"한 자료는 복구할 수 없습니다"))
return;
f.action = "./delete_all.php";
f.submit();
}
// 선택한 게시물 복사 및 이동
function select_copy(sw)
{
var f = document.fboardlist;
if (sw == "copy")
str = "복사";
else
str = "이동";
if (!check_confirm(str))
return;
var sub_win = window.open("", "move", "left=50, top=50, width=396, height=550, scrollbars=1");
f.sw.value = sw;
f.target = "move";
f.action = "./move.php";
f.submit();
}
</script>
<? } ?>
<!-- 게시판 목록 끝 -->
</td>
</tr>
<tr>
<td> </td></tr>
</table>
<!-- 테두리 박스 끝 -->
도와주세요 ㅠ.ㅠ
댓글 전체
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/lib/thumb.lib.php");
$filter[type] = 99;
$filter[arg1] = 100;
$filter[arg2] = 1;
$filter[arg3] = 2;
$cols = 4; // 이미지 가로갯수 // 이미지 세로 갯수는 메인에서 지정(총 이미지 수)
$img_width = '160'; //썸네일 가로길이
$img_height = '160'; //썸네일 세로길이
$img_quality = '80'; //퀼리티 100이하로 설정
$col_width = (int)(100 / $cols);
?>
<style type="text/css">
.file-img-t { width:170px; height:180px; border:solid 2px #fff; }
.item_td { padding:10px 0 14px 0; margin:5px 10px 0px 10px; border-bottom:1px dotted #e0e0e0; }
.item_name { margin:3px; height:32px; font-size:11px; font-family:돋움; text-align:left; }
.item_name a { margin:3px; height:32px; font-size:11px; font-family:돋움; text-align:left; }
.title_price { margin:3px; padding-left:3px; color:#FF3300; font-weight:bold; text-align:left; }
.shop { color:#e93100; font-size:11px; font-family:돋움; }
.shop a { color:#e93100; font-size:11px; font-family:돋움; }
</style>
<!-- 최신글 제목 -->
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<? for ($i=0; $i<count($list); $i++) {
if ($i>0 && $i%$cols==0) { echo "</tr><tr><td colspan='$cols' height='$image_h'></td></tr><tr>"; }
$ex7_filed = explode("|",$list[$i][wr_7]);
$ext7_00 = $ex7_filed[0];
$ext7_01 = $ex7_filed[1];
$ext7_02 = $ex7_filed[2];
$ext7_03 = $ex7_filed[3];
$ext7_04 = $ex7_filed[4];
$ext7_05 = $ex7_filed[5];
$ext7_06 = $ex7_filed[6];
$ext7_07 = $ex7_filed[7];
$ext7_08 = $ex7_filed[8];
$ext7_09 = $ex7_filed[9];
$ext7_10 = $ex7_filed[10];
$ext7_11 = $ex7_filed[11];
$ext7_12 = $ex7_filed[12];
$ext7_13 = $ex7_filed[13];
$ext7_14 = $ex7_filed[14];
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
// 업로드된 파일이 이미지라면
if (preg_match("/\.(jpg|gif|png)$/i", $file) && file_exists($file)) {
$img = thumbnail($file, $img_width, $img_height, 0, 1, $img_quality, 0, "", $filter, $noimg); // 썸네일 생성
}
?>
<td width="164" align="left" valign='top' class="item_td">
<? /* if ($g4[server_time] - strtotime($list[$i][wr_datetime]) > 60*60*24*(30*6)) {
echo "<a href='{$list[$i][wr_9]}' target='_blank'>";
} else {
echo "<a href='{$list[$i][link_href][1]}' target='_blank'>";
} */ ?>
<a href='<?=$list[$i][href]?>' target="_parent"><img src="<?=$img?>" class="file-img-t" onmouseover="this.style.border='2px solid #000'" onmouseout="this.style.border='solid 2px #fff'" alt="<?=$list[$i][subject]?> - <?=$list[$i][wr_7]?>원"></a>
<div style="text-align:left; width:144px; margin-top:5px;">
<span class="shop">
<img src="<?=$latest_skin_path?>/img/list_home_icon.gif" align="top" /> <a href='<?=$list[$i][href]?>' target="_parent">글쓴이 :</a></span></div>
<div class="item_name"><a href="<?=$list[$i][href]?>" target="_parent"><?=$list[$i]['subject']?></a></div>
<?if($ext7_00){?><img src='<?=$latest_skin_path?>/images/dadada_1.gif' align=absmiddle > <?=$ext7_00?>
만
<?}?>
<br>
<div style="height:2px; line-height:1px; font-size:1px;"> </div>
<?if($ext7_10){?><img src='<?=$latest_skin_path?>/images/dadada_bo.jpg' align=absmiddle > <?=$ext7_10?>
만
<?}?>
<?if($ext7_11){?><img src='<?=$latest_skin_path?>/images/dadada_2.gif' align=absmiddle > <?=$ext7_11?>
만
<?}?>
<br>
<div style="height:2px; line-height:1px; font-size:1px;"> </div>
<?if($ext7_13){?><img src='<?=$latest_skin_path?>/images/dadada_bo_1.jpg' align=absmiddle > <?=$ext7_13?>
만
<?}?>
<?if($ext7_14){?><img src='<?=$latest_skin_path?>/images/dadada_bo_2.jpg' align=absmiddle > <?=$ext7_14?>
만
<?}?>
<div style="text-align:center; margin-top:5px;">
<table width="92%" border="0" cellspacing="0" cellpadding="0">
<tr>
</tr>
</table>
</div>
</td>
<? } ?>
<?
$cnt = ($i%$cols);
for ($k=$cnt; $k<$cols && $cnt; $k++) {
echo "<td width=$col_width%> </td>";
}
?>
<? if (count($list) == 0) { echo "<td align=center>게시물이 없습니다.</td>"; } ?>
</tr>
</table>
------------------------------------------------
게시판 list.skin.php
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/lib/thumb.lib.php");
$thumb_width = "100"; //썸네일 가로길이
$thumb_height = "80"; //썸네일 세로길이
$filter[type] = 99;
$filter[arg1] = 100;
$filter[arg2] = 1;
$filter[arg3] = 2;
// 선택옵션으로 인해 셀합치기가 가변적으로 변함
$colspan = 7;
$sql_common = " from {$g4['write_prefix']}{$bo_table}";
$sql_search = " where 1=1 ";
if($sca) $sql_search .= " and ca_name='$sca' and wr_is_comment=0";
if ($sca || $stx)
{
$sql_search .= " and " .get_sql_search($sca, $sfl, $stx, $sop);
}else{
$sql_search .= " and wr_is_comment = 0";
}
if(!$wr_id){
if($ext8_01) $sql_search .= " and wr_8 like '%|$ext8_01|%' ";
if($ext8_02) $sql_search .= " and wr_8 like '%|$ext8_02|%' ";
if($ext8_02=="월세" && $ext10_00) $sql_search .= " and wr_10 like '$ext10_00|%' ";
else $search2 = "";
if($ext8_02=="전세" && $ext10_01) $sql_search .= " and wr_10 like '%|$ext10_01|%' ";
if($search1){
if($search1==1) $sql_search .= " and substring_index(substring_index(wr_7,'|',1),'|',-1) <= 500 ";
else if($search1==1) $sql_search .= " and substring_index(substring_index(wr_7,'|',1),'|',-1) >= 500 && substring_index(substring_index(wr_7,'|',1),'|',-1) >= 1000 ";
else if($search1==2) $sql_search .= " and substring_index(substring_index(wr_7,'|',1),'|',-1) >= 1000 && substring_index(substring_index(wr_7,'|',1),'|',-1) >= 2000 ";
else if($search1==3) $sql_search .= " and substring_index(substring_index(wr_7,'|',1),'|',-1) >= 2000 && substring_index(substring_index(wr_7,'|',1),'|',-1) >= 5000 ";
else if($search1==4) $sql_search .= " and substring_index(substring_index(wr_7,'|',1),'|',-1) >= 5000 && substring_index(substring_index(wr_7,'|',1),'|',-1) >= 10000 ";
else if($search1==5) $sql_search .= " and substring_index(substring_index(wr_7,'|',1),'|',-1) >= 10000 ";
}
if($search2){
if($search2==1) $sql_search .= " and substring_index(substring_index(wr_7,'|',12),'|',-1) = '' ";
else if($search2==2) $sql_search .= " and substring_index(substring_index(wr_7,'|',12),'|',-1) <= 40 ";
else if($search2==3) $sql_search .= " and substring_index(substring_index(wr_7,'|',12),'|',-1) >= 40 && substring_index(substring_index(wr_7,'|',12),'|',-1) >= 60 ";
else if($search2==4) $sql_search .= " and substring_index(substring_index(wr_7,'|',12),'|',-1) >= 60 && substring_index(substring_index(wr_7,'|',12),'|',-1) >= 80 ";
else if($search2==5) $sql_search .= " and substring_index(substring_index(wr_7,'|',12),'|',-1) >= 80 && substring_index(substring_index(wr_7,'|',12),'|',-1) >= 100 ";
else if($search2==6) $sql_search .= " and substring_index(substring_index(wr_7,'|',12),'|',-1) >= 100 ";
}
}
$sql = " select *
$sql_common
$sql_search
$sql_order ";
$result = sql_query($sql);
$total_count = mysql_num_rows($result);
$rows = $board[bo_page_rows];
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
if ($page == "") $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows; // 시작 열을 구함
$sql = " select *, substring_index(substring_index(wr_7,'|',12),'|',-1) as b
$sql_common
$sql_search
$sql_order
limit $from_record, $rows ";
$result = sql_query($sql);
$list = array();
$i = 0;
if (!$sca && !$stx)
{
$arr_notice = explode("\n", trim($board[bo_notice]));
for ($k=0; $k<count($arr_notice); $k++)
{
if (trim($arr_notice[$k])=='') continue;
$row = sql_fetch(" select * from $write_table where wr_id = '$arr_notice[$k]' ");
if (!$row[wr_id]) continue;
$list[$i] = get_list($row, $board, $board_skin_path, $board[bo_subject_len]);
$list[$i][is_notice] = true;
$i++;
}
}
$k = 0;
while ($row = sql_fetch_array($result))
{
// 검색일 경우 wr_id만 얻었으므로 다시 한행을 얻는다
if ($sca || $stx)
$row = sql_fetch(" select * from $write_table where wr_id = '$row[wr_parent]' ");
$list[$i] = get_list($row, $board, $board_skin_path, $board[bo_subject_len]);
if (strstr($sfl, "subject"))
$list[$i][subject] = search_font($stx, $list[$i][subject]);
$list[$i][is_notice] = false;
//$list[$i][num] = number_format($total_count - ($page - 1) * $board[bo_page_rows] - $k);
$list[$i][num] = $total_count - ($page - 1) * $board[bo_page_rows] - $k;
$i++;
$k++;
}
?>
<link rel='stylesheet' type='text/css' href='<?=$board_skin_path?>/bstyle.css'>
<!-- 테두리 박스 시작 -->
</td>
<style type="text/css">
.num {
font-weight: bold;
}
</style>
<style type="text/css">
.sd {
color: #03F;
font-weight: bold;
font-size: 12px;
}
</style>
<td align="right"> </td>
</tr>
<tr><td height=5></td></tr>
</table><table border="0" cellspacing="0" cellpadding="0" WIDTH=100%>
<tr>
<td width="7" height="7"><img src="<?=$board_skin_path?>/img/box_a_01.gif" width="7" height="7"></td>
<td background="<?=$board_skin_path?>/img/box_a_02.gif"></td>
<td width="6"><img src="<?=$board_skin_path?>/img/box_a_03.gif" width="6" height="7"></td>
</tr>
<tr>
<td background="<?=$board_skin_path?>/img/box_a_04.gif"></td>
<td height="100" align="center" valign="middle"><?include $board_skin_path."/search.php"?></td>
<td background="<?=$board_skin_path?>/img/box_a_05.gif"></td>
</tr>
<tr>
<td height="7"><img src="<?=$board_skin_path?>/img/box_a_06.gif" width="7" height="7"></td>
<td background="<?=$board_skin_path?>/img/box_a_07.gif"></td>
<td><img src="<?=$board_skin_path?>/img/box_a_08.gif" width="6" height="7"></td>
</tr>
</table>
<? if ($is_category) { ?>
<table width="100%" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
<tr>
<td width="100%" height="36" align=left cellpadding="0" cellspcing="0">
<table width="100%" align="center" cellpadding="0" cellspacing="0" style="border-collapse:collapse;">
<tr><td width="40" height="36" align=center style="padding:10 0 6 0; border-top-width:1; border-right-width:0; border-bottom-width:1; border-left-width:1; border-color:rgb(216,216,216); border-style:solid;" bgcolor="F6F6F6">
<?echo $bb_s;?><a href='./board.php?bo_table=<?=$bo_table?>&page=<?=$page?>'><span class=L_Tcategory><b>분류</b></span></a><?=$bb_e?>
</td>
<td width='' height="36" align=left style="padding:10 0 6 6; border-top-width:1; border-right-width:1; border-bottom-width:1; border-left-width:0; border-color:rgb(216,216,216); border-style:solid;">
<? {
//echo "<table width='100%' cellpadding='0' cellspacing='0' style='margin:0 0 0 0;border:solid #55cc55 1px;'>"; //★ (카테고리목록의 테이블 길이를 100%로 할 경우)
echo "<table cellpadding='0' cellspacing='0' style='padding:0 0 0 0;'>"; //◆
$ca_menu = explode("|",$board[bo_category_list]);
$ca_td_num = "13"; //가로칸수. 원하는 칸수만큼 지정해주면 됩니다.
//$ca_td_width = 100 / $ca_td_num ; //★ <td width='%'>값
for ($c=0, $cnt=count($ca_menu); $c<$cnt; $c++) {
if (($c == "0") || (($c >= $ca_td_num) && ($c % $ca_td_num == "0"))) { echo "<tr>"; }
//echo "<td width='".$ca_td_width."%'>"; //★
echo "<td style='padding:2 4 2 4;'>· "; //◆
//★표와 ◆표는 어느 한쪽을 쓸 경우 다른 쪽을 주석처리하면 됩니다.
if ($sca == $ca_menu[$c]) { $bcoral = "<b style='color:coral'>"; } else { $bcoral = ""; }
$sqlCnum = " select count(*) as Cnum from $write_table where wr_is_comment = 0 and ca_name = '$ca_menu[$c]'";
$rowCnum = sql_fetch($sqlCnum);
echo "<a href='".$g4['bbs_path']."/board.php?bo_table=".$bo_table."&sca=".urlencode($ca_menu[$c])."'>";
echo $bcoral.$ca_menu[$c]."</a>";
echo "</td>";
}
echo "</tr></table>";
} ?>
</td>
</tr>
</table>
</td>
</tr>
<tr><td colspan=<?=$colspan?> height=2></td></tr>
</table>
<? } ?>
<div style="height:5px; line-height:1px; font-size:1px;"> </div>
<!-- 제목 테이블 -->
<table width="100%" align="center" cellpadding="0" cellspacing="0" >
<tr>
<td width="32%" height="36" align=center bgcolor="F6F6F6" style="padding:0 0 0 0; border-top-width:1; border-right-width:0; border-bottom-width:1; border-left-width:0; border-color:rgb(216,216,216); border-style:solid;"> 이미지</td>
<td width="35%" align=center bgcolor="F6F6F6" style="padding:0 0 0 0; border-top-width:1; border-right-width:0; border-bottom-width:1; border-left-width:0; border-color:rgb(216,216,216); border-style:solid;">간략정보</td>
<td width="33%" align=center bgcolor="F6F6F6" style="padding:0 0 0 0; border-top-width:1; border-right-width:0; border-bottom-width:1; border-left-width:0; border-color:rgb(216,216,216); border-style:solid;">원룸정보</td>
</tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<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="">
<!-- 게시판 목록 시작 -->
<?
for ($i=0; $i<count($list); $i++) {
if($i%2==0) $bg_color = "#fafafa;";
else if($i%2==1) $bg_color = "#ffffff;";
//
$ex3_filed = explode("|", $list[$i][wr_3]);
$ext3_00 = $ex3_filed[0];
$ext3_01 = $ex3_filed[1];
$ext3_02 = $ex3_filed[2];
$ext3_03 = $ex3_filed[3];
$ext3_04 = $ex3_filed[4];
$ext3_05 = $ex3_filed[5];
$ext3_06 = $ex3_filed[6];
$ext3_07 = $ex3_filed[7];
$ex5_filed = explode("|", $list[$i][wr_5]);
$ext5_01 = $ex5_filed[1];
//
$ex7_filed = explode("|",$list[$i][wr_7]);
$ext7_00 = $ex7_filed[0];
$ext7_01 = $ex7_filed[1];
$ext7_02 = $ex7_filed[2];
$ext7_03 = $ex7_filed[3];
$ext7_04 = $ex7_filed[4];
$ext7_05 = $ex7_filed[5];
$ext7_06 = $ex7_filed[6];
$ext7_07 = $ex7_filed[7];
$ext7_08 = $ex7_filed[8];
$ext7_09 = $ex7_filed[9];
$ext7_10 = $ex7_filed[10];
$ext7_11 = $ex7_filed[11];
$ext7_12 = $ex7_filed[12];
$ext7_13 = $ex7_filed[13];
$ext7_14 = $ex7_filed[14];
$ex8_filed = explode("|",$list[$i][wr_8]);
$ext8_00 = $ex8_filed[0];
$ext8_01 = $ex8_filed[1];
$ext8_02 = $ex8_filed[2];
$ext8_03 = $ex8_filed[3];
if($ext8_02=="월세") $ext8_02_icon = "<img src='$board_skin_path/img/dada_1.gif' border='0' align='absmiddle'>";
else if($ext8_02=="전세") $ext8_02_icon = "<img src='$board_skin_path/img/dada_2.gif' border='0' align='absmiddle'>";
if($ext8_03=="단기") $ext8_03_icon = "<img src='$board_skin_path/img/dada_3.gif' border='0' align='absmiddle'>";
else if($ext8_03=="무보증") $ext8_03_icon = "<img src='$board_skin_path/img/dada_4.gif' border='0' align='absmiddle'>";
else if($ext8_03=="복층") $ext8_03_icon = "<img src='$board_skin_path/img/dada_5.gif' border='0' align='absmiddle'>";
else if($ext8_03=="베란다") $ext8_03_icon = "<img src='$board_skin_path/img/dada_6.gif' border='0' align='absmiddle'>";
//--
$ex10_filed = explode("|",$list[$i][wr_10]);
$ext10_00 = $ex10_filed[0];
$ext10_01 = $ex10_filed[1];
//-- 학원분류
$ex6_filed = explode("|",$list[$i][wr_6]);
$ext6_00 = $ex6_filed[0];
//$ext6_01 = $ex6_filed[1]; {원생수}
$thum_width = 100;
$thum_height = 80;
if ($list[$i][file][0][file])
{
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
$thumb = thumbnail($file, $thumb_width, $thumb_height, 0, 1, 90, 0, "", $filter, $noimg);
$img = "<a href=\"{$list[$i][href]}\"><img src='" .$thumb. "' style='border:1px solid #eaeaea;' width=$thum_width height=$thum_height></a>";
}
else
{
$img = "<a href=\"{$list[$i][href]}\"><img src='$board_skin_path/img/noimage.gif' style='border:1px solid #eaeaea;' width=$thum_width height=$thum_height></a>";
}
if ($list[$i][file][1][file])
{
$file = $list[$i][file][1][path] .'/'. $list[$i][file][1][file];
$thumb = thumbnail($file, $thumb_width, $thumb_height, 0, 1, 90, 0, "", $filter, $noimg);
$img2 = "<a href=\"{$list[$i][href]}\"><img src='" .$thumb. "' style='border:1px solid #eaeaea;' width=$thum_width height=$thum_height></a>";
}
else
{
$img2 = "<a href=\"{$list[$i][href]}\"><img src='$board_skin_path/img/noimage.gif' style='border:1px solid #eaeaea;' width=$thum_width height=$thum_height></a>";
}
?>
<tr style="background-color:<?=$bg_color?> color: #03F; font-size: 12px; color: #03F;">
<td width="221" height="100" rowspan="2"><?=$img?>
<?=$img2?></td>
<td width="40" rowspan="2" valign="top" class="num"><br>
<?
if ($list[$i][is_notice]) // 공지사항
echo "<b>추천</b>";
else if ($wr_id == $list[$i][wr_id]) // 현재위치
echo "<span class='current'>{$list[$i][num]}</span>";
else
echo $list[$i][num];
?>
<br>
<? if ($is_checkbox) { ?><input type=checkbox name=chk_wr_id[] value="<?=$list[$i][wr_id]?>"><? } ?>
</td>
<td colspan="4" align="left" valign="top"><br>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="4" align="left" valign="top"><a href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i][wr_id]?>'><span class="sd"><font color=188AD6><?=cut_str($list[$i][wr_subject],100)?></font></span></a></td>
</tr>
<tr>
<td height="10" colspan="4" align="left" valign="top"></td>
</tr>
<tr style="background-color:<?=$bg_color?>">
<td width="80" align="left" valign="top" ><font color="#333333"><b>위치</b>
</td>
<td colspan="3" align="left" valign="top" >
<?=$list[$i][ca_name]?>
<?=$ext3_00?>
</td>
</tr>
<?if($ext8_03){?>
<tr style="background-color:<?=$bg_color?>">
<td align="left" valign="top"><font color="#333333"><b>면적</b></td>
<td width="181" align="left" valign="top"><?=$list[$i][wr_2]?>
평</td>
<td width="37" align="left" valign="top"><font color="#333333"><b>테마</b></td>
<td width="87" align="left" valign="top"><?=$ext8_03_icon?></td>
</tr>
<?}else{?>
<tr style="background-color:<?=$bg_color?>">
<td align="left" valign="top"><font color="#333333"><b>면적</b></td>
<td align="left" valign="top" colspan="3"><?=$list[$i][wr_2]?>
평</td>
</tr>
<?}?>
<tr style="background-color:<?=$bg_color?>">
<td align="left" valign="top"><font color="#333333"><b>건물층수</b></td>
<td colspan="3" align="left" valign="top"><?=$ext3_06?>
건물의
<?=$ext3_07?>
층</td>
</tr>
</table>
</td>
<td width="160" colspan="5" rowspan="2" align="left"class="datetime"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<!--DATE:<?=$list[$i][datetime]?>-->
<font style="font:normal 11px 돋움; color:#BABABA;">조회 :</font><font style="font:normal 11px tahoma; color:#BABABA;"> <?=$list[$i][wr_hit]?> </font>
<br>
<?if($ext7_00){ echo "<img src='$board_skin_path/img/dadada_1.gif' align=absmiddle> $ext7_00";?>만원 <?}?>
<br>
<div style="height:2px; line-height:1px; font-size:1px;"> </div>
<?if($ext7_10){?><img src='<?=$board_skin_path?>/img/dadada_bo.jpg' align=absmiddle > <?=$ext7_10?> 만 <?}?>
<?if($ext7_11){?><img src='<?=$board_skin_path?>/img/dadada_2.gif' align=absmiddle > <?=$ext7_11?> 만 <?}?>
<br>
<div style="height:2px; line-height:1px; font-size:1px;"> </div>
<?if($ext7_13){?><img src='<?=$board_skin_path?>/img/dadada_bo_1.jpg' align=absmiddle > <?=$ext7_13?> 만 <?}?>
<?if($ext7_14){?><img src='<?=$board_skin_path?>/img/dadada_bo_2.jpg' align=absmiddle > <?=$ext7_14?> 만 <?}?>
<br>
<div style="height:2px; line-height:1px; font-size:1px;"> </div>
<a href="javascript:;" onClick="window.open('<?=$board_skin_path?>/list.skin.popup.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i][wr_id]?>','popup','width=740,height=850,scrollbars=yes')"><img src="<?=$board_skin_path?>/img/button_01.gif" width="58" height="25" border="0"></a>
<a href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i][wr_id]?>'><img src="<?=$board_skin_path?>/img/button_02.gif" width="58" height="25" border="0"></a> <?if($list[$i][wr_link1]){?><a href="javascript://" onClick="window.open('<?=$list[$i][wr_link1]?>', '', 'left=100,top=100,width=600,height=400,scrollbars=1,resizable=1');" title='동영상보기'><img src="<?=$board_skin_path?>/img/button_03.gif" border="0"></a><?}?></td>
</tr>
</table>
</td>
</tr>
<tr style="background-color:<?=$bg_color?>">
<td colspan="4" align="left" valign="top">
</td>
</tr>
<tr><td colspan=13 height="1" bgcolor='#cccccc'></td></tr>
<? } ?>
<? if (count($list) == 0) { echo "<tr><td colspan='$colspan' height=100 align=center>게시물이 없습니다.</td></tr>"; } ?>
</form>
</table>
<!-- 페이지 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" align="center" height=30 valign=bottom>
<? if ($prev_part_href) { echo "<a href='$prev_part_href'><img src='$board_skin_path/img/btn_search_prev.gif' border=0 align=absmiddle title='이전검색'></a>"; } ?>
<?
// 기본으로 넘어오는 페이지를 아래와 같이 변환하여 이미지로도 출력할 수 있습니다.
$write_pages = get_paging($config[cf_write_pages], $page, $total_page, "./board.php?bo_table=$bo_table".$qstr."&page=");
$write_pages = str_replace("처음", "<img src='$board_skin_path/img/begin.gif' border='0' align='absmiddle' title='처음'>", $write_pages);
$write_pages = str_replace("이전", "<img src='$board_skin_path/img/prev.gif' border='0' align='absmiddle' title='이전'>", $write_pages);
$write_pages = str_replace("다음", "<img src='$board_skin_path/img/next.gif' border='0' align='absmiddle' title='다음'>", $write_pages);
$write_pages = str_replace("맨끝", "<img src='$board_skin_path/img/end.gif' border='0' align='absmiddle' title='맨끝'>", $write_pages);
$write_pages = preg_replace("/<span>([0-9]*)<\/span>/", "<b><font style=\"font-family:tahoma; font-size:11px; color:#000000\">$1</font></b>", $write_pages);
$write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<b><font style=\"font-family:tahoma; font-size:11px; color:#E15916;\">$1</font></b>", $write_pages);
?>
<?=$write_pages?>
<? if ($next_part_href) { echo "<a href='$next_part_href'><img src='$board_skin_path/img/btn_search_next.gif' border=0 align=absmiddle title='다음검색'></a>"; } ?>
</td>
</tr>
</table>
<!-- 버튼 링크 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="50%" height="40">
<? if ($list_href) { ?><a href="<?=$list_href?>"><img src="<?=$board_skin_path?>/img/btn_list.gif" border="0"></a><? } ?>
<? if ($write_href) { ?><a href="<?=$write_href?>"><img src="<?=$board_skin_path?>/img/btn_write.gif" border="0"></a><? } ?>
<? if ($is_checkbox) { ?>
<a href="javascript:select_delete();"><img src="<?=$board_skin_path?>/img/btn_select_delete.gif" border="0"></a>
<a href="javascript:select_copy('copy');"><img src="<?=$board_skin_path?>/img/btn_select_copy.gif" border="0"></a>
<a href="javascript:select_copy('move');"><img src="<?=$board_skin_path?>/img/btn_select_move.gif" border="0"></a>
<? } ?>
</td>
<form name=fsearch method=get>
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=sca value="<?=$sca?>">
<td width="50%" align="right">
<select name=sfl>
<option value='wr_subject||wr_content'>제목+내용</option>
<option value='wr_2'>면적(㎡)</option>
<option value='wr_4'>방갯수</option>
</select>
<INPUT maxLength=15 size=10 name=stx itemname="검색어" required value="<?=$stx?>">
<SELECT name=sop>
<OPTION value=and>And</OPTION>
<OPTION value=or>Or</OPTION>
</SELECT>
<INPUT type=image src="<?=$board_skin_path?>/img/search_btn.gif" border=0 align=absmiddle></td>
</form>
</tr>
</table>
<!----------- { 레이아웃 테이블 아래. 끝 } --------------------------------------//-->
</td></tr></table>
<script language="JavaScript">
if ("<?=$sca?>") document.fcategory.sca.value = "<?=$sca?>";
if ("<?=$stx?>") {
document.fsearch.sfl.value = "<?=$sfl?>";
document.fsearch.sop.value = "<?=$sop?>";
}
</script>
<? if ($is_checkbox) { ?>
<script language="JavaScript">
function all_checked(sw)
{
var f = document.fboardlist;
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == "chk_wr_id[]")
f.elements[i].checked = sw;
}
}
function check_confirm(str)
{
var f = document.fboardlist;
var chk_count = 0;
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == "chk_wr_id[]" && f.elements[i].checked)
chk_count++;
}
if (!chk_count) {
alert(str + "할 게시물을 하나 이상 선택하세요.");
return false;
}
return true;
}
// 선택한 게시물 삭제
function select_delete()
{
var f = document.fboardlist;
str = "삭제";
if (!check_confirm(str))
return;
if (!confirm("선택한 게시물을 정말 "+str+" 하시겠습니까?\n\n한번 "+str+"한 자료는 복구할 수 없습니다"))
return;
f.action = "./delete_all.php";
f.submit();
}
// 선택한 게시물 복사 및 이동
function select_copy(sw)
{
var f = document.fboardlist;
if (sw == "copy")
str = "복사";
else
str = "이동";
if (!check_confirm(str))
return;
var sub_win = window.open("", "move", "left=50, top=50, width=396, height=550, scrollbars=1");
f.sw.value = sw;
f.target = "move";
f.action = "./move.php";
f.submit();
}
</script>
<? } ?>
<!-- 게시판 목록 끝 -->
</td>
</tr>
<tr>
<td> </td></tr>
</table>
<!-- 테두리 박스 끝 -->
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/lib/thumb.lib.php");
$filter[type] = 99;
$filter[arg1] = 100;
$filter[arg2] = 1;
$filter[arg3] = 2;
$cols = 4; // 이미지 가로갯수 // 이미지 세로 갯수는 메인에서 지정(총 이미지 수)
$img_width = '160'; //썸네일 가로길이
$img_height = '160'; //썸네일 세로길이
$img_quality = '80'; //퀼리티 100이하로 설정
$col_width = (int)(100 / $cols);
?>
<style type="text/css">
.file-img-t { width:170px; height:180px; border:solid 2px #fff; }
.item_td { padding:10px 0 14px 0; margin:5px 10px 0px 10px; border-bottom:1px dotted #e0e0e0; }
.item_name { margin:3px; height:32px; font-size:11px; font-family:돋움; text-align:left; }
.item_name a { margin:3px; height:32px; font-size:11px; font-family:돋움; text-align:left; }
.title_price { margin:3px; padding-left:3px; color:#FF3300; font-weight:bold; text-align:left; }
.shop { color:#e93100; font-size:11px; font-family:돋움; }
.shop a { color:#e93100; font-size:11px; font-family:돋움; }
</style>
<!-- 최신글 제목 -->
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<? for ($i=0; $i<count($list); $i++) {
if ($i>0 && $i%$cols==0) { echo "</tr><tr><td colspan='$cols' height='$image_h'></td></tr><tr>"; }
$ex7_filed = explode("|",$list[$i][wr_7]);
$ext7_00 = $ex7_filed[0];
$ext7_01 = $ex7_filed[1];
$ext7_02 = $ex7_filed[2];
$ext7_03 = $ex7_filed[3];
$ext7_04 = $ex7_filed[4];
$ext7_05 = $ex7_filed[5];
$ext7_06 = $ex7_filed[6];
$ext7_07 = $ex7_filed[7];
$ext7_08 = $ex7_filed[8];
$ext7_09 = $ex7_filed[9];
$ext7_10 = $ex7_filed[10];
$ext7_11 = $ex7_filed[11];
$ext7_12 = $ex7_filed[12];
$ext7_13 = $ex7_filed[13];
$ext7_14 = $ex7_filed[14];
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
// 업로드된 파일이 이미지라면
if (preg_match("/\.(jpg|gif|png)$/i", $file) && file_exists($file)) {
$img = thumbnail($file, $img_width, $img_height, 0, 1, $img_quality, 0, "", $filter, $noimg); // 썸네일 생성
}
?>
<td width="164" align="left" valign='top' class="item_td">
<? /* if ($g4[server_time] - strtotime($list[$i][wr_datetime]) > 60*60*24*(30*6)) {
echo "<a href='{$list[$i][wr_9]}' target='_blank'>";
} else {
echo "<a href='{$list[$i][link_href][1]}' target='_blank'>";
} */ ?>
<a href='<?=$list[$i][href]?>' target="_parent"><img src="<?=$img?>" class="file-img-t" onmouseover="this.style.border='2px solid #000'" onmouseout="this.style.border='solid 2px #fff'" alt="<?=$list[$i][subject]?> - <?=$list[$i][wr_7]?>원"></a>
<div style="text-align:left; width:144px; margin-top:5px;">
<span class="shop">
<img src="<?=$latest_skin_path?>/img/list_home_icon.gif" align="top" /> <a href='<?=$list[$i][href]?>' target="_parent">글쓴이 :</a></span></div>
<div class="item_name"><a href="<?=$list[$i][href]?>" target="_parent"><?=$list[$i]['subject']?></a></div>
<?if($ext7_00){?><img src='<?=$latest_skin_path?>/images/dadada_1.gif' align=absmiddle > <?=$ext7_00?>
만
<?}?>
<br>
<div style="height:2px; line-height:1px; font-size:1px;"> </div>
<?if($ext7_10){?><img src='<?=$latest_skin_path?>/images/dadada_bo.jpg' align=absmiddle > <?=$ext7_10?>
만
<?}?>
<?if($ext7_11){?><img src='<?=$latest_skin_path?>/images/dadada_2.gif' align=absmiddle > <?=$ext7_11?>
만
<?}?>
<br>
<div style="height:2px; line-height:1px; font-size:1px;"> </div>
<?if($ext7_13){?><img src='<?=$latest_skin_path?>/images/dadada_bo_1.jpg' align=absmiddle > <?=$ext7_13?>
만
<?}?>
<?if($ext7_14){?><img src='<?=$latest_skin_path?>/images/dadada_bo_2.jpg' align=absmiddle > <?=$ext7_14?>
만
<?}?>
<div style="text-align:center; margin-top:5px;">
<table width="92%" border="0" cellspacing="0" cellpadding="0">
<tr>
</tr>
</table>
</div>
</td>
<? } ?>
<?
$cnt = ($i%$cols);
for ($k=$cnt; $k<$cols && $cnt; $k++) {
echo "<td width=$col_width%> </td>";
}
?>
<? if (count($list) == 0) { echo "<td align=center>게시물이 없습니다.</td>"; } ?>
</tr>
</table>
------------------------------------------------
게시판 list.skin.php
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/lib/thumb.lib.php");
$thumb_width = "100"; //썸네일 가로길이
$thumb_height = "80"; //썸네일 세로길이
$filter[type] = 99;
$filter[arg1] = 100;
$filter[arg2] = 1;
$filter[arg3] = 2;
// 선택옵션으로 인해 셀합치기가 가변적으로 변함
$colspan = 7;
$sql_common = " from {$g4['write_prefix']}{$bo_table}";
$sql_search = " where 1=1 ";
if($sca) $sql_search .= " and ca_name='$sca' and wr_is_comment=0";
if ($sca || $stx)
{
$sql_search .= " and " .get_sql_search($sca, $sfl, $stx, $sop);
}else{
$sql_search .= " and wr_is_comment = 0";
}
if(!$wr_id){
if($ext8_01) $sql_search .= " and wr_8 like '%|$ext8_01|%' ";
if($ext8_02) $sql_search .= " and wr_8 like '%|$ext8_02|%' ";
if($ext8_02=="월세" && $ext10_00) $sql_search .= " and wr_10 like '$ext10_00|%' ";
else $search2 = "";
if($ext8_02=="전세" && $ext10_01) $sql_search .= " and wr_10 like '%|$ext10_01|%' ";
if($search1){
if($search1==1) $sql_search .= " and substring_index(substring_index(wr_7,'|',1),'|',-1) <= 500 ";
else if($search1==1) $sql_search .= " and substring_index(substring_index(wr_7,'|',1),'|',-1) >= 500 && substring_index(substring_index(wr_7,'|',1),'|',-1) >= 1000 ";
else if($search1==2) $sql_search .= " and substring_index(substring_index(wr_7,'|',1),'|',-1) >= 1000 && substring_index(substring_index(wr_7,'|',1),'|',-1) >= 2000 ";
else if($search1==3) $sql_search .= " and substring_index(substring_index(wr_7,'|',1),'|',-1) >= 2000 && substring_index(substring_index(wr_7,'|',1),'|',-1) >= 5000 ";
else if($search1==4) $sql_search .= " and substring_index(substring_index(wr_7,'|',1),'|',-1) >= 5000 && substring_index(substring_index(wr_7,'|',1),'|',-1) >= 10000 ";
else if($search1==5) $sql_search .= " and substring_index(substring_index(wr_7,'|',1),'|',-1) >= 10000 ";
}
if($search2){
if($search2==1) $sql_search .= " and substring_index(substring_index(wr_7,'|',12),'|',-1) = '' ";
else if($search2==2) $sql_search .= " and substring_index(substring_index(wr_7,'|',12),'|',-1) <= 40 ";
else if($search2==3) $sql_search .= " and substring_index(substring_index(wr_7,'|',12),'|',-1) >= 40 && substring_index(substring_index(wr_7,'|',12),'|',-1) >= 60 ";
else if($search2==4) $sql_search .= " and substring_index(substring_index(wr_7,'|',12),'|',-1) >= 60 && substring_index(substring_index(wr_7,'|',12),'|',-1) >= 80 ";
else if($search2==5) $sql_search .= " and substring_index(substring_index(wr_7,'|',12),'|',-1) >= 80 && substring_index(substring_index(wr_7,'|',12),'|',-1) >= 100 ";
else if($search2==6) $sql_search .= " and substring_index(substring_index(wr_7,'|',12),'|',-1) >= 100 ";
}
}
$sql = " select *
$sql_common
$sql_search
$sql_order ";
$result = sql_query($sql);
$total_count = mysql_num_rows($result);
$rows = $board[bo_page_rows];
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
if ($page == "") $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows; // 시작 열을 구함
$sql = " select *, substring_index(substring_index(wr_7,'|',12),'|',-1) as b
$sql_common
$sql_search
$sql_order
limit $from_record, $rows ";
$result = sql_query($sql);
$list = array();
$i = 0;
if (!$sca && !$stx)
{
$arr_notice = explode("\n", trim($board[bo_notice]));
for ($k=0; $k<count($arr_notice); $k++)
{
if (trim($arr_notice[$k])=='') continue;
$row = sql_fetch(" select * from $write_table where wr_id = '$arr_notice[$k]' ");
if (!$row[wr_id]) continue;
$list[$i] = get_list($row, $board, $board_skin_path, $board[bo_subject_len]);
$list[$i][is_notice] = true;
$i++;
}
}
$k = 0;
while ($row = sql_fetch_array($result))
{
// 검색일 경우 wr_id만 얻었으므로 다시 한행을 얻는다
if ($sca || $stx)
$row = sql_fetch(" select * from $write_table where wr_id = '$row[wr_parent]' ");
$list[$i] = get_list($row, $board, $board_skin_path, $board[bo_subject_len]);
if (strstr($sfl, "subject"))
$list[$i][subject] = search_font($stx, $list[$i][subject]);
$list[$i][is_notice] = false;
//$list[$i][num] = number_format($total_count - ($page - 1) * $board[bo_page_rows] - $k);
$list[$i][num] = $total_count - ($page - 1) * $board[bo_page_rows] - $k;
$i++;
$k++;
}
?>
<link rel='stylesheet' type='text/css' href='<?=$board_skin_path?>/bstyle.css'>
<!-- 테두리 박스 시작 -->
</td>
<style type="text/css">
.num {
font-weight: bold;
}
</style>
<style type="text/css">
.sd {
color: #03F;
font-weight: bold;
font-size: 12px;
}
</style>
<td align="right"> </td>
</tr>
<tr><td height=5></td></tr>
</table><table border="0" cellspacing="0" cellpadding="0" WIDTH=100%>
<tr>
<td width="7" height="7"><img src="<?=$board_skin_path?>/img/box_a_01.gif" width="7" height="7"></td>
<td background="<?=$board_skin_path?>/img/box_a_02.gif"></td>
<td width="6"><img src="<?=$board_skin_path?>/img/box_a_03.gif" width="6" height="7"></td>
</tr>
<tr>
<td background="<?=$board_skin_path?>/img/box_a_04.gif"></td>
<td height="100" align="center" valign="middle"><?include $board_skin_path."/search.php"?></td>
<td background="<?=$board_skin_path?>/img/box_a_05.gif"></td>
</tr>
<tr>
<td height="7"><img src="<?=$board_skin_path?>/img/box_a_06.gif" width="7" height="7"></td>
<td background="<?=$board_skin_path?>/img/box_a_07.gif"></td>
<td><img src="<?=$board_skin_path?>/img/box_a_08.gif" width="6" height="7"></td>
</tr>
</table>
<? if ($is_category) { ?>
<table width="100%" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
<tr>
<td width="100%" height="36" align=left cellpadding="0" cellspcing="0">
<table width="100%" align="center" cellpadding="0" cellspacing="0" style="border-collapse:collapse;">
<tr><td width="40" height="36" align=center style="padding:10 0 6 0; border-top-width:1; border-right-width:0; border-bottom-width:1; border-left-width:1; border-color:rgb(216,216,216); border-style:solid;" bgcolor="F6F6F6">
<?echo $bb_s;?><a href='./board.php?bo_table=<?=$bo_table?>&page=<?=$page?>'><span class=L_Tcategory><b>분류</b></span></a><?=$bb_e?>
</td>
<td width='' height="36" align=left style="padding:10 0 6 6; border-top-width:1; border-right-width:1; border-bottom-width:1; border-left-width:0; border-color:rgb(216,216,216); border-style:solid;">
<? {
//echo "<table width='100%' cellpadding='0' cellspacing='0' style='margin:0 0 0 0;border:solid #55cc55 1px;'>"; //★ (카테고리목록의 테이블 길이를 100%로 할 경우)
echo "<table cellpadding='0' cellspacing='0' style='padding:0 0 0 0;'>"; //◆
$ca_menu = explode("|",$board[bo_category_list]);
$ca_td_num = "13"; //가로칸수. 원하는 칸수만큼 지정해주면 됩니다.
//$ca_td_width = 100 / $ca_td_num ; //★ <td width='%'>값
for ($c=0, $cnt=count($ca_menu); $c<$cnt; $c++) {
if (($c == "0") || (($c >= $ca_td_num) && ($c % $ca_td_num == "0"))) { echo "<tr>"; }
//echo "<td width='".$ca_td_width."%'>"; //★
echo "<td style='padding:2 4 2 4;'>· "; //◆
//★표와 ◆표는 어느 한쪽을 쓸 경우 다른 쪽을 주석처리하면 됩니다.
if ($sca == $ca_menu[$c]) { $bcoral = "<b style='color:coral'>"; } else { $bcoral = ""; }
$sqlCnum = " select count(*) as Cnum from $write_table where wr_is_comment = 0 and ca_name = '$ca_menu[$c]'";
$rowCnum = sql_fetch($sqlCnum);
echo "<a href='".$g4['bbs_path']."/board.php?bo_table=".$bo_table."&sca=".urlencode($ca_menu[$c])."'>";
echo $bcoral.$ca_menu[$c]."</a>";
echo "</td>";
}
echo "</tr></table>";
} ?>
</td>
</tr>
</table>
</td>
</tr>
<tr><td colspan=<?=$colspan?> height=2></td></tr>
</table>
<? } ?>
<div style="height:5px; line-height:1px; font-size:1px;"> </div>
<!-- 제목 테이블 -->
<table width="100%" align="center" cellpadding="0" cellspacing="0" >
<tr>
<td width="32%" height="36" align=center bgcolor="F6F6F6" style="padding:0 0 0 0; border-top-width:1; border-right-width:0; border-bottom-width:1; border-left-width:0; border-color:rgb(216,216,216); border-style:solid;"> 이미지</td>
<td width="35%" align=center bgcolor="F6F6F6" style="padding:0 0 0 0; border-top-width:1; border-right-width:0; border-bottom-width:1; border-left-width:0; border-color:rgb(216,216,216); border-style:solid;">간략정보</td>
<td width="33%" align=center bgcolor="F6F6F6" style="padding:0 0 0 0; border-top-width:1; border-right-width:0; border-bottom-width:1; border-left-width:0; border-color:rgb(216,216,216); border-style:solid;">원룸정보</td>
</tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<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="">
<!-- 게시판 목록 시작 -->
<?
for ($i=0; $i<count($list); $i++) {
if($i%2==0) $bg_color = "#fafafa;";
else if($i%2==1) $bg_color = "#ffffff;";
//
$ex3_filed = explode("|", $list[$i][wr_3]);
$ext3_00 = $ex3_filed[0];
$ext3_01 = $ex3_filed[1];
$ext3_02 = $ex3_filed[2];
$ext3_03 = $ex3_filed[3];
$ext3_04 = $ex3_filed[4];
$ext3_05 = $ex3_filed[5];
$ext3_06 = $ex3_filed[6];
$ext3_07 = $ex3_filed[7];
$ex5_filed = explode("|", $list[$i][wr_5]);
$ext5_01 = $ex5_filed[1];
//
$ex7_filed = explode("|",$list[$i][wr_7]);
$ext7_00 = $ex7_filed[0];
$ext7_01 = $ex7_filed[1];
$ext7_02 = $ex7_filed[2];
$ext7_03 = $ex7_filed[3];
$ext7_04 = $ex7_filed[4];
$ext7_05 = $ex7_filed[5];
$ext7_06 = $ex7_filed[6];
$ext7_07 = $ex7_filed[7];
$ext7_08 = $ex7_filed[8];
$ext7_09 = $ex7_filed[9];
$ext7_10 = $ex7_filed[10];
$ext7_11 = $ex7_filed[11];
$ext7_12 = $ex7_filed[12];
$ext7_13 = $ex7_filed[13];
$ext7_14 = $ex7_filed[14];
$ex8_filed = explode("|",$list[$i][wr_8]);
$ext8_00 = $ex8_filed[0];
$ext8_01 = $ex8_filed[1];
$ext8_02 = $ex8_filed[2];
$ext8_03 = $ex8_filed[3];
if($ext8_02=="월세") $ext8_02_icon = "<img src='$board_skin_path/img/dada_1.gif' border='0' align='absmiddle'>";
else if($ext8_02=="전세") $ext8_02_icon = "<img src='$board_skin_path/img/dada_2.gif' border='0' align='absmiddle'>";
if($ext8_03=="단기") $ext8_03_icon = "<img src='$board_skin_path/img/dada_3.gif' border='0' align='absmiddle'>";
else if($ext8_03=="무보증") $ext8_03_icon = "<img src='$board_skin_path/img/dada_4.gif' border='0' align='absmiddle'>";
else if($ext8_03=="복층") $ext8_03_icon = "<img src='$board_skin_path/img/dada_5.gif' border='0' align='absmiddle'>";
else if($ext8_03=="베란다") $ext8_03_icon = "<img src='$board_skin_path/img/dada_6.gif' border='0' align='absmiddle'>";
//--
$ex10_filed = explode("|",$list[$i][wr_10]);
$ext10_00 = $ex10_filed[0];
$ext10_01 = $ex10_filed[1];
//-- 학원분류
$ex6_filed = explode("|",$list[$i][wr_6]);
$ext6_00 = $ex6_filed[0];
//$ext6_01 = $ex6_filed[1]; {원생수}
$thum_width = 100;
$thum_height = 80;
if ($list[$i][file][0][file])
{
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
$thumb = thumbnail($file, $thumb_width, $thumb_height, 0, 1, 90, 0, "", $filter, $noimg);
$img = "<a href=\"{$list[$i][href]}\"><img src='" .$thumb. "' style='border:1px solid #eaeaea;' width=$thum_width height=$thum_height></a>";
}
else
{
$img = "<a href=\"{$list[$i][href]}\"><img src='$board_skin_path/img/noimage.gif' style='border:1px solid #eaeaea;' width=$thum_width height=$thum_height></a>";
}
if ($list[$i][file][1][file])
{
$file = $list[$i][file][1][path] .'/'. $list[$i][file][1][file];
$thumb = thumbnail($file, $thumb_width, $thumb_height, 0, 1, 90, 0, "", $filter, $noimg);
$img2 = "<a href=\"{$list[$i][href]}\"><img src='" .$thumb. "' style='border:1px solid #eaeaea;' width=$thum_width height=$thum_height></a>";
}
else
{
$img2 = "<a href=\"{$list[$i][href]}\"><img src='$board_skin_path/img/noimage.gif' style='border:1px solid #eaeaea;' width=$thum_width height=$thum_height></a>";
}
?>
<tr style="background-color:<?=$bg_color?> color: #03F; font-size: 12px; color: #03F;">
<td width="221" height="100" rowspan="2"><?=$img?>
<?=$img2?></td>
<td width="40" rowspan="2" valign="top" class="num"><br>
<?
if ($list[$i][is_notice]) // 공지사항
echo "<b>추천</b>";
else if ($wr_id == $list[$i][wr_id]) // 현재위치
echo "<span class='current'>{$list[$i][num]}</span>";
else
echo $list[$i][num];
?>
<br>
<? if ($is_checkbox) { ?><input type=checkbox name=chk_wr_id[] value="<?=$list[$i][wr_id]?>"><? } ?>
</td>
<td colspan="4" align="left" valign="top"><br>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="4" align="left" valign="top"><a href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i][wr_id]?>'><span class="sd"><font color=188AD6><?=cut_str($list[$i][wr_subject],100)?></font></span></a></td>
</tr>
<tr>
<td height="10" colspan="4" align="left" valign="top"></td>
</tr>
<tr style="background-color:<?=$bg_color?>">
<td width="80" align="left" valign="top" ><font color="#333333"><b>위치</b>
</td>
<td colspan="3" align="left" valign="top" >
<?=$list[$i][ca_name]?>
<?=$ext3_00?>
</td>
</tr>
<?if($ext8_03){?>
<tr style="background-color:<?=$bg_color?>">
<td align="left" valign="top"><font color="#333333"><b>면적</b></td>
<td width="181" align="left" valign="top"><?=$list[$i][wr_2]?>
평</td>
<td width="37" align="left" valign="top"><font color="#333333"><b>테마</b></td>
<td width="87" align="left" valign="top"><?=$ext8_03_icon?></td>
</tr>
<?}else{?>
<tr style="background-color:<?=$bg_color?>">
<td align="left" valign="top"><font color="#333333"><b>면적</b></td>
<td align="left" valign="top" colspan="3"><?=$list[$i][wr_2]?>
평</td>
</tr>
<?}?>
<tr style="background-color:<?=$bg_color?>">
<td align="left" valign="top"><font color="#333333"><b>건물층수</b></td>
<td colspan="3" align="left" valign="top"><?=$ext3_06?>
건물의
<?=$ext3_07?>
층</td>
</tr>
</table>
</td>
<td width="160" colspan="5" rowspan="2" align="left"class="datetime"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<!--DATE:<?=$list[$i][datetime]?>-->
<font style="font:normal 11px 돋움; color:#BABABA;">조회 :</font><font style="font:normal 11px tahoma; color:#BABABA;"> <?=$list[$i][wr_hit]?> </font>
<br>
<?if($ext7_00){ echo "<img src='$board_skin_path/img/dadada_1.gif' align=absmiddle> $ext7_00";?>만원 <?}?>
<br>
<div style="height:2px; line-height:1px; font-size:1px;"> </div>
<?if($ext7_10){?><img src='<?=$board_skin_path?>/img/dadada_bo.jpg' align=absmiddle > <?=$ext7_10?> 만 <?}?>
<?if($ext7_11){?><img src='<?=$board_skin_path?>/img/dadada_2.gif' align=absmiddle > <?=$ext7_11?> 만 <?}?>
<br>
<div style="height:2px; line-height:1px; font-size:1px;"> </div>
<?if($ext7_13){?><img src='<?=$board_skin_path?>/img/dadada_bo_1.jpg' align=absmiddle > <?=$ext7_13?> 만 <?}?>
<?if($ext7_14){?><img src='<?=$board_skin_path?>/img/dadada_bo_2.jpg' align=absmiddle > <?=$ext7_14?> 만 <?}?>
<br>
<div style="height:2px; line-height:1px; font-size:1px;"> </div>
<a href="javascript:;" onClick="window.open('<?=$board_skin_path?>/list.skin.popup.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i][wr_id]?>','popup','width=740,height=850,scrollbars=yes')"><img src="<?=$board_skin_path?>/img/button_01.gif" width="58" height="25" border="0"></a>
<a href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i][wr_id]?>'><img src="<?=$board_skin_path?>/img/button_02.gif" width="58" height="25" border="0"></a> <?if($list[$i][wr_link1]){?><a href="javascript://" onClick="window.open('<?=$list[$i][wr_link1]?>', '', 'left=100,top=100,width=600,height=400,scrollbars=1,resizable=1');" title='동영상보기'><img src="<?=$board_skin_path?>/img/button_03.gif" border="0"></a><?}?></td>
</tr>
</table>
</td>
</tr>
<tr style="background-color:<?=$bg_color?>">
<td colspan="4" align="left" valign="top">
</td>
</tr>
<tr><td colspan=13 height="1" bgcolor='#cccccc'></td></tr>
<? } ?>
<? if (count($list) == 0) { echo "<tr><td colspan='$colspan' height=100 align=center>게시물이 없습니다.</td></tr>"; } ?>
</form>
</table>
<!-- 페이지 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" align="center" height=30 valign=bottom>
<? if ($prev_part_href) { echo "<a href='$prev_part_href'><img src='$board_skin_path/img/btn_search_prev.gif' border=0 align=absmiddle title='이전검색'></a>"; } ?>
<?
// 기본으로 넘어오는 페이지를 아래와 같이 변환하여 이미지로도 출력할 수 있습니다.
$write_pages = get_paging($config[cf_write_pages], $page, $total_page, "./board.php?bo_table=$bo_table".$qstr."&page=");
$write_pages = str_replace("처음", "<img src='$board_skin_path/img/begin.gif' border='0' align='absmiddle' title='처음'>", $write_pages);
$write_pages = str_replace("이전", "<img src='$board_skin_path/img/prev.gif' border='0' align='absmiddle' title='이전'>", $write_pages);
$write_pages = str_replace("다음", "<img src='$board_skin_path/img/next.gif' border='0' align='absmiddle' title='다음'>", $write_pages);
$write_pages = str_replace("맨끝", "<img src='$board_skin_path/img/end.gif' border='0' align='absmiddle' title='맨끝'>", $write_pages);
$write_pages = preg_replace("/<span>([0-9]*)<\/span>/", "<b><font style=\"font-family:tahoma; font-size:11px; color:#000000\">$1</font></b>", $write_pages);
$write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<b><font style=\"font-family:tahoma; font-size:11px; color:#E15916;\">$1</font></b>", $write_pages);
?>
<?=$write_pages?>
<? if ($next_part_href) { echo "<a href='$next_part_href'><img src='$board_skin_path/img/btn_search_next.gif' border=0 align=absmiddle title='다음검색'></a>"; } ?>
</td>
</tr>
</table>
<!-- 버튼 링크 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="50%" height="40">
<? if ($list_href) { ?><a href="<?=$list_href?>"><img src="<?=$board_skin_path?>/img/btn_list.gif" border="0"></a><? } ?>
<? if ($write_href) { ?><a href="<?=$write_href?>"><img src="<?=$board_skin_path?>/img/btn_write.gif" border="0"></a><? } ?>
<? if ($is_checkbox) { ?>
<a href="javascript:select_delete();"><img src="<?=$board_skin_path?>/img/btn_select_delete.gif" border="0"></a>
<a href="javascript:select_copy('copy');"><img src="<?=$board_skin_path?>/img/btn_select_copy.gif" border="0"></a>
<a href="javascript:select_copy('move');"><img src="<?=$board_skin_path?>/img/btn_select_move.gif" border="0"></a>
<? } ?>
</td>
<form name=fsearch method=get>
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=sca value="<?=$sca?>">
<td width="50%" align="right">
<select name=sfl>
<option value='wr_subject||wr_content'>제목+내용</option>
<option value='wr_2'>면적(㎡)</option>
<option value='wr_4'>방갯수</option>
</select>
<INPUT maxLength=15 size=10 name=stx itemname="검색어" required value="<?=$stx?>">
<SELECT name=sop>
<OPTION value=and>And</OPTION>
<OPTION value=or>Or</OPTION>
</SELECT>
<INPUT type=image src="<?=$board_skin_path?>/img/search_btn.gif" border=0 align=absmiddle></td>
</form>
</tr>
</table>
<!----------- { 레이아웃 테이블 아래. 끝 } --------------------------------------//-->
</td></tr></table>
<script language="JavaScript">
if ("<?=$sca?>") document.fcategory.sca.value = "<?=$sca?>";
if ("<?=$stx?>") {
document.fsearch.sfl.value = "<?=$sfl?>";
document.fsearch.sop.value = "<?=$sop?>";
}
</script>
<? if ($is_checkbox) { ?>
<script language="JavaScript">
function all_checked(sw)
{
var f = document.fboardlist;
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == "chk_wr_id[]")
f.elements[i].checked = sw;
}
}
function check_confirm(str)
{
var f = document.fboardlist;
var chk_count = 0;
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == "chk_wr_id[]" && f.elements[i].checked)
chk_count++;
}
if (!chk_count) {
alert(str + "할 게시물을 하나 이상 선택하세요.");
return false;
}
return true;
}
// 선택한 게시물 삭제
function select_delete()
{
var f = document.fboardlist;
str = "삭제";
if (!check_confirm(str))
return;
if (!confirm("선택한 게시물을 정말 "+str+" 하시겠습니까?\n\n한번 "+str+"한 자료는 복구할 수 없습니다"))
return;
f.action = "./delete_all.php";
f.submit();
}
// 선택한 게시물 복사 및 이동
function select_copy(sw)
{
var f = document.fboardlist;
if (sw == "copy")
str = "복사";
else
str = "이동";
if (!check_confirm(str))
return;
var sub_win = window.open("", "move", "left=50, top=50, width=396, height=550, scrollbars=1");
f.sw.value = sw;
f.target = "move";
f.action = "./move.php";
f.submit();
}
</script>
<? } ?>
<!-- 게시판 목록 끝 -->
</td>
</tr>
<tr>
<td> </td></tr>
</table>
<!-- 테두리 박스 끝 -->
답변이 늦었네요. 너무나 감사드립니다.! !!