묻고답하기
게시판 하단검색부분..다시 좀 알려주세요.
2011.01.12 17:51
게시판 스킨의 list.html을 열어 보시면 검색폼 부분 소스가 있잖아요.
<is_admin=="Y'>!--@if($logged_info->is_admin=="Y")-->
<<view">!--@if($grant->view && $module_info->default_style != 'blog' && $module_info->default_style != 'memo')-->
<form action="{getUrl()}" method="get" onsubmit="return procFilter(this, search)" id="fo_search" class="boardSearchForm">
<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}" />
<input type="text" name="search_keyword" value="{htmlspecialchars($search_keyword)}" class="inputText" accesskey="S" title="{$lang->cmd_search}" />
<select name="search_target">
<!--@foreach($search_option as $key => $val)-->
<option value="{$key}" <selected="selected">{$val}!--@if($search_target==$key)-->selected="selected"<!--@end-->>{$val}</option>
<!--@end-->
</select>
<!--@if($last_division)-->
<a href="{getUrl('page',1,'document_srl','','+
'division',$last_division,'last_division','')}" class="button"><span>{$lang->cmd_search_next}</span></a>
<!--@end-->
<span class="buttonOfficial"><button type="submit" onclick="xGetElementById('fo_search').submit();return false;">{$lang->cmd_search}</button></span>
<ul class="infoEtc">
<li class="contributors"><a href="{getUrl('','module','module','act','dispModuleSkinInfo','selected_module',$module_info->module, 'skin', $module_info->skin)}" onclick="popopen(this.href,'skinInfo'); return false;" title="Contributors"><span>Contributors</span></a></li>
<li class="tag"><a href="{getUrl('act','dispBoardTagList')}" title="Tag List"><span>Tag List</span></a></li>
</ul>
</fieldset>
</form>
<!--@end-->
<!--@end-->
님이 답변해준
<is_admin=="Y'>!--@if($logged_info->is_admin=="Y")-->
<!--@end-->
로 감싸주면 관리자만 볼수 있습니다.
라고하셔서 감쌌는데 페이지가 깨져요.또 맨마지막 <!--@end--> 이부분을 안넣으면 그냥 관리자든 누구든 다
검색할수있고요.
다시 좀 가르쳐주세요.
어디부분을 감싸라는건지..