http://sir.co.kr/bbs/board.php?bo_table=yc4_qa&wr_id=46681&sca=&sfl=wr_subject%7C%7Cwr_content&stx=%EA%B2%80%EC%83%89
를 보고 관리자님이 올려 주셨던 글을 보고 수정해 봤습니다.
사용중인 search.php 의 (사용자 마다 다를 수 있습니다. 저의 경우 search2.php 를 사용 합니다.)
<form> ~ </form> 사이에 아래 소스를 넣습니다.
=============================================
<input type=checkbox name=it_type1 value='1' <?=($it[it_type1] ? "checked" : "");?>><img src='<?="$g4[url]/$g4[shop]/img/icon_type1.gif"?>' align=absmiddle>
<input type=checkbox name=it_type2 value='1' <?=($it[it_type2] ? "checked" : "");?>><img src='<?="$g4[url]/$g4[shop]/img/icon_type2.gif"?>' align=absmiddle>
<input type=checkbox name=it_type3 value='1' <?=($it[it_type3] ? "checked" : "");?>><img src='<?="$g4[url]/$g4[shop]/img/icon_type3.gif"?>' align=absmiddle>
<input type=checkbox name=it_type4 value='1' <?=($it[it_type4] ? "checked" : "");?>><img src='<?="$g4[url]/$g4[shop]/img/icon_type4.gif"?>' align=absmiddle>
<input type=checkbox name=it_type5 value='1' <?=($it[it_type5] ? "checked" : "");?>><img src='<?="$g4[url]/$g4[shop]/img/icon_type5.gif"?>' align=absmiddle>
================================================================
// 분류선택이 있다면 특정 분류만
$sql_common .= " and ( a.ca_id like '$ca_id%' or ca_id2 like '$ca_id%' or ca_id3 like '$ca_id%') ";
아래
$arr2 = Array();
if ($it_type1 != "") $arr2[] = " a.it_type1 = '1' ";
if ($it_type2 != "") $arr2[] = " a.it_type2 = '1' ";
if ($it_type3 != "") $arr2[] = " a.it_type3 = '1' ";
if ($it_type4 != "") $arr2[] = " a.it_type4 = '1' ";
if ($it_type5 != "") $arr2[] = " a.it_type5 = '1' ";
if ($arr2) {
$where2 = implode(" and ", $arr2);
$sql_common .= " and ( $where2 ) ";
}
를 넣어 줍니다.
-이상-
미리보기 > http://www.yesbike.co.kr/www/shop/search2.php?ca_id=&add=%C6%F7%B8%A3%C5%D7&sop=&search_flag=&search_str=%B9%E5%B5%A5%B8%AE&stx=&sfl=&save_stx=&x=0&y=0
를 보고 관리자님이 올려 주셨던 글을 보고 수정해 봤습니다.
사용중인 search.php 의 (사용자 마다 다를 수 있습니다. 저의 경우 search2.php 를 사용 합니다.)
<form> ~ </form> 사이에 아래 소스를 넣습니다.
=============================================
<input type=checkbox name=it_type1 value='1' <?=($it[it_type1] ? "checked" : "");?>><img src='<?="$g4[url]/$g4[shop]/img/icon_type1.gif"?>' align=absmiddle>
<input type=checkbox name=it_type2 value='1' <?=($it[it_type2] ? "checked" : "");?>><img src='<?="$g4[url]/$g4[shop]/img/icon_type2.gif"?>' align=absmiddle>
<input type=checkbox name=it_type3 value='1' <?=($it[it_type3] ? "checked" : "");?>><img src='<?="$g4[url]/$g4[shop]/img/icon_type3.gif"?>' align=absmiddle>
<input type=checkbox name=it_type4 value='1' <?=($it[it_type4] ? "checked" : "");?>><img src='<?="$g4[url]/$g4[shop]/img/icon_type4.gif"?>' align=absmiddle>
<input type=checkbox name=it_type5 value='1' <?=($it[it_type5] ? "checked" : "");?>><img src='<?="$g4[url]/$g4[shop]/img/icon_type5.gif"?>' align=absmiddle>
================================================================
// 분류선택이 있다면 특정 분류만
$sql_common .= " and ( a.ca_id like '$ca_id%' or ca_id2 like '$ca_id%' or ca_id3 like '$ca_id%') ";
아래
$arr2 = Array();
if ($it_type1 != "") $arr2[] = " a.it_type1 = '1' ";
if ($it_type2 != "") $arr2[] = " a.it_type2 = '1' ";
if ($it_type3 != "") $arr2[] = " a.it_type3 = '1' ";
if ($it_type4 != "") $arr2[] = " a.it_type4 = '1' ";
if ($it_type5 != "") $arr2[] = " a.it_type5 = '1' ";
if ($arr2) {
$where2 = implode(" and ", $arr2);
$sql_common .= " and ( $where2 ) ";
}
를 넣어 줍니다.
-이상-
미리보기 > http://www.yesbike.co.kr/www/shop/search2.php?ca_id=&add=%C6%F7%B8%A3%C5%D7&sop=&search_flag=&search_str=%B9%E5%B5%A5%B8%AE&stx=&sfl=&save_stx=&x=0&y=0
댓글 3개
게시글 목록
| 번호 | 제목 |
|---|---|
| 1534 | |
| 1526 | |
| 1518 | |
| 1516 | |
| 1515 | |
| 1501 | |
| 1498 | |
| 1496 | |
| 1491 | |
| 1488 | |
| 1487 | |
| 1481 | |
| 1473 | |
| 1472 | |
| 1466 | |
| 1462 | |
| 1450 | |
| 1449 | |
| 1447 | |
| 1446 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기