<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Admin_Admin.aspx.vb" Inherits="TourEx.Web.Admin_Admin" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题页</title>
<link rel="stylesheet" type="text/css" href="Css/Style.css"/>
<script type="text/javascript" src="../Sys/Js/jquery.js"></script>
<script type="text/javascript" src="../Sys/Js/jquery.validate.js"></script>
<script type="text/javascript" src="../Sys/Js/jquery.validate.check.js"></script>
</head>
<body>
<ul class="navLocation">
	<li>您当前位置：<a href="Admin_Main.aspx">首页</a> > <a href="Admin_AdminList.aspx">管理员列表</a> > 
        <asp:Label ID="navIgation" runat="server" Text="编辑管理员"></asp:Label></li>
</ul>
<form runat="server" id="TourExForm">
<div class="infoBox">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="infoBoxTd" width="120px">帐号：</td>
		<td><asp:TextBox ID="UserName" runat="server" CssClass="formTitle"></asp:TextBox></td>
	</tr>
	<tr>
		<td class="infoBoxTd">密码：</td>
		<td>
			<asp:TextBox ID="UserPass" runat="server" CssClass="formTitle" TextMode="Password"></asp:TextBox>
		</td>
	</tr>
	<tr>
		<td class="infoBoxTd">确认密码：</td>
		<td>
			<asp:TextBox ID="oPass" runat="server" CssClass="formTitle" TextMode="Password"></asp:TextBox>
		</td>
	</tr>
	<tr>
		<td class="infoBoxTd">权限：</td>
		<td>
		    <input type="checkbox" onclick="$('input[name=\'Permissions\']').attr('checked',this.checked)" />全部
		    <ul class="adminPS">
                <b>返利明细</b>
		        <li><input type="checkbox" name="Permissions" value="66" />删除</li>
		    </ul>
		    <ul class="adminPS">
                <b>提现</b>
		        <li><input type="checkbox" name="Permissions" value="63" />发送</li>
		        <li><input type="checkbox" name="Permissions" value="64" />编辑</li>
		        <li><input type="checkbox" name="Permissions" value="65" />删除</li>
		    </ul>
		    <ul class="adminPS">
                <b>会员</b>
		        <li><input type="checkbox" name="Permissions" value="1" />审核</li>
		        <li><input type="checkbox" name="Permissions" value="2" />编辑</li>
		        <li><input type="checkbox" name="Permissions" value="3" />删除</li>
		    </ul>
		    <ul class="adminPS">
                <b>短信</b>
		        <li><input type="checkbox" name="Permissions" value="65" />发送</li>
		        <li><input type="checkbox" name="Permissions" value="66" />删除</li>
		    </ul>
		    <ul class="adminPS">
		        <b>新闻</b>
                <li><input type="checkbox" name="Permissions" value="4" />添加</li>
		        <li><input type="checkbox" name="Permissions" value="5" />编辑</li>
		        <li><input type="checkbox" name="Permissions" value="6" />删除</li>
		        <li><input type="checkbox" name="Permissions" value="7" />点评</li>
		    </ul>
		    <ul class="adminPS">
		        <b>酒店</b>
                <li><input type="checkbox" name="Permissions" value="8" />添加</li>
		        <li><input type="checkbox" name="Permissions" value="9" />编辑</li>
		        <li><input type="checkbox" name="Permissions" value="10" />删除</li>
		    </ul>
		    <ul class="adminPS">
		        <b>酒店订单</b>
                <li><input type="checkbox" name="Permissions" value="11" />编辑</li>
		        <li><input type="checkbox" name="Permissions" value="12" />删除</li>
		    </ul>
		    <ul class="adminPS">
		        <b>酒店图片</b>
                <li><input type="checkbox" name="Permissions" value="13" />添加</li>
		        <li><input type="checkbox" name="Permissions" value="14" />编辑</li>
		        <li><input type="checkbox" name="Permissions" value="15" />删除</li>
		    </ul>
		    <ul class="adminPS">
		        <b>酒店咨询</b>
                <li><input type="checkbox" name="Permissions" value="16" />编辑</li>
		        <li><input type="checkbox" name="Permissions" value="17" />删除</li>
		    </ul>
		    <ul class="adminPS">
		        <b>房型</b>
                <li><input type="checkbox" name="Permissions" value="18" />添加</li>
		        <li><input type="checkbox" name="Permissions" value="19" />编辑</li>
		        <li><input type="checkbox" name="Permissions" value="20" />删除</li>
		    </ul>
		    <ul class="adminPS">
		        <b>景区</b>
                <li><input type="checkbox" name="Permissions" value="21" />添加</li>
		        <li><input type="checkbox" name="Permissions" value="22" />编辑</li>
		        <li><input type="checkbox" name="Permissions" value="23" />删除</li>
		    </ul>
		    <ul class="adminPS">
		        <b>景区订单</b>
                <li><input type="checkbox" name="Permissions" value="48" />编辑</li>
		        <li><input type="checkbox" name="Permissions" value="49" />删除</li>
		    </ul>
		    <ul class="adminPS">
		        <b>景区图片</b>
                <li><input type="checkbox" name="Permissions" value="50" />添加</li>
		        <li><input type="checkbox" name="Permissions" value="51" />编辑</li>
		        <li><input type="checkbox" name="Permissions" value="52" />删除</li>
		    </ul>
		    <ul class="adminPS">
		        <b>景区咨询</b>
                <li><input type="checkbox" name="Permissions" value="53" />编辑</li>
		        <li><input type="checkbox" name="Permissions" value="54" />删除</li>
		    </ul>
		    <ul class="adminPS">
		        <b>景区门票</b>
                <li><input type="checkbox" name="Permissions" value="24" />添加</li>
		        <li><input type="checkbox" name="Permissions" value="25" />编辑</li>
		        <li><input type="checkbox" name="Permissions" value="26" />删除</li>
		    </ul>
		    <ul class="adminPS">
		        <b>度假订单</b>
                <li><input type="checkbox" name="Permissions" value="56" />编辑</li>
		        <li><input type="checkbox" name="Permissions" value="57" />删除</li>
		    </ul>
		    <ul class="adminPS">
		        <b>度假图片</b>
                <li><input type="checkbox" name="Permissions" value="58" />添加</li>
		        <li><input type="checkbox" name="Permissions" value="59" />编辑</li>
		        <li><input type="checkbox" name="Permissions" value="60" />删除</li>
		    </ul>
		    <ul class="adminPS">
		        <b>度假咨询</b>
                <li><input type="checkbox" name="Permissions" value="61" />编辑</li>
		        <li><input type="checkbox" name="Permissions" value="62" />删除</li>
		    </ul>
		    <ul class="adminPS">
		        <b>度假</b>
                <li><input type="checkbox" name="Permissions" value="27" />添加</li>
		        <li><input type="checkbox" name="Permissions" value="28" />编辑</li>
		        <li><input type="checkbox" name="Permissions" value="29" />删除</li>
		    </ul>
		    <ul class="adminPS">
		        <b>关于我们</b>
                <li><input type="checkbox" name="Permissions" value="30" />添加</li>
		        <li><input type="checkbox" name="Permissions" value="31" />编辑</li>
		        <li><input type="checkbox" name="Permissions" value="32" />删除</li>
		    </ul>
		    <ul class="adminPS">
		        <b>帮助</b>
                <li><input type="checkbox" name="Permissions" value="33" />添加</li>
		        <li><input type="checkbox" name="Permissions" value="34" />编辑</li>
		        <li><input type="checkbox" name="Permissions" value="35" />删除</li>
		    </ul>
		    <ul class="adminPS">
		        <b>友情链接</b>
                <li><input type="checkbox" name="Permissions" value="36" />添加</li>
		        <li><input type="checkbox" name="Permissions" value="37" />编辑</li>
		        <li><input type="checkbox" name="Permissions" value="38" />删除</li>
		    </ul>
		    <ul class="adminPS">
		        <b>图片广告</b>
                <li><input type="checkbox" name="Permissions" value="39" />添加</li>
		        <li><input type="checkbox" name="Permissions" value="40" />编辑</li>
		        <li><input type="checkbox" name="Permissions" value="41" />删除</li>
		    </ul>
		    <ul class="adminPS">
		        <b>文字广告</b>
                <li><input type="checkbox" name="Permissions" value="42" />添加</li>
		        <li><input type="checkbox" name="Permissions" value="43" />编辑</li>
		        <li><input type="checkbox" name="Permissions" value="44" />删除</li>
		    </ul>
		    <ul class="adminPS">
		        <b>代码广告</b>
                <li><input type="checkbox" name="Permissions" value="45" />添加</li>
		        <li><input type="checkbox" name="Permissions" value="46" />编辑</li>
		        <li><input type="checkbox" name="Permissions" value="47" />删除</li>
		    </ul>
		    <ul class="adminPS">
		        <b>留言反馈</b>
                <li><input type="checkbox" name="Permissions" value="55" />编辑</li>
		    </ul>
		</td>
	</tr>
	<tr>
		<td class="infoBoxTd">&nbsp;
			
		</td>
		<td>
			<asp:Button ID="Button1" runat="server" Text="保存" CssClass="formInput01" />
		</td>
	</tr>
</table>
</div>
</form>

<script language="javascript" type="text/javascript">
	<!--//
	$(function(){
	    $('input[name="Permissions"]').val('<%=Permissions %>'.split(","));
		$("#TourExForm").validate({
			rules:{
				UserName: {required: true}
			},
			messages: {
				UserName: {required: '请填写用户名'}
			}
		}); 
		if('<%=ThisId %>'=='0')
		{
		    $('#UserPass').rules('add',{required: true,messages:{required:'请填写密码!'}});
		    $('#oPass').rules('add',{required: true,equalTo:'#UserPass' ,messages:{required:'请确认密码!',equalTo:'两次密码不一致!'}});
		}
	});
	//-->
</script>
</body>
</html>
