MINI MINI MANI MO

Path : /home/lhcar/www/mobile/mypage/
File Upload :
Current File : /home/lhcar/www/mobile/mypage/sub03.php

<?
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>
<script>
function auctionView_pubauct(a,b,c){
	if(b=="2"){
		if(c=="2"){
			location.href="/sub01_view.php?idx="+a;
		}
		if(c=="4"){
			location.href="/sub01_view.php?idx="+a;
		}
		if(c=="3"){
			location.href="/sub01_view.php?idx="+a;
		}
		if(c=="5"){
			location.href="/sub01_view.php?idx="+a;
		}
	}
	if(b=="3"){
		if(c=="3"){
			location.href="/sub01_view.php?idx="+a;
		}
		if(c=="5"){
			location.href="/sub01_view.php?idx="+a;
		}
	}
}
</script>
</head>
<div id="top">
<? include "../inc/sub_top.html"; ?>
</div>

<tr>	
			<td>
					<!-- bar start-->
					<!--table id="bar"  width="100%"  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">&nbsp;</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">
																	<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="#000000">ÀÔÂûÇöȲ</font></a> | <a href="/mypage/sub05.php"><font color="#000000">³«ÂûÇöȲ</font></a> | <a href="/mypage/sub03.php"><font color="#ff0000">°ü½ÉÂ÷·®</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%" border="0" cellspacing="0" cellpadding="0">
                                                      <tr>
                                                        <td>1. °æ,°ø¸Å/½ºÆä¼È¸Å¹°Áß °ü½ÉÂ÷·®À¸·Î ¼±ÅÃÇѰÍÀÔ´Ï´Ù<br />
                                                        2. ¿Ï·á/³«Âû°ÇÀº ¸®½ºÆ®¿¡¼­ ÀÚµ¿»èÁ¦µË´Ï´Ù</td>
                                                      </tr>
                                                    </table></td>
                                                  </tr>
                                                  <tr>
                                                    <td align="center"><table width="97%" class="join_form" bordercolor="#666666" border="1" cellspacing="0" cellpadding="0">
                                                      <!--Ãß°¡ ¿¡·¯-->
                                                      <colgroup>
                                                      <col width="*" />
                                                      <col width="*" />
                                                      </colgroup>
                                                      <tr>
                                                        <th width="16%" height="25" align="center" bgcolor="#CCCCCC" ><strong>no</strong></th>
                                                        <th width="37%" align="center" bgcolor="#CCCCCC"><strong>Â÷·®¸í</strong></th>
                                                        <th width="24%" align="center" bgcolor="#CCCCCC"><strong>±¸ºÐ</strong></th>
                                                        <th width="23%" align="center" bgcolor="#CCCCCC" ><strong>¸Å°¢À¯Çü</strong></th>
                                                      </tr>
<?
$view_article=10;
if(!$page)	 $page=1;
$start=($page-1)*$view_article;

	$query = "select count(*) from  car_zzim as a left join woojung_car as b on a.no=b.wc_idx where a.userid='".$_SESSION[loginId]."' and b.wc_gubun4='2' ";
	$result = mysql_query($query);
	$temp = mysql_fetch_array($result);  
	$total_article = $temp[0]; // ÇöÀç Äõ¸®ÇÑ °Ô½Ã¹°ÀÇ ÃÑ °³¼ö¸¦ ±¸ÇÔ	
		
	$qry = "select * from car_zzim as a left join woojung_car as b on a.no=b.wc_idx where a.userid='".$_SESSION[loginId]."' and b.wc_gubun4='2' order by idx desc LIMIT $start, $view_article ";
	//echo $qry;	
	$auctQuery = $db->query($qry);
	$i=0;
	while($zzim_row = mysql_fetch_object($auctQuery)) {
	
		$num = $total_article-$i-(($page-1)*$view_article);
		$car_sql = "select * from woojung_car as a left join woojung_car_go as b on a.wc_idx = b.wcg_wcidx where a.wc_idx='".$zzim_row->no."'";
		$car_qry = $db->query($car_sql);
		$auctRow=mysql_fetch_object($car_qry);
		
		if(!$auctRow->wc_orderno){
			$car_del = "delete from car_zzim where idx='".$zzim_row->idx."'";
			$db->query($car_del);
		}

		$nacChk=$auctRow->bid_sort; 
		if($nacChk=="Y"){
			$nacPay=number_format($auctRow->bid_price);
		} else {
			$nacPay="";
		}
 ?>
                                                      <tr style="cursor:pointer;" onmouseover="this.bgColor='#d9f3fb'" onmouseout="this.bgColor=''" onclick="auctionView_pubauct('<?=$auctRow->wc_idx?>','<?=$auctRow->wc_gubun2?>','<?=$auctRow->wc_gubun3?>');">
                                                        <td width="16%" height="25" align="center" valign="middle" bgcolor="#FFFFFF"><?=$num?></td>
                                                        <td width="37%" 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="24%" align="center" valign="middle" bgcolor="#FFFFFF"><?=WriteArrHTML('select', 'gubun4', $Arrgubun4, $auctRow->wc_gubun4, '', '' , 'direct' , '')?></td>
                                                        <td width="23%" align="center" valign="middle" bgcolor="#FFFFFF"><?=WriteArrHTML('radio', 'wc_go_type', $ArrgoSale, $auctRow->wc_go_type, '', '' , 'direct', '')?></td>
                                                      </tr>
  <?
			$i++;
		}?>      
                                                    </table></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