<%@ control language="C#" autoeventwireup="true" inherits="HL_Admin_menu, WebApp_deploy" %>
<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 += " ['<img src=images/themeoffice/home.png />','管理首页','Admin_Main.aspx',null,'管理面板'],";
        MainMune += " ['<img src=images/themeoffice/home.png />','网站首页','../Index.aspx','_blank','前台首页'],";
        MainMune += "	],";
        MainMune += " _cmSplit,";
        MainMune += " [null,'网站',null,null,'网站管理',";
        if (admin.CheckAdminPower(0))
        {
            MainMune += "	['<img src=images/themeoffice/config.png />','全局配置','Admin_Config.aspx',null,'网站配置'],";
        }
        else { MainMune += "null,"; }
	if (admin.CheckSuperAdmin())
        {
            MainMune += "	['<img src=images/themeoffice/log.png />','管理日志','Admin_Log.aspx',null,'管理日志'],";
        }
        else { MainMune += "null,"; }
        MainMune += "		['<img src=images/themeoffice/sysinfo.png />','系统探针','Admin_SysCheck.aspx',null,'系统探针'],";
        if (admin.CheckAdminPower(8))
        {
            MainMune += "		['<img src=images/themeoffice/language.png />','公告管理','Admin_Announce.aspx',null,'公告管理'],";
        }
        else { MainMune += "null,"; }
        if (admin.CheckAdminPower(12) || admin.CheckAdminPower(13) || admin.CheckAdminPower(14) || admin.CheckAdminPower(15))
        {
            MainMune += "		['<img src=images/themeoffice/media.png />', '广告管理', null, null, '广告管理',";
            MainMune += "			['<img src=images/themeoffice/search_text.png />','版位管理','Admin_ManageAdZone.aspx',null,'版位管理'],";
            if (admin.CheckAdminPower(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 (admin.CheckSuperAdmin())
        {
            MainMune += "		['<img src=images/themeoffice/backup.png />','数据库区','Admin_BackUpDB.aspx',null,'数据库区']";
        }
        else { MainMune += "null,"; }
       
        MainMune += "	],";
        MainMune += " _cmSplit,";
        if (admin.CheckAdminPower(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 += "	],";
            MainMune += "	_cmSplit,";
        }
        MainMune += "	[null,'用户',null,null,'用户管理',";
        if (admin.CheckAdminPower(20))
        {
            MainMune += "		['<img src=images/themeoffice/users.png />','会员认证区','Admin_ShopUserCheck.aspx',null,'会员认证区'],";
        }
        else { MainMune += "null,"; }
        if (admin.CheckAdminPower(24))
        {
            MainMune += "		['<img src=images/themeoffice/users_add.png />','通行证管理','Admin_Passport.aspx',null,'通行证管理'],";
        }
        else { MainMune += "null,"; }
        if (admin.CheckAdminPower(28))
        {
            MainMune += "		['<img src=images/themeoffice/db.png />','会员组管理','Admin_Group.aspx',null,'会员组管理'],";
        }
        else { MainMune += "null,"; }
        MainMune += "		['<img src=images/themeoffice/user.png />','管理员管理',null,null,'管理员管理',";
        if (admin.CheckSuperAdmin())
        {
            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=" + AdminID + "',null,'密码修改']";
        MainMune += "		],";        
        if (admin.CheckAdminPower(32))
        {
            MainMune += "		_cmSplit,";
            MainMune += "		['<img src=images/themeoffice/messaging.png />','短消息管理','Admin_Message.aspx',null,'短消息管理'],";
        }
        else { MainMune += "null,"; }
        if (admin.CheckAdminPower(36))
        {
            MainMune += "		['<img src=images/themeoffice/mail.png />','发送邮件区','Admin_Email.aspx',null,'发送邮件区']";
        }
        else { MainMune += "null"; }
        MainMune += "	],";
        MainMune += "	_cmSplit,";
        MainMune += "	[null,'模板',null,null,'模板管理',";
        if (admin.CheckAdminPower(44))
        {
            MainMune += "		['<img src=images/themeoffice/template.png />','模板方案管理','Admin_ManageTemProject.aspx',null,'模板方案管理'],";
            MainMune += "		['<img src=images/themeoffice/template.png />','网站模板管理','Admin_ManageTemplate.aspx',null,'网站模板管理'],";
        }
        else { MainMune += "null,"; }
        if (admin.CheckAdminPower(52))
        {
            MainMune += "		['<img src=images/themeoffice/preview.png />','模板路径配置','Admin_TemplatePageSet.aspx',null,'动态模板页管理'],";
        }
        else { MainMune += "null,"; }
        if (admin.CheckAdminPower(48))
        {
            MainMune += "		['<img src=images/themeoffice/mainmenu.png />','网站风格管理','Admin_Skin.aspx',null,'网站风格管理'],";
        }
        else { MainMune += "null,"; }
        if (admin.CheckAdminPower(56))
        {
            MainMune += "		_cmSplit,";
            MainMune += "		['<img src=images/themeoffice/preview.png />','自定义标签区','Admin_Lable.aspx',null,'自定义标签区'],";
        }
        else { MainMune += "null,"; }
        if (admin.CheckAdminPower(4))
        {
            MainMune += "		['<img src=images/themeoffice/preview.png />','分页标签管理','Admin_PageLable.aspx',null,'分页标签管理'],";
        }
        else { MainMune += "null,"; }

        MainMune += "	],";
        MainMune += "	_cmSplit,";
        MainMune += "	[null,'文章',null,null,'文章管理',";
        if (admin.CheckAdminPower(40))
        {
            MainMune += "		['<img src=images/themeoffice/search_text.png />','模块管理','Admin_ShopManageModule.aspx',null,'模块管理'],";
            MainMune += "		['<img src=images/themeoffice/license.png />','文章管理','Admin_ShopIndexArticle.aspx',null,'文章管理'],";
            if (admin.CheckAdminPower(41))
            {
                MainMune += "		['<img src=images/themeoffice/license.png />','添加文章','Admin_ShopIndexArticleAdd.aspx',null,'添加文章']";
            }
            else {
                MainMune += "null";
            }
        }
        else { MainMune += "null"; }
        MainMune += "	],";
        MainMune += "	_cmSplit,";
        MainMune += "	[null,'商城',null,null,'商城管理',";
        if (admin.CheckAdminPower(64))
        {
            MainMune += "		['<img src=images/themeoffice/media.png />','专题管理','Admin_Special.aspx',null,'专题管理'],";
        }
        else { MainMune += "null,"; }
        
        if (admin.CheckAdminPower(68))
        {
            MainMune += "		['<img src=images/themeoffice/db.png />','店铺管理','Admin_Shop.aspx',null,'店铺管理'],";
            MainMune += "		['<img src=images/themeoffice/db.png />','店铺等级','Admin_ShopGroup.aspx',null,'店铺等级'],";
            MainMune += "['<img src=images/themeoffice/db.png />','域名管理','Admin_SecUrl.aspx',null,'域名管理'],";
        }
        else { MainMune += "null,";
        
        }
        if (admin.CheckAdminPower(80))
        {
            MainMune += "		_cmSplit,";
            MainMune += "		['<img src=images/themeoffice/install.png />','商品管理',null, null,'商品管理',";

            MainMune += "			['<img src=images/themeoffice/search_text.png />','商品分类管理','Admin_Getproduct.aspx',null,'商品导入'],";
            MainMune += "			['<img src=images/themeoffice/search_text.png />','商品分类管理','Admin_ShopClass.aspx',null,'商品分类管理'],";
            MainMune += "			['<img src=images/themeoffice/search_text.png />','商城商品管理','Admin_ShopProduct.aspx',null,'商城商品管理']";
            MainMune += "		],";
        }
        else { MainMune += "null,"; }
        if (admin.CheckAdminPower(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 (admin.CheckAdminPower(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 += "			['<img src=images/themeoffice/search_text.png />','积分明细查询','Admin_UserExpRecorde.aspx',null,'积分明细查询']";
            MainMune += "		],";
        }
        else { MainMune += "null,"; }
        if (admin.CheckAdminPower(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,"; }
        MainMune += "		['<img src=images/themeoffice/query.png />','搜索管理','Admin_HotKey.aspx',null,'搜索管理'],";
        if (admin.CheckAdminPower(72))
        {
            MainMune += "		['<img src=images/themeoffice/messaging_inbox.png />','留言管理','Admin_ShopMessage.aspx',null,'留言管理'],";
        }
        else { MainMune += "null,"; }
        if (admin.CheckAdminPower(96))
        {
            //MainMune += "		['<img src=images/themeoffice/mainmenu.png />','图片管理','Admin_ShopUploadFile.aspx',null,'图片管理']";
        }
        else { MainMune += "null"; }
       
        MainMune += "	],";
        MainMune += "	_cmSplit,";
        MainMune += "	[null,'系统',null,null,'系统管理',";
        if (admin.CheckAdminPower(136))
        {
            MainMune += "		['<img src=images/themeoffice/install.png />', '常规配置区', 'Admin_ShopConfig.aspx',null,'常规配置区'],";
        }
        else { MainMune += "null,"; }
        if (admin.CheckAdminPower(100))
        {
            MainMune += "		['<img src=images/themeoffice/globe3.png />', '地区管理区', 'Admin_ShopCity.aspx',null,'地区管理区'],";
        }
        else { MainMune += "null,"; }
        
        if (admin.CheckAdminPower(104))
        {
            MainMune += "		_cmSplit,";
            MainMune += "		['<img src=images/themeoffice/content.png />', '充值卡管理', 'Admin_Card.aspx',null,'充值卡管理'],";
        }
        else { MainMune += "null,"; }
        if (admin.CheckAdminPower(112))
        {
            MainMune += "		['<img src=images/themeoffice/install.png />', '支付方式区', 'Admin_HowavePayType.aspx',null,'支付方式区'],";
        }
        else { MainMune += "null,"; }
        if (admin.CheckAdminPower(124))
        {
            MainMune += "		['<img src=images/themeoffice/sysinfo.png />', '送货方式区', 'Admin_ShopDeliverType.aspx',null,'送货方式区'],";
        }
        else { MainMune += "null,"; }

        MainMune += "		['<img src=images/themeoffice/sysinfo.png />', '推广统计区', 'Admin_AdsClickRecorde.aspx',null,'广告统计区'],";
        
        if (admin.CheckAdminPower(128))
        {
            //MainMune += "		_cmSplit,";
            //MainMune += "		['<img src=images/themeoffice/users.png />', '商家会员区', 'Admin_ShopViewVIPCard.aspx',null,'商家会员区'],";
            MainMune += "null,";
        }
        else { MainMune += "null,"; }
        if (admin.CheckAdminPower(132))
        {
            //MainMune += "		['<img src=images/themeoffice/user.png />', '商家会员等级', 'Admin_ShopVIPCard.aspx',null,'商家会员等级']";
            MainMune += "null";
        }
        else { MainMune += "null"; }
        MainMune += "	],";
        MainMune += "	_cmSplit,";
        MainMune += "	[null,'帮助','http://www.vgoshop.net','_blank',null,";
        MainMune += "    	['<img src=images/themeoffice/config.png />','关于威购','Admin_About.aspx','Modal','关于威购']";
        MainMune += "   ]";
        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><%=AdminName%></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="readonly" /></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=<%=AdminID%>');" 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="#" onmouseout="MM_swapImgRestore();"  onmouseover="MM_swapImage('delete','','images/delete_f2.png',1);">
		<asp:ImageButton runat="server" OnClientClick="if(confirm('确定要清除系统缓存吗？'))showModalDialog('RemoveCache.aspx',window,'dialogHeight:100px;dialogWidth:200px;resizable:0;status:0;help:0;scroll:0;center:yes;');return false;"  ImageUrl="images/delete.png" ToolTip="清除缓存" ImageAlign="Middle" /><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>