<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RolePermission.aspx.cs" Inherits="XpShop.Manage.RolePermission" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<!--#include file="inc/head.inc"-->
	<title>角色权限设置</title>
	<script type="text/javascript">
	    $(document).ready(function(){
	        setInterval(function(){
	            $('#save').css('top',$(window).height()-$('#save').height());
	        },1000);
	    });
	</script>
</head>
<body>
	<div class="container">
		<div class="sub_container">
		<form id="Form1" method="post" runat="server">
		<div class="sub_container_title"><a href="<%=AdminDefault%>" target="_top">桌面</a><img src="images/admin_title.jpg" height=9px width=8px align="absmiddle" />权限设置</div>
		<div class="sub_container_content">		
		<div class="frame">
		    <div class="frame_title"><asp:Label id="lblAction" runat="server" CssClass="tableHeaderText"></asp:Label></div>
		    <div class="frame_content">			
			    <table class="tableBorder" cellSpacing="0" cellPadding="0" width="640" align="center" border="0">
				    <tr>
					    <td class="forumRowHighlight" valign="top">
						    <table align="center" width="98%" cellpadding="0" cellspacing="0">
							    <tr style="display:none;">
								    <td colspan="2" align="left" height="40"><asp:CheckBox ID="cbxSelectAll" Runat="server" Text="<b>选中所有</b>" AutoPostBack="True" Visible="False"></asp:CheckBox></td>
							    </tr>
							    <tr>
								    <td valign="top">
								        <div class="managerpower">
								            <div class="tl"></div>
								            <div class="tr"></div>
								            <div class="tm"><div class="managerpowertitle">订单管理</div></div>
								            <div class="ml"></div>
								            <div class="mr"></div>
								            <div class="mm">
								                <ul>
								                    <li><asp:CheckBox ID="cbxOrderView" Runat="server" Text="查看全部订单"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxOrderConfirm" Runat="server" Text="订单确认"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxOrderCollection" Runat="server" Text="订单收款"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxOrderDelivery" Runat="server" Text="订单发货"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxOrderComplete" Runat="server" Text="订单归档"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxOrderCancel" Runat="server" Text="订单取消"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxOrderPriceModify" Runat="server" Text="订单价格修改"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxOrderModify" Runat="server" Text="订单修改"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxOrderDelete" Runat="server" Text="订单删除"></asp:CheckBox></li>
                                                    <li><asp:CheckBox ID="cbxExportOrder" runat="server" Text="导出订单资料"/></li>
								                    <li><asp:CheckBox ID="cbxOrderNumberRule" Runat="server" Text="订单编号规则"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxTaxRate" Runat="server" Text="发票税金设置"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxOrderReview" Runat="server" Text="订单留言"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxGiftApply" Runat="server" Text="积分换礼"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxInvoice" Runat="server" Text="单据管理"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxOrderAdd" Runat="server" Text="手动添加订单"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxBuyRecord" Runat="server" Text="购买记录"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxFinanceManage" Runat="server" Text="财务管理"></asp:CheckBox></li>
								                </ul>
								                <div class="clear"></div>
								            </div>
								            <div class="bl"></div>
								            <div class="br"></div>
								            <div class="bm"></div>
								        </div>
								        <div class="managerpower">
								            <div class="tl"></div>
								            <div class="tr"></div>
								            <div class="tm"><div class="managerpowertitle">商品管理</div></div>
								            <div class="ml"></div>
								            <div class="mr"></div>
								            <div class="mm">
								                <ul>
								                    <li><asp:CheckBox ID="cbxProductCategory" Runat="server" Text="商品类别"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxBrand" Runat="server" Text="品牌管理"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxPdtType" Runat="server" Text="商品类型管理"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxProductManage" Runat="server" Text="商品管理"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxProductAdd" Runat="server" Text="商品添加"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxProductPriceModify" Runat="server" Text="商品价格修改"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxProductAudit" Runat="server" Text="商品审核"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxProductSale" Runat="server" Text="商品上下架"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxProductSort" Runat="server" Text="商品排序"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxProductModify" Runat="server" Text="商品修改"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxProductDelete" Runat="server" Text="商品删除"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxProductStatus" Runat="server" Text="销售状态设置"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxProductBatchModify" Runat="server" Text="商品批量修改"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxProductNoRule" Runat="server" Text="商品编码规则"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxSpec" Runat="server" Text="规格管理"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxPmtIcon" Runat="server" Text="促销图标管理"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxTopSale" Runat="server" Text="销售排行管理"></asp:CheckBox></li>
                                                    <li><asp:CheckBox ID="cbxExportProduct" runat="server" Text="导出商品资料"/></li>                                                   
								                </ul>
								                <div class="clear"></div>
								            </div>
								            <div class="bl"></div>
								            <div class="br"></div>
								            <div class="bm"></div>
								        </div>
    								    
								        <div class="managerpower">
								            <div class="tl"></div>
								            <div class="tr"></div>
								            <div class="tm"><div class="managerpowertitle">库存管理</div></div>
								            <div class="ml"></div>
								            <div class="mr"></div>
								            <div class="mm">
								                <ul>
								                    <li><asp:CheckBox ID="cbxStorageAdd" Runat="server" Text="入库"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxStorage" Runat="server" Text="入库管理"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxStorageCheckAdd" Runat="server" Text="盘点库存"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxStorageCheck" Runat="server" Text="盘点库存管理"></asp:CheckBox></li>
								                </ul>
								                <div class="clear"></div>
								            </div>
								            <div class="bl"></div>
								            <div class="br"></div>
								            <div class="bm"></div>
								        </div>
    								    
								        <div class="managerpower">
								            <div class="tl"></div>
								            <div class="tr"></div>
								            <div class="tm"><div class="managerpowertitle">会员管理</div></div>
								            <div class="ml"></div>
								            <div class="mr"></div>
								            <div class="mm">
								                <ul>
								                    <li><asp:CheckBox ID="cbxRole" Runat="server" Text="角色管理"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxSupplier" Runat="server" Text="商家管理"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxManager" Runat="server" Text="管理员管理"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxMemberManage" Runat="server" Text="会员管理"></asp:CheckBox></li>
                                                    <li><asp:CheckBox ID="cbxMemberAdd" runat="server" Text="会员添加"/></li>
								                    <li><asp:CheckBox ID="cbxMemberModify" Runat="server" Text="会员修改"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxMemberDelete" Runat="server" Text="会员删除"></asp:CheckBox></li>								                    <li><asp:CheckBox ID="cbxMemberScore" runat="server" Text="会员积分管理"/></li>
                                                    <li><asp:CheckBox ID="cbxExportMember" runat="server" Text="导出会员资料"/></li>
								                    <li><asp:CheckBox ID="cbxMemberGroup" Runat="server" Text="会员组管理"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxAdvancePayment" Runat="server" Text="预付款管理"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxComplaint" Runat="server" Text="会员投诉管理"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxMessage" Runat="server" Text="短消息管理"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxOutStockReg" Runat="server" Text="缺货登记管理"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxPdtAsk" Runat="server" Text="商品咨询管理"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxPdtReview" Runat="server" Text="商品评论管理"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxGuestReview" Runat="server" Text="留言版"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxService" Runat="server" Text="售后管理"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxTelAsk" runat="server" Text="电话记录管理"/></li>
                                                    <li><asp:CheckBox ID="cbxExportTelAsk" runat="server" Text="导出电话记录"/></li>
                                                    <li><asp:CheckBox ID="cbxScoreCard" runat="server" Text="积分卡管理"/></li>
							                        <li><asp:CheckBox ID="cbxExportScoreCard" Runat="server" Text="导出积分卡"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxScoreCardAdd" Runat="server" Text="积分卡添加"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxScoreCardModify" Runat="server" Text="积分卡修改"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxScoreCardDelete" Runat="server" Text="积分卡删除"></asp:CheckBox></li>
                                                    <li><asp:CheckBox ID="cbxMemberCard" Runat="server" Text="会员卡管理"></asp:CheckBox></li>                                                
								                    <li><asp:CheckBox ID="cbxExportMemberCard" Runat="server" Text="导出会员卡"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxMemberCardAdd" Runat="server" Text="会员卡添加"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxMemberCardModify" Runat="server" Text="会员卡修改"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxMemberCardDelete" runat="server" Text="会员卡删除"/></li>                                                   
								                </ul>
								                <div class="clear"></div>
								            </div>
								            <div class="bl"></div>
								            <div class="br"></div>
								            <div class="bm"></div>
								        </div>
    								    
								        <div class="managerpower">
								            <div class="tl"></div>
								            <div class="tr"></div>
								            <div class="tm"><div class="managerpowertitle">物流系统</div></div>
								            <div class="ml"></div>
								            <div class="mr"></div>
								            <div class="mm">
								                <ul>
								                    <li><asp:CheckBox ID="cbxCurrency" Runat="server" Text="货币"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxPayment" Runat="server" Text="支付方式"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxShipping" Runat="server" Text="配送方式"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxShippingArea" Runat="server" Text="配送地区"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxShippingPrice" Runat="server" Text="配送价格"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxShippingFree" Runat="server" Text="免运费设定"></asp:CheckBox></li>
								                </ul>
								                <div class="clear"></div>
								            </div>
								            <div class="bl"></div>
								            <div class="br"></div>
								            <div class="bm"></div>
								        </div>
    								    
								        <div class="managerpower">
								            <div class="tl"></div>
								            <div class="tr"></div>
								            <div class="tm"><div class="managerpowertitle">文章管理</div></div>
								            <div class="ml"></div>
								            <div class="mr"></div>
								            <div class="mm">
								                <ul>
								                    <li><asp:CheckBox ID="cbxBulletin" Runat="server" Text="公告"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxHelpCategory" Runat="server" Text="帮助类别"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxHelp" Runat="server" Text="帮助信息"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxArticleCategory" Runat="server" Text="文章类别"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxArticle" Runat="server" Text="文章"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxArticleAudit" Runat="server" Text="文章审核"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxArticleKeyword" Runat="server" Text="关键字管理"></asp:CheckBox></li>
								                </ul>
								                <div class="clear"></div>
								            </div>
								            <div class="bl"></div>
								            <div class="br"></div>
								            <div class="bm"></div>
								        </div>
								        
								        <div class="managerpower">
								            <div class="tl"></div>
								            <div class="tr"></div>
								            <div class="tm"><div class="managerpowertitle">系统管理</div></div>
								            <div class="ml"></div>
								            <div class="mr"></div>
								            <div class="mm">
								                <ul>
								                    <li><asp:CheckBox ID="cbxSystemConfig" Runat="server" Text="系统设置"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxNavManage" Runat="server" Text="导航栏设置"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxDataBackUp" Runat="server" Text="数据备份"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxTemplate" Runat="server" Text="模板管理"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxCache" Runat="server" Text="缓存管理"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxEventLog" Runat="server" Text="日志管理"></asp:CheckBox></li>
								                </ul>
								                <div class="clear"></div>
								            </div>
								            <div class="bl"></div>
								            <div class="br"></div>
								            <div class="bm"></div>
								        </div>
    								    
								        <div class="managerpower">
								            <div class="tl"></div>
								            <div class="tr"></div>
								            <div class="tm"><div class="managerpowertitle">营销管理</div></div>
								            <div class="ml"></div>
								            <div class="mr"></div>
								            <div class="mm">
								                <ul>
                                                	<li><asp:CheckBox ID="cbxPromotion" Runat="server" Text="促销活动"></asp:CheckBox></li>
                                                    <li><asp:CheckBox ID="cbxCoupons" Runat="server" Text="优惠券"></asp:CheckBox></li>
                                                    <li><asp:CheckBox ID="cbxCouponsAdd" Runat="server" Text="优惠券添加"></asp:CheckBox></li>
                                                    <li><asp:CheckBox ID="cbxCouponsModify" Runat="server" Text="优惠券修改"></asp:CheckBox></li>
                                                    <li><asp:CheckBox ID="cbxCouponsDelete" Runat="server" Text="优惠券删除"></asp:CheckBox></li>
                                                    <li><asp:CheckBox ID="cbxCouponsIssue" Runat="server" Text="优惠券派发"></asp:CheckBox></li>                                                    
                                                    <li><asp:CheckBox ID="cbxCouponsExchange" Runat="server" Text="优惠券兑换积分"></asp:CheckBox></li>                                                                                                       
                                                    <li><asp:CheckBox ID="cbxBinding" Runat="server" Text="捆绑销售"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxLink" Runat="server" Text="友情链接"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxAD" Runat="server" Text="广告管理"></asp:CheckBox></li>
								                    <%if (GiftApply(Request.Url.ToString())){%>
								                    <li><asp:CheckBox ID="cbxGift" Runat="server" Text="礼品管理"></asp:CheckBox></li>
								                    <%} if (Agent(Request.Url.ToString())){%>
								                    <li><asp:CheckBox ID="cbxAgent" Runat="server" Text="代理管理"></asp:CheckBox></li>
								                    <%} %>
								                    <li><asp:CheckBox ID="cbxCatalogue" Runat="server" Text="目录索取管理"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxActivity" Runat="server" Text="活动专场管理"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxSubscription" Runat="server" Text="邮件订阅管理"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxVideo" Runat="server" Text="视频管理"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxPMProduct" Runat="server" Text="拍卖管理"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxPublication" Runat="server" Text="邮件订阅"></asp:CheckBox></li>
								                </ul>
								                <div class="clear"></div>
								            </div>
								            <div class="bl"></div>
								            <div class="br"></div>
								            <div class="bm"></div>
								        </div>
    								    
								        <div class="managerpower">
								            <div class="tl"></div>
								            <div class="tr"></div>
								            <div class="tm"><div class="managerpowertitle">邮件管理</div></div>
								            <div class="ml"></div>
								            <div class="mr"></div>
								            <div class="mm">
								                <ul>
								                    <li><asp:CheckBox ID="cbxEmail" Runat="server" Text="邮件模板管理"></asp:CheckBox></li>
								                </ul>
								                <div class="clear"></div>
								            </div>
								            <div class="bl"></div>
								            <div class="br"></div>
								            <div class="bm"></div>
								        </div>
    								    
								        <div class="managerpower">
								            <div class="tl"></div>
								            <div class="tr"></div>
								            <div class="tm"><div class="managerpowertitle">统计工具</div></div>
								            <div class="ml"></div>
								            <div class="mr"></div>
								            <div class="mm">
								                <ul>
								                    <li><asp:CheckBox ID="cbxPoll" Runat="server" Text="投票管理"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxVisitState" Runat="server" Text="流量统计"></asp:CheckBox></li>
								                    <li><asp:CheckBox ID="cbxSaleState" Runat="server" Text="销售统计"></asp:CheckBox></li>
                                                    <li><asp:CheckBox ID="cbxExportSaleState" runat="server" Text="导出销售统计"/></li>
								                    <li><asp:CheckBox ID="cbxSurvey" Runat="server" Text="问卷调查"></asp:CheckBox></li>
								                </ul>
								                <div class="clear"></div>
								            </div>
								            <div class="bl"></div>
								            <div class="br"></div>
								            <div class="bm"></div>
								        </div>
								    </td>							
							    </tr>
						    </table>
					    </td>
				    </tr>
			    </table>
		    </div>
	     </div>
	</div>
	<div id="save" class="save">
		<asp:Button id="btnSave" OnClick="btnSave_Click" runat="server" Text="保存" CssClass="inputbtn"></asp:Button>
	</div>
	</form>
	</div>
	</div>
</body>
</HTML>