<%@ page language="VB" autoeventwireup="false" inherits="WebExam.Web.Install.InstallWizard, App_Web_4onrzmb5" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!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>Install wizard</title>
    <link href="install.css" rel="stylesheet" type="text/css" />
</head>
<body>

    <form id="form1" runat="server">
      <script type="text/javascript">
         function checkDisabled(button)
        {
            //return false;
            if (button.className == "WizardButtonDisabled")
            {
                return true;
            }
            else
            {
                return false;
            }
        }
      </script>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:Wizard ID="wizInstall" runat="server" CssClass="Wizard" ActiveStepIndex="0"
        Font-Names="Verdana" CellPadding="5" CellSpacing="5" FinishCompleteButtonType="Link"
        FinishPreviousButtonType="Link" StartNextButtonType="Link" StepNextButtonType="Link"
        StepPreviousButtonType="Link" DisplaySideBar="False">
        <StepStyle VerticalAlign="Top" Width="650px" Height="400px" />
        <NavigationButtonStyle CssClass="WizardButton" />
        <StepNavigationTemplate>
            <table border="0" cellpadding="5" cellspacing="5">
                <tr>
                    <td align="right">
                        <asp:LinkButton ID="CustomButton" runat="server" Text="Custom" CssClass="WizardButton"
                            Visible="False" />
                    </td>
                    <td align="right">
                        <asp:LinkButton ID="StepPreviousButton" runat="server" CommandName="MovePrevious"
                            Text="Previous" CssClass="WizardButton" />
                    </td>
                    <td align="right">
                        <asp:LinkButton ID="StepNextButton" runat="server" CommandName="MoveNext" Text="Next"
                            CssClass="WizardButton" />
                    </td>
                </tr>
            </table>
        </StepNavigationTemplate>
        <HeaderTemplate>
            <img src="../images/logo2.gif" border="0" alt="">
        </HeaderTemplate>
        <WizardSteps>
            <asp:WizardStep ID="Step0" runat="Server" Title="Welcome"  
                >
                <h2>
                    <asp:Label ID="lblStep0Title" runat="server" 
                        /></h2>
                <asp:Label ID="lblStep0Detail" runat="Server" 
                     />

                <table id="tblLanguage" runat="server" cellpadding="0" cellspacing="0" border="0">
                    
                    <tr>
                        <td class="NormalBold" width="200" valign="top">
                            <asp:Label ID="lblChooseLanguage" runat="server" />
                        </td>
                        <td class="Normal" width="20"><asp:Image ID="Image_language" runat="server"  />
                        </td>
                        <td class="Normal" width="250">
                            
                            <telerik:RadComboBox ID="Rad_language" runat="server" Width="100"
                                Skin="Vista" MarkFirstMatch="false" HighlightTemplatedItems="True" ShowToggleImage="True"
                                AllowCustomText="false" EnableLoadOnDemand="false" AutoPostBack="true">
                                <ItemTemplate>
                                    <div>
                                        <img src='../Images/flag/<%# DataBinder.Eval(Container, "Attributes['ImagePath']") %>'
                                            alt="" />
                                        <span>
                                            <%# DataBinder.Eval(Container, "Text") %></span>
                                    </div>
                                </ItemTemplate>
                                <Items>
                                    <telerik:RadComboBoxItem Value="en-US" ImagePath="en-US.jpg" Text="English"></telerik:RadComboBoxItem>
                                    <telerik:RadComboBoxItem Value="zh-CN" ImagePath="zh-CN.jpg" Text="Simple Chinese"></telerik:RadComboBoxItem>
                                   
                                </Items>

