<?php

	include $_SERVER['DOCUMENT_ROOT'].'/common/lib/comm.php';
	include $_SERVER['DOCUMENT_ROOT'].ADMIN_PATH.'common/auth_chk.php';

?>
<? include("../inc/inc_top.php") ?>
<? include("../inc/inc_header.php") ?>

<?
	$cd_dealer = $_REQUEST["cd_dealer"];

	$sql ="SELECT 
				* 
				FROM dealer_master 
				WHERE cd_dealer='$cd_dealer' AND ds_delind='N'";
	
	$mode = "Add";

	$col=mysql_fetch_array(mysql_query($sql));
	if (!empty($col[cd_dealer])){ 
		$cd_dealer = $col[cd_dealer];
		$cd_dealerid = $col[cd_dealerid];
		$cd_dealer_p = $col[cd_dealer_p];
		$nm_pass = $col[nm_pass];
		$ds_type = $col[ds_type];
		$ds_level = $col[ds_level];
		$nm_company = $col[nm_company];
		$nm_name = $col[nm_name];
		$nm_birth = $col[nm_birth];
		$nm_tel_01 = $col[nm_tel_01];
		$nm_tel_02 = $col[nm_tel_02];
		$nm_tel_03 = $col[nm_tel_03];
		$nm_hp_01 = $col[nm_hp_01];
		$nm_hp_02 = $col[nm_hp_02];
		$nm_hp_03 = $col[nm_hp_03];
		$nm_fax_01 = $col[nm_fax_01];
		$nm_fax_02 = $col[nm_fax_02];
		$nm_fax_03 = $col[nm_fax_03];
		$nm_email = $col[nm_email];
		$nm_zip = $col[nm_zip];
		$nm_addr = $col[nm_addr];
		$nm_addr_sub = $col[nm_addr_sub];
		$nm_etc_01 = $col[nm_etc_01];
		$nm_etc_02 = $col[nm_etc_02];
		$nm_etc_03 = $col[nm_etc_03];
		$ds_status = $col[ds_status];
		$nm_company_biz = $col[nm_company_biz];
		$nm_name_biz = $col[nm_name_biz];
		$nm_no_biz = $col[nm_no_biz];
		$nm_date_biz = $col[nm_date_biz];
		$nm_type_biz = $col[nm_type_biz];
		$nm_condition_biz = $col[nm_condition_biz];
		$nm_tel_biz_01 = $col[nm_tel_biz_01];
		$nm_tel_biz_02 = $col[nm_tel_biz_02];
		$nm_tel_biz_03 = $col[nm_tel_biz_03];
		$nm_hp_biz_01 = $col[nm_hp_biz_01];
		$nm_hp_biz_02 = $col[nm_hp_biz_02];
		$nm_hp_biz_03 = $col[nm_hp_biz_03];
		$nm_fax_biz_01 = $col[nm_fax_biz_01];
		$nm_fax_biz_02 = $col[nm_fax_biz_02];
		$nm_fax_biz_03 = $col[nm_fax_biz_03];
		$nm_email_biz = $col[nm_email_biz];
		$nm_zip_biz = $col[nm_zip_biz];
		$nm_addr_biz = $col[nm_addr_biz];
		$nm_addr_sub_biz = $col[nm_addr_sub_biz];
		$dt_insert = $col[dt_insert];
		$nm_insert = $col[nm_insert];
		$dt_update = $col[dt_update];
		$nm_update = $col[nm_update];
		$ds_delind = $col[ds_delind];
/*
		$arr_nm_info1 = explode("-",$nm_info1);
		if(count($arr_nm_info1) == 3){
			$nm_info11 = $arr_nm_info1[0];
			$nm_info12 = $arr_nm_info1[1];
			$nm_info13 = $arr_nm_info1[2];
		}else{
			$nm_info11 = "";
			$nm_info12 = "";
			$nm_info13 = "";
		}

		$arr_nm_info3 = explode("@",$nm_info3);
		if(count($arr_nm_info3) == 2){
			$nm_info31 = $arr_nm_info3[0];
			$nm_info32 = $arr_nm_info3[1];
		}else{
			$nm_info31 = "";
			$nm_info32 = "";
		}
		$nm_info3 = $col[nm_info3];
*/
		$mode = "Update";
	}else{
		$ds_level = "1";
	}

?>

