<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="Web.install._default" %>

<!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 id="Head1" runat="server">
    <title>OA标题页</title>
    <link href="../css/css.css" rel="stylesheet" type="text/css" />
    </head>
<body  style ="margin :0px">
    <form id="form1" runat="server">
    <div id="main-c">

<div id="main-c-01" >           雷速网络办公软件安装向导
</div>


<div id="main-c-02">
<div id="main-c-02-01">
<table style =" width :800px; text-align :right " border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td style ="width :785px; height :40px ; text-align :right ;" >    &nbsp;</td>
    <td style ="width:15px ; text-align :right ">&nbsp;</td>
  </tr>
</table>
</div></div>
</div>

<table style =" width :960px ; height :100% ; margin-left :auto ; margin-right :auto "><tr>
<td style ="width :210px ; height :100%; vertical-align :top " >
<table width="198" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td style ="vertical-align :top ;">

    <div>
    <table >
    <tr>
    <td id="Td1"  runat ="server" style ="padding-left :5px">
    
    </td>
    </tr>
<tr><td style ="padding-left :5px">

 </td></tr>
    </table>
    
    <div id="main-c-03-left" >
<ul class="ul01">
<li class="li01" ><a href="#">安装步骤</a></li>
<li class="li02" style ="width :156px; height :30px; padding-top :10px ">
    <asp:LinkButton ID="lbt_Setup0" runat="server" onclick="lbt_Setup0_Click" 
        Enabled ="false"  ForeColor="#000099"  >开始</asp:LinkButton></li>
<li class="li02" style ="width :156px; height :30px; padding-top :10px ">
    <asp:LinkButton ID="lbt_Setup1" runat="server" onclick="lbt_Setup1_Click" 
        Enabled ="false" Font-Bold="False" ForeColor="#000099">步骤1：数据库连接设置</asp:LinkButton></li>
<li class="li02" style ="width :156px; height :30px; padding-top :10px ">
    <asp:LinkButton ID="lbt_Setup2" runat="server" onclick="lbt_Setup2_Click" 
        Enabled ="false" ForeColor="#000099">步骤2：安装数据库模块</asp:LinkButton></li>
<li class="li02" style ="width :156px; height :30px; padding-top :10px ">
    <asp:LinkButton ID="lbt_Setup3" runat="server" onclick="lbt_Setup3_Click" 
        Enabled ="false" ForeColor="#000099">步骤3：删除安装文件</asp:LinkButton></li>
<li class="li02" style ="width :156px; height :30px; padding-top :10px ">
    <asp:LinkButton ID="lbt_Setup4" runat="server" Enabled ="false" 
        ForeColor="#000099">完成</asp:LinkButton></li>
</ul>





</div>   
</div> 
  </td>
  </tr>
</table>
</td>
<td style ="width :750px ; height :100%; vertical-align :top ;">
<div style ="width :100%; margin-left :auto ; margin-right :auto ; margin-top :5px ">

<div id ="main-c-03-right" >
            <table cellpadding="0"; cellspacing ="0"; style =" width :100%;background-image: url('../css/images/right_top.png'); background-repeat :repeat-x" >
                <tr>
                    <td style ="width :720px; height :34px;  background-image: url('../css/images/atghtj.png');	background-repeat: no-repeat;
                	background-position: left top;"><div id="main-c-03-right02-top">
                	   <!--这里添加页面标题 -->
                      	安装向导
                      	
                	</div></td>
                </tr>
            </table>
            <div id="main-c-03-right02-main">
            
<!--栏目开始 -->
<div  id ="div_setup0" runat ="server" >    
        <table style ="width :100% ; text-align :center " border="0" cellpadding="0" cellspacing="0" class="ziti04">
               <tr>
                    <td style ="font-weight:bolder;background-image: url('../css/images/asdfrsg.png'); height :33px; padding-left :20px; text-align :left ">
                    <!--这里添加栏目标题 -->
                    开始安装
                    
                     &gt;&gt;</td>
                    <td style ="background-image: url('../css/images/asdfrsg.png'); width :103px"></td>
                    <td style ="background-image: url('../css/images/asdfrsg.png'); width :64px"></td>
                    <td  style ="background-image: url('../css/images/asdfrsg.png'); width :76px" ></td>
                </tr>
                <tr>
                    <td colspan="4" style="font-weight:bolder; height :10px;"></td>
                </tr>
            </table>
            <!--这里添加内容 -->
          <table cellpadding ="1" cellspacing ="1" style ="width :98%; height :350px; margin-left :auto ; margin-right :auto "><tr><td style ="vertical-align:top " id = "xieyi" runat ="server" >
               



