<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Cert.aspx.cs" Inherits="SWTraining.Cert" %>

<%@ Register src="UserCol/ValidateCode.ascx" tagname="ValidateCode" tagprefix="uc1" %>

<!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 runat="server">
    <title>安装凭证</title>
<%--    <link id="linkStyle" runat="server" href="Themes/Blue/css.css" rel="stylesheet"
        type="text/css" />--%>
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table cellspacing="0" class="table" style="width:240px; margin-left:auto; margin-right:auto;">
            <tr>
                <th>
                    安装凭证</th>
            </tr>
            <tr>
                <td>
                    <asp:Wizard ID="Wizard1" runat="server" ActiveStepIndex="0" Width="402px" 
                        onfinishbuttonclick="Wizard1_FinishButtonClick" 
                        onnextbuttonclick="Wizard1_NextButtonClick" FinishPreviousButtonText="" 
                        FinishPreviousButtonType="Link">
                        <WizardSteps>
                            <asp:WizardStep runat="server" Title="Step 1">
                                <table class="style1">
                                    <tr>
                                        <td align="right">
                                            凭证密码：</td>
                                        <td>
                                            <asp:TextBox ID="tbxPwd" runat="server" TextMode="Password"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            验证码：</td>
                                        <td>
                                            <uc1:ValidateCode ID="ValidateCode1" runat="server" />
                                        </td>
                                    </tr>
                                </table>
                                <br />
                            </asp:WizardStep>
                            <asp:WizardStep runat="server" Title="Step 2">
                                <table>
                                    <tr>
                                        <td>
                                            已选用户/组<asp:DropDownList ID="ddlAllow" runat="server">
                                                <asp:ListItem Value="0">禁止访问</asp:ListItem>
                                                <asp:ListItem Value="1">允许访问</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="ddlGroupAndUsers" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlGroupAndUsers_SelectedIndexChanged">
                                                <asp:ListItem Value="0">所有用户组</asp:ListItem>
                                                <asp:ListItem Value="1">所有用户</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:ListBox ID="lbxSelected" runat="server" Height="129px" SelectionMode="Multiple"
                                                Width="150px"></asp:ListBox>
                                        </td>
                                        <td>
                                            <label class="lab_buttom">
<asp:Button ID="btnAdd" runat="server" OnClick="btnAdd_Click" Text="&lt;加入" />
</label>
                                            <br />
                                            <br />
                                            <label class="lab_buttom">
<asp:Button ID="btnClear" runat="server" OnClick="btnClear_Click" Text="移除&gt;" />
</label>
                                        </td>
                                        <td>
                                            <asp:ListBox ID="lbxGroupAndUsers" runat="server" Height="129px" SelectionMode="Multiple"
                                                Width="150px"></asp:ListBox>
                                        </td>
                                    </tr>
                                </table>
                            </asp:WizardStep>
                        </WizardSteps>
                    </asp:Wizard>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="labMsg" runat="server" EnableViewState="False"></asp:Label>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
