diff --git a/bbs/search.php b/bbs/search.php
index d2ac091d6..df62ada7a 100644
--- a/bbs/search.php
+++ b/bbs/search.php
@@ -129,7 +129,7 @@ if ($stx) {
$sql2 = " select bo_subject from {$g4['board_table']} where bo_table = '{$g4_search['tables'][$i]}' ";
$row2 = sql_fetch($sql2);
- $str_board_list .= '
'.$row2[bo_subject].' ('.$row[cnt].')';
+ $str_board_list .= ''.$row2['bo_subject'].' ('.$row['cnt'].')';
}
}
@@ -162,37 +162,37 @@ if ($stx) {
for ($i=0; $row=sql_fetch_array($result); $i++) {
// 검색어까지 링크되면 게시판 부하가 일어남
$list[$idx][$i] = $row;
- $list[$idx][$i][href] = './board.php?bo_table='.$search_table[$idx].'&wr_id='.$row[wr_parent];
+ $list[$idx][$i][href] = './board.php?bo_table='.$search_table[$idx].'&wr_id='.$row['wr_parent'];
- if ($row[wr_is_comment])
+ if ($row['wr_is_comment'])
{
- $link .= '#c'.$row[wr_id];
- $sql2 = " select wr_subject, wr_option from {$tmp_write_table} where wr_id = '{$row[wr_parent]}' ";
+ $link .= '#c'.$row['wr_id'];
+ $sql2 = " select wr_subject, wr_option from {$tmp_write_table} where wr_id = '{$row['wr_parent']}' ";
$row2 = sql_fetch($sql2);
- //$row[wr_subject] = $row2[wr_subject];
- $row[wr_subject] = get_text($row2[wr_subject]);
+ //$row['wr_subject'] = $row2['wr_subject'];
+ $row['wr_subject'] = get_text($row2['wr_subject']);
}
// 비밀글은 검색 불가
- if (strstr($row[wr_option].$row2[wr_option], 'secret'))
- $row[wr_content] = '[비밀글 입니다.]';
+ if (strstr($row['wr_option'].$row2['wr_option'], 'secret'))
+ $row['wr_content'] = '[비밀글 입니다.]';
- $subject = get_text($row[wr_subject]);
+ $subject = get_text($row['wr_subject']);
if (strstr($sfl, 'wr_subject'))
$subject = search_font($stx, $subject);
- if ($read_level[$idx] <= $member[mb_level])
+ if ($read_level[$idx] <= $member['mb_level'])
{
- $content = cut_str(get_text($row[wr_content]),300,"…");
+ $content = cut_str(get_text($row['wr_content']),300,"…");
if (strstr($sfl, 'wr_content'))
$content = search_font($stx, $content);
}
else
$content = '';
- $list[$idx][$i][subject] = $subject;
- $list[$idx][$i][content] = $content;
- $list[$idx][$i][name] = get_sideview($row[mb_id], cut_str($row[wr_name], $config[cf_cut_name]), $row[wr_email], $row[wr_homepage]);
+ $list[$idx][$i]['subject'] = $subject;
+ $list[$idx][$i]['content'] = $content;
+ $list[$idx][$i]['name'] = get_sideview($row['mb_id'], cut_str($row['wr_name'], $config['cf_cut_name']), $row['wr_email'], $row['wr_homepage']);
$k++;
if ($k >= $rows)
diff --git a/css/default.css b/css/default.css
index 7c0d2f0cf..9b64a0d35 100644
--- a/css/default.css
+++ b/css/default.css
@@ -81,7 +81,7 @@ a {color:#000;text-decoration:none}
#tnb li {float:left}
#tnb a {display:inline-block;padding:0 10px;height:30px;border-right:1px solid #dadada;font-family:"dotum";font-size:0.7em;text-decoration:none;line-height:2.7em}
-/* 전체검색 */
+/* 상단 전체검색 */
#hdsch {z-index:3;position:absolute;top:-31px;right:0;margin:0;padding:0;width:219px;border:0;border-left:1px solid #bbb;background:url('../img/search_bg.jpg') #fff bottom left repeat-x}
#hdsch legend {position:absolute;padding:0;width:0;height:0;border:0;overflow:hidden}
#hdsch_stx {margin:5px 0 5px 5px;padding:0 5px;height:20px;width:170px;border:0;background:transparent;font-size:1em;line-height:1.4em}