<%@ page language="C#" autoeventwireup="true" masterpagefile="AdminIndexMaster.master" inherits="HL_Admin_Admin_AddPassport, WebApp_deploy" title="编辑通行证" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
       <asp:Panel ID="AddPanel" runat="server" >                            
                  <table class="nick">
                    <tr><td colspan="2" class="tit">添加通行证</td></tr>
                    <tr>
                      <td class="ltd">用户名：</td>
                      <td class="rtd"><asp:TextBox ID="Add_UserName" runat="server" />
                          <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="Add_UserName"
                              ErrorMessage="不能空"></asp:RequiredFieldValidator></td>
                    </tr>
                    <tr>
                     <td class="ltd">用户组别：</td>
                     <td class="rtd">
                     <asp:DropDownList AppendDataBoundItems="true"  ID="Add_UserGroupName" runat="server" CssClass="reg_textbox" >
                          <asp:ListItem Text="请选择" Value="0"/>
                          </asp:DropDownList>
                          &nbsp;
                      </td>
                    </tr>
                    <tr>
                      <td class="ltd">密码：</td>
                      <td class="rtd"><asp:TextBox ID="Add_UserPassword"  runat="server" TextMode="Password" />
                          <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="Add_UserPassword"
                              ErrorMessage="不能空"></asp:RequiredFieldValidator></td>
                     </tr>
                     <tr>
                      <td class="ltd">性别：</td>
                      <td class="rtd">
                         <asp:RadioButtonList ID="Add_Sex" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Text="男" Value="0"  Selected="True"/>
                            <asp:ListItem Text="女" Value="1" />
                            <asp:ListItem Text="保密" Value="-1" />
                         </asp:RadioButtonList></td>
                    </tr>
                    <tr>
                      <td class="ltd">邮箱：</td>
                      <td class="rtd">
                      <div style="float:left;">
                        <asp:TextBox ID="Add_Email" runat="server" />
                      </div>
                      <div style="float:left; position:absolute;">
                        <asp:RegularExpressionValidator ID="RegularExpressionValidatorAdd_" runat="server" ControlToValidate="Add_Email" ErrorMessage="邮件格式不正确" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" />
                      </div>
                      <div style="float:left; position:absolute;">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidatorAdd_" runat="server" ControlToValidate="Add_Email" ErrorMessage="不能空" />
                      </div>
                      </td>                      
                     </tr>
                     <tr>
                      <td class="ltd">是否锁定：</td>
                      <td class="rtd">
                        <asp:RadioButtonList ID="Add_IsLocked" runat="server" RepeatDirection="Horizontal" >
                           <asp:ListItem Text="锁定" Value="1" />
                           <asp:ListItem Text="正常" Value="0" Selected="True"/>
                        </asp:RadioButtonList></td>
                    </tr>
                    <tr>
                      <td class="ltd">问题：</td>
                      <td class="rtd">
                       <asp:DropDownList ID="Add_UserQuestion" runat="server" CssClass="reg_textbox" DataTextField="Name" >
                            <asp:ListItem Text="请选择" Value="" />
                         </asp:DropDownList></td>
                     </tr>
                     <tr>
                      <td class="ltd">答案：</td>
                      <td class="rtd"><asp:TextBox ID="Add_Answer"  runat="server" /></td>
                    </tr>                   
                    <tr>
                      <td class="ltd">积分：</td>
                      <td class="rtd"><div style="float:left;"><asp:TextBox ID="Add_UserEP" Width="80" runat="server" Text="0" />分</div>
                      <div style="float:left; position:absolute;">
                        <asp:RangeValidator ID="RangeValidator2s" runat="server" ControlToValidate="Add_UserEP" ErrorMessage="通行币必须为整数" MaximumValue="999999999" MinimumValue="-999999999" Type="Integer"></asp:RangeValidator>
                      </div>
                      <div style="float:left; position:absolute;">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2s" runat="server" ControlToValidate="Add_UserEP" ErrorMessage="不能空"></asp:RequiredFieldValidator>
                      </div>
                      </td>                      
                    </tr>
                    <tr>
                      <td class="ltd">帐户金额：</td>
                      <td class="rtd"><asp:TextBox ID="Add_Balance"  Text="0" runat="server" /></td>
                     </tr> 
		    <tr>
		      <td colspan="2" class="btm">
			<asp:Button ID="Add_UserDetailButton" Text="添 加" CausesValidation="true" OnClick="Add_OnClick" runat="server" />
                        <input type="button" onclick="location.href='Admin_Passport.aspx'" value="返 回" />
		      </td>
		    </tr>
                 </table>
               
      </asp:Panel>  
      
      <asp:Panel ID="EditPanel" runat="server">
                <table class="nick">
                    <tr><td colspan="2" class="tit">修改通行证</td></tr>
                    <tr>
                      <td class="ltd">用户名：</td>
                      <td class="rtd"><asp:Label ID="LabUserName" runat="server" /></td>
                    </tr>
                    <tr>
                      <td class="ltd" style="width: 91px">用户组别：</td>
                      <td class="rtd" style="width: 373px">
                      <asp:DropDownList AppendDataBoundItems="true" ID="Edit_UserGroupName" runat="server" CssClass="reg_textbox" DataTextField="GroupName" DataValueField="GroupID" >
                          <asp:ListItem Text="未分配组" Value="0" />
                      </asp:DropDownList>
                      </td>
                    </tr>
                    <tr>
                      <td class="ltd">密码：</td>
                      <td class="rtd"><asp:TextBox ID="Edit_UserPassword" runat="server" TextMode="Password" /> 空为不修改</td>
                    </tr>
                    <tr>
                      <td class="ltd" style="width: 91px">性别：</td>
                      <td class="rtd" style="width: 373px">
                         <asp:RadioButtonList ID="Edit_Sex" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Text="男" Value="0" />
                            <asp:ListItem Text="女" Value="1" />
                            <asp:ListItem Text="保密" Value="-1" Selected="True" />
                         </asp:RadioButtonList></td>
                    </tr>
                    <tr>
                      <td class="ltd">邮箱：</td>
                      <td class="rtd"><div style="float:left;"><asp:TextBox ID="Edit_Email" runat="server" /></div>
                          <div style="float:left; position:absolute;">
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="Edit_Email"  ErrorMessage="邮件格式不正确" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" />
                          </div>
                          <div style="float:left; position:absolute;">
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="Edit_Email" ErrorMessage="不能空" />
                          </div>
                      </td>
                    </tr>
                    <tr>
                      <td class="ltd">问题：</td>
                      <td class="rtd">
                      <asp:DropDownList ID="Edit_UserQuestion" runat="server" CssClass="reg_textbox"  DataTextField="Name" >
                            
                         </asp:DropDownList>
                         </td>
                     </tr>
                     <tr>
                      <td class="ltd">答案：</td>
                      <td class="rtd"><asp:TextBox ID="Edit_Answer" runat="server" TextMode="Password" /> 空为不修改</td>
                    </tr>
                    <tr>
                      <td class="ltd">是否锁定：</td>
                      <td class="rtd">
                        <asp:RadioButtonList ID="Edit_IsLocked" runat="server" RepeatDirection="Horizontal" >
                           <asp:ListItem Text="锁定" Value="1" />
                           <asp:ListItem Text="正常" Value="0" Selected="True" />
                        </asp:RadioButtonList></td>
                    </tr>
                    <tr>
                      <td class="ltd">积分：</td>
                      <td class="rtd">
                      <div style="float:left;"><asp:TextBox ID="Edit_UserEP" Width="80" runat="server" />分&nbsp;
                          </div>
                          <div style="float:left; position:absolute;">
                            <asp:RangeValidator ID="RangeValidator2" runat="server" ControlToValidate="Edit_UserEP" ErrorMessage="通行币必须为整数" MaximumValue="999999999" MinimumValue="-999999999" Type="Integer"></asp:RangeValidator>
                          </div>
                          <div style="float:left; position:absolute;">
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="Edit_UserEP" ErrorMessage="不能空"></asp:RequiredFieldValidator>
                          </div>
                         </td>                      
                     </tr>
                    <tr>
                      <td class="ltd">帐户金额：</td>
                      <td class="rtd"><asp:TextBox ID="Edit_Balance" runat="server" /></td>
                    </tr>
		    <tr>
		      <td colspan="2" class="btm">
			<asp:Button ID="UserDetailButton" Text="修 改" CausesValidation="true"  OnClick="Edit_OnClick" runat="server" />
                        <input type="button" onclick="location.href='Admin_Passport.aspx'" value="返 回" />
		      </td>
		    </tr>
                  </table> 
        </asp:Panel>
        
        <asp:Panel ID="ShowPanel" runat="server">
                <table class="nick">
                    <tr><td colspan="2" class="tit">查看通行证</td></tr>
                    <tr>
                      <td class="ltd">用户名：</td>
                      <td class="rtd"><asp:Literal ID="UserName" runat="server" /></td>
                    </tr>
                    <tr>
                      <td class="ltd">用户组别：</td>
                      <td class="rtd"><asp:Label ID="UserGroupName" runat="server" />
                      </td>
                    </tr>
                    <tr>
                      <td class="ltd">密码：</td>
                      <td class="rtd"><asp:Literal ID="UserPassword"  runat="server" Visible="False" /></td>
                    </tr>
                    <tr>
                      <td class="ltd">性别：</td>
                      <td class="rtd"><asp:Literal ID="Sex" runat="server" />
                        </td>
                    </tr>
                    <tr>
                      <td class="ltd">邮箱：</td>
                      <td class="rtd"><asp:Literal ID="Email" runat="server" /></td>
                    </tr>
                    <tr>  
                      <td class="ltd">注册时间：</td>
                      <td class="rtd"><asp:Literal ID="RegTime" runat="server" /></td>
                    </tr>
                    <tr>
                      <td class="ltd">问题：</td>
                      <td class="rtd"><asp:Literal ID="UserQuestion"  runat="server" /></td>
                    </tr>
                    <tr>
                      <td class="ltd">加入时间：</td>
                      <td class="rtd"><asp:Literal ID="JoinTimes"  runat="server" /></td>
                    </tr>
                    <tr>
                      <td class="ltd">答案：</td>
                      <td class="rtd"><asp:Literal ID="Answer" runat="server" Visible="False" /></td>
                    </tr>
                    <tr>
                      <td class="ltd">上一次登录时间：</td>
                      <td class="rtd"><asp:Literal ID="LastLoginTimes"  runat="server" /></td>
                    </tr>
                    <tr>
                      <td class="ltd">积分：</td>
                      <td class="rtd"><asp:Literal ID="UserEP" runat="server" /></td>                      
                    </tr>
                    <tr>
                      <td class="ltd">上一次登录IP：</td>
                      <td class="rtd"><asp:Literal ID="LastLoginIP" runat="server" /></td>
                    </tr>
                    <tr>
                      <td class="ltd">帐户金额：</td>
                      <td class="rtd"><asp:Literal ID="Balance" runat="server" /></td>
                    </tr>
                    <tr>
                      <td class="ltd">登录次数：</td>
                      <td class="rtd"><asp:Literal ID="LoginTimes" runat="server" /></td>
                    </tr>
		    <tr>
		      <td colspan="2" class="btm">
                        <input type="button" onclick="location.href='Admin_Passport.aspx'" value="返 回" />
		      </td>
		    </tr>
                  </table>
       </asp:Panel>
      <br />  
</asp:Content>
