<header>
	<div id="header">
		<h1><img src="<?=ADMIN_PATH?>img/logo.png" alt="upro" /></h1>
		<nav>
			<ul>
	<? if($_SESSION["admin_auth1"]=="Y"){ ?>
				<li><a href="<?=ADMIN_PATH?>admin/admin_list.php">관리자 관리</a>
					<ul>
	<!--? if($m2=="1"){ ?-->
						<li><a href="<?=ADMIN_PATH?>admin/admin_list.php">관리자 관리</a></li>
						<!-- <li><a href="<?=ADMIN_PATH?>admin/commission_setting.php">수수료 관리</a></li> -->
					</ul>
				</li>
	<? }else{ ?>
				<li style="width:0px">
					<ul>
						<li></li>
					</ul>
				</li>
	<? } ?>
	<? if($_SESSION["admin_auth2"]=="Y"){ ?>
				<li><a href="<?=ADMIN_PATH?>car/brand.php">차량관리</a>
					<ul>
						<li><a href="<?=ADMIN_PATH?>car/brand.php">제조사</a></li>
						<li><a href="<?=ADMIN_PATH?>car/model.php">모델</a></li>
						<!-- <li><a href="<?=ADMIN_PATH?>car/model_sub.php">세부모델</a></li>
						<li><a href="<?=ADMIN_PATH?>car/grade.php">등급</a></li> -->
					</ul>
				</li>
	<? }else{ ?>
				<li style="width:0px">
					<ul>
						<li></li>
					</ul>
				</li>
	<? } ?>
	<? if($_SESSION["admin_auth3"]=="Y"){ ?>
				<li><a href="<?=ADMIN_PATH?>member/member.php">회원</a>
					<ul>
						<li><a href="<?=ADMIN_PATH?>member/member.php">일반회원 관리</a></li>
						<li><a href="<?=ADMIN_PATH?>member/aap.php">딜러 / AAP 관리</a></li>
						<li><a href="<?=ADMIN_PATH?>member/sa.php">SA 관리</a></li>
						<li><a href="<?=ADMIN_PATH?>member/dormant.php">휴면회원</a></li>
						<li><a href="<?=ADMIN_PATH?>member/member_withdrawal.php">회원탈퇴</a></li>
						<li><a href="<?=ADMIN_PATH?>member/sa_withdrawal.php">SA탈퇴</a></li>
						<li><a href="<?=ADMIN_PATH?>member/aap_withdrawal.php">AAP탈퇴</a></li>
						<!-- /삭제관리 -->
					</ul>
				</li>
	<? }else{ ?>
				<li style="width:0px">
					<ul>
						<li></li>
					</ul>
				</li>
	<? } ?>
	<? if($_SESSION["admin_auth4"]=="Y"){ ?>
				<li><a href="<?=ADMIN_PATH?>buy/standby_list.php">매입</a>
					<!--ul>
						<li><a href="<?=ADMIN_PATH?>buy/buy_list.php">매입통합 리스트</a></li>
						<li><a href="<?=ADMIN_PATH?>buy/standby_list.php">입찰대기 리스트</a></li>
						<li><a href="<?=ADMIN_PATH?>buy/prepare_list.php">입찰중 리스트</a></li>
						<li><a href="<?=ADMIN_PATH?>buy/complete_list.php">입찰완료 리스트</a></li>
						<li><a href="<?=ADMIN_PATH?>buy/underway_list.php">거래중 리스트</a></li>
						<li><a href="<?=ADMIN_PATH?>buy/mistake_list.php">견적실수 리스트</a></li>
						<li><a href="<?=ADMIN_PATH?>buy/delay_list.php">거래연기 리스트</a></li>
						<li><a href="<?=ADMIN_PATH?>buy/fail_list.php">거래실패 리스트</a></li>
						<li><a href="<?=ADMIN_PATH?>buy/end_list.php">거래완료 리스트</a></li>
					</ul-->
					<ul>
						<li><a href="<?=ADMIN_PATH?>buy/standby_list.php">입찰대기</a></li>
						<li><a href="<?=ADMIN_PATH?>buy/prepare_list.php">입찰중</a></li>
						<li><a href="<?=ADMIN_PATH?>buy/complete_list.php">낙찰(누적)</a></li>
						<li><a href="<?=ADMIN_PATH?>buy/underway_list.php">진행중</a></li>
						<li><a href="<?=ADMIN_PATH?>buy/end_list.php">판매완료</a></li>
                        <li><a href="<?=ADMIN_PATH?>buy/delay_list.php">거래연기 리스트</a></li>
						<li><a href="<?=ADMIN_PATH?>buy/fail_list.php">거래실패 리스트</a></li>
						<li><a href="<?=ADMIN_PATH?>buy/drop_list.php">유찰 리스트</a></li>
						<!-- <li><a href="<?=ADMIN_PATH?>buy/mistake_list.php">견적실수 리스트</a></li> -->

					</ul>
				</li>
	<? }else{ ?>
				<li style="width:0px">
					<ul>
						<li></li>
					</ul>
				</li>
	<? } ?>
	<? if($_SESSION["admin_auth5"]=="Y"){ ?>
				<li><a href="<?=ADMIN_PATH?>purchase/purchase_list.php">정산관리</a>
					<ul>
						<li><a href="<?=ADMIN_PATH?>purchase/purchase_list.php">구매확정</a></li>
					</ul>
				</li>
	<? }else{ ?>
				<li style="width:0px">
					<ul>
						<li></li>
					</ul>
				</li>
	<? } ?>
	<? if($_SESSION["admin_auth6"]=="Y"){ ?>
				<li><a href="<?=ADMIN_PATH?>board/bbs_list.php?cd_board=01">커뮤니티</a>
					<ul>
						<li><a href="<?=ADMIN_PATH?>board/bbs_list.php?cd_board=01">공지사항</a></li>
						<li><a href="<?=ADMIN_PATH?>board/bbs_list.php?cd_board=04">1:1문의</a></li>
						<!-- <li><a href="<?=ADMIN_PATH?>board/bbs_list.php?cd_board=02">1:1문의</a></li> -->
						<li><a href="<?=ADMIN_PATH?>board/bbs_list.php?cd_board=03">자주묻는 질문</a></li>
						<!-- <li><a href="<?=ADMIN_PATH?>board/bbs_list.php?cd_board=04">상담요청</a></li> -->
					</ul>
				</li>
	<? }else{ ?>
				<li style="width:0px">
					<ul>
						<li></li>
					</ul>
				</li>
	<? } ?>
	<? if($_SESSION["admin_auth9"]=="Y"){ ?>
				<li><a href="<?=ADMIN_PATH?>buy/car_history.php">사고정보조회</a>
					<ul>
						<li><a href="<?=ADMIN_PATH?>buy/car_history.php">사고정보조회</a></li>
					</ul>
				</li>
	<? }else{ ?>
				<li style="width:0px">
					<ul>
						<li></li>
					</ul>
				</li>
	<? } ?>
			</ul>
		</nav>
		<div class="area_welcome">
			<p>
				<a href="<?=ADMIN_PATH?>mypage/admin_view.php">정보수정</a>
				<a href="<?=ADMIN_PATH?>admin/admin_proc.php?mode=logoff">로그아웃</a>
			</p>
			<p class="person"><?=$_SESSION['admin_nm_name']?>님 환영합니다.</p>
		</div>
	</div>
</header>