<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                            </telerik:RadComboBox>
                            
                        </td>
                    </tr>
                </table>
                <asp:Label ID="lblDataBaseWarning" runat="server" CssClass="NormalRed" 
                    meta:ResourceKey="DatabaseWarning" />
            </asp:WizardStep>
            <asp:WizardStep ID="Step1" runat="Server" Title="License Agreement" 
                >
                <h2>
                    <asp:label ID="L_LincenseAgreement" runat="server" Text="Lincense Agreement" meta:resourcekey="LincenseAgreement"
                        ></asp:label></h2>
                <p><asp:label ID="L_ReadLincense" runat="server" Text="ReadLicense"  meta:resourcekey="ReadLicense"
                        ></asp:label>
                </p>
                <asp:TextBox meta:resourcekey="LicenseContent" ID="T_lincense" Width="630" Height ="280" Text="License Content" CssClass="lincense" TextMode="MultiLine" runat="server"></asp:TextBox>
                <div>
                    <asp:CheckBox ID="CB_accept" AutoPostBack="true" runat="server" Text="I accept the terms in the license agreement." meta:resourcekey="acceptLicense" />
               
                </div>
                
                
            </asp:WizardStep>
            <asp:WizardStep ID="Step2" runat="server" Title="FilePermissions">
                <h2>
                    <asp:Label ID="lblStep1Title" runat="server" /></h2>
                <asp:Label ID="lblStep1Detail" runat="Server" />

                <h3>
                    <asp:Label ID="lblPermissions" runat="server" /></h3>
                <asp:CheckBoxList ID="lstPermissions" runat="server" DataTextField="Name" DataValueField="Permission"
                    TextAlign="Left" />

                <asp:Label ID="lblPermissionsError" runat="server" />
            </asp:WizardStep>
            <asp:WizardStep ID="Step3" runat="server" Title="ConnectionString" AllowReturn="false"
                >
                <h2>
                    <asp:Label ID="lblStep2Title" runat="server" /></h2>
                <asp:Label ID="lblStep2Detail" runat="Server" />

                <table cellpadding="0" cellspacing="0" border="0">
                    <tr>
                        <td class="NormalBold" style="width: 150px;">
                            <asp:Label ID="lblChooseDatabase" runat="server" />
                        </td>
                        <td class="Normal" width="550">
                            <asp:RadioButtonList ID="rblDatabases" runat="Server" AutoPostBack="true" RepeatDirection="Horizontal"
                                RepeatColumns="3">
                                <asp:ListItem Text="SQL Server 2005/2008 (Express) File" Value="SQLFile" 
                                    ></asp:ListItem>
                                <asp:ListItem Text="SQL Server 2005/2008 Database" Value="SQLDatabase" 
                                   ></asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                </table>
                <br />
                <table id="tblDatabase" runat="Server" visible="False" cellpadding="0" cellspacing="0"
                    border="0">
                    <tr>
                        <td class="NormalBold" style="width: 150px;" height="30" valign="top">
                            <asp:Label ID="lblServer" runat="Server" />
                        </td>
                        <td class="Normal" style="width: 150px;" valign="top">
                            <asp:TextBox ID="txtServer" runat="Server" Width="150px" />
                        </td>
                        <td class="Help" valign="middle">
                            <asp:Label ID="lblServerHelp" runat="Server" />
                        </td>
                    </tr>
                    <tr id="trFile" runat="server">
                        <td class="NormalBold" style="width: 150px;" height="30" valign="top">
                            <asp:Label ID="lblFile" runat="Server" />
                        </td>
                        <td class="Normal" style="width: 150px;" valign="top">
                            <asp:TextBox ID="txtFile" runat="Server" Width="150px" />
                        </td>
                        <td class="Help" valign="middle">
                            <asp:Label ID="lblDatabaseFileHelp" runat="Server" />
                        </td>
                    </tr>
                    <tr id="trDatabase" runat="server">
                        <td class="NormalBold" style="width: 150px;" height="30" valign="top">
                            <asp:Label ID="lblDataBase" runat="Server" />
                        </td>
                        <td class="Normal" style="width: 150px;" valign="top">
                            <asp:TextBox ID="txtDatabase" runat="Server" Width="150px" />
                        </td>
                        <td class="Help" valign="middle">
                            <asp:Label ID="lblDatabaseHelp" runat="Server" />
                        </td>
                    </tr>
                    <tr id="trIntegrated" runat="server">
                        <td class="NormalBold" style="width: 150px;" height="30" valign="top">
                            <asp:Label ID="lblIntegrated" runat="Server" />
                        </td>
                        <td valign="top">
                            <asp:CheckBox ID="chkIntegrated" runat="Server" AutoPostBack="True" />
                        </td>
                        <td class="Help" valign="middle">
                            <asp:Label ID="lblIntegratedHelp" runat="Server" />
                        </td>
                    </tr>
                    <tr id="trUser" runat="Server">
                        <td class="NormalBold" style="width: 150px;" height="30" valign="top">
                            <asp:Label ID="lblUserId" runat="Server" />
                        </td>
                        <td class="Normal" style="width: 150px;" valign="top">
                            <asp:TextBox ID="txtUserId" runat="Server" Width="150px" />
                        </td>
                        <td class="Help" valign="middle">
                            <asp:Label ID="lblUserHelp" runat="Server" />
                        </td>
                    </tr>
                    <tr id="trPassword" runat="Server">
                        <td class="NormalBold" style="width: 150px;" height="30" valign="top">
                            <asp:Label ID="lblPassword" runat="Server" />
                        </td>
                        <td class="Normal" style="width: 150px;" valign="top">
                            <asp:TextBox ID="txtPassword" runat="Server" Width="150px" />
                        </td>
                        <td class="Help" valign="middle">
                            <asp:Label ID="lblPasswordHelp" runat="Server" />
                        </td>
                    </tr>
                   
                   
                </table>

                <asp:Label ID="lblDataBaseError" runat="server" />
            </asp:WizardStep>
            <asp:WizardStep ID="Step4" runat="server" Title="Database" AllowReturn="false">
                <h2>
                    <asp:Label ID="lblStep3Title" runat="server" /></h2>
                <asp:Label ID="lblStep3Detail" runat="Server" />
             
                <div id="Progress">
                    <asp:label ID="L_installing" runat="server" Text="Installing" 
                       ></asp:label>
                    </div>
 
                <textarea id="txtFeedback" class="FeedBack" cols="80" style="height:280px;width:630px;" rows="15"></textarea>
            
                <asp:Label ID="lblInstallError" runat="server"  />
            </asp:WizardStep>
            <asp:WizardStep ID="Complete" runat="server" StepType="Finish" Title="Installation Complete"
                >
                <h2>
                    <asp:Label ID="lblCompleteTitle" runat="server" /></h2>
                <asp:Label ID="lblCompleteDetail" runat="server" />
            </asp:WizardStep>
        </WizardSteps>
    </asp:Wizard>
    </form>
</body>
</html>
