검색기능 추가 질문 정보
검색기능 추가 질문
본문
중고차 사이트를 작업중인데요
중고차 검색에보면 연식을 예를들어 2010년~2012년에 해당하는 차량을 찾을수있게 기간을 검색하고싶습니다.예제 사이트
http://www.encar.com/dc/dc_carsearchmain.do?carType=kor&wtClick_kor=002
제 사이트 http://eaglekang.dothome.co.kr/m/ 에 소스는
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/lib/latest.lib.php");
$g4['title'] = "";
include_once("$g4[path]/_head.php");
if (!defined("_GNUBOARD_")) exit; // °³º° ÆäÀÌÁö Á¢±Ù ºÒ°¡
//include_once("$g4[path]/lib/latest_wr.lib.php");
//include_once("$board_skin_path/config.php");
$p_four = explode("|",$list[wr_11]);
$four01 = $p_four[0];
$four02 = $p_four[1];
$four03 = $p_four[2];
$four04 = $p_four[3];
$four05 = $p_four[4];
$four06 = $p_four[5];
$four07 = $p_four[6];
$four08 = $p_four[7];
$four09 = $p_four[8];
$four10 = $p_four[9];
$p_six = explode("|",$list[wr_6]);
$six01 = $p_six[0];
$six02 = $p_six[1];
$six03 = $p_six[2];
$six04 = $p_six[3];
$six05 = $p_six[4];
$six06 = $p_six[5];
$six07 = $p_six[6];
$six08 = $p_six[7];
$six09 = $p_six[8];
$six10 = $p_six[9];
$six11 = $p_six[10];
$six12 = $p_six[11];
$six13 = $p_six[12];
$six14 = $p_six[13];
$six15 = $p_six[14];
$six16 = $p_six[15];
$six17 = $p_six[16];
$six18 = $p_six[17];
$six19 = $p_six[18];
$six20 = $p_six[19];
$six21 = $p_six[20];
$six22 = $p_six[21];
$six23 = $p_six[22];
$six24 = $p_six[23];
$six25 = $p_six[24];
$six26 = $p_six[25];
$six27 = $p_six[26];
$six28 = $p_six[27];
$six29 = $p_six[28];
$six30 = $p_six[29];
$six31 = $p_six[30];
$six32 = $p_six[31];
$six33 = $p_six[32];
$six34 = $p_six[33];
$six35 = $p_six[34];
$six36 = $p_six[35];
$six37 = $p_six[36];
$six38 = $p_six[37];
$six39 = $p_six[38];
$six40 = $p_six[39];
$six41 = $p_six[40];
$six42 = $p_six[41];
$six43 = $p_six[42];
$six44 = $p_six[43];
$six45 = $p_six[44];
$six46 = $p_six[45];
$six47 = $p_six[46];
$six48 = $p_six[47];
$six49 = $p_six[48];
$six50 = $p_six[49];
$six51 = $p_six[50];
$six52 = $p_six[51];
$six53 = $p_six[52];
$six54 = $p_six[53];
$six55 = $p_six[54];
$six56 = $p_six[55];
$six57 = $p_six[56];
$six58 = $p_six[57];
$six59 = $p_six[58];
$six60 = $p_six[59];
$six61 = $p_six[60];
$six62 = $p_six[61];
$six63 = $p_six[62];
$six64 = $p_six[63];
$six65 = $p_six[64];
$six66 = $p_six[65];
$six67 = $p_six[66];
$six68 = $p_six[67];
$six69 = $p_six[68];
$six70 = $p_six[69];
$six71 = $p_six[70];
$six72 = $p_six[71];
$six73 = $p_six[72];
$six74 = $p_six[73];
$six75 = $p_six[74];
$six76 = $p_six[75];
$six77 = $p_six[76];
$six78 = $p_six[77];
$six79 = $p_six[78];
$six80 = $p_six[79];
$six81 = $p_six[80];
$six82 = $p_six[81];
$six83 = $p_six[82];
$six84 = $p_six[83];
$six85 = $p_six[84];
$six86 = $p_six[85];
$six87 = $p_six[86];
$six88 = $p_six[87];
$six89 = $p_six[88];
$six90 = $p_six[89];
$six91 = $p_six[90];
$six92 = $p_six[91];
$six93 = $p_six[92];
$six94 = $p_six[93];
$p_seven = explode("|",$list[wr_7]);
$seven01 = $p_seven[0]; // 등록년
$seven02 = $p_seven[1]; // 등록월
$seven03 = $p_seven[2]; // 배기량
$seven04 = $p_seven[3]; // 사용연료
$seven05 = $p_seven[4]; // 미션구분
$seven06 = $p_seven[5]; // 주행거리
$seven07 = $p_seven[6]; // 차량색상
$seven08 = $p_seven[7]; // 배기량
$seven09 = $p_seven[8];
$seven10 = $p_seven[9];
$seven11 = $p_seven[10];
$seven12 = $p_seven[11];
$seven13 = $p_seven[12];
$seven14 = $p_seven[13];
$seven15 = $p_seven[14];
$seven16 = $p_seven[15];
$seven17 = $p_seven[16];
$seven18 = $p_seven[17];
$seven19 = $p_seven[18];
$seven20 = $p_seven[19];
$seven21 = $p_seven[20];
$seven22 = $p_seven[21];
$seven23 = $p_seven[22];
$seven24 = $p_seven[23];
$seven25 = $p_seven[24];
$seven26 = $p_seven[25];
$seven27 = $p_seven[26];
$seven28 = $p_seven[27];
$seven29 = $p_seven[28];
$seven30 = $p_seven[29];
$seven31 = $p_seven[30];
function get_bo_n_option($bo_n='')
{
global $g4, $board;
$arr = explode("|", $board[$bo_n]); // 구분자가 | 로 되어 있음
$str = "";
for ($i=0; $i<count($arr); $i++)
if (trim($arr[$i]))
$str .= "<option value='$arr[$i]'>$arr[$i]</option>\n";
return $str;
}
// 분류 사용 여부 list.php에서 참조 (카테고리가 없는 경우에는 이것은 절대 비활성화)
if ($is_category = true) {
$bo_5_option = get_bo_n_option('bo_5'); // SELECT OPTION 태그로 넘겨받음
$bo_4_option = get_bo_n_option('bo_4'); // SELECT OPTION 태그로 넘겨받음
}
?>
<script language="Javascript">
function onChangeKey2()
{
var wr_8 = document.fwrite.wr_8.value;
var wr_9 = document.fwrite.wr_9.value;
var wr_10 = document.fwrite.wr_10.value;
var wr_7 = document.fwrite.wr_7.value;
var wr_4 = document.fwrite.wr_4.value;
var stx2 = document.fwrite.stx.value;
if (wr_8 == "" && wr_9 == "" && wr_10 == "" && wr_7 == "" && wr_4 == "") {
alert("검색조건을 선택하세요!!");
return false;
}
else {
if (wr_8 == "" && wr_9 == "" && wr_10 == "" && wr_7 == "" && wr_4 == "" && stx2 != "") {
document.fwrite.stx.value = stx2;
}
else {
document.fwrite.stx.value = wr_8 + " " + wr_9 + " " + wr_10 + " " + wr_7 + " " + wr_4 + " " + stx2;
}
document.fwrite.submit();
}
}
</script>
<script language='JavaScript' src='<?=$board_skin_path?>/cars.js'></script>
<link rel='stylesheet' href='<?=$board_skin_path?>/style.css' type='text/css'>
<style type="text/css">
.highslide {
cursor: url(<?=$board_skin_path?>/highslide/graphics/zoomin.cur), pointer;
outline: none;
}
.highslide img {
border: 0px solid gray;
}
.highslide:hover img {
border: 2px solid white;
}
.highslide-image {
border: 2px solid white;
}
.highslide-image-blur {
}
.highslide-caption {
display: none;
border: 2px solid white;
border-top: none;
font-family: Verdana, Helvetica;
font-size: 10pt;
padding: 5px;
background-color: white;
}
.highslide-loading {
display: block;
color: white;
font-size: 9px;
font-weight: bold;
text-transform: uppercase;
text-decoration: none;
padding: 3px;
border-top: 1px solid white;
border-bottom: 1px solid white;
background-color: black;
}
a.highslide-credits,
a.highslide-credits i {
padding: 2px;
color: silver;
text-decoration: none;
font-size: 10px;
}
a.highslide-credits:hover,
a.highslide-credits:hover i {
color: white;
background-color: gray;
}
.highslide-move {
cursor: move;
}
.highslide-display-block {
display: block;
}
.highslide-display-none {
display: none;
}
.control {
float: right;
display: block;
position: relative;
margin: 0 5px;
font-size: 9pt;
font-weight: none;
text-decoration: none;
text-transform: uppercase;
margin-top: 1px;
margin-bottom: 1px;
}
.control:hover {
border-top: 0px solid #333;
border-bottom: 1px solid #333;
margin-top: 0;
margin-bottom: 0;
}
.control, .control * {
color: #666;
}
</style>
<script type="text/javascript" src="<?=$board_skin_path?>/highslide/highslide.js"></script>
<script type="text/javascript">
hs.graphicsDir = '<?=$board_skin_path?>/highslide/graphics/';
// Identify a caption for all images. This can also be set inline for each image.
hs.captionId = 'the-caption';
hs.outlineType = 'rounded-white';
window.onload = function() {
hs.preloadImages(5);
}
</script>
<table width="100%" border="0" align="center" cellpadding="5" cellspacing="0" bgcolor="#f3fdeb">
<form name="fwrite" method="get" style="margin:0px;">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=sfl value="wr_8||wr_9||wr_10||wr_7||wr_4">
<input type=hidden name=sca value="<?=$sca?>">
<tr>
<td align="center" valign="middle">
<table border="0" align="center" cellpadding="0" cellspacing="1">
<!--DWLayoutTable-->
<tr>
<td height="25" valign="middle"><select name=wr_8 size="1" style="width:80px; height:25px;" onchange="wr_8change()" value="<?=$list[wr_8]?>">
<option value="<?=$list[wr_8]?>">
<?=$list[wr_8]?>
</option>
</select></td>
<td><select style="width:80px; height:25px;" name=wr_9 onchange="wr_9change()" value="<?=$list[wr_9]?>">
<option value="<?=$list[wr_9]?>">
<?=$list[wr_9]?>
</option>
</select></td>
<td><select style="width:80px; height:25px;" name=wr_10 value="<?=$list[wr_10]?>">
<option value="<?=$list[wr_10]?>">
<?=$list[wr_10]?>
</option>
</select></td>
<td width="11"> </td>
<td width="57" rowspan="2" valign="top"><input type=image onClick="onChangeKey2();return false;" src='<?=$board_skin_path?>/img/search_btn3.gif' border="0"> <input type=hidden name=sop value='and'></td>
</tr>
<tr>
<td height="25" valign="middle"><select name='wr_7' itemname="년" style="width:80px; height:25px;">
<option value=''>연식</option>
<option value='2011' <? if($seven01 == 2011) echo " selected "; ?>>2011 </option>
<option value='2010' <? if($seven01 == 2010) echo " selected "; ?>>2010 </option>
<option value='2009' <? if($seven01 == 2009) echo " selected "; ?>>2009 </option>
<option value='2008' <? if($seven01 == 2008) echo " selected "; ?>>2008 </option>
<option value='2007' <? if($seven01 == 2007) echo " selected "; ?>>2007 </option>
<option value='2006' <? if($seven01 == 2006) echo " selected "; ?>>2006 </option>
<option value='2005' <? if($seven01 == 2005) echo " selected "; ?>>2005 </option>
<option value='2004' <? if($seven01 == 2004) echo " selected "; ?>>2004 </option>
<option value='2003' <? if($seven01 == 2003) echo " selected "; ?>>2003 </option>
<option value='2002' <? if($seven01 == 2002) echo " selected "; ?>>2002 </option>
<option value='2001' <? if($seven01 == 2001) echo " selected "; ?>>2001 </option>
<option value='2000' <? if($seven01 == 2000) echo " selected "; ?>>2000 </option>
<option value='1999' <? if($seven01 == 1999) echo " selected "; ?>>1999 </option>
<option value='1998' <? if($seven01 == 1998) echo " selected "; ?>>1998 </option>
<option value='1997' <? if($seven01 == 1997) echo " selected "; ?>>1997 </option>
<option value='1996' <? if($seven01 == 1996) echo " selected "; ?>>1996 </option>
<option value='1995' <? if($seven01 == 1995) echo " selected "; ?>>1995 </option>
<option value='1994' <? if($seven01 == 1994) echo " selected "; ?>>1994 </option>
<option value='1993' <? if($seven01 == 1993) echo " selected "; ?>>1993 </option>
<option value='1992' <? if($seven01 == 1992) echo " selected "; ?>>1992 </option>
<option value='1991' <? if($seven01 == 1991) echo " selected "; ?>>1991 </option>
<option value='1990' <? if($seven01 == 1990) echo " selected "; ?>>1990 </option>
<option value='1989' <? if($seven01 == 1989) echo " selected "; ?>>1989 </option>
<option value='1988' <? if($seven01 == 1988) echo " selected "; ?>>1988 </option>
<option value='1987' <? if($seven01 == 1987) echo " selected "; ?>>1987 </option>
<option value='1986' <? if($seven01 == 1986) echo " selected "; ?>>1986 </option>
</select>
</td>
<td><select name='wr_4' itemname="변속기" style="width:80px; height:25px; line-height:inherit;">
<option value=''>변속기</option>
<option value='오토' <? if($wr_4 == '오토') echo " selected "; ?>>오토 </option>
<option value='수동' <? if($wr_4 == '수동') echo " selected "; ?>>수동 </option>
<option value='CVT' <? if($wr_4 == 'CVT') echo " selected "; ?>>CVT </option>
<option value='세미오토' <? if($wr_4 == '세미오토') echo " selected "; ?>>세미오토 </option>
</select></td>
<td><input type=text name=stx maxlength=10 size=6 style="width:80px; height:20px;" class=input itemname="검색어" value="" /></td>
<td> </td>
</tr>
</table>
</td>
<?
if ($srch_type != "") { $stx = ""; }
?>
<script language="JavaScript">
wr_8view();
wr_9view("");
wr_10view("", "");
</script>
</tr>
</form>
</table>
<table width="<?=$width?>" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><!--<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="110"><img src="<?=$board_skin_path?>/img/top_ti_bt.gif" width="110" height="28"></td>
<td background="<?=$board_skin_path?>/img/top_ti_bg.gif"> </td>
<td width="12"><img src="<?=$board_skin_path?>/img/top_ti_end.gif" width="12" height="28"></td>
</tr>
</table>
<table width="100%" cellpadding="5">
<tr>
<td align=center><?//=latest_wr("car_sp", $bo_table, 4, 16, 3);?></td>
</tr>
</table>--></td>
</tr>
</table>
<div style="height:10px"></div>
<table width="100%" cellpadding="3">
<tr>
<td>
<!--<a href="<?="$PHP_SELF?bo_table=$bo_table"?><?if($wr_id){echo "&wr_id=$wr_id";}?><?if($page){echo "&page=$page";}?>&style=list"><img src='<?=$board_skin_path?>/img/btn_view_list.gif' border=0 align=absmiddle></a>
<a href="<?="$PHP_SELF?bo_table=$bo_table"?><?if($wr_id){echo "&wr_id=$wr_id";}?><?if($page){echo "&page=$page";}?>&style=thumb"><img src='<?=$board_skin_path?>/img/btn_view_thumb.gif' border=0 align=absmiddle></a> -->
</td>
<td align="right">총 <?=number_format($total_count)?> 건
<? if ($rss_href) { ?><a href='<?=$rss_href?>'><img src='<?=$board_skin_path?>/img/btn_rss.gif' border=0 align=absmiddle></a><?}?>
<? if ($admin_href) { ?><a href="<?=$admin_href?>"><img src="<?=$board_skin_path?>/img/icon_admin.gif" border="0" align="absmiddle"></a><? } ?>
</td>
</tr>
</table>
<!-- 쿠키 생성용 iframe -->
<?
//목록을 쿠키에 따라 인클루드
if($_GET['style'] == "list"){
$list_inc = "$board_skin_path/list.list.php";
}elseif($_COOKIE['liststyle']=='list' && $_GET['style'] != "gallery" && $_GET['style'] != "webzine"){
$list_inc = "$board_skin_path/list.list.php";
}
if($_GET['style'] == "thumb"){
$list_inc = "$board_skin_path/list.thumb.php";
}elseif($_COOKIE['liststyle']=='thumb' && $_GET['style'] != "list" && $_GET['style'] != "webzine"){
$list_inc = "$board_skin_path/list.thumb.php";
}
if(!$_GET['style'] && !$_COOKIE['liststyle']){
$list_inc = "$board_skin_path/list.list.php";
}
include $list_inc;
?>
<!-- 페이지 -->
<table width="100%" cellpadding="3" >
<tr>
<td align="center"><? if ($prev_part_href) {
echo "<a href='$prev_part_href'>
<img src='$board_skin_path/img/search_prev.gif' border=0 align=absmiddle></a>"; } ?>
<?
//echo $list_pages;
$list_pages = str_replace("처음", "<img src='$board_skin_path/img/page_first.gif' border='0' align='absmiddle'>", $list_pages);
$list_pages = str_replace("이전", "<img src='$board_skin_path/img/page_prev.gif' border='0' align='absmiddle'>", $list_pages);
$list_pages = str_replace("다음", "<img src='$board_skin_path/img/page_next.gif' border='0' align='absmiddle'>", $list_pages);
$list_pages = str_replace("맨끝", "<img src='$board_skin_path/img/page_end.gif' border='0' align='absmiddle'>", $list_pages);
$list_pages = preg_replace("/([0-9]*)/", "$1", $list_pages);
$list_pages = preg_replace("/([0-9]*)/", "$1", $list_pages);
?>
<?=$list_pages?>
<? if ($next_part_href) {
echo "<a href='$next_part_href'>
<img src='$board_skin_path/img/search_next.gif' border=0 align=absmiddle></a>"; } ?></td>
</tr>
</table>
<table width="100%" cellpadding="3">
<tr>
<td><? if ($list_href) { ?>
<a href="<?=$list_href?>"><img src="<?=$board_skin_path?>/img/list.gif" border="0" align="absmiddle"></a>
<? } ?>
<? if ($write_href) { ?>
<a href="<?=$write_href?>"><img src="<?=$board_skin_path?>/img/write.gif" border="0" align="absmiddle"></a>
<? } ?>
<? if ($is_checkbox) { ?>
<? } ?>
</td>
</tr>
</table>
<? if ($is_checkbox) { ?>
<script language="JavaScript">
function all_checked(sw)
{
var f = document.fboardlist;
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == "chk_wr_id[]")
f.elements[i].checked = sw;
}
}
function check_confirm(str)
{
var f = document.fboardlist;
var chk_count = 0;
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == "chk_wr_id[]" && f.elements[i].checked)
chk_count++;
}
if (!chk_count) {
alert(str + "할 게시물을 하나 이상 선택하세요.");
return false;
}
return true;
}
// 선택한 게시물 삭제
function select_delete()
{
var f = document.fboardlist;
str = "삭제";
if (!check_confirm(str))
return;
if (!confirm("선택한 게시물을 정말 "+str+" 하시겠습니까?\n\n한번 "+str+"한 자료는 복구할 수 없습니다"))
return;
f.action = "./delete_all.php";
f.submit();
}
// 선택한 게시물 복사 및 이동
function select_copy(sw)
{
var f = document.fboardlist;
if (sw == "copy")
str = "복사";
else
str = "이동";
if (!check_confirm(str))
return;
var sub_win = window.open("", "move", "left=50, top=50, width=400, height=550, scrollbars=1");
f.sw.value = sw;
f.target = "move";
f.action = "./move.php";
f.submit();
}
</script>
<script language="Javascript">
if ('<?=$sca?>') document.fcategory.sca.value = '<?=$sca?>';
if ('<?=$stx?>') {
document.fsearch.sfl.value = '<?=$sfl?>';
document.fsearch.sop.value = '<?=$sop?>';
}
</script>
<script language="Javascript">
if ('<?=$wr_8?>'){
document.fwrite.wr_8.value = '<?=$wr_8?>';
wr_8change();
}
if ('<?=$wr_9?>'){
document.fwrite.wr_9.value = '<?=$wr_9?>';
wr_9change();
}
if ('<?=$wr_10?>') document.fwrite.wr_10.value = '<?=$wr_10?>';
if ('<?=$wr_7?>') document.fwrite.wr_7.value = '<?=$wr_7?>';
if ('<?=$wr_2?>') document.fwrite.wr_2.value = '<?=$wr_2?>';
if ('<?=$stx?>') {
document.fsearch.sfl.value = '<?=$sfl?>';
document.fsearch.sop.value = '<?=$sop?>';
}
</script>
<? } ?>
이건데요 고수님들의 조언 부탁드립니다.
중고차 검색에보면 연식을 예를들어 2010년~2012년에 해당하는 차량을 찾을수있게 기간을 검색하고싶습니다.예제 사이트
http://www.encar.com/dc/dc_carsearchmain.do?carType=kor&wtClick_kor=002
제 사이트 http://eaglekang.dothome.co.kr/m/ 에 소스는
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/lib/latest.lib.php");
$g4['title'] = "";
include_once("$g4[path]/_head.php");
if (!defined("_GNUBOARD_")) exit; // °³º° ÆäÀÌÁö Á¢±Ù ºÒ°¡
//include_once("$g4[path]/lib/latest_wr.lib.php");
//include_once("$board_skin_path/config.php");
$p_four = explode("|",$list[wr_11]);
$four01 = $p_four[0];
$four02 = $p_four[1];
$four03 = $p_four[2];
$four04 = $p_four[3];
$four05 = $p_four[4];
$four06 = $p_four[5];
$four07 = $p_four[6];
$four08 = $p_four[7];
$four09 = $p_four[8];
$four10 = $p_four[9];
$p_six = explode("|",$list[wr_6]);
$six01 = $p_six[0];
$six02 = $p_six[1];
$six03 = $p_six[2];
$six04 = $p_six[3];
$six05 = $p_six[4];
$six06 = $p_six[5];
$six07 = $p_six[6];
$six08 = $p_six[7];
$six09 = $p_six[8];
$six10 = $p_six[9];
$six11 = $p_six[10];
$six12 = $p_six[11];
$six13 = $p_six[12];
$six14 = $p_six[13];
$six15 = $p_six[14];
$six16 = $p_six[15];
$six17 = $p_six[16];
$six18 = $p_six[17];
$six19 = $p_six[18];
$six20 = $p_six[19];
$six21 = $p_six[20];
$six22 = $p_six[21];
$six23 = $p_six[22];
$six24 = $p_six[23];
$six25 = $p_six[24];
$six26 = $p_six[25];
$six27 = $p_six[26];
$six28 = $p_six[27];
$six29 = $p_six[28];
$six30 = $p_six[29];
$six31 = $p_six[30];
$six32 = $p_six[31];
$six33 = $p_six[32];
$six34 = $p_six[33];
$six35 = $p_six[34];
$six36 = $p_six[35];
$six37 = $p_six[36];
$six38 = $p_six[37];
$six39 = $p_six[38];
$six40 = $p_six[39];
$six41 = $p_six[40];
$six42 = $p_six[41];
$six43 = $p_six[42];
$six44 = $p_six[43];
$six45 = $p_six[44];
$six46 = $p_six[45];
$six47 = $p_six[46];
$six48 = $p_six[47];
$six49 = $p_six[48];
$six50 = $p_six[49];
$six51 = $p_six[50];
$six52 = $p_six[51];
$six53 = $p_six[52];
$six54 = $p_six[53];
$six55 = $p_six[54];
$six56 = $p_six[55];
$six57 = $p_six[56];
$six58 = $p_six[57];
$six59 = $p_six[58];
$six60 = $p_six[59];
$six61 = $p_six[60];
$six62 = $p_six[61];
$six63 = $p_six[62];
$six64 = $p_six[63];
$six65 = $p_six[64];
$six66 = $p_six[65];
$six67 = $p_six[66];
$six68 = $p_six[67];
$six69 = $p_six[68];
$six70 = $p_six[69];
$six71 = $p_six[70];
$six72 = $p_six[71];
$six73 = $p_six[72];
$six74 = $p_six[73];
$six75 = $p_six[74];
$six76 = $p_six[75];
$six77 = $p_six[76];
$six78 = $p_six[77];
$six79 = $p_six[78];
$six80 = $p_six[79];
$six81 = $p_six[80];
$six82 = $p_six[81];
$six83 = $p_six[82];
$six84 = $p_six[83];
$six85 = $p_six[84];
$six86 = $p_six[85];
$six87 = $p_six[86];
$six88 = $p_six[87];
$six89 = $p_six[88];
$six90 = $p_six[89];
$six91 = $p_six[90];
$six92 = $p_six[91];
$six93 = $p_six[92];
$six94 = $p_six[93];
$p_seven = explode("|",$list[wr_7]);
$seven01 = $p_seven[0]; // 등록년
$seven02 = $p_seven[1]; // 등록월
$seven03 = $p_seven[2]; // 배기량
$seven04 = $p_seven[3]; // 사용연료
$seven05 = $p_seven[4]; // 미션구분
$seven06 = $p_seven[5]; // 주행거리
$seven07 = $p_seven[6]; // 차량색상
$seven08 = $p_seven[7]; // 배기량
$seven09 = $p_seven[8];
$seven10 = $p_seven[9];
$seven11 = $p_seven[10];
$seven12 = $p_seven[11];
$seven13 = $p_seven[12];
$seven14 = $p_seven[13];
$seven15 = $p_seven[14];
$seven16 = $p_seven[15];
$seven17 = $p_seven[16];
$seven18 = $p_seven[17];
$seven19 = $p_seven[18];
$seven20 = $p_seven[19];
$seven21 = $p_seven[20];
$seven22 = $p_seven[21];
$seven23 = $p_seven[22];
$seven24 = $p_seven[23];
$seven25 = $p_seven[24];
$seven26 = $p_seven[25];
$seven27 = $p_seven[26];
$seven28 = $p_seven[27];
$seven29 = $p_seven[28];
$seven30 = $p_seven[29];
$seven31 = $p_seven[30];
function get_bo_n_option($bo_n='')
{
global $g4, $board;
$arr = explode("|", $board[$bo_n]); // 구분자가 | 로 되어 있음
$str = "";
for ($i=0; $i<count($arr); $i++)
if (trim($arr[$i]))
$str .= "<option value='$arr[$i]'>$arr[$i]</option>\n";
return $str;
}
// 분류 사용 여부 list.php에서 참조 (카테고리가 없는 경우에는 이것은 절대 비활성화)
if ($is_category = true) {
$bo_5_option = get_bo_n_option('bo_5'); // SELECT OPTION 태그로 넘겨받음
$bo_4_option = get_bo_n_option('bo_4'); // SELECT OPTION 태그로 넘겨받음
}
?>
<script language="Javascript">
function onChangeKey2()
{
var wr_8 = document.fwrite.wr_8.value;
var wr_9 = document.fwrite.wr_9.value;
var wr_10 = document.fwrite.wr_10.value;
var wr_7 = document.fwrite.wr_7.value;
var wr_4 = document.fwrite.wr_4.value;
var stx2 = document.fwrite.stx.value;
if (wr_8 == "" && wr_9 == "" && wr_10 == "" && wr_7 == "" && wr_4 == "") {
alert("검색조건을 선택하세요!!");
return false;
}
else {
if (wr_8 == "" && wr_9 == "" && wr_10 == "" && wr_7 == "" && wr_4 == "" && stx2 != "") {
document.fwrite.stx.value = stx2;
}
else {
document.fwrite.stx.value = wr_8 + " " + wr_9 + " " + wr_10 + " " + wr_7 + " " + wr_4 + " " + stx2;
}
document.fwrite.submit();
}
}
</script>
<script language='JavaScript' src='<?=$board_skin_path?>/cars.js'></script>
<link rel='stylesheet' href='<?=$board_skin_path?>/style.css' type='text/css'>
<style type="text/css">
.highslide {
cursor: url(<?=$board_skin_path?>/highslide/graphics/zoomin.cur), pointer;
outline: none;
}
.highslide img {
border: 0px solid gray;
}
.highslide:hover img {
border: 2px solid white;
}
.highslide-image {
border: 2px solid white;
}
.highslide-image-blur {
}
.highslide-caption {
display: none;
border: 2px solid white;
border-top: none;
font-family: Verdana, Helvetica;
font-size: 10pt;
padding: 5px;
background-color: white;
}
.highslide-loading {
display: block;
color: white;
font-size: 9px;
font-weight: bold;
text-transform: uppercase;
text-decoration: none;
padding: 3px;
border-top: 1px solid white;
border-bottom: 1px solid white;
background-color: black;
}
a.highslide-credits,
a.highslide-credits i {
padding: 2px;
color: silver;
text-decoration: none;
font-size: 10px;
}
a.highslide-credits:hover,
a.highslide-credits:hover i {
color: white;
background-color: gray;
}
.highslide-move {
cursor: move;
}
.highslide-display-block {
display: block;
}
.highslide-display-none {
display: none;
}
.control {
float: right;
display: block;
position: relative;
margin: 0 5px;
font-size: 9pt;
font-weight: none;
text-decoration: none;
text-transform: uppercase;
margin-top: 1px;
margin-bottom: 1px;
}
.control:hover {
border-top: 0px solid #333;
border-bottom: 1px solid #333;
margin-top: 0;
margin-bottom: 0;
}
.control, .control * {
color: #666;
}
</style>
<script type="text/javascript" src="<?=$board_skin_path?>/highslide/highslide.js"></script>
<script type="text/javascript">
hs.graphicsDir = '<?=$board_skin_path?>/highslide/graphics/';
// Identify a caption for all images. This can also be set inline for each image.
hs.captionId = 'the-caption';
hs.outlineType = 'rounded-white';
window.onload = function() {
hs.preloadImages(5);
}
</script>
<table width="100%" border="0" align="center" cellpadding="5" cellspacing="0" bgcolor="#f3fdeb">
<form name="fwrite" method="get" style="margin:0px;">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=sfl value="wr_8||wr_9||wr_10||wr_7||wr_4">
<input type=hidden name=sca value="<?=$sca?>">
<tr>
<td align="center" valign="middle">
<table border="0" align="center" cellpadding="0" cellspacing="1">
<!--DWLayoutTable-->
<tr>
<td height="25" valign="middle"><select name=wr_8 size="1" style="width:80px; height:25px;" onchange="wr_8change()" value="<?=$list[wr_8]?>">
<option value="<?=$list[wr_8]?>">
<?=$list[wr_8]?>
</option>
</select></td>
<td><select style="width:80px; height:25px;" name=wr_9 onchange="wr_9change()" value="<?=$list[wr_9]?>">
<option value="<?=$list[wr_9]?>">
<?=$list[wr_9]?>
</option>
</select></td>
<td><select style="width:80px; height:25px;" name=wr_10 value="<?=$list[wr_10]?>">
<option value="<?=$list[wr_10]?>">
<?=$list[wr_10]?>
</option>
</select></td>
<td width="11"> </td>
<td width="57" rowspan="2" valign="top"><input type=image onClick="onChangeKey2();return false;" src='<?=$board_skin_path?>/img/search_btn3.gif' border="0"> <input type=hidden name=sop value='and'></td>
</tr>
<tr>
<td height="25" valign="middle"><select name='wr_7' itemname="년" style="width:80px; height:25px;">
<option value=''>연식</option>
<option value='2011' <? if($seven01 == 2011) echo " selected "; ?>>2011 </option>
<option value='2010' <? if($seven01 == 2010) echo " selected "; ?>>2010 </option>
<option value='2009' <? if($seven01 == 2009) echo " selected "; ?>>2009 </option>
<option value='2008' <? if($seven01 == 2008) echo " selected "; ?>>2008 </option>
<option value='2007' <? if($seven01 == 2007) echo " selected "; ?>>2007 </option>
<option value='2006' <? if($seven01 == 2006) echo " selected "; ?>>2006 </option>
<option value='2005' <? if($seven01 == 2005) echo " selected "; ?>>2005 </option>
<option value='2004' <? if($seven01 == 2004) echo " selected "; ?>>2004 </option>
<option value='2003' <? if($seven01 == 2003) echo " selected "; ?>>2003 </option>
<option value='2002' <? if($seven01 == 2002) echo " selected "; ?>>2002 </option>
<option value='2001' <? if($seven01 == 2001) echo " selected "; ?>>2001 </option>
<option value='2000' <? if($seven01 == 2000) echo " selected "; ?>>2000 </option>
<option value='1999' <? if($seven01 == 1999) echo " selected "; ?>>1999 </option>
<option value='1998' <? if($seven01 == 1998) echo " selected "; ?>>1998 </option>
<option value='1997' <? if($seven01 == 1997) echo " selected "; ?>>1997 </option>
<option value='1996' <? if($seven01 == 1996) echo " selected "; ?>>1996 </option>
<option value='1995' <? if($seven01 == 1995) echo " selected "; ?>>1995 </option>
<option value='1994' <? if($seven01 == 1994) echo " selected "; ?>>1994 </option>
<option value='1993' <? if($seven01 == 1993) echo " selected "; ?>>1993 </option>
<option value='1992' <? if($seven01 == 1992) echo " selected "; ?>>1992 </option>
<option value='1991' <? if($seven01 == 1991) echo " selected "; ?>>1991 </option>
<option value='1990' <? if($seven01 == 1990) echo " selected "; ?>>1990 </option>
<option value='1989' <? if($seven01 == 1989) echo " selected "; ?>>1989 </option>
<option value='1988' <? if($seven01 == 1988) echo " selected "; ?>>1988 </option>
<option value='1987' <? if($seven01 == 1987) echo " selected "; ?>>1987 </option>
<option value='1986' <? if($seven01 == 1986) echo " selected "; ?>>1986 </option>
</select>
</td>
<td><select name='wr_4' itemname="변속기" style="width:80px; height:25px; line-height:inherit;">
<option value=''>변속기</option>
<option value='오토' <? if($wr_4 == '오토') echo " selected "; ?>>오토 </option>
<option value='수동' <? if($wr_4 == '수동') echo " selected "; ?>>수동 </option>
<option value='CVT' <? if($wr_4 == 'CVT') echo " selected "; ?>>CVT </option>
<option value='세미오토' <? if($wr_4 == '세미오토') echo " selected "; ?>>세미오토 </option>
</select></td>
<td><input type=text name=stx maxlength=10 size=6 style="width:80px; height:20px;" class=input itemname="검색어" value="" /></td>
<td> </td>
</tr>
</table>
</td>
<?
if ($srch_type != "") { $stx = ""; }
?>
<script language="JavaScript">
wr_8view();
wr_9view("");
wr_10view("", "");
</script>
</tr>
</form>
</table>
<table width="<?=$width?>" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><!--<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="110"><img src="<?=$board_skin_path?>/img/top_ti_bt.gif" width="110" height="28"></td>
<td background="<?=$board_skin_path?>/img/top_ti_bg.gif"> </td>
<td width="12"><img src="<?=$board_skin_path?>/img/top_ti_end.gif" width="12" height="28"></td>
</tr>
</table>
<table width="100%" cellpadding="5">
<tr>
<td align=center><?//=latest_wr("car_sp", $bo_table, 4, 16, 3);?></td>
</tr>
</table>--></td>
</tr>
</table>
<div style="height:10px"></div>
<table width="100%" cellpadding="3">
<tr>
<td>
<!--<a href="<?="$PHP_SELF?bo_table=$bo_table"?><?if($wr_id){echo "&wr_id=$wr_id";}?><?if($page){echo "&page=$page";}?>&style=list"><img src='<?=$board_skin_path?>/img/btn_view_list.gif' border=0 align=absmiddle></a>
<a href="<?="$PHP_SELF?bo_table=$bo_table"?><?if($wr_id){echo "&wr_id=$wr_id";}?><?if($page){echo "&page=$page";}?>&style=thumb"><img src='<?=$board_skin_path?>/img/btn_view_thumb.gif' border=0 align=absmiddle></a> -->
</td>
<td align="right">총 <?=number_format($total_count)?> 건
<? if ($rss_href) { ?><a href='<?=$rss_href?>'><img src='<?=$board_skin_path?>/img/btn_rss.gif' border=0 align=absmiddle></a><?}?>
<? if ($admin_href) { ?><a href="<?=$admin_href?>"><img src="<?=$board_skin_path?>/img/icon_admin.gif" border="0" align="absmiddle"></a><? } ?>
</td>
</tr>
</table>
<!-- 쿠키 생성용 iframe -->
<?
//목록을 쿠키에 따라 인클루드
if($_GET['style'] == "list"){
$list_inc = "$board_skin_path/list.list.php";
}elseif($_COOKIE['liststyle']=='list' && $_GET['style'] != "gallery" && $_GET['style'] != "webzine"){
$list_inc = "$board_skin_path/list.list.php";
}
if($_GET['style'] == "thumb"){
$list_inc = "$board_skin_path/list.thumb.php";
}elseif($_COOKIE['liststyle']=='thumb' && $_GET['style'] != "list" && $_GET['style'] != "webzine"){
$list_inc = "$board_skin_path/list.thumb.php";
}
if(!$_GET['style'] && !$_COOKIE['liststyle']){
$list_inc = "$board_skin_path/list.list.php";
}
include $list_inc;
?>
<!-- 페이지 -->
<table width="100%" cellpadding="3" >
<tr>
<td align="center"><? if ($prev_part_href) {
echo "<a href='$prev_part_href'>
<img src='$board_skin_path/img/search_prev.gif' border=0 align=absmiddle></a>"; } ?>
<?
//echo $list_pages;
$list_pages = str_replace("처음", "<img src='$board_skin_path/img/page_first.gif' border='0' align='absmiddle'>", $list_pages);
$list_pages = str_replace("이전", "<img src='$board_skin_path/img/page_prev.gif' border='0' align='absmiddle'>", $list_pages);
$list_pages = str_replace("다음", "<img src='$board_skin_path/img/page_next.gif' border='0' align='absmiddle'>", $list_pages);
$list_pages = str_replace("맨끝", "<img src='$board_skin_path/img/page_end.gif' border='0' align='absmiddle'>", $list_pages);
$list_pages = preg_replace("/([0-9]*)/", "$1", $list_pages);
$list_pages = preg_replace("/([0-9]*)/", "$1", $list_pages);
?>
<?=$list_pages?>
<? if ($next_part_href) {
echo "<a href='$next_part_href'>
<img src='$board_skin_path/img/search_next.gif' border=0 align=absmiddle></a>"; } ?></td>
</tr>
</table>
<table width="100%" cellpadding="3">
<tr>
<td><? if ($list_href) { ?>
<a href="<?=$list_href?>"><img src="<?=$board_skin_path?>/img/list.gif" border="0" align="absmiddle"></a>
<? } ?>
<? if ($write_href) { ?>
<a href="<?=$write_href?>"><img src="<?=$board_skin_path?>/img/write.gif" border="0" align="absmiddle"></a>
<? } ?>
<? if ($is_checkbox) { ?>
<? } ?>
</td>
</tr>
</table>
<? if ($is_checkbox) { ?>
<script language="JavaScript">
function all_checked(sw)
{
var f = document.fboardlist;
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == "chk_wr_id[]")
f.elements[i].checked = sw;
}
}
function check_confirm(str)
{
var f = document.fboardlist;
var chk_count = 0;
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == "chk_wr_id[]" && f.elements[i].checked)
chk_count++;
}
if (!chk_count) {
alert(str + "할 게시물을 하나 이상 선택하세요.");
return false;
}
return true;
}
// 선택한 게시물 삭제
function select_delete()
{
var f = document.fboardlist;
str = "삭제";
if (!check_confirm(str))
return;
if (!confirm("선택한 게시물을 정말 "+str+" 하시겠습니까?\n\n한번 "+str+"한 자료는 복구할 수 없습니다"))
return;
f.action = "./delete_all.php";
f.submit();
}
// 선택한 게시물 복사 및 이동
function select_copy(sw)
{
var f = document.fboardlist;
if (sw == "copy")
str = "복사";
else
str = "이동";
if (!check_confirm(str))
return;
var sub_win = window.open("", "move", "left=50, top=50, width=400, height=550, scrollbars=1");
f.sw.value = sw;
f.target = "move";
f.action = "./move.php";
f.submit();
}
</script>
<script language="Javascript">
if ('<?=$sca?>') document.fcategory.sca.value = '<?=$sca?>';
if ('<?=$stx?>') {
document.fsearch.sfl.value = '<?=$sfl?>';
document.fsearch.sop.value = '<?=$sop?>';
}
</script>
<script language="Javascript">
if ('<?=$wr_8?>'){
document.fwrite.wr_8.value = '<?=$wr_8?>';
wr_8change();
}
if ('<?=$wr_9?>'){
document.fwrite.wr_9.value = '<?=$wr_9?>';
wr_9change();
}
if ('<?=$wr_10?>') document.fwrite.wr_10.value = '<?=$wr_10?>';
if ('<?=$wr_7?>') document.fwrite.wr_7.value = '<?=$wr_7?>';
if ('<?=$wr_2?>') document.fwrite.wr_2.value = '<?=$wr_2?>';
if ('<?=$stx?>') {
document.fsearch.sfl.value = '<?=$sfl?>';
document.fsearch.sop.value = '<?=$sop?>';
}
</script>
<? } ?>
이건데요 고수님들의 조언 부탁드립니다.
댓글 전체