묻고답하기
검색창에 검색항목 안 보이게 하는 방법 좀 알려주세요.
2015.06.22 10:50
검색창에 검색항목 안 보이게 하는 방법 좀 알려주세요.
검색항목 부분 안 보이고 현재 선택된 항목으로 검색되도록 하려고요...
현재 문서 내용 입니다.
########## css 파일 #############
/* Search Form */
.boardSearchForm{position:relative;margin:0;padding:1px 0;line-height:normal}
.boardSearchForm fieldset{border:0;clear:both;text-align:center;position:relative}
.boardSearchForm fieldset:after{content:"";display:block;float:none;clear:both}
.boardSearchForm fieldset *{vertical-align:top}
.boardSearchForm legend{position:absolute;width:0;height:0;overflow:hidden;font:0/0 Sans-serif;visibility:hidden}
.boardSearchForm select{font-size:12px;height:23px;border:1px solid}
.boardSearchForm .iText{width:140px;height:15px;padding:4px 4px 2px 4px;font-size:12px;*margin:-1px 0}
.boardSearchForm .infoEtc{position:absolute;top:7px;right:0}
.boardSearchForm .infoEtc li{display:inline}
.boardSearchForm .infoEtc li a{display:inline-block;height:11px;background-repeat:no-repeat;overflow:hidden}
.boardSearchForm .infoEtc li a span{position:absolute;width:0;height:0;overflow:hidden;font-size:0;line-height:0;visibility:hidden}
.boardSearchForm .infoEtc li.contributors a{width:12px;background-position:0 0}
.boardSearchForm .infoEtc li.tag a{width:42px;background-position:-11px 0}
######### html 파일 ##############
<!--@if($grant->view && $module_info->default_style != 'blog')-->
<form action="{getUrl()}" method="get" onsubmit="return procFilter(this, search)" id="fo_search" class="boardSearchForm" no-error-return-url="true">
<fieldset>
<legend>Board Search</legend>
<input type="hidden" name="vid" value="{$vid}" />
<input type="hidden" name="mid" value="{$mid}" />
<input type="hidden" name="category" value="{$category}" />
<select name="search_target">
<!--@foreach($search_option as $key => $val)-->
<!--@if($key=="title")-->
<option value="{$key}" <!--@if($search_target==$key)-->selected="selected"<!--@end-->>{$val}</option>
<!--@end-->
<!--@end-->
</select>
<input type="text" name="search_keyword" value="{htmlspecialchars($search_keyword)}" class="iText" title="{$lang->cmd_search}" />
<!--@if($last_division)-->
<span class="btn"><a href="{getUrl('page',1,'document_srl','','division',$last_division,'last_division','')}">{$lang->cmd_search_next}</a></span>
<!--@end-->
<span class="btn"><button type="submit">{$lang->cmd_search}</button></span>
</fieldset>
</form>
<!--@end-->
진한글 추가해보세요. 검색항목이 있으면 안보이고 없으면 보이고..
<select cond="!$search_target" name="search_target">
<!--@foreach($search_option as $key => $val)-->
<!--@if($key=="title")-->
<option value="{$key}" <!--@if($search_target==$key)-->selected="selected"<!--@end-->>{$val}</option>
<!--@end-->
<!--@end-->
</select>
<input cond="$search_target" type="hidden" name="search_target" value="{$search_target}" />