<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

$all_width   = "98%";

$main_width  = $all_width;

$cart_skin_url    = "{$g4[path]}/skin/cart/basic";
$shop_home        = "{$g4[path]}/shop.php";
$url_home         = "{$g4[path]}/bbs/board.php?bo_table=shopping";



?>
<script language="JavaScript">

function cart_action(se_01,se_02) {
    var f = document.head_list;

    if(se_01){
	var act = "?order="+se_01;
	}
	else{
     act = '';
	}

    f.action = g4_path+"/cate/"+se_02+act;
    f.submit();
}

function cart_action2(se_01,se_02,se_03,se_04) {
    var f = document.head_list;

    if(se_01){

		if(se_03){
         var act = "?order="+se_01+"&val="+se_03+"&act="+se_04;
		}
		else{
         var act = "?order="+se_01;
		}
	
	}
	else{
     act = '';
	}

    f.action = g4_path+"/cate/"+se_02+act;
    f.submit();
}

</script>


    <form name="head_list" method="post" style="margin:0px;">
    <table width="100%" border="0" align="center" cellpadding=0 cellspacing=0>
    <tr>
	  <td width="30"></td>
      <td><a href="javascript:cart_action('','cart.php');">장바구니</a></td>
      <td><a href="javascript:cart_action('my_order','cart.php');">주문대기</a></td>
      <td><a href="javascript:cart_action('order','cart.php');">결제하기</a></td>
      <td><a href="javascript:cart_action('category','cart.php');">분류관리</a></td>
      <td><a href="javascript:cart_action('config','r_shop.php');">입점관리</a></td>
      <td><a href="javascript:cart_action('order_creat','cart.php');">입점신청</a></td>
      <td><a href="javascript:cart_action2('config','r_shop.php');">주문관리</a></td>
      <td><a href="javascript:cart_action2('product','r_shop.php');">제품관리</a></td>
      <td><a href="javascript:cart_action2('member','r_shop.php');">입점사정보</a></td>
      <td><a href="javascript:cart_action2('qna','r_shop.php');">주문정보</a></td>
      <td></td>
    </tr>
    </table>
    </form>
	<br>


     <table border="0" align="center" cellpadding=0 cellspacing=0>
	 <tr><td height="10"></td></tr>
	 <tr><td align="center" ><a href="<?=$g4[path]?>/cate/r_shop.php?order=<?=$order?>"><b><?=$order?></b></a></td></tr>
	 <tr><td height="10"></td></tr>	 
	 <tr>
	 <!--------sub menu ------->
	 <?
	 switch($order){

		 case 'config':
		 {?><td style='padding-left:5px; height:25px;'>· <a href="javascript:cart_action2('config','r_shop.php','1');">결재대기</a></td>
             <td width=10></td>
			 <td style='padding-left:5px; height:25px;'>· <a href="javascript:cart_action2('config','r_shop.php','2');">결재완료</a></td>
			 <td width=10></td>
			<td style='padding-left:5px; height:25px;'>· <a href="javascript:cart_action2('config','r_shop.php','3');">취소완료</a></td>
			<td width=10></td>
			<td style='padding-left:5px; height:25px;'>· <a href="javascript:cart_action2('config','r_shop.php','4');">반품완료</a></td>
			<td width=10></td>
			<td style='padding-left:5px; height:25px;'>· <a href="javascript:cart_action2('config','r_shop.php','5');">완료상품</a></td>

		 <?}

			 break;


		 case 'product':
		 {?><td style='padding-left:5px; height:25px;'>· <a href="javascript:cart_action2('product','r_shop.php','');">전체목록</a></td>
		    <td width=10></td>
			<td style='padding-left:5px; height:25px;'>· <a href="javascript:cart_action2('product','r_shop.php','2','100');">재고부족</a></td>
			<td width=10></td>
			<td style='padding-left:5px; height:25px;'>· <a href="javascript:cart_action2('product','r_shop.php','3');">행사상품</a></td>

		 <?}

			 break;

	     default:
              ;
	         break;

	 }

	 ?>	 
	 <!------//sub menu ------->	 
	 </tr>
	 </table>
     <br>

	<!--------------하위메뉴를 출력------>
	<?if(!$order){?>
	<table width="100%" border="0" align="center" cellpadding=0 cellspacing=0>
	<tr><td height="5" ></td></tr>
	<tr><td align="left">&nbsp;&nbsp; <?  echo sub_cate_name($cart_table[cart_category],$cart_id,$order); //경로?></td></tr>
	<tr><td height="5"  ></td></tr>
	<tr><td><?=cart_menu("basic_sub",$cart_table[cart_category],$bo_table, $cart_id, $options="" , $options2=""); //스킨명, 분류테이블, 옵션1, 옵션2 ?>
	    </td></tr>
	<tr><td height="5" ></td></tr>
	</table>
	<?}?>
	<!------------//하위메뉴를 출력------>