<section id="contents">
	<h2>입찰대기 리스트</h2>

	<table class="tbl_search">
		<colgroup>
			<col width="10%">
			<col width="*">
		</colgroup>
		<tr>
			<th>검색어</th>
			<td>
				<span class="select2" style="margin-right:5px;width:100px;">
					<select>
						<option value=""></option>
					</select>
				</span>
				<input type="text" class="inp_txt" style="width:60%;">
			</td>
		</tr>
		<tr>
			<th>회원구분</th>
			<td>
				<div class="radio_chk">
					<span class="check_wrap"><input type="radio" name="radiobutton" id="radio1"><i></i><label for="radio1">전체</label></span>
					<span class="check_wrap"><input type="radio" name="radiobutton" id="radio2"><i></i><label for="radio2">개인회원</label></span>
					<span class="check_wrap"><input type="radio" name="radiobutton" id="radio3"><i></i><label for="radio3">사업자회원</label></span>
					<span class="check_wrap"><input type="radio" name="radiobutton" id="radio4"><i></i><label for="radio4">비회원</label></span>
				</div>
				<input type="submit" class="rnd_btn ty3 gray" value="검색" title="검색">
			</td>
		</tr>
	</table>

	<div class="tbl_wrap">
		<table class="tbl_list ty2">
			<colgroup>
				<col width="7%">
				<col width="11%">
				<col width="*">
				<col width="9%">
				<col width="11%">
				<col width="8%">
				<col width="8%">
				<col width="9%">
				<col width="9%">
				<col width="13%">
			</colgroup>
			<thead>
			<tr>
				<th>번호</th>
				<th>판매자</th>
				<th>차종</th>
				<th>차량번호</th>
				<th>주행거리</th>
				<th>색상</th>
				<th>변속기</th>
				<th>판매지역</th>
				<th>판매상태</th>
				<th>등록일</th>
			</tr>
			</thead>
			<tr>
				<td>10</td>
				<td>이도령</td>
				<td>벤츠 c-class</td>
				<td>23부1234</td>
				<td>80,000km</td>
				<td>검정</td>
				<td>오토</td>
				<td>서울</td>
				<td><em class="txt_bold">승인대기</em></td>
				<td>2018.09.10</td>
			</tr>
			<tr>
				<td>9</td>
				<td>이도령</td>
				<td>벤츠 c-class</td>
				<td>23부1234</td>
				<td>80,000km</td>
				<td>검정</td>
				<td>오토</td>
				<td>서울</td>
				<td><em class="txt_blue">입찰중</em></td>
				<td>2018.09.10</td>
			</tr>
			<tr>
				<td>8</td>
				<td>이도령</td>
				<td>벤츠 c-class</td>
				<td>23부1234</td>
				<td>80,000km</td>
				<td>검정</td>
				<td>오토</td>
				<td>서울</td>
				<td><em class="txt_blue">입찰중</em></td>
				<td>2018.09.10</td>
			</tr>
			<tr>
				<td>7</td>
				<td>이도령</td>
				<td>벤츠 c-class</td>
				<td>23부1234</td>
				<td>80,000km</td>
				<td>검정</td>
				<td>오토</td>
				<td>서울</td>
				<td><em class="txt_blue">입찰중</em></td>
				<td>2018.09.10</td>
			</tr>
			<tr>
				<td>6</td>
				<td>이도령</td>
				<td>벤츠 c-class</td>
				<td>23부1234</td>
				<td>80,000km</td>
				<td>검정</td>
				<td>오토</td>
				<td>서울</td>
				<td><em class="txt_blue">입찰중</em></td>
				<td>2018.09.10</td>
			</tr>
			<tr>
				<td>5</td>
				<td>이도령</td>
				<td>벤츠 c-class</td>
				<td>23부1234</td>
				<td>80,000km</td>
				<td>검정</td>
				<td>오토</td>
				<td>서울</td>
				<td><em class="txt_blue">입찰중</em></td>
				<td>2018.09.10</td>
			</tr>
			<tr>
				<td>4</td>
				<td>이도령</td>
				<td>벤츠 c-class</td>
				<td>23부1234</td>
				<td>80,000km</td>
				<td>검정</td>
				<td>오토</td>
				<td>서울</td>
				<td><em class="txt_blue">입찰중</em></td>
				<td>2018.09.10</td>
			</tr>
			<tr>
				<td>3</td>
				<td>이도령</td>
				<td>벤츠 c-class</td>
				<td>23부1234</td>
				<td>80,000km</td>
				<td>검정</td>
				<td>오토</td>
				<td>서울</td>
				<td><em class="txt_blue">입찰중</em></td>
				<td>2018.09.10</td>
			</tr>
			<tr>
				<td>2</td>
				<td>이도령</td>
				<td>벤츠 c-class</td>
				<td>23부1234</td>
				<td>80,000km</td>
				<td>검정</td>
				<td>오토</td>
				<td>서울</td>
				<td><em class="txt_blue">입찰중</em></td>
				<td>2018.09.10</td>
			</tr>
			<tr>
				<td>1</td>
				<td>이도령</td>
				<td>벤츠 c-class</td>
				<td>23부1234</td>
				<td>80,000km</td>
				<td>검정</td>
				<td>오토</td>
				<td>서울</td>
				<td><em class="txt_blue">입찰중</em></td>
				<td>2018.09.10</td>
			</tr>
		</table>
	</div>

	<div class="paging">
		<span>
			<a href="#" class="first">맨처음</a>
			<a href="#" class="prev">이전</a>
		</span>
		<strong>1</strong>
		<a href="#">2</a>
		<a href="#">3</a>
		<a href="#">4</a>
		<a href="#">5</a>
		<span>
			<a href="#" class="next">다음</a>
			<a href="#" class="last">맨마지막</a>
		</span>
	</div>
</section>

<? include("../inc/inc_footer.php") ?>
<? include("../inc/inc_bottom.php") ?>
<?
mysql_close($connect);
?>
