<?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">
	<div class="area_title">
		<h2>연료</h2>
	</div>
	<div class="tbl_wrap">
		<table class="tbl_list ty2">
			<colgroup>
				<col width="7%">
				<col width="*">
				<col width="13%">
			</colgroup>
			<thead>
			<tr>
				<th>번호</th>
				<th>연료</th>
				<th>정보수정</th>
			</tr>
			</thead>
			<tr>
				<td>10</td>
				<td>가솔린</td>
				<td><a href="#" class="rnd_s_btn" onclick="viewPopup('modify');return false;">수정</a></td>
			</tr>
			<tr>
				<td>9</td>
				<td>디젤</td>
				<td><a href="#" class="rnd_s_btn" onclick="viewPopup('modify');return false;">수정</a></td>
			</tr>
			<tr>
				<td>8</td>
				<td>LPG</td>
				<td><a href="#" class="rnd_s_btn" onclick="viewPopup('modify');return false;">수정</a></td>
			</tr>
			<tr>
				<td>7</td>
				<td>가솔린</td>
				<td><a href="#" class="rnd_s_btn" onclick="viewPopup('modify');return false;">수정</a></td>
			</tr>
			<tr>
				<td>6</td>
				<td>디젤</td>
				<td><a href="#" class="rnd_s_btn" onclick="viewPopup('modify');return false;">수정</a></td>
			</tr>
			<tr>
				<td>5</td>
				<td>LPG</td>
				<td><a href="#" class="rnd_s_btn" onclick="viewPopup('modify');return false;">수정</a></td>
			</tr>
			<tr>
				<td>4</td>
				<td>가솔린</td>
				<td><a href="#" class="rnd_s_btn" onclick="viewPopup('modify');return false;">수정</a></td>
			</tr>
			<tr>
				<td>3</td>
				<td>디젤</td>
				<td><a href="#" class="rnd_s_btn" onclick="viewPopup('modify');return false;">수정</a></td>
			</tr>
			<tr>
				<td>2</td>
				<td>LPG</td>
				<td><a href="#" class="rnd_s_btn" onclick="viewPopup('modify');return false;">수정</a></td>
			</tr>
			<tr>
				<td>1</td>
				<td>가솔린</td>
				<td><a href="#" class="rnd_s_btn" onclick="viewPopup('modify');return false;">수정</a></td>
			</tr>
		</table>
	</div>

	<!-- layer popup -->
	<div class="layer_popup modify_popup">
		<div class="close">팝업닫기</div>
		<div class="cont2">
			<table class="tbl_list2" style="width:460px;">
				<colgroup>
					<col width="20%">
					<col width="*">
				</colgroup>
				<tr>
					<th>연료</th>
					<td><input type="text" class="inp_txt" style="width:320px;" value="가솔린"></td>
				</tr>
			</table>
			<div class="btn_center">
				<a href="#" class="rnd_btn ty2 gray">수정</a>
				<a href="#" class="rnd_btn ty2 black">삭제</a>
			</div>
		</div>
	</div>
	<!-- // layer popup -->

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

	<div class="btn_right">
		<a href="#" class="rnd_btn gray">+ 등급 등록</a>
	</div>
</section>

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