g4s 13-04-26일자 코드 반영
This commit is contained in:
@ -1,23 +1,27 @@
|
||||
<?
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo $search_skin_url ?>/style.css">
|
||||
|
||||
<form name="fsearch" onsubmit="return fsearch_submit(this);" method="get">
|
||||
<input type="hidden" name="srows" value="<?=$srows?>">
|
||||
<input type="hidden" name="srows" value="<?php echo $srows ?>">
|
||||
<fieldset id="sch_result_detail">
|
||||
<legend class="sound_only">상세검색</legend>
|
||||
<?=$group_select?>
|
||||
<script>document.getElementById("gr_id").value = "<?=$gr_id?>";</script>
|
||||
<?php echo $group_select ?>
|
||||
<script>document.getElementById("gr_id").value = "<?php echo $gr_id ?>";</script>
|
||||
|
||||
<select name="sfl" title="검색조건">
|
||||
<option value="wr_subject||wr_content"<?=get_selected($_GET['sfl'], "wr_subject||wr_content")?>>제목+내용</option>
|
||||
<option value="wr_subject"<?=get_selected($_GET['sfl'], "wr_subject")?>>제목</option>
|
||||
<option value="wr_content"<?=get_selected($_GET['sfl'], "wr_content")?>>내용</option>
|
||||
<option value="mb_id"<?=get_selected($_GET['sfl'], "mb_id")?>>회원아이디</option>
|
||||
<option value="wr_name"<?=get_selected($_GET['sfl'], "wr_name")?>>이름</option>
|
||||
<label for="sfl" class="sound_only">검색조건</label>
|
||||
<select name="sfl" id="sfl">
|
||||
<option value="wr_subject||wr_content"<?php echo get_selected($_GET['sfl'], "wr_subject||wr_content") ?>>제목+내용</option>
|
||||
<option value="wr_subject"<?php echo get_selected($_GET['sfl'], "wr_subject") ?>>제목</option>
|
||||
<option value="wr_content"<?php echo get_selected($_GET['sfl'], "wr_content") ?>>내용</option>
|
||||
<option value="mb_id"<?php echo get_selected($_GET['sfl'], "mb_id") ?>>회원아이디</option>
|
||||
<option value="wr_name"<?php echo get_selected($_GET['sfl'], "wr_name") ?>>이름</option>
|
||||
</select>
|
||||
|
||||
<input type="text" name="stx" value="<?=$text_stx?>" title="검색어(필수)" class="frm_input" required class="required" maxlength="20">
|
||||
<label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
|
||||
<input type="text" name="stx" value="<?php echo $text_stx ?>" class="frm_input" required class="required" maxlength="20">
|
||||
<input type="submit" class="btn_submit" value="검색">
|
||||
|
||||
<script>
|
||||
@ -48,83 +52,83 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
<input type="radio" value="or" <?=($sop == "or") ? "checked" : "";?> id="sop_or" name="sop">
|
||||
<input type="radio" value="or" <?php echo ($sop == "or") ? "checked" : ""; ?> id="sop_or" name="sop">
|
||||
<label for="sop_or">OR</label>
|
||||
<input type="radio" value="and" <?=($sop == "and") ? "checked" : "";?> id="sop_and" name="sop">
|
||||
<input type="radio" value="and" <?php echo ($sop == "and") ? "checked" : ""; ?> id="sop_and" name="sop">
|
||||
<label for="sop_and">AND</label>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
<div id="sch_result">
|
||||
|
||||
<? if ($stx) { ?>
|
||||
<? if ($board_count) { ?>
|
||||
<?php if ($stx) { ?>
|
||||
<?php if ($board_count) { ?>
|
||||
<dl id="sch_result_hd">
|
||||
<dt><strong><?=$stx?></strong>에 대한 검색 결과입니다.</dt>
|
||||
<dt><strong><?php echo $stx ?></strong>에 대한 검색 결과입니다.</dt>
|
||||
<dd>
|
||||
<ul>
|
||||
<li><span style="color:<?=$config['cf_search_color']?>"><?=$board_count?></span>개의 게시판</li>
|
||||
<li><span style="color:<?=$config['cf_search_color']?>"><?=number_format($total_count)?></span>개의 게시물</li>
|
||||
<li>현재 <?=number_format($page)?>/<?=number_format($total_page)?> 페이지 열람 중</li>
|
||||
<li><span style="color:<?php echo $config['cf_search_color'] ?>"><?php echo $board_count ?></span>개의 게시판</li>
|
||||
<li><span style="color:<?php echo $config['cf_search_color'] ?>"><?php echo number_format($total_count) ?></span>개의 게시물</li>
|
||||
<li>현재 <?php echo number_format($page) ?>/<?php echo number_format($total_page) ?> 페이지 열람 중</li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
<? } ?>
|
||||
<? } ?>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
||||
<?
|
||||
<?php
|
||||
if ($stx) {
|
||||
if ($board_count) {
|
||||
?>
|
||||
?>
|
||||
<dl id="sch_result_bo">
|
||||
<dt>검색결과가 있는 게시판 목록</dt>
|
||||
<dd>
|
||||
<ul>
|
||||
<li><a href="?<?=$search_query?>&gr_id=<?=$gr_id?>" <?=$sch_all?>>전체게시판</a></li>
|
||||
<?=$str_board_list;?>
|
||||
<li><a href="?<?php echo $search_query ?>&gr_id=<?php echo $gr_id ?>" <?php echo $sch_all ?>>전체게시판</a></li>
|
||||
<?php echo $str_board_list; ?>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
<?
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
?>
|
||||
<p>검색된 자료가 하나도 없습니다.</p>
|
||||
<? } } ?>
|
||||
<?php } } ?>
|
||||
|
||||
<hr>
|
||||
|
||||
<? if ($stx && $board_count) { ?><dl id="sch_result_atc"><? } ?>
|
||||
<?
|
||||
<?php if ($stx && $board_count) { ?><dl id="sch_result_atc"><?php } ?>
|
||||
<?php
|
||||
$k=0;
|
||||
for ($idx=$table_index, $k=0; $idx<count($search_table) && $k<$rows; $idx++) {
|
||||
$comment_def = "";
|
||||
$comment_href = "";
|
||||
?>
|
||||
<dt><a href="./board.php?bo_table=<?=$search_table[$idx]?>&<?=$search_query?>"><?=$bo_subject[$idx]?>에서</a></dt>
|
||||
?>
|
||||
<dt><a href="./board.php?bo_table=<?php echo $search_table[$idx] ?>&<?php echo $search_query ?>"><?php echo $bo_subject[$idx] ?>에서</a></dt>
|
||||
<dd>
|
||||
<ul>
|
||||
<?
|
||||
<?php
|
||||
for ($i=0; $i<count($list[$idx]) && $k<$rows; $i++, $k++) {
|
||||
if ($list[$idx][$i][wr_is_comment])
|
||||
{
|
||||
$comment_def = "<span class=\"cmt_def\">댓글</span>";
|
||||
$comment_href = "#c_".$list[$idx][$i][wr_id];
|
||||
}
|
||||
?>
|
||||
?>
|
||||
<li>
|
||||
<a href="<?=$list[$idx][$i][href]?><?=$comment_href?>" class="sch_result_title"><?=$comment_def?><?=$list[$idx][$i][subject]?></a>
|
||||
<a href="<?=$list[$idx][$i][href]?><?=$comment_href?>" target="_blank">새창</a>
|
||||
<p><?=$list[$idx][$i][content]?></p>
|
||||
<?=$list[$idx][$i][name]?>
|
||||
<span class="sch_datetime"><?=$list[$idx][$i][wr_datetime]?></span>
|
||||
<a href="<?php echo $list[$idx][$i][href] ?><?php echo $comment_href ?>" class="sch_result_title"><?php echo $comment_def ?><?php echo $list[$idx][$i][subject] ?></a>
|
||||
<a href="<?php echo $list[$idx][$i][href] ?><?php echo $comment_href ?>" target="_blank">새창</a>
|
||||
<p><?php echo $list[$idx][$i][content] ?></p>
|
||||
<?php echo $list[$idx][$i][name] ?>
|
||||
<span class="sch_datetime"><?php echo $list[$idx][$i][wr_datetime] ?></span>
|
||||
</li>
|
||||
<? } ?>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
<div class="sch_more"><a href="./board.php?bo_table=<?=$search_table[$idx]?>&<?=$search_query?>"><?=$bo_subject[$idx]?> 더보기</a></div>
|
||||
<div class="sch_more"><a href="./board.php?bo_table=<?php echo $search_table[$idx] ?>&<?php echo $search_query ?>"><?php echo $bo_subject[$idx] ?> 더보기</a></div>
|
||||
</dd>
|
||||
<? } ?>
|
||||
<? if ($stx && $board_count) { ?></dl><? } ?>
|
||||
<?php } ?>
|
||||
<?php if ($stx && $board_count) { ?></dl><?php } ?>
|
||||
|
||||
<?=$write_pages?>
|
||||
<?php echo $write_pages ?>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user