<?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>

	<div class="tbl_wrap">
		<table class="tbl_list2 ty2">
			<colgroup>
				<col width="12%">
				<col width="38%">
				<col width="12%">
				<col width="38%">
			</colgroup>
			<tr>
				<th>이름</th>
				<td>홍길동</td>
				<th>회원</th>
				<td>비회원</td>
			</tr>
			<tr>
				<th>연락처</th>
				<td>010-1234-5678</td>
				<th>아이디</th>
				<td>jgfgjdjdlgkfjglk</td>
			</tr>
			<tr>
				<th>주소</th>
				<td>서울시 마포구 서교동</td>
				<th>판매지역</th>
				<td>서울</td>
			</tr>
			<tr>
				<th>차량번호</th>
				<td>28부5708</td>
				<th>제조사</th>
				<td>링컨</td>
			</tr>
			<tr>
				<th>모델</th>
				<td>MKX</td>
				<th>세부모델</th>
				<td>뉴MKX(10년~15년)</td>
			</tr>
			<tr>
				<th>등급</th>
				<td>3.7awd</td>
				<th>연식(최초등록일)</th>
				<td>2013년10월</td>
			</tr>
			<tr>
				<th>형식연도</th>
				<td>2013년</td>
				<th>배기량</th>
				<td>3700cc</td>
			</tr>
			<tr>
				<th>변속기</th>
				<td>오토</td>
				<th>연료</th>
				<td>가솔린</td>
			</tr>
			<tr>
				<th>색상</th>
				<td>검정</td>
				<th>주행거리</th>
				<td>78,012km</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>
					</div>
				</td>
				<th>추천인</th>
				<td>없음</td>
			</tr>
			<tr>
				<th>옵션</th>
				<td colspan="3">썬루프, 네비게이션, 통풍시트</td>
			</tr>
			<tr>
				<th>필수사진</th>
				<td colspan="3">
					<ul class="photo_list">
						<li>
							<img src="/admin/img/@img_car.jpg">
							<span>차량전면</span>
						</li>
						<li>
							<img src="/admin/img/@img_car.jpg">
							<span>차량후면</span>
						</li>
						<li>
							<img src="/admin/img/@img_car.jpg">
							<span>운전석 측면</span>
						</li>
						<li>
							<img src="/admin/img/@img_car.jpg">
							<span>조수석 측면</span>
						</li>
						<li>
							<img src="/admin/img/@img_car.jpg">
							<span>계기판</span>
						</li>
					</ul>
				</td>
			</tr>
			<tr>
				<th>추가사진</th>
				<td colspan="3">
					<ul class="photo_list">
						<li><img src="/admin/img/@img_car.jpg"></li>
						<li><img src="/admin/img/@img_car.jpg"></li>
					</ul>
				</td>
			</tr>
		</table>
	</div>

	<div class="btn_right">
		<a href="#" class="rnd_btn ty2 blue" style="width:105px;" onclick="viewPopup('history');return false;">보험처리이력</a>
		<a href="#" class="rnd_btn ty2 gray">승인</a>
		<a href="#" class="rnd_btn ty2 black" onclick="viewPopup('return');return false;">반려</a>
	</div>

	<!-- layer popup1 -->
	<div class="layer_popup history_popup">
		<div class="close">팝업닫기</div>
		<h3>중고차 보험처리 이력정보 보고서</h3>
		<div class="scr_cont">
			<h4>중고차 사고이력 요약 정보</h4>
			<table class="tbl_data">
				<colgroup>
					<col width="35%">
					<col width="*">
				</colgroup>
				<tr>
					<th>자동차 일반사양</th>
					<td><input type="text" class="inp_txt" style="width:98%;" value="BMW420dxDriveGranCoupe"></td>
				</tr>
				<tr>
					<th>자동차 용도이력</th>
					<td><input type="text" class="inp_txt" style="width:98%;" value="없음"></td>
				</tr>
				<tr>
					<th>자동차 번호 / 소유자 변경횟수</th>
					<td><input type="text" class="inp_txt" style="width:80px;" value="0"> 회 / <input type="text" class="inp_txt" style="width:80px;" value="1"> 회</td>
				</tr>
				<tr>
					<th>자동차보험 특수 사고이력(전손, 침수, 도난)</th>
					<td>전손 : <input type="text" class="inp_txt" style="width:80px;" value="0">, 도난 : <input type="text" class="inp_txt" style="width:80px;" value="0">, 침수(전손 : <input type="text" class="inp_txt" style="width:80px;" value="0">, 분손 : <input type="text" class="inp_txt" style="width:80px;" value="0"> )</td>
				</tr>
				<tr>
					<th>보험사고이력(내차 피해)</th>
					<td><input type="text" class="inp_txt" style="width:80px;" value="0"> 회, <input type="text" class="inp_txt" style="width:150px;" value="0"> 원</td>
				</tr>
				<tr>
					<th>보험사고이력(타차 피해)</th>
					<td><input type="text" class="inp_txt" style="width:80px;" value="0"> 회, <input type="text" class="inp_txt" style="width:150px;" value="0"> 원</td>
				</tr>
			</table>
			<p class="notice01">자동차보험 사고기록이 없었다고 해서 반드시 무사고라고 할 수는 없습니다.</p>

			<h5>1. 자동차 용도 이력정보</h5>
			<table class="tbl_data">
				<colgroup>
					<col width="35%">
					<col width="*">
				</colgroup>
				<tr>
					<th>대여용도 사용이력(렌터카)</th>
					<td><input type="text" class="inp_txt" style="width:290px;" value="없음"></td>
				</tr>
				<tr>
					<th>영업용도 사용이력</th>
					<td><input type="text" class="inp_txt" style="width:290px;" value="없음"></td>
				</tr>
				<tr>
					<th>관용용도 사용이력</th>
					<td><input type="text" class="inp_txt" style="width:290px;" value="없음"></td>
				</tr>
			</table>
			<p class="notice02">과거 자동차번호 변경기록을 모두 검색하여 제공하는 것으로 대여용(렌트카), 영업용(택시 등)으로 사용된 적이 있는지 확인할 수 있습니다.</p>

			<h5>2. 자동차보험 특수 사고 이력 정보</h5>
			<table class="tbl_data">
				<colgroup>
					<col width="35%">
					<col width="*">
				</colgroup>
				<tr>
					<th>전손 보험사고</th>
					<td><input type="text" class="inp_txt" style="width:290px;" value="없음"></td>
				</tr>
				<tr>
					<th>침수 보험사고</th>
					<td><input type="text" class="inp_txt" style="width:290px;" value="없음"></td>
				</tr>
				<tr>
					<th>도난 보험사고</th>
					<td><input type="text" class="inp_txt" style="width:290px;" value="없음"></td>
				</tr>
			</table>
		</div>
		<div class="btn_center">
			<a href="#" class="rnd_btn ty2 black">등록</a>
		</div>
	</div>
	<!-- // layer popup1 -->

	<!-- layer popup2 -->
	<div class="layer_popup return_popup">
		<div class="close">팝업닫기</div>
		<div class="tit">반려사유</div>
		<div class="cont">
			<p class="return_msg">조수석 사진이 미흡합니다.<br>다시 입력해주세요</p>
		</div>
		<div class="btn_center">
			<a href="#" class="rnd_btn ty2 black">전송</a>
		</div>
	</div>
	<!-- // layer popup2 -->
</section>

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