=0){ switch ($mnmn){ case "0" : $lll="Áö¿ª"; break; case "1" : $lll="Â÷·®¸í"; break; case "2" ; $lll="»çÁøÀִ¸Ź°"; break; case "3" ; $lll="»çÁø¾ø´Â¸Å¹°"; break; default : $lll=""; break; } } ?>
Ȩ > ³»Â÷»ç±â

~
     
0 AND car_bbs.file1 <> '' AND car_bbs.woodae = 'Y' AND car_bbs.consultant = 'Y' AND id IN (SELECT U_ID FROM member_table ) LIMIT ".rand(1, $max).", 5 "; $rs = mysql_query($sql); $t_record = mysql_num_rows($rs); /* ¸Å¹°¼ö°¡ 5°³ ¹Ì¸¸ÀÏ °æ¿ì ÃÖ±Ù ¸ñ·Ï 5°³ */ if($t_record <5) { $sql_0 = " SELECT car_bbs.no, car_bbs.brandcode, car_bbs.brandname, car_bbs.year, car_bbs.day, car_bbs.price, car_bbs.file1, car_bbs.id, car_bbs.consultant FROM car_bbs WHERE car_bbs.price > 0 AND car_bbs.file1 <> '' AND car_bbs.woodae = 'Y' AND car_bbs.consultant = 'Y' AND id IN (SELECT U_ID FROM member_table ) LIMIT 5 "; $sql = $sql_0; $rs = mysql_query($sql); } /* ¸Å¹°¼ö°¡ 5°³ ¹Ì¸¸ÀÏ °æ¿ì ÃÖ±Ù ¸ñ·Ï 5°³ end */ while($row_w=mysql_fetch_array($rs)) { if($row_w["consultant"] == "Y") { if($row_w["price"] > 0) { $price = "".number_format($row_w["price"]).""; } else { $price = "°¡°ÝÀýÃæ"; } } else if($row_w["consultant"] == "N") { $price = "ÆǸſϷá"; } $file1 = $row_w[file1]; $file_date = substr($row_w["file1"],0,4)."/".substr($row_w["file1"],4,2)."/"; $new_img = "../DATA/640X480/".$file_date.$file1; // 2004.09.02 Ãß°¡ if( is_file($middle_url.$file_date.eregi_replace("640X480","106X080",$file1)) ) { //if($file1){ $new_img = "../DATA/106X080/".$file_date.eregi_replace("640X480","106X080",$file1); } else { $new_img = "../DATA/640X480/".$file_date.$file1; } $cut_name = $PARSE->str_cut2($row_w[brandname],12); $p_year = substr($row_w["year"],2,4); ?>
">
[/
">




''"; } else if($article_pic=="all") { $sql_search .= $sql_search; } if($cartype) { $sql_search .= " and car_bbs.kind = '$cartype'"; } if($area) { $sql_search .= " and car_bbs.area = '$area'"; } $sql_ico = ''; for($i=0;$i < count($ico); $i++){ $temp = split("\|",$ico[$i]); if($temp[0] == '1'){ $sql_ico = $sql_ico . " and car_bbs.i_lpg = 'Y' "; }elseif($temp[0] == '2'){ $sql_ico = $sql_ico . " and car_bbs.impan = 'Y' "; }elseif($temp[0] == '3'){ $sql_ico = $sql_ico . " and car_bbs.i_safe = 'Y' "; }elseif($temp[0] == '4'){ $sql_ico = $sql_ico . " and car_bbs.iso1 = 'Y' "; }elseif($temp[0] == '5'){ $sql_ico = $sql_ico . " and car_bbs.s_km = 'Y' "; } } //------------------ //ZUPS---[------mysql limit °¹¼ö ¼³Á¤ ½ÃÀÛ] if(!isset($start) || $start == '' || $start == '0') $start_scale = 0; else{ $start_scale = $start%$limit == $limit ? $start : $limit*floor(($start/$limit)) ; $start = $start_scale; } if(!isset($limit) || $limit == '') $scale = 15; else $scale = $limit; //ZUPS---[------mysql limit °¹¼ö ¼³Á¤ ³¡] //ZUPS---[------°Ë»öÁ¶°ÇÀ¸·Î limit °¹¼ö¸¸Å­ °Ë»ö ½ÃÀÛ] if( $carkind1 || ($carkind2 && $carkind2 != "Â÷Á¾¼±ÅÃ")){ $sql_footer = " order by consultant = 'Y' desc, fast_car asc, petime desc, modify_date desc limit $start_scale, $scale"; $sql = $sql_header.$sql_search.$sql_footer; }else{ // $sql_footer = " order by consultant = 'Y' desc, modify_date desc limit $start_scale, $scale"; $sql_footer = " limit $start_scale, $scale"; //$sql_footer = " limit 0,15"; $sql = $sql_header.$sql_search.$sql_footer; } //$result = mysql_query($sql); //ZUPS---[------°Ë»öÁ¶°ÇÀ¸·Î limit °¹¼ö¸¸Å­ °Ë»ö ³¡] //[------°Ë»öÁ¶°ÇÀ¸·Î Àüü °Ë»ö ½ÃÀÛ] $sql_footer2 = " order by consultant = 'Y' desc, modify_date desc"; $sql2 = $sql_header.$sql_search.$sql_footer2." limit $start_scale, $scale"; $sql3 = $sql_header_count.$sql_search; $result2 = mysql_query($sql2); $result3 = mysql_query($sql3); // if ($row13=mysql_fetch_array($result3)) { $total_record = $row13[0]; } //ZUPS---[------°Ë»öÁ¶°ÇÀ¸·Î Àüü °Ë»ö ½ÃÀÛ] # ÇÑÆäÀÌÁö´ç Ãâ·Â °Ô½Ã¹°¼ö $scale = ($limit == "") ? 15 : $limit; $limit_sel_array = array("15","20","25","30","35","50"); for($m=0;$m $scale ] if ( !$start ) { $start= 0; } $page=floor($start/($scale*$page_scale)) ; // ÇöÀç ÆäÀÌÁö °è»ê ## °¡»ó¹øÈ£ÀÇ ½ÃÀÛ¹øÈ£¸¦ ±¸ÇÑ´Ù.. $article = $total_record-$start; if($rurl) { $rurl = $rurl; } else { $rurl = $PARSE->enbase64(); } $page_print = floor($start / $scale + 1); echo $sql; ?>
°Ë»öµÈ Â÷·® : ´ë [/]  
0) { $price = number_format($row_a["price"]); } else { $price = "°¡°ÝÀýÃæ"; } } else if($row_a["consultant"] == "N") { $price = ""; } if($fuel == 'ÈÖ¹ßÀ¯-LPG°â¿ë'){ $fuel = 'ÈÖ¹ßÀ¯-
LPG°â¿ë'; } if($qq%2 == 0){ $bcolor="#FFFFFF"; }else{ $bcolor="#F7F7F7"; } if($woodae == "Y"){ $bcolor ="#FFDCB8"; } ?> '" style="cursor:hand"> "; ## ¿©±â±îÁö °Ô½Ã¹° Ãâ·Â ³¡.... ## °Ë»öµÈ ÃÑ ÆäÀÌÁö¼ö°¡ page_scaleº¸´Ù ÀûÀ»¶§ echo ("
  »ç  Áø Â÷  ·®  ¸í º¯¼Ó±â ¿¬ ·á ¿¬ ½Ä ÁÖÇà°Å¸® °¡ °Ý Áö ¿ª µî·ÏÀÏ
[]
' : '';?> ' : '';?> ' : '';?> ' : '';?> ' : '';?> ' : '';?>
Km
 "); // °Ë»ö °á°ú°¡ ÆäÀÌÁö ´ç Ãâ·Â¼ö º¸´Ù Å©¸é if ( $total_record > $scale ) { // °Ë»ö¸ðµåÀÎ °æ¿ì ÆäÀÌ¡À» À§ÇØ if(!$rurl) { // $rurl = $PARSE->enbase64(); } if ( $start+1 > $scale*$page_scale ) { $pre_start= ($page-1)*$scale*$page_scale ; echo(" [ÀÌÀü] "); } for ($vj=0; $vj < $page_scale ; $vj++) { $ln = ($page * $page_scale + $vj)*$scale; $vk= $page * $page_scale + $vj+1; if ($ln < $total_record) { if ($ln!=$start) { echo("[$vk] "); } else { echo("$vk "); } } } $imsi = ($page+1)*$scale*$page_scale; if ( $total_record > $imsi ) { $n_start=($page+1)*$scale*$page_scale ; echo("[´ÙÀ½]"); } } // page_scaleÀÌ Å¬ °æ¿ì ·çƾ ³¡ dbconnect(); ?>