</td></tr></table>
                                   <div style ="text-align :right ; width :98% ; margin-left :auto ; margin-right :auto "> 
                                       <input id="Button2" type="button" value="我不同意" onclick= "window.opener=null;window.close(); "/>&nbsp;
<asp:Button ID="btStarSetSQL" runat="server" Text="我同意" 
        onclick="btStarSetSQL_Click" />     </div> 
       
</div> 
<!--栏目结束 -->
               
<!--栏目开始 -->
<div  id ="div_setup1" runat ="server"  visible ="false" > 
                <table style =" width :100%; text-align :center " border="0"  cellpadding="0" cellspacing="0" class="ziti04">
                     <tr>
                         <td style ="font-weight:bolder;background-image: url('../css/images/asdfrsg.png'); width :497px; height :33px; padding-left :20px; text-align :left ">
                             <!--这里添加栏目标题 -->
                             步骤1：数据库连接设置 
                             &gt;&gt;</td>
                         <td style ="background-image: url('../css/images/asdfrsg.png'); width :103px"></td>
                         <td style ="background-image: url('../css/images/asdfrsg.png'); width :64px"></td>
                         <td  style ="background-image: url('../css/images/asdfrsg.png'); width :76px" ></td>
                    </tr>
                    <tr>
                         <td  colspan="4" style="font-weight:bolder; height :10px"></td>
                    </tr>
                </table>
                        <!--这里添加内容 -->
                          
<div style ="width :98%; margin-left :auto ; margin-right :auto "><asp:Label ID="lb_SetSQL" runat="server" ForeColor="Red"></asp:Label> 
<table  cellpadding="0" cellspacing="0"  style ="width :100%; " id= "tb_setSQL" runat ="server" visible ="false" >
                    <tr>
                        <td style ="height :36px;" colspan="2">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td style ="height :36px; text-align :right; width:50%;">
                            SQL Server 服务器地址</td>
                        <td>
                            <asp:TextBox ID="tbdizhi" runat="server" Width="230px">(local)</asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td  style ="text-align :right; height :36px; ">
                            SQL Server 数据库名称</td>
                        <td >
                            <asp:TextBox ID="tbshujuming" runat="server" Width ="230px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style ="text-align :right; height :36px ">
                            SQL Server 数据库用户名</td>
                        <td >
                            <asp:TextBox ID="tbuserid" runat="server" Width ="230px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style ="text-align :right; height :36px ">
                            SQLServer 数据库密码</td>
                        <td >
                            <asp:TextBox ID="tbpd" runat="server" Width ="230px"></asp:TextBox>
                        </td>
                    </tr>
                      <tr>
                        <td style ="text-align :right; height :36px ">
                            数据加密密码</td>
                        <td >
                        <div id="divpassstring" runat ="server" >
                            <asp:TextBox ID="tbPassString" runat="server" Width="58px"></asp:TextBox>
                            &nbsp;密码设定后务必牢记，重装系统时须设置相同的数据加密密码，否则原有的数据无法读取。<asp:RequiredFieldValidator 
                                ID="RequiredFieldValidator1" runat="server" 
                                                ControlToValidate="tbPassString" Display="Dynamic" ErrorMessage="密码不能为空。" 
                                                ValidationGroup="Setconfig"></asp:RequiredFieldValidator>                                
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                                    ControlToValidate="tbPassString" Display="Dynamic" ErrorMessage="加密密码为2-6个字母或数字。" 
                                    ValidationExpression="^[^%&gt;&lt;'&amp;*=!&quot;?]{2,6}$" 
                                    ValidationGroup="Setconfig"></asp:RegularExpressionValidator></div>
                            <asp:Label ID="lbpassdstring" runat="server" ></asp:Label>
                        </td>
                    </tr>
                    <tr><td colspan="2" style =" text-align :right ">
     
                    
                        </td>
                            </tr>
                </table>
  <div style ="text-align :right "><asp:Button ID="btSetconfig" runat="server" onclick="btSetconfig_Click"  Visible ="false" 
         Text="写入配置文件" />
     <asp:Button ID="btconnSQL" runat="server" Text="连接数据库" Width="90px" 
                      onclick="btconnSQL_Click" Visible="False" /> </div>                
                
 <div style ="text-align :right " id ="divNext1" runat ="server"  visible ="false" >
     <asp:Button ID="btNext1" runat="server" Text="继续安装功能模块"     onclick="lbt_Setup2_Click" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
     <asp:Button ID="Button1" runat="server" Text="数据库连接信息设置完成，退出安装" 
         onclick="lbt_Setup3_Click" /></div>
 </div>
                </div> 
