<%@ control language="C#" autoeventwireup="true" inherits="HL_Admin_menu, HoWaveVGO" %>
<div id="indextop">
<div id="wrapper">
    <div id="header">
        <div id="logo"><a href="admin_index.aspx"><img alt="VGO Logo" src="images/header_text.gif" border="0" /></a></div>
    </div>
</div>
<table class="menubar" width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td class="menubackgr">
    <div id="myMenuID"></div> 
    <%
        MainMune = "<SCRIPT language=JavaScript type=text/javascript>";
        MainMune += "var myMenu =";
        MainMune += "[";
        MainMune += " [null,'首页','Admin_Main.aspx',null,'控制面板'],";
        MainMune += " _cmSplit,";
        MainMune += " [null,'网站',null,null,'网站管理',";
        if (AdminBLL.CheckBoolAdminPower(0))
        {
            MainMune += "	['<img src=images/themeoffice/config.png />','全局配置','Admin_Config.aspx',null,'网站配置'],";
        }
        else { MainMune += "null,"; }
        if (AdminBLL.CheckBoolAdminPower(8))
        {
            MainMune += "		['<img src=images/themeoffice/language.png />','公告管理','Admin_Announce.aspx',null,'公告管理'],";
        }
        else { MainMune += "null,"; }
        if (AdminBLL.CheckBoolAdminPower(12) || AdminBLL.CheckBoolAdminPower(13) || AdminBLL.CheckBoolAdminPower(14) || AdminBLL.CheckBoolAdminPower(15))
        {
            MainMune += "		['<img src=images/themeoffice/media.png />', '广告管理', null, null, '广告管理',";
            MainMune += "			['<img src=images/themeoffice/search_text.png />','版位管理','Admin_ManageAdZone.aspx',null,'版位管理'],";
            if (AdminBLL.CheckBoolAdminPower(13))
            {
                MainMune += "			['<img src=images/themeoffice/search_text.png />','添加版位','Admin_UpdateAdZone.aspx',null,'添加版位'],";
            }
            else { MainMune += "null,"; }
            MainMune += "			['<img src=images/themeoffice/search_text.png />','广告管理','Admin_ManageAd.aspx',null,'广告管理'],";
            MainMune += "			['<img src=images/themeoffice/search_text.png />','添加广告','Admin_updateAd.aspx',null,'添加广告'],";
            MainMune += "			['<img src=images/themeoffice/search_text.png />','广告JS管理','Admin_ManageJs.aspx',null,'广告JS管理'],";
            MainMune += "			['<img src=images/themeoffice/search_text.png />','上传管理','Admin_ManageUploadFile.aspx',null,'上传管理']";
            MainMune += "		],";
        }
        else { MainMune += "null,"; }
        if (AdminBLL.CheckBoolSuperckAdmin())
        {
            MainMune += "		['<img src=images/themeoffice/backup.png />','数据库区','Admin_BackUpDB.aspx',null,'数据库区']";
        }
        else { MainMune += "null,"; }
        MainMune += "	],";
        MainMune += " _cmSplit,";
        if (AdminBLL.CheckBoolAdminPower(16))
        {
            MainMune += "	[null,'整合',null,null,'整合管理',";
            MainMune += "		['<img src=images/themeoffice/menus.png />','整合频道','Admin_InterfaceManage.aspx',null,'整合频道'],";
            MainMune += "		['<img src=images/themeoffice/preview.png />','后台频道',null,null,'后台频道',";
            MainMune += GetAdminChannel();
            MainMune += "		    ],";
            MainMune += "		['<img src=images/themeoffice/controlpanel.png />','数据同步','Admin_UserSynchron.aspx',null,'数据同步'],";
            MainMune += "		['<img src=images/themeoffice/home.png />','社区银行','Admin_Bank.aspx',null,'社区银行']";
            MainMune += "	],";
            MainMune += "	_cmSplit,";
        }
        MainMune += "	[null,'用户',null,null,'用户管理',";
        if (AdminBLL.CheckBoolAdminPower(20))
        {
            MainMune += "		['<img src=images/themeoffice/users.png />','会员认证区','Admin_ShopUserCheck.aspx',null,'会员认证区'],";
        }
        else { MainMune += "null,"; }
        if (AdminBLL.CheckBoolAdminPower(24))
        {
            MainMune += "		['<img src=images/themeoffice/users_add.png />','通行证管理','Admin_Passport.aspx',null,'通行证管理'],";
        }
        else { MainMune += "null,"; }
        MainMune += "		['<img src=images/themeoffice/user.png />','管理员管理',null,null,'管理员管理',";
        if (AdminBLL.CheckBoolSuperckAdmin())
        {
            MainMune += "			['<img src=images/themeoffice/users.png />','组权限管理','Admin_AdminGroup.aspx',null,'组权限管理'],";
            MainMune += "			['<img src=images/themeoffice/user.png />','管理员管理','Admin_Administrator.aspx',null,'管理员管理'],";
        }
        else
        {
            MainMune += "null,";
        }
        MainMune += "			['<img src=images/themeoffice/edit.png />','密码修改','Admin_AdminPassword.aspx?Admin_ID=" + Admin_ID + "',null,'密码修改']";
        MainMune += "		],";        
        if (AdminBLL.CheckBoolAdminPower(32))
        {
            MainMune += "		_cmSplit,";
            MainMune += "		['<img src=images/themeoffice/messaging.png />','短消息管理','Admin_Message.aspx',null,'短消息管理'],";
        }
        else { MainMune += "null,"; }
        if (AdminBLL.CheckBoolAdminPower(36))
        {
            MainMune += "		['<img src=images/themeoffice/mail.png />','发送邮件区','Admin_Email.aspx',null,'发送邮件区']";
        }
        else { MainMune += "null"; }
        MainMune += "	],";
        MainMune += "	_cmSplit,";
        MainMune += "	[null,'模板',null,null,'模板管理',";
        if (AdminBLL.CheckBoolAdminPower(48))
        {
            MainMune += "		['<img src=images/themeoffice/mainmenu.png />','网站风格管理','Admin_Skin.aspx',null,'网站风格管理'],";
        }
        else { MainMune += "null,"; }
        if (AdminBLL.CheckBoolAdminPower(44))
        {
            MainMune += "		['<img src=images/themeoffice/template.png />','网站模板管理','Admin_ManageTemplate.aspx',null,'网站模板管理'],";
        }
        else { MainMune += "null,"; }
        if (AdminBLL.CheckBoolAdminPower(52))
        {
            MainMune += "		['<img src=images/themeoffice/preview.png />','动态模板管理','Admin_TemplatePageSet.aspx',null,'动态模板页管理'],";
        }
        else { MainMune += "null,"; }
        if (AdminBLL.CheckBoolAdminPower(56))
        {
            MainMune += "		_cmSplit,";
            MainMune += "		['<img src=images/themeoffice/preview.png />','自定义标签区','Admin_Lable.aspx',null,'自定义标签区'],";
        }
        else { MainMune += "null,"; }
        if (AdminBLL.CheckBoolAdminPower(4))
        {
            MainMune += "		['<img src=images/themeoffice/preview.png />','分页标签管理','Admin_PageLable.aspx',null,'分页标签管理'],";
        }
        else { MainMune += "null,"; }
        if (AdminBLL.CheckBoolAdminPower(60))
        {
            MainMune += "		['<img src=images/themeoffice/query.png />','自定义页面区','Admin_ManagePage.aspx',null,'自定义页面区'],";
        }
        else { MainMune += "null,"; }
        if (AdminBLL.CheckBoolAdminPower(40))
        {
            MainMune += "		_cmSplit,";
            MainMune += "		['<img src=images/themeoffice/install.png />','文章模块管理',null, null,'文章模块管理',";
            MainMune += "			['<img src=images/themeoffice/search_text.png />','模块管理','Admin_ShopManageModule.aspx',null,'模块管理'],";
            MainMune += "			['<img src=images/themeoffice/license.png />','文章管理','Admin_ShopIndexArticle.aspx',null,'文章管理']";
        
        MainMune += "		],";
        }
        else { MainMune += "null"; }
        MainMune += "	],";
        MainMune += "	_cmSplit,";
        MainMune += "	[null,'商城',null,null,'商城管理',";
        if (AdminBLL.CheckBoolAdminPower(64))
        {
            MainMune += "		['<img src=images/themeoffice/media.png />','专题管理','Admin_Special.aspx',null,'专题管理'],";
        }
        else { MainMune += "null,"; }
        if (AdminBLL.CheckBoolAdminPower(68))
        {
            MainMune += "		['<img src=images/themeoffice/db.png />','店铺管理','Admin_Shop.aspx',null,'店铺管理'],";
        }
        else { MainMune += "null,"; }
        if (AdminBLL.CheckBoolAdminPower(80))
        {
            MainMune += "		_cmSplit,";
            MainMune += "		['<img src=images/themeoffice/install.png />','商品管理',null, null,'商品管理',";
            MainMune += "			['<img src=images/themeoffice/search_text.png />','商品分类管理','Admin_ShopClass.aspx',null,'商品分类管理'],";
            MainMune += "			['<img src=images/themeoffice/search_text.png />','商品分类统计','Admin_ShopProductClassSum.aspx',null,'商品分类统计'],";
            MainMune += "			['<img src=images/themeoffice/search_text.png />','商城商品管理','Admin_ShopProduct.aspx',null,'商城商品管理']";
            MainMune += "		],";
        }
        else { MainMune += "null,"; }
        if (AdminBLL.CheckBoolAdminPower(84))
        {
            MainMune += "		['<img src=images/themeoffice/license.png />','订单管理',null, null,'订单管理',";
            MainMune += "			['<img src=images/themeoffice/search_text.png />','交易记录管理','Admin_ShopTradeOrder.aspx',null,'交易记录管理'],";
            MainMune += "			['<img src=images/themeoffice/search_text.png />','发货退货记录','Admin_ShopSendOrderView.aspx',null,'发货退货记录'],";
            MainMune += "			['<img src=images/themeoffice/search_text.png />','开发票记录','Admin_ShopInvoiceView.aspx',null,'开发票记录'],";
            MainMune += "			['<img src=images/themeoffice/search_text.png />','在线支付记录','Admin_ShopPayInfoView.aspx',null,'在线支付记录']";
            MainMune += "		],";
        }
        else { MainMune += "null,"; }
        if (AdminBLL.CheckBoolAdminPower(88))
        {
            MainMune += "		['<img src=images/themeoffice/install.png />','销售管理',null, null,'销售管理',";
            MainMune += "			['<img src=images/themeoffice/search_text.png />','销售明细情况','Admin_ShopSaleView.aspx',null,'销售明细情况'],";
            MainMune += "			['<img src=images/themeoffice/search_text.png />','销售统计管理','Admin_ShopSaleOrderView.aspx',null,'销售统计管理'],";
            MainMune += "			['<img src=images/themeoffice/search_text.png />','资金明细查询','Admin_ShopBankrollItemView.aspx',null,'资金明细查询']";
            MainMune += "		],";
        }
        else { MainMune += "null,"; }
        if (AdminBLL.CheckBoolAdminPower(92))
        {
            MainMune += "		_cmSplit,";
            MainMune += "		['<img src=images/themeoffice/install.png />','评价投诉',null, null,'评价投诉',";
            MainMune += "			['<img src=images/themeoffice/search_text.png />','评价管理','Admin_ShopReviewManage.aspx',null,'模块管理'],";
            MainMune += "			['<img src=images/themeoffice/search_text.png />','投诉举报','Admin_ShopComplain.aspx',null,'投诉举报管理']";
            MainMune += "		],";
        }
        else { MainMune += "null,"; }
        if (AdminBLL.CheckBoolAdminPower(72))
        {
            MainMune += "		['<img src=images/themeoffice/messaging_inbox.png />','留言管理','Admin_ShopMessage.aspx',null,'留言管理'],";
        }
        else { MainMune += "null,"; }
        if (AdminBLL.CheckBoolAdminPower(96))
        {
            MainMune += "		['<img src=images/themeoffice/mainmenu.png />','图片管理','Admin_ShopUploadFile.aspx',null,'图片管理']";
        }
        else { MainMune += "null"; }
        MainMune += "	],";
        MainMune += "	_cmSplit,";
        MainMune += "	[null,'系统',null,null,'系统管理',";
        if (AdminBLL.CheckBoolAdminPower(136))
        {
            MainMune += "		['<img src=images/themeoffice/install.png />', '常规配置区', 'Admin_xmlConfig.aspx',null,'常规配置区'],";
        }
        else { MainMune += "null,"; }
        if (AdminBLL.CheckBoolAdminPower(100))
        {
            MainMune += "		['<img src=images/themeoffice/globe3.png />', '地区管理区', 'Admin_ShopCity.aspx',null,'地区管理区'],";
        }
        else { MainMune += "null,"; }
        
        if (AdminBLL.CheckBoolAdminPower(104))
        {
            MainMune += "		_cmSplit,";
            MainMune += "		['<img src=images/themeoffice/content.png />', '充值卡管理', 'Admin_Card.aspx',null,'充值卡管理'],";
        }
        else { MainMune += "null,"; }
        if (AdminBLL.CheckBoolAdminPower(108))
        {
            MainMune += "		['<img src=images/themeoffice/credits.png />', '预付款管理', 'Admin_ShopBuyMoney.aspx',null,'预付款管理'],";
        }
        else { MainMune += "null,"; }
        if (AdminBLL.CheckBoolAdminPower(116))
        {
            MainMune += "		['<img src=images/themeoffice/checkin.png />', '银行帐户区', 'Admin_ShopBank.aspx',null,'银行帐户区'],";
        }
        else { MainMune += "null,"; }
        if (AdminBLL.CheckBoolAdminPower(112))
        {
            MainMune += "		['<img src=images/themeoffice/content.png />', '支付方式区', 'Admin_HowavePayType.aspx',null,'支付方式区'],";
        }
        else { MainMune += "null,"; }
        if (AdminBLL.CheckBoolAdminPower(120))
        {
            MainMune += "		['<img src=images/themeoffice/statistics.png />', '付款方式区', 'Admin_ShopPaymentType.aspx',null,'付款方式区'],";
        }
        else { MainMune += "null,"; }
        if (AdminBLL.CheckBoolAdminPower(124))
        {
            MainMune += "		['<img src=images/themeoffice/sysinfo.png />', '送货方式区', 'Admin_ShopDeliverType.aspx',null,'送货方式区'],";
        }
        else { MainMune += "null,"; }
        
        if (AdminBLL.CheckBoolAdminPower(128))
        {
            MainMune += "		_cmSplit,";
            MainMune += "		['<img src=images/themeoffice/users.png />', '商家会员区', 'Admin_ShopViewVIPCard.aspx',null,'商家会员区'],";
        }
        else { MainMune += "null,"; }
        if (AdminBLL.CheckBoolAdminPower(132))
        {
            MainMune += "		['<img src=images/themeoffice/user.png />', '商家会员等级', 'Admin_ShopVIPCard.aspx',null,'商家会员等级']";
        }
        else { MainMune += "null"; }
        MainMune += "	],";
        MainMune += "	_cmSplit,";
        MainMune += "	[null,'帮助','http://www.vgoshop.net','_blank',null]";
        MainMune += "];";
        MainMune += "cmDraw ('myMenuID', myMenu, 'hbr', cmThemeOffice, 'ThemeOffice');";
        MainMune += "</SCRIPT>";
        Response.Write(MainMune);
        %>
        
    </td>
    <td class="menubackgr">&nbsp;</td>
    <td class="menubackgr" align="right" width="100">
      <div id=wrapper1>
      <div><A style="COLOR: black; TEXT-DECORATION: none" 
      href="#" onclick="MM_linkto('Admin_Message.aspx');">
      <img alt="短消息" src="images/nomail.png" align=middle 
      border="0" /></A></div>
      <div>1 <img alt="在线用户" src="images/users.png" align=middle 
      border="0" /></div></div>
    </td>
    <td class="menubackgr" align=right width=100><a style="font-weight: bold; color: #333333" href="Admin_Logout.aspx" onclick="return confirm('确定要退出吗？')">退出</a> 
        <b><%=Admin_Name %></b>&nbsp;
    </td>
  </tr>
