<div class="main_body">
<!--main_left左侧导航菜单开始-->
<div class="main_left">
	<div class="memc_title"></div>
	<div class="back_home"> <a href="modules.php">{echo: lp{m_personal_home};/}</a> </div>
	<!--点击回到个人中心首页-->
	<div class="menu">
		<div class="menu_title"> <span class="put"><a href="javascript:;" hidefocus="true" title="{echo:lp{m_programa};/}"></a></span> <a class="menuicon" id="buyer" href="javascript:;">{echo: lp{m_buyer};/}</a> </div>
		<div class="menu_li">
			<ul>
				<li><a id="user_cart" onclick="menu_style_change('user_cart')" href="modules.php?app=user_cart">{echo: lp{m_my_cart};/}</a></li>
				<li><a id="user_my_order" onclick="menu_style_change('user_my_order')" href="modules.php?app=user_my_order">{echo: lp{m_my_order};/}</a></li>
				<li><a id="user_group" onclick="menu_style_change('user_group')" href="modules.php?app=user_group">{echo: lp{m_my_groupbuy};/}</a></li>
				<li><a id="user_favorite" onclick="menu_style_change('user_favorite')" href="modules.php?app=user_favorite">{echo: lp{m_my_favorite};/}</a></li>
				<li><a id="user_guestbook" onclick="menu_style_change('user_guestbook')" href="modules.php?app=user_guestbook">{echo: lp{m_my_guestbook};/}</a></li>
				<li><a id="user_address" onclick="menu_style_change('user_address')" href="modules.php?app=user_address">{echo:lp{m_getgoods_address};/}</a></li>
			</ul>
		</div>
		<div class="menu_title"> <span class="put"><a href="javascript:;" hidefocus="true" title="{echo:lp{m_programa};/}"></a></span> <a class="menuicon" id="seller" href="javascript:;">{echo: lp{m_seller};/}</a> </div>
		<div class="menu_li">
			<ul>
				{sta:if(isset($user_privilege[1]) && $user_privilege[1]==1)[exc]}
					{sta:if($shop_exist_flg == 1)[exc]}
						{sta:if($shop_pass_flg ==1)[exc]}
						   {sta:if($shop_lock_flg == 0)[exc]}
								<li style="position:relative"> 
								<a style="_margin-bottom:-18px" id="shop_info" onclick="menu_style_change('shop_info')" href="modules.php?app=shop_info">
									{echo: lp{m_shop_info};/}
								</a>
								<span id="shop_flg" style="position:absolute;width:37px;right:20px;top:4px;_top:3px"> 
								{sta:if($shop_open_flg ==1)[exc]} 
								<label onclick="change_open_status('0')" style="color:red; cursor:pointer; font-weight:normal">
								{echo: lp{m_open};/}
								</label> 
								{sta: } else [exc]} 
								<label  onclick="change_open_status('1')" style="color:red; cursor:pointer; font-weight:normal">{echo: lp{m_close};/}</label> 
								{end:if/} </span> </li>
								<li>
								<a href="{echo:shop_url($shop_id);/}" target="_blank">{echo: lp{m_shop_view};/}</a>
								</li>
								<!-- <li><a href="modules.php?app=shop_honor">{echo: lp{m_shop_honor};/}</a></li> -->
								<li>
								<a id="shop_category" onclick="menu_style_change('shop_category')" href="modules.php?app=shop_category">{echo: lp{m_shop_category};/}</a></li>
								<li>
								<a id="goods_list" onclick="menu_style_change('goods_list')" href="modules.php?app=goods_list">{echo: lp{m_goods_list};/}</a>
								</li>
								<!-- <li><a id="goods_add" onclick="menu_style_change('goods_add')" href="modules.php?app=goods_add">{echo: lp{m_add_newgoods};/}</a></li> -->
								<li>
								<a id="groupbuy_list" onclick="menu_style_change('groupbuy_list')" href="modules.php?app=groupbuy_list">
								{echo: lp{m_groupbuy_list};/}</a>
								</li>
								<!--<li><a id="groupbuy_add" onclick="menu_style_change('groupbuy_add')" href="modules.php?app=groupbuy_add">{echo: lp{m_add_groupbuy};/}</a></li>-->
								<!--<li><a id="csv_export" onclick="menu_style_change('csv_export')" href="modules.php?app=csv_export">{echo: lp{m_csv_export};/}</a></li>
										<li><a id="csv_import" onclick="menu_style_change('csv_import')" href="modules.php?app=csv_import">{echo: lp{m_csv_import};/}</a></li>-->
								<li>
								<a id="shop_my_order" onclick="menu_style_change('shop_my_order')" href="modules.php?app=shop_my_order">
								{echo: lp{m_rc_order};/}({echo: $get_order_num;/}){sta:if($get_order_num>0)[exc]}
								<img src="skin/{echo:$SYSINFO['templates'];/}/images/woo.gif" width="21" height="12" />{end:if/}
								</a>
								</li>
								<li>
								<a id="shop_guestbook" style="_padding-top:5px;_margin-bottom:-5px" onclick="menu_style_change('shop_guestbook')" href="modules.php?app=shop_guestbook">
								{echo: lp{m_rc_guestbook};/}({echo: $shop_guestbook_num;/}){sta:if($shop_guestbook_num>0)[exc]}
								<img src="skin/{echo:$SYSINFO['templates'];/}/images/woo.gif" width="21" height="12" />{end:if/}
								</a>
								</li>
								<li>
								<a id="shop_askprice" onclick="menu_style_change('shop_askprice')" href="modules.php?app=shop_askprice">
								{echo: lp{m_rc_askprice};/}({echo:$shop_inquiry_num;/}){sta:if($shop_inquiry_num>0)[exc]}
								<img src="skin/{echo:$SYSINFO['templates'];/}/images/woo.gif" width="21" height="12" />
								{end:if/}
								</a>
								</li>
								<li><a id="shop_notice" onclick="menu_style_change('shop_notice')" href="modules.php?app=shop_notice">{echo: lp{m_shop_notice};/}</a></li>
								<!-- <li><a href="modules.php?app=shop_news">{echo: lp{m_shopnews_manage};/}</a></li> -->
								<!-- <li><a href="modules.php?app=shop_news_add">{echo: lp{m_add_shopnews};/}</a></li> -->
								<li>
								<a id="shop_payment" onclick="menu_style_change('shop_payment')" href="modules.php?app=shop_payment">
								{echo: lp{m_payment_setting};/}
								</a>
								</li>
								<li>
								<a id="shop_receiv_list" onclick="menu_style_change('shop_receiv_list')" href="modules.php?app=shop_receiv_list">
								收款单
								</a>
								</li>
								<li>
								<a id="shop_shipping_list" onclick="menu_style_change('shop_shipping_list')" href="modules.php?app=shop_shipping_list">
								发货单
								</a>
								</li>
								<li>
								<a id="shop_refund_list" onclick="menu_style_change('shop_refund_list')" href="modules.php?app=shop_refund_list">
								退款单
								</a>
								</li>
							{sta: } else [exc]}
								<li><a href="">{echo: lp{m_shop_lock};/}</a></li>
							{end:if/}
						{sta: } else [exc]}
							<li><a href="">{echo: lp{m_shop_pass};/}</a></li>
						{end:if/}
					{sta: } else [exc]}
						{sta:if($user_privilege[1]==1)[exc]}
							<li><a id="shop_request" onclick="menu_style_change('shop_request')" href="modules.php?app=shop_request" style="color:#1E88C0">{echo:lp{m_reg_com_user};/}</a></li>
						{end:if/}
					{end:if/}
				{sta: } else [exc]}
					{sta:if($user_rank<2)[exc]}
						<li><a id="shop_request" onclick="menu_style_change('shop_request')" href="modules.php?app=shop_request" style="color:#1E88C0">{echo:lp{m_reg_com_user};/}</a></li>
					{end:if/}
				{end:if/}
			</ul>
		</div>
		<div class="menu_title"> <span class="put"><a href="javascript:;" hidefocus="true" title="{echo:lp{m_programa};/}"></a></span> <a class="menuicon" name="shoprate_manage" id="comment" href="javascript:;">{echo: lp{m_shoprate_manage};/}</a> </div>
		<div class="menu_li">
			<ul>
				<li><a id="shop_rate_buyer" onclick="menu_style_change('shop_rate_buyer')" href="modules.php?app=shop_rate&t=buyer">{echo: lp{m_shoprate_frombuyer};/}</a></li>
				<li><a id="shop_rate_seller" onclick="menu_style_change('shop_rate_seller')" href="modules.php?app=shop_rate&t=seller">{echo: lp{m_shoprate_fromseller};/}</a></li>
				<li><a id="shop_rate_bymain" onclick="menu_style_change('shop_rate_bymain')" href="modules.php?app=shop_rate&t=bymain">{echo: lp{m_shoprate_topep};/}</a></li>
			</ul>
		</div>
		<div class="menu_title"> <span class="put"><a href="javascript:;" hidefocus="true" title="{echo:lp{m_programa};/}"></a></span> <a class="menuicon" name="base_setting" id="option" href="javascript:;">{echo: lp{m_base_setting};/}</a> </div>
		<div class="menu_li">
			<ul>
				<li><a id="user_profile" onclick="menu_style_change('user_profile')" href="modules.php?app=user_profile">{echo: lp{m_profile};/}</a></li>
				{sta:if($my_shop_info_num>0)[exc]}
				<li><a id="user_remind" onclick="menu_style_change('user_remind')" href="modules.php?app=user_remind">{echo: lp{m_remind_setting};/}</a></li>
				<li><a id="user_remind_info" onclick="menu_style_change('user_remind_info')" href="modules.php?app=user_remind_info">{echo: lp{m_my_remind};/}</a></li>
				{end:if/}
				{sta:if($im_enable)[exc]}
				<li><a href="modules.php?app=user_ico">{echo: lp{m_userico_setting};/}</a></li>
				{end:if/}
				<li><a id="user_passwd" onclick="menu_style_change('user_passwd')" href="modules.php?app=user_passwd">{echo: lp{m_edit_password};/}</a></li>
				<li><a href="do.php?act=logout">{echo: lp{m_logout};/}</a></li>
			</ul>
		</div>
		<!-- plugins !-->
		<div id="user_menu_buttun"> {echo:isset($plugins['user_menu_buttun'])?show_plugins($plugins['user_menu_buttun']):'';/} </div>
		<!-- plugins !-->
	</div>
	<!--menu结束-->
</div>
<script language="JavaScript" src="servtools/ajax_client/ajax.js"></script>
<script language="JavaScript">
<!--
function change_open_status(flg) {
	if(flg==1){
		var open=confirm('{echo: lp{m_open_message};/}');

		if (open){
			ajax("do.php?act=shop_open_flg","POST","value="+flg,function(return_text){
				return_text = return_text.replace(/[\n\r]/g,"");
				document.getElementById("shop_flg").innerHTML = return_text;
			});
		}
	}else {
		ajax("do.php?act=shop_open_flg","POST","value="+flg,function(return_text){
			return_text = return_text.replace(/[\n\r]/g,"");
			document.getElementById("shop_flg").innerHTML = return_text;
		});
	}
}
function menu_style_change(flg) {
	document.getElementById(flg).className="current";
}
//-->
</script>
