MINI MINI MANI MO
<?
require_once "../_common/common.php";
include $_SERVER['DOCUMENT_ROOT'].'/_config/global.php';
include $_SERVER['DOCUMENT_ROOT'].'/_config/_class/phpfun.class.php';
$phpfun = new phpfun();
$SID = session_id();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, target-densitydpi=medium-dpi">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<head>
<title>°¿ø»ê¾÷-ÆóÂ÷/¼Õ»óÂ÷/ÀÜÁ¸¹°°æ°ø¸Å</title>
<link rel="stylesheet" type="text/css" href="../css/style.css">
<link href="../css/scale.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
</head>
<div id="top">
<? include "../inc/sub_top.html"; ?>
</div>
<tr>
<td>
<!-- bar start-->
<!--table id="bar" width="640" height="60" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="20"></td>
<td align="left"><img src="img/common/btn_home.png"></td>
<td valign="center" align="center"></td>
<td align="right"> </td>
<td width="20">
</tr>
</table-->
<!-- bar end--></td>
</tr>
<tr>
<td>
<!-- navi start-->
<table id="navi" width="100%" height="60" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td><table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="20"><table align="left"><tr><td align="left" style="padding-left:10px;"><strong>¸¶ÀÌÆäÀÌÁö : </strong><a href="/mypage/sub04.php"><font color="#ff0000">ÀÔÂûÇöȲ</font></a> | <a href="/mypage/sub05.php"><font color="#000000">³«ÂûÇöȲ</font></a> | <a href="/mypage/sub03.php"><font color="#000000">°ü½ÉÂ÷·®</font></a></td>
</tr></table></td>
</tr>
<tr><td height="1" bgcolor="#0066CC"></td></tr>
<tr><td height="10" ></td></tr>
</table></td>
</tr>
</table>
<!-- navi end-->
</td>
</tr>
<tr>
<td>
<!-- contents start-->
<table width="100%" height="33" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td height="300" valign="top" ><table width="100%" border="0" cellspacing="1" cellpadding="0">
<tbody>
<tr>
<td bgcolor="#ebebeb"><table width="100%" bgcolor="#ffffff" border="0" cellspacing="0" cellpadding="0">
<form action="/mypage/nmypage02.php" method="post" name="searchForm" id="searchForm">
<tbody>
<tr>
<td align="center" ><table width="97%" class="join_form" bordercolor="#666666" border="1" cellspacing="0" cellpadding="0">
<!--Ãß°¡ ¿¡·¯-->
<tr>
<th width="11%" height="25" align="center" bgcolor="#CCCCCC" ><strong>no</strong></th>
<th width="39%" align="center" bgcolor="#CCCCCC"><strong>Â÷·®¸í</strong></th>
<th width="26%" align="center" bgcolor="#CCCCCC"><strong>ÀÔÂûÀ¯Çü</strong></th>
<th width="24%" align="center" bgcolor="#CCCCCC"><strong>ÀÔÂû°¡°Ý</strong></th>
</tr>
<?
$tb_name = "woojung_bid ";
$view_article = 10; // ÇÑȸ鿡 ³ªÅ¸³¯ °Ô½Ã¹°ÀÇ ÃÑ °³¼ö
if (!$page) $page = 1; // ÇöÀç ÆäÀÌÁö ÁöÁ¤µÇÁö ¾Ê¾ÒÀ» °æ¿ì 1·Î ÁöÁ¤
$start = ($page-1)*$view_article;
$href = "&id=$id&Search_mode=$Search_mode&Search_text=$Search_text";
if($wc_made){
$where .= "and b.wc_made='$wc_made'";
}
if($wc_model){
$where .= "and b.wc_model='$wc_model'";
}
if($sear4){
$where .= " and ( b.wc_no like '%$sear4%' or b.wc_mem_name like '%$sear4%' or b.wc_model like '%$sear4%') ";
}
$query = "select count(*) from woojung_bid as a
left join woojung_car as b on a.auct_key = b.wc_idx
left join woojung_car_go c on a.auct_key = c.wcg_wcidx
where a.userId='$loginId'
and b.wc_gubun2 in ('2','6')
$where group by auct_idx
";
//echo $query;
$result = mysql_query($query);
$tota=0;
while($temp = mysql_fetch_array($result)){
$tota++;
}
$total_article = $tota; // ÇöÀç Äõ¸®ÇÑ °Ô½Ã¹°ÀÇ ÃÑ °³¼ö¸¦ ±¸ÇÔ
$qry = "select * from woojung_bid as a
left join woojung_car as b on a.auct_key = b.wc_idx
left join woojung_car_go c on a.auct_key = c.wcg_wcidx
where a.userId='$loginId'
and b.wc_gubun2 in ('2','6')
$where group by auct_idx
order by b.wc_regdate desc LIMIT $start, $view_article";
$auctQuery = $db->query($qry);
$i=0;
while($auctRow = mysql_fetch_object($auctQuery)) {
$num = $total_article-$i-(($page-1)*$view_article);
$nacChk=$auctRow->bid_sort;
if($nacChk=="Y"){
$nacPay=number_format($auctRow->bid_price);
} else {
$nacPay=number_format($auctRow->wc_accepted_priceA);
}
$co = mysql_fetch_row(mysql_query("SELECT count(*) FROM woojung_bid WHERE userId='$loginId' and auct_key='".$auctRow->auct_key."' " ));
if($co[0]=="2"){
$sql="SELECT * FROM woojung_bid WHERE userId='".$loginId."' and auct_key='".$auctRow->auct_key."' and sale_type='2' ";
$result=mysql_query($sql);
$data1=mysql_fetch_array($result);
$sql="SELECT * FROM woojung_bid WHERE userId='".$loginId."' and auct_key='".$auctRow->auct_key."' and sale_type='1' ";
$result=mysql_query($sql);
$data2=mysql_fetch_array($result);
}
if($auctRow->wc_gubun2=="2"){
$lurl="/sub02/sub02_3_view.php?idx=".$auctRow->wc_idx;
}else if($auctRow->wc_gubun2=="3"){
$lurl="/sub03/sub03_1_view.php?idx=".$auctRow->wc_idx;
}else if($auctRow->wc_gubun2=="6"){
$lurl="/sub07/sub07_1_view.php?idx=".$auctRow->wc_idx;
}
?>
<tr onclick="location.href='../sub01_view.php?idx=<?=$auctRow->wc_idx?>';">
<td width="11%" height="25" rowspan="2" align="center" valign="middle" bgcolor="#FFFFFF"><?=$num?></td>
<td width="39%" rowspan="2" align="center" valign="middle" bgcolor="#FFFFFF"><span style="cursor:pointer; color:#0066CC"><?=$auctRow->wc_model?>
<?=$auctRow->wc_model2?$auctRow->wc_model2:""?></span></td>
<td width="26%" align="center" valign="middle" bgcolor="#FFFFFF">¸íÀÇÀÌÀü</td>
<td width="24%" align="center" valign="middle" bgcolor="#FFFFFF">
<?
if($co[0]=="2"){
echo number_format($data1[bid_price]);
}else{
if($auctRow->sale_type=="2")echo number_format($auctRow->bid_price);
}
?>
</td>
</tr>
<tr >
<td align="center" valign="middle" bgcolor="#FFFFFF">ÆóÂ÷¸»¼Ò</td>
<td align="center" valign="middle" bgcolor="#FFFFFF">
<?
if($co[0]=="2"){
echo number_format($data2[bid_price]);
}else{
if($auctRow->sale_type=="1")echo number_format($auctRow->bid_price);
}
?>
</td>
</tr>
<?
$i++;
}?>
</table></td>
</tr>
<tr>
<td align="center" > </td>
</tr>
</tbody>
</form>
</table></td>
</tr>
</tbody>
</table> <p><? include "../../inc/page.php";?></p></td>
</tr>
<tr>
<td height="1" bgcolor="#cccccc"></td>
</tr>
</table>
<!-- contents end-->
</td>
</tr>
<div id="btm">
<? include "../inc/btm.html"; ?>
</div>
OHA YOOOO