소스 한번만 봐주세요..화면 정열 문제... 정보
소스 한번만 봐주세요..화면 정열 문제...본문
포인트 경매의 list.skin.php입니다.
그림과 같이 화면이 두개씩 경매진행 사항 같이 나와야 하는데 지금 이상하게 쭉 한줄로만 나옵니다. 화면이 그래서 길게 늘어지면서 막대기가 생기네요..
분명 뭐가 안맞아서 그러는데 잘 모르겟네요..
고수님 부탁드립니다.
아래는 lisk.skin.php 입니다. 자세하게 어디를 수정해야 하는지 좀 부탁드리겟습니다.
초보라..잘 몰라서리..
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$board_skin_path/auction.lib.php");
// 선택옵션으로 인해 셀합치기가 가변적으로 변함
$colspan = 7;
//if ($is_category) $colspan++;
if ($is_checkbox) $colspan++;
if ($is_good) $colspan++;
if ($is_nogood) $colspan++;
// 제목이 두줄로 표시되는 경우 이 코드를 사용해 보세요.
// <nobr style='display:block; overflow:hidden; width:000px;'>제목</nobr>
?>
<style type="text/css">
.act_subject { background:url(<?=$board_skin_path?>/img/list_head.gif); border:1px solid #DDDDDD; }
a.act_subject_text:link,
a.act_subject_text:active,
a.act_subject_text:visited,
a.act_subject_text:hover
{ margin:0 5px 0 10px; color:#888888; font-size:14px; font-family:dotum; font-weight:bold; text-decoration:none; }
a.act_subject_link:link,
a.act_subject_link:active,
a.act_subject_link:visited,
a.act_subject_link:hover
{ margin:0 5px 0 10px; color:#888888; font-size:12px; font-family:dotum; text-decoration:none; }
.act_image { width:100px; height:100px; border:1px solid #ddd; background-color:#FBFBFB; margin:12px 0 10px 10px; }
.act_info { font-family:dotum; font-size:12px; color:#555; line-height:20px; margin-top:5px; }
.pr_name { padding-left:5px; color:#000; font-weight:bold; overflow:hidden; width:205px; }
.pr_tender_point { padding-left:5px; color:#000; }
.pr_hr { line-height:1px; font-size:1px; background:url(<?=$board_skin_path?>/img/list_dot.gif); height:1px; margin:2px 0 2px 0; }
.act_date { padding-left:5px; }
.act_status { padding-left:5px; width:200px; overflow:hidden; }
.act_status_ok { font-weight:bold; color:#009520; }
.act_status_end { font-weight:bold; color:#950000; }
.act_status_no { font-weight:bold; color:#888888; }
</style>
<!-- 게시판 목록 시작 -->
<table width="<?=$width?>" align=center cellpadding=0 cellspacing=0><tr><td>
<!-- 분류 셀렉트 박스, 게시물 몇건, 관리자화면 링크 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr height="25">
<td width="50%">
<form name="fcategory" method="get">
<? if ($is_category) { ?><select name=sca onchange="location='<?=$category_location?>'+this.value;"><option value=''>전체</option><?=$category_option?></select><? } ?>
</form>
</td>
<td align="right" style="font:normal 11px tahoma; color:#BABABA;">
Total <?=number_format($total_count)?>
<? if ($rss_href) { ?><a href='<?=$rss_href?>'><img src='<?=$board_skin_path?>/img/btn_rss.gif' border=0 align=absmiddle></a><?}?>
<? if ($admin_href) { ?><a href="<?=$admin_href?>"><img src="<?=$board_skin_path?>/img/btn_admin.gif" title="관리자" align="absmiddle"></a><?}?></td>
</tr>
<tr><td height=5></td></tr>
</table>
<!-- 제목 -->
<form name="fboardlist" method="post" style="margin:0px;">
<input type='hidden' name='bo_table' value='<?=$bo_table?>'>
<input type='hidden' name='sfl' value='<?=$sfl?>'>
<input type='hidden' name='stx' value='<?=$stx?>'>
<input type='hidden' name='spt' value='<?=$spt?>'>
<input type='hidden' name='page' value='<?=$page?>'>
<input type='hidden' name='sw' value=''>
<table border=0 cellpadding=0 cellspacing=0 width=100% height=4>
<tr>
<td background="<?=$board_skin_path?>/img/top_line_1.gif" width="30%"></td>
<td background="<?=$board_skin_path?>/img/top_line_2.gif" width="70%"></td>
</tr>
</table>
<table border=0 cellpadding=0 cellspacing=0 style="margin:5px 0 5px 0;">
<tr>
<?
$mod = $board[bo_gallery_cols];
for ($i=0; $i<count($list); $i++)
{
if ($i && $i%$mod==0) echo "</tr><tr><td height=10 colspan=2></td></tr><tr>";
auction_successful($list[$i][wr_id]);
$info = get_info_auction($list[$i][wr_id], $list[$i]);
switch ($info[status])
{
case 0: // 진행중
if (strtotime($info[start_datetime]) > $g4[server_time]) {
$status = "시작전";
$class = "";
break;
}
case 1: // 진행중
$status = "입찰가능 <span style='font-size:11px;'>(".number_format($info[tender_count])."건 참여)</span>";
$class = "act_status_ok";
break;
case 2: // 낙찰
$status = "경매종료";
if ($info[mb_id]) {
$mb = get_member($info[mb_id]);
$status .= " ($mb[mb_nick])";
}
$class = "act_status_end";
break;
case 3: // 유찰
$status = "유찰되었습니다.";
$class = "act_status_no";
break;
}
// 상품이미지 (소)
$file = get_file($bo_table, $list[$i][wr_id]);
$img = "{$file[0][path]}/{$file[0][file]}";
if (!file_exists($img) or trim($img) == "/")
$img = "{$board_skin_path}/img/noimage.gif";
?>
<td valign=top>
<table border=0 cellpadding=0 cellspacing=0 width=330>
<tr>
<td height=25 class=act_subject colspan=2>
<div style="padding-top:3px;">
<a href="<?=$list[$i][href]?>" class=act_subject_text>상품명 : <?=$info[company]?></a>
<!--<a href="<?=$list[$i][link_href][1]?>" class=act_subject_link target=_blank><?=str_replace("http://", "", $list[$i][link][1])?></a>-->
</div>
</td>
</tr>
<tr>
<td width=120>
<div class=act_image><a href="<?=$list[$i][href]?>"><img src="<?=$img?>" width=98 height=98></a></div>
</td>
<td>
<div class=act_info><a href="<?=$list[$i][href]?>" style="text-decoration:none;">
<div class=pr_name><nobr>상품명 : <?=cut_str($info[company],15)?><? if ($list[$i][comment_cnt]) echo " <span style='font-family:Tahoma;font-size:10px;color:#EE5A00; font-weight:normal;'>{$list[$i][comment_cnt]}</span>"; ?></nobr></div>
<div class=pr_tender_point>입찰 포인트 : <?=number_format($info[tender_lower])?>~<?=number_format($info[tender_higher])?>P</div>
<div class=pr_hr> </div>
<div class=act_date>시작일 : <?=date("Y/m/d [H:i]",strtotime($info[start_datetime]))?></div>
<div class=act_date>종료일 : <?=date("Y/m/d [H:i]",strtotime($info[end_datetime]))?></div>
<div class=act_status> <nobr>경매상태 :<span class="<?=$class?>"><?=$status?></span></nobr></div>
</a></div>
</td>
</tr>
<tr><td colspan=2 background="<?=$board_skin_path?>/img/list_tail.gif" height=3></tr>
</table>
</td>
<?
if (($i+1)%$mod!=0)
echo "<td width=10></td>";
}
?>
<? if (count($list) == 0) { echo "<tr><td colspan='$colspan' height=100 align=center>게시물이 없습니다.</td></tr>"; } ?>
<table border=0 cellpadding=0 cellspacing=0 width=100% height=4>
<tr>
<td background="<?=$board_skin_path?>/img/bottom_line_1.gif"></td>
</tr>
</table>
</form>
<div style="clear:both; margin-top:7px; height:31px;">
<div style="float:left;">
<? if ($list_href) { ?>
<a href="<?=$list_href?>"><img src="<?=$board_skin_path?>/img/btn_list.gif" align=absmiddle></a>
<? } ?>
<? if ($is_checkbox) { ?>
<a href="javascript:select_delete();"><img src="<?=$board_skin_path?>/img/btn_select_delete.gif" align=absmiddle></a>
<a href="javascript:select_copy('copy');"><img src="<?=$board_skin_path?>/img/btn_select_copy.gif" align=absmiddle></a>
<a href="javascript:select_copy('move');"><img src="<?=$board_skin_path?>/img/btn_select_move.gif" align=absmiddle></a>
<? } ?>
</div>
<div style="float:right;">
<? if ($write_href) { ?><a href="<?=$write_href?>"><img src="<?=$board_skin_path?>/img/btn_write.gif" border="0"></a><? } ?>
</div>
</div>
<div style="height:1px; line-height:1px; font-size:1px; background-color:#eee; clear:both;"> </div>
<div style="height:1px; line-height:1px; font-size:1px; background-color:#ddd; clear:both;"> </div>
<!-- 페이지 -->
<div style="text-align:center; line-height:30px; clear:both; margin:5px 0 10px 0; padding:5px 0;">
<? if ($prev_part_href) { echo "<a href='$prev_part_href'><img src='$board_skin_path/img/page_search_prev.gif' border=0 align=absmiddle title='이전검색'></a>"; } ?>
<?
// 기본으로 넘어오는 페이지를 아래와 같이 변환하여 이미지로도 출력할 수 있습니다.
//echo $write_pages;
$write_pages = str_replace("처음", "<img src='$board_skin_path/img/page_begin.gif' border='0' align='absmiddle' title='처음'>", $write_pages);
$write_pages = str_replace("이전", "<img src='$board_skin_path/img/page_prev.gif' border='0' align='absmiddle' title='이전'>", $write_pages);
$write_pages = str_replace("다음", "<img src='$board_skin_path/img/page_next.gif' border='0' align='absmiddle' title='다음'>", $write_pages);
$write_pages = str_replace("맨끝", "<img src='$board_skin_path/img/page_end.gif' border='0' align='absmiddle' title='맨끝'>", $write_pages);
$write_pages = preg_replace("/<span>([0-9]*)<\/span>/", "<b><span style=\"color:#B3B3B3; font-size:12px;\">$1</span></b>", $write_pages);
$write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<b><span style=\"color:#4D6185; font-size:12px; text-decoration:underline;\">$1</span></b>", $write_pages);
?>
<?=$write_pages?>
<? if ($next_part_href) { echo "<a href='$next_part_href'><img src='$board_skin_path/img/page_search_next.gif' border=0 align=absmiddle title='다음검색'></a>"; } ?>
</div>
<!-- 링크 버튼, 검색 -->
<div style="text-align:center;">
<form name=fsearch method=get style="margin:0px;">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=sca value="<?=$sca?>">
<select name=sfl style="background-color:#f6f6f6; border:1px solid #7f9db9; height:21px;">
<option value='wr_subject'>제목</option>
<option value='wr_content'>내용</option>
<option value='wr_subject||wr_content'>제목+내용</option>
<option value='mb_id,1'>회원아이디</option>
<option value='mb_id,0'>회원아이디(코)</option>
<option value='wr_name,1'>글쓴이</option>
<option value='wr_name,0'>글쓴이(코)</option>
</select>
<input name=stx maxlength=15 itemname="검색어" required value='<?=$stx?>' style="width:204px; background-color:#f6f6f6; border:1px solid #7f9db9; height:21px;">
<input type=image src="<?=$board_skin_path?>/img/btn_search.gif" border=0 align=absmiddle>
<input type=radio name=sop value=and>and
<input type=radio name=sop value=or>or
</form>
</div>
</td></tr></table>
<script language="JavaScript">
if ('<?=$sca?>') document.fcategory.sca.value = '<?=$sca?>';
if ('<?=$stx?>') {
document.fsearch.sfl.value = '<?=$sfl?>';
if ('<?=$sop?>' == 'and')
document.fsearch.sop[0].checked = true;
if ('<?=$sop?>' == 'or')
document.fsearch.sop[1].checked = true;
} else {
document.fsearch.sop[0].checked = true;
}
</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=500, height=550, scrollbars=1");
f.sw.value = sw;
f.target = "move";
f.action = "./move.php";
f.submit();
}
</script>
<? } ?>
<!-- 게시판 목록 끝 -->
그림과 같이 화면이 두개씩 경매진행 사항 같이 나와야 하는데 지금 이상하게 쭉 한줄로만 나옵니다. 화면이 그래서 길게 늘어지면서 막대기가 생기네요..
분명 뭐가 안맞아서 그러는데 잘 모르겟네요..
고수님 부탁드립니다.
아래는 lisk.skin.php 입니다. 자세하게 어디를 수정해야 하는지 좀 부탁드리겟습니다.
초보라..잘 몰라서리..
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$board_skin_path/auction.lib.php");
// 선택옵션으로 인해 셀합치기가 가변적으로 변함
$colspan = 7;
//if ($is_category) $colspan++;
if ($is_checkbox) $colspan++;
if ($is_good) $colspan++;
if ($is_nogood) $colspan++;
// 제목이 두줄로 표시되는 경우 이 코드를 사용해 보세요.
// <nobr style='display:block; overflow:hidden; width:000px;'>제목</nobr>
?>
<style type="text/css">
.act_subject { background:url(<?=$board_skin_path?>/img/list_head.gif); border:1px solid #DDDDDD; }
a.act_subject_text:link,
a.act_subject_text:active,
a.act_subject_text:visited,
a.act_subject_text:hover
{ margin:0 5px 0 10px; color:#888888; font-size:14px; font-family:dotum; font-weight:bold; text-decoration:none; }
a.act_subject_link:link,
a.act_subject_link:active,
a.act_subject_link:visited,
a.act_subject_link:hover
{ margin:0 5px 0 10px; color:#888888; font-size:12px; font-family:dotum; text-decoration:none; }
.act_image { width:100px; height:100px; border:1px solid #ddd; background-color:#FBFBFB; margin:12px 0 10px 10px; }
.act_info { font-family:dotum; font-size:12px; color:#555; line-height:20px; margin-top:5px; }
.pr_name { padding-left:5px; color:#000; font-weight:bold; overflow:hidden; width:205px; }
.pr_tender_point { padding-left:5px; color:#000; }
.pr_hr { line-height:1px; font-size:1px; background:url(<?=$board_skin_path?>/img/list_dot.gif); height:1px; margin:2px 0 2px 0; }
.act_date { padding-left:5px; }
.act_status { padding-left:5px; width:200px; overflow:hidden; }
.act_status_ok { font-weight:bold; color:#009520; }
.act_status_end { font-weight:bold; color:#950000; }
.act_status_no { font-weight:bold; color:#888888; }
</style>
<!-- 게시판 목록 시작 -->
<table width="<?=$width?>" align=center cellpadding=0 cellspacing=0><tr><td>
<!-- 분류 셀렉트 박스, 게시물 몇건, 관리자화면 링크 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr height="25">
<td width="50%">
<form name="fcategory" method="get">
<? if ($is_category) { ?><select name=sca onchange="location='<?=$category_location?>'+this.value;"><option value=''>전체</option><?=$category_option?></select><? } ?>
</form>
</td>
<td align="right" style="font:normal 11px tahoma; color:#BABABA;">
Total <?=number_format($total_count)?>
<? if ($rss_href) { ?><a href='<?=$rss_href?>'><img src='<?=$board_skin_path?>/img/btn_rss.gif' border=0 align=absmiddle></a><?}?>
<? if ($admin_href) { ?><a href="<?=$admin_href?>"><img src="<?=$board_skin_path?>/img/btn_admin.gif" title="관리자" align="absmiddle"></a><?}?></td>
</tr>
<tr><td height=5></td></tr>
</table>
<!-- 제목 -->
<form name="fboardlist" method="post" style="margin:0px;">
<input type='hidden' name='bo_table' value='<?=$bo_table?>'>
<input type='hidden' name='sfl' value='<?=$sfl?>'>
<input type='hidden' name='stx' value='<?=$stx?>'>
<input type='hidden' name='spt' value='<?=$spt?>'>
<input type='hidden' name='page' value='<?=$page?>'>
<input type='hidden' name='sw' value=''>
<table border=0 cellpadding=0 cellspacing=0 width=100% height=4>
<tr>
<td background="<?=$board_skin_path?>/img/top_line_1.gif" width="30%"></td>
<td background="<?=$board_skin_path?>/img/top_line_2.gif" width="70%"></td>
</tr>
</table>
<table border=0 cellpadding=0 cellspacing=0 style="margin:5px 0 5px 0;">
<tr>
<?
$mod = $board[bo_gallery_cols];
for ($i=0; $i<count($list); $i++)
{
if ($i && $i%$mod==0) echo "</tr><tr><td height=10 colspan=2></td></tr><tr>";
auction_successful($list[$i][wr_id]);
$info = get_info_auction($list[$i][wr_id], $list[$i]);
switch ($info[status])
{
case 0: // 진행중
if (strtotime($info[start_datetime]) > $g4[server_time]) {
$status = "시작전";
$class = "";
break;
}
case 1: // 진행중
$status = "입찰가능 <span style='font-size:11px;'>(".number_format($info[tender_count])."건 참여)</span>";
$class = "act_status_ok";
break;
case 2: // 낙찰
$status = "경매종료";
if ($info[mb_id]) {
$mb = get_member($info[mb_id]);
$status .= " ($mb[mb_nick])";
}
$class = "act_status_end";
break;
case 3: // 유찰
$status = "유찰되었습니다.";
$class = "act_status_no";
break;
}
// 상품이미지 (소)
$file = get_file($bo_table, $list[$i][wr_id]);
$img = "{$file[0][path]}/{$file[0][file]}";
if (!file_exists($img) or trim($img) == "/")
$img = "{$board_skin_path}/img/noimage.gif";
?>
<td valign=top>
<table border=0 cellpadding=0 cellspacing=0 width=330>
<tr>
<td height=25 class=act_subject colspan=2>
<div style="padding-top:3px;">
<a href="<?=$list[$i][href]?>" class=act_subject_text>상품명 : <?=$info[company]?></a>
<!--<a href="<?=$list[$i][link_href][1]?>" class=act_subject_link target=_blank><?=str_replace("http://", "", $list[$i][link][1])?></a>-->
</div>
</td>
</tr>
<tr>
<td width=120>
<div class=act_image><a href="<?=$list[$i][href]?>"><img src="<?=$img?>" width=98 height=98></a></div>
</td>
<td>
<div class=act_info><a href="<?=$list[$i][href]?>" style="text-decoration:none;">
<div class=pr_name><nobr>상품명 : <?=cut_str($info[company],15)?><? if ($list[$i][comment_cnt]) echo " <span style='font-family:Tahoma;font-size:10px;color:#EE5A00; font-weight:normal;'>{$list[$i][comment_cnt]}</span>"; ?></nobr></div>
<div class=pr_tender_point>입찰 포인트 : <?=number_format($info[tender_lower])?>~<?=number_format($info[tender_higher])?>P</div>
<div class=pr_hr> </div>
<div class=act_date>시작일 : <?=date("Y/m/d [H:i]",strtotime($info[start_datetime]))?></div>
<div class=act_date>종료일 : <?=date("Y/m/d [H:i]",strtotime($info[end_datetime]))?></div>
<div class=act_status> <nobr>경매상태 :<span class="<?=$class?>"><?=$status?></span></nobr></div>
</a></div>
</td>
</tr>
<tr><td colspan=2 background="<?=$board_skin_path?>/img/list_tail.gif" height=3></tr>
</table>
</td>
<?
if (($i+1)%$mod!=0)
echo "<td width=10></td>";
}
?>
<? if (count($list) == 0) { echo "<tr><td colspan='$colspan' height=100 align=center>게시물이 없습니다.</td></tr>"; } ?>
<table border=0 cellpadding=0 cellspacing=0 width=100% height=4>
<tr>
<td background="<?=$board_skin_path?>/img/bottom_line_1.gif"></td>
</tr>
</table>
</form>
<div style="clear:both; margin-top:7px; height:31px;">
<div style="float:left;">
<? if ($list_href) { ?>
<a href="<?=$list_href?>"><img src="<?=$board_skin_path?>/img/btn_list.gif" align=absmiddle></a>
<? } ?>
<? if ($is_checkbox) { ?>
<a href="javascript:select_delete();"><img src="<?=$board_skin_path?>/img/btn_select_delete.gif" align=absmiddle></a>
<a href="javascript:select_copy('copy');"><img src="<?=$board_skin_path?>/img/btn_select_copy.gif" align=absmiddle></a>
<a href="javascript:select_copy('move');"><img src="<?=$board_skin_path?>/img/btn_select_move.gif" align=absmiddle></a>
<? } ?>
</div>
<div style="float:right;">
<? if ($write_href) { ?><a href="<?=$write_href?>"><img src="<?=$board_skin_path?>/img/btn_write.gif" border="0"></a><? } ?>
</div>
</div>
<div style="height:1px; line-height:1px; font-size:1px; background-color:#eee; clear:both;"> </div>
<div style="height:1px; line-height:1px; font-size:1px; background-color:#ddd; clear:both;"> </div>
<!-- 페이지 -->
<div style="text-align:center; line-height:30px; clear:both; margin:5px 0 10px 0; padding:5px 0;">
<? if ($prev_part_href) { echo "<a href='$prev_part_href'><img src='$board_skin_path/img/page_search_prev.gif' border=0 align=absmiddle title='이전검색'></a>"; } ?>
<?
// 기본으로 넘어오는 페이지를 아래와 같이 변환하여 이미지로도 출력할 수 있습니다.
//echo $write_pages;
$write_pages = str_replace("처음", "<img src='$board_skin_path/img/page_begin.gif' border='0' align='absmiddle' title='처음'>", $write_pages);
$write_pages = str_replace("이전", "<img src='$board_skin_path/img/page_prev.gif' border='0' align='absmiddle' title='이전'>", $write_pages);
$write_pages = str_replace("다음", "<img src='$board_skin_path/img/page_next.gif' border='0' align='absmiddle' title='다음'>", $write_pages);
$write_pages = str_replace("맨끝", "<img src='$board_skin_path/img/page_end.gif' border='0' align='absmiddle' title='맨끝'>", $write_pages);
$write_pages = preg_replace("/<span>([0-9]*)<\/span>/", "<b><span style=\"color:#B3B3B3; font-size:12px;\">$1</span></b>", $write_pages);
$write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<b><span style=\"color:#4D6185; font-size:12px; text-decoration:underline;\">$1</span></b>", $write_pages);
?>
<?=$write_pages?>
<? if ($next_part_href) { echo "<a href='$next_part_href'><img src='$board_skin_path/img/page_search_next.gif' border=0 align=absmiddle title='다음검색'></a>"; } ?>
</div>
<!-- 링크 버튼, 검색 -->
<div style="text-align:center;">
<form name=fsearch method=get style="margin:0px;">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=sca value="<?=$sca?>">
<select name=sfl style="background-color:#f6f6f6; border:1px solid #7f9db9; height:21px;">
<option value='wr_subject'>제목</option>
<option value='wr_content'>내용</option>
<option value='wr_subject||wr_content'>제목+내용</option>
<option value='mb_id,1'>회원아이디</option>
<option value='mb_id,0'>회원아이디(코)</option>
<option value='wr_name,1'>글쓴이</option>
<option value='wr_name,0'>글쓴이(코)</option>
</select>
<input name=stx maxlength=15 itemname="검색어" required value='<?=$stx?>' style="width:204px; background-color:#f6f6f6; border:1px solid #7f9db9; height:21px;">
<input type=image src="<?=$board_skin_path?>/img/btn_search.gif" border=0 align=absmiddle>
<input type=radio name=sop value=and>and
<input type=radio name=sop value=or>or
</form>
</div>
</td></tr></table>
<script language="JavaScript">
if ('<?=$sca?>') document.fcategory.sca.value = '<?=$sca?>';
if ('<?=$stx?>') {
document.fsearch.sfl.value = '<?=$sfl?>';
if ('<?=$sop?>' == 'and')
document.fsearch.sop[0].checked = true;
if ('<?=$sop?>' == 'or')
document.fsearch.sop[1].checked = true;
} else {
document.fsearch.sop[0].checked = true;
}
</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=500, height=550, scrollbars=1");
f.sw.value = sw;
f.target = "move";
f.action = "./move.php";
f.submit();
}
</script>
<? } ?>
<!-- 게시판 목록 끝 -->
댓글 전체
해당 게시판 관리모드 - 게시판 수정 - 가로 이미지수 2 로 변경 해 보세요.
감사합니다..이렇게 쉬운 방법이...감사합니다.