object(HotopayModel)#798 (23) {
["error"]=>
int(0)
["message"]=>
string(7) "success"
["variables"]=>
array(0) {
}
["httpStatusCode"]=>
int(200)
["module"]=>
string(7) "hotopay"
["module_info"]=>
NULL
["origin_module_info"]=>
NULL
["module_config"]=>
NULL
["module_path"]=>
string(52) "/home/eond/web/eond.com/public_html/modules/hotopay/"
["xml_info"]=>
NULL
["module_srl"]=>
NULL
["mid"]=>
NULL
["act"]=>
NULL
["template_path"]=>
NULL
["template_file"]=>
NULL
["layout_path"]=>
NULL
["layout_file"]=>
NULL
["edited_layout_file"]=>
NULL
["stop_proc"]=>
bool(false)
["user"]=>
object(Rhymix\Framework\Helpers\SessionHelper)#797 (20) {
["member_srl"]=>
int(0)
["user_id"]=>
NULL
["user_name"]=>
NULL
["nick_name"]=>
NULL
["email_address"]=>
NULL
["phone_number"]=>
NULL
["homepage"]=>
NULL
["blog"]=>
NULL
["birthday"]=>
NULL
["denied"]=>
NULL
["status"]=>
NULL
["is_admin"]=>
string(1) "N"
["is_site_admin"]=>
NULL
["profile_image"]=>
NULL
["image_name"]=>
NULL
["image_mark"]=>
NULL
["signature"]=>
NULL
["description"]=>
NULL
["group_list"]=>
array(0) {
}
["menu_list"]=>
array(0) {
}
}
["request"]=>
object(Rhymix\Framework\Request)#10 (13) {
["method"]=>
string(3) "GET"
["compat_method"]=>
string(3) "GET"
["url"]=>
string(28) "zeroboard4/20601/page/465387"
["hostname"]=>
string(8) "eond.com"
["domain"]=>
NULL
["protocol"]=>
string(5) "https"
["callback_function"]=>
string(0) ""
["_route_status":protected]=>
int(200)
["_route_options":protected]=>
object(stdClass)#11 (5) {
["cache_control"]=>
bool(true)
["check_csrf"]=>
bool(true)
["is_forwarded"]=>
bool(false)
["is_indexable"]=>
bool(true)
["enable_session"]=>
bool(true)
}
["module"]=>
string(5) "board"
["mid"]=>
string(10) "zeroboard4"
["act"]=>
string(16) "dispBoardContent"
["args"]=>
array(4) {
["document_srl"]=>
string(5) "20601"
["page"]=>
int(465387)
["mid"]=>
string(10) "zeroboard4"
["act"]=>
string(16) "dispBoardContent"
}
}
["ajaxRequestMethod"]=>
array(2) {
[0]=>
string(6) "XMLRPC"
[1]=>
string(4) "JSON"
}
["gzhandler_enable"]=>
bool(true)
}
<script language="java-script">
function zbSearchSelectOption(key) {
search.sn.value = 'off';
search.ss.value = 'off';
search.sc.value = 'off';
// search[key].value = 'on'; // 삭제된 부분
// 추가된 부분
if (key.indexOf(" ") >= 0) {
arr = key.split(" ");
for (var i in arr) {
search[key].value = 'on';
}
} else {
search[key].value = 'on';
}
}
</script>
검색 범위 변경 함수를 위와 같이 변경하시고,
<select on-Change="zbSearchSelectOption(this.options[this.selectedIndex].value);">
<option class=input_select value="sn" <? if ($sn == "on" && $ss == "off" && $sc == "off") echo "selected"; ?>>이름에서</option>
<option class=input_select value="ss" <? if ($sn == "off" && $ss == "on" && $sc == "off") echo "selected"; ?>>제목에서</option>
<option class=input_select value="sc" <? if ($sn == "off" && $ss == "off" && $sc == "on" ) echo "selected"; ?>>내용에서</option>
<option class=input_select value="ss sc" <? if ($sn == "off" && $ss == "on" && $sc == "on" ) echo "selected"; ?>>제목+내용</option><!-- 추가된 부분 -->
</select>
이렇게 바꿔주시면 됩니다. 소스를 보시면 아시겠지만 체크하고 싶으신 항목을 빈칸으로 구분해서 옵션 태그의 밸류로 주면 됩니다. :)
댓글 0
댓글작성칸으로