<!--栏目结束 -->

<!--栏目开始 -->
<div  id ="div_setup2" runat ="server" visible ="false" > 
                <table style =" width :100%; text-align :center " border="0"  cellpadding="0" cellspacing="0" class="ziti04">
                     <tr>
                         <td style ="font-weight:bolder;background-image: url('../css/images/asdfrsg.png'); width :497px; height :33px; padding-left :20px ; text-align :left ">
                             <!--这里添加栏目标题 -->
                             步骤2：安装数据库模块 
                             &gt;&gt;</td>
                         <td style ="background-image: url('../css/images/asdfrsg.png'); width :103px"></td>
                         <td style ="background-image: url('../css/images/asdfrsg.png'); width :64px"></td>
                         <td  style ="background-image: url('../css/images/asdfrsg.png'); width :76px" ></td>
                    </tr>
                    <tr>
                         <td  colspan="4" style="font-weight:bolder; height :10px"></td>
                    </tr>
                </table>
                        <!--这里添加内容 -->
                        <div style ="width :98% ; margin-left :auto ; margin-right :auto ">
                        <div id = "anzhuang" runat ="server" >
                          <div  style =" font-size :18px; font-weight :bold ; color :Red "><asp:Label ID="lbProject" runat="server"></asp:Label></div> 
                            <div style ="margin-top :16px"><asp:CheckBoxList ID="cbProject" runat="server" Height="24px"></asp:CheckBoxList></div> 
                            <div style ="margin-top :16px"><asp:CheckBox ID="cbExample" runat="server" Text="安装示例数据" /><br />
                            如选择安装示例数据，前台登录名为123和999，登录密码为123456，两个账户权限不同。</div> 
                            <div style ="margin-top :16px"><asp:Button ID="btSetproject" runat="server" Text="开始安装数据库模块" onclick="btStar_Click" /></div> 
                        </div> 
        <table  cellpadding="0" cellspacing="0" style ="width :100%; line-height:200%; margin-top :10px">
                    <tr>
                        <td id = "tbcreattable" runat ="server"  >
   </td>

                    </tr>
                   
                </table>  

  
             <div style ="text-align :right ">
     <asp:Button ID="btNext2" runat="server" Text="下一步"  Visible ="false" 
         onclick="lbt_Setup3_Click" /></div>
             
             </div> 
                </div> 
<!--栏目结束 -->


<!--栏目开始 -->
<div   id ="div_setup3" runat ="server" visible ="false" > 
                <table style =" width :100% ; text-align :center " border="0" cellpadding="0" cellspacing="0" class="ziti04">
                     <tr>
                         <td style ="font-weight:bolder;background-image: url('../css/images/asdfrsg.png'); width :497px; height :33px; padding-left :20px; text-align :left ">
                             <!--这里添加栏目标题 -->
                             步骤3：删除安装文件 
                             &gt;&gt;</td>
                         <td style ="background-image: url('../css/images/asdfrsg.png'); width :103px"></td>
                         <td style ="background-image: url('../css/images/asdfrsg.png'); width :64px"></td>
                         <td  style ="background-image: url('../css/images/asdfrsg.png'); width :76px" ></td>
                    </tr>
                    <tr>
                         <td  colspan="4" style="font-weight:bolder; height :10px"></td>
                    </tr>
                </table>
                        <!--这里添加内容 -->

<div style ="width :98%; margin-left :auto ; margin-right :auto ; line-height :200%"><span style ="font-size :larger ; font-weight :bold ; color :Red ">特别提醒：</span> <br />
                            系统安装完成，下面将删除本安装文件并跳转到管理后台。由于权限不足等原因，安装文件删除可能会失败。为了系统安全，请打开系统根目录下的install文件夹，检查里面是否有文件，如有一定要删除它。
                            <div style ="text-align :right "><asp:Button ID="btDel" runat="server" Text="删除安装文件，并跳转到管理后台" 
        onclick="btDel_Click" /></div> 

        </div>
                </div> 
<!--栏目结束 -->


                </div>
            </div>



    
             
        
        
        
 
               




        
        
        

</div>

</td>
</tr></table>


    </form>
</body>
</html>