</table>
<table class="menubar" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
    <td class="menudottedline" width="40%">
      <div class="pathway"><a href="admin_index.aspx"><STRONG>首页</STRONG></a> 
      / <input name="pathname" id="pathname" class="pathname" type="text" value="" size="12" readonly="true" /></div>
      <div style="height:10px; font-size:9px; line-height:9px; overflow:hidden; display:none" onclick="showTop()" onmouseover="this.style.cursor='hand'" title="隐藏菜单（M）">▲hide</div>
      </td>
    <td class="menudottedline" align="right"><!-- rtl change -->
      <script language="JavaScript" type="text/JavaScript">
		<!--
		function MM_swapImgRestore() { //v3.0
		var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
		}
		//-->
		</script>
		<table cellpadding="3" cellspacing="0" border="0">
		<tr>
		<td align="center">
		<a class="toolbar" href="#" onclick="MM_linkto('admin_adminpassword.aspx?admin_id=<%=Admin_ID%>');" onmouseout="MM_swapImgRestore();"  onmouseover="MM_swapImage('apply','','images/apply_f2.png',1);">
		<img src="images/apply.png" alt="修改密码" align="middle" name="apply" border="0" /><br />
		改密</a>
		</td>
				<td>&nbsp;</td>
		<td align="center">
		<a class="toolbar" href="#" onclick="if(confirm('确定要清除系统缓存吗？'))window.open('admin_index.aspx?clear=ture','_self');" onmouseout="MM_swapImgRestore();"  onmouseover="MM_swapImage('delete','','images/delete_f2.png',1);">
		<img src="images/delete.png" alt="清除缓存" align="middle" name="delete" border="0" /><br />
		缓存</a>
		<%--<asp:ImageButton ID="CleanCache" runat="server" ImageUrl="images/delete.png"  OnClick="CleanCache_Click"/><br />缓存--%>
		</td>
		        <td>&nbsp;</td>
		<td align="center">
		<a class="toolbar" href="#" onclick="window.open('http://www.vgoshop.com');" onmouseout="MM_swapImgRestore();"  onmouseover="MM_swapImage('howave','','images/frontpa_f2.png',1);">
		<img src="images/frontpa.png" alt="HoWave" align="middle" name="howave" border="0" /><br />
		官方</a>
		</td>
		        <td>&nbsp;</td>
		<td align="center">
		<a class="toolbar" href="#" onclick="showTop();" onmouseout="MM_swapImgRestore();"  onmouseover="MM_swapImage('menu','','images/restore_f2.png',1);">
		<img src="images/restore.png" alt="隐藏菜单（M）" align="middle" name="menu" border="0" /><br />
		菜单</a>
		</td>
				</tr>
		</table>
    </td>
</tr>
</table>
</div>
<div id="menutop" style="display:none">
<table class="menubar" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td class="menudottedline" style="height:10px; font-size:9px; line-height:9px; overflow:hidden" onclick="showTop()" onmouseover="this.style.cursor='hand'" title="显示菜单（M）">menu</td></tr>
</table>
</div>