<%@ Page Language="C#" AutoEventWireup="true" Inherits="Kesion.NET.WebSite.install.Index" Codebehind="Index.aspx.cs" %>
<%@ Import  Namespace="Kesion.Publics" %>
<!DOCTYPE html>
<html>
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <link href="images/install.css" rel="stylesheet"  media="all"/>
    <script src="../ks_inc/jquery.js"></script>
</head>
<body class="bg-bgradualChange p-relative pd_70">
    <form id="form1" runat="server">
      
      
            <div class="header bg-white">
    	<div class="page-width clearfix">
        	<div class="fl logoBox c-yellow fz-26 fw-bold lh-60">
            	<%=ProductName %> &nbsp;&nbsp;安装向导
            </div>
            <div class="fr introText c-666 lh-40 fz-13 mt_20">
            	当前安装版本：<%=ProductVersion %> &nbsp;&nbsp;<script src="<%=RemoteVersion %>"></script>
            </div>
        </div>
    </div>
    <div class="floor pp_15">
    	<div class="page-width">
        	<div class="installInfo c-white md_25 fz-13">
            	<p class="lh-25">欢迎使用<%=ProductName %> 安装向导;</p>
				<p class="lh-25">本向导即将安装软件到您的系统中，安装前仔细阅读一下协议，点击<font class="fz-16 c-yellow">同意</font>进入下一步</p>
            </div>
            <div class="installCon bg-white<%=step>1?" pd_70":"" %>">
            	<div class="stepBox pp_20 pd_20">
                	<ul class="clearfix t-c">
                        <%if (step==1) {%>
                    	<li class="on">
                        	<span class="circle mao lh-30 md_10 show rod c-white bg-yellow fz-13">1</span>
                            <div class="c-474747 fw-bold fz-13">阅读许可协议</div>
                            <em class="p-absolute bg-ygradualChange line on"></em>
                        </li>
                        <li>
                        	<span class="circle mao lh-30 md_10 show rod bg-eee c-9d9d9d fz-13">2</span>
                            <div class="c-474747 fw-bold fz-13">检查安装环境</div>
                            <em class="p-absolute bg-eee line"></em>
                        </li>
                        <li>
                        	<span class="circle mao lh-30 md_10 show rod bg-eee c-9d9d9d fz-13">3</span>
                            <div class="c-474747 fw-bold fz-13">创建数据库</div>
                            <em class="p-absolute bg-eee line"></em>
                        </li>
                        <li>
                        	<span class="circle mao lh-30 md_10 show rod bg-eee c-9d9d9d fz-13">4</span>
                            <div class="c-474747 fw-bold fz-13">网站基本配置</div>
                            <em class="p-absolute bg-eee line"></em>
                        </li>
                        <li>
                        	<span class="circle mao lh-30 md_10 show rod bg-eee c-9d9d9d fz-13">5</span>
                            <div class="c-474747 fw-bold fz-13">选择网站风格</div>
                            <em class="p-absolute bg-eee line"></em>
                        </li>
                        <li>
                        	<span class="circle mao lh-30 md_10 show rod bg-eee c-9d9d9d fz-13">6</span>
                            <div class="c-474747 fw-bold fz-13">安装完成</div>
                            <em class="p-absolute bg-eee line hide"></em>
                        </li>
                      <%}else if (step==2){ %>
                        <li class="on">
                        	<span class="circle mao lh-30 md_10 show rod c-white bg-yellow fz-13">1</span>
                            <div class="c-474747 fw-bold fz-13">阅读许可协议</div>
                            <em class="p-absolute bg-yellow line on"></em>
                        </li>
                        <li>
                        	<span class="circle mao lh-30 md_10 show rod c-white bg-yellow fz-13">2</span>
                            <div class="c-474747 fw-bold fz-13">检查安装环境</div>
                            <em class="p-absolute bg-ygradualChange line"></em>
                        </li>
                        <li>
                        	<span class="circle mao lh-30 md_10 show rod bg-eee c-9d9d9d fz-13">3</span>
                            <div class="c-474747 fw-bold fz-13">创建数据库</div>
                            <em class="p-absolute bg-eee line"></em>
                        </li>
                        <li>
                        	<span class="circle mao lh-30 md_10 show rod bg-eee c-9d9d9d fz-13">4</span>
                            <div class="c-474747 fw-bold fz-13">网站基本配置</div>
                            <em class="p-absolute bg-eee line"></em>
                        </li>
                        <li>
                        	<span class="circle mao lh-30 md_10 show rod bg-eee c-9d9d9d fz-13">5</span>
                            <div class="c-474747 fw-bold fz-13">选择网站风格</div>
                            <em class="p-absolute bg-eee line"></em>
                        </li>
                        <li>
                        	<span class="circle mao lh-30 md_10 show rod bg-eee c-9d9d9d fz-13">6</span>
                            <div class="c-474747 fw-bold fz-13">安装完成</div>
                            <em class="p-absolute bg-eee line hide"></em>
                        </li>
                         <%}else if (step==3){ %>
                        <li class="on">
                        	<span class="circle mao lh-30 md_10 show rod c-white bg-yellow fz-13">1</span>
                            <div class="c-474747 fw-bold fz-13">阅读许可协议</div>
                            <em class="p-absolute bg-yellow line on"></em>
                        </li>
                        <li>
                        	<span class="circle mao lh-30 md_10 show rod c-white bg-yellow fz-13">2</span>
                            <div class="c-474747 fw-bold fz-13">检查安装环境</div>
                            <em class="p-absolute bg-yellow line"></em>
                        </li>
                        <li>
                        	<span class="circle mao lh-30 md_10 show rod c-white bg-yellow fz-13">3</span>
                            <div class="c-474747 fw-bold fz-13">创建数据库</div>
                            <em class="p-absolute bg-ygradualChange line"></em>
                        </li>
                        <li>
                        	<span class="circle mao lh-30 md_10 show rod bg-eee c-9d9d9d fz-13">4</span>
                            <div class="c-474747 fw-bold fz-13">网站基本配置</div>
                            <em class="p-absolute bg-eee line"></em>
                        </li>
                        <li>
                        	<span class="circle mao lh-30 md_10 show rod bg-eee c-9d9d9d fz-13">5</span>
                            <div class="c-474747 fw-bold fz-13">选择网站风格</div>
                            <em class="p-absolute bg-eee line"></em>
                        </li>
                        <li>
                        	<span class="circle mao lh-30 md_10 show rod bg-eee c-9d9d9d fz-13">6</span>
                            <div class="c-474747 fw-bold fz-13">安装完成</div>
                            <em class="p-absolute bg-eee line hide"></em>
                        </li>
                          <%}else if (step==4){ %>
                       <li class="on">
                        	<span class="circle mao lh-30 md_10 show rod c-white bg-yellow fz-13">1</span>
                            <div class="c-474747 fw-bold fz-13">阅读许可协议</div>
                            <em class="p-absolute bg-yellow line on"></em>
                        </li>
                        <li>
                        	<span class="circle mao lh-30 md_10 show rod c-white bg-yellow fz-13">2</span>
                            <div class="c-474747 fw-bold fz-13">检查安装环境</div>
                            <em class="p-absolute bg-yellow line"></em>
                        </li>
                        <li>
                        	<span class="circle mao lh-30 md_10 show rod c-white bg-yellow fz-13">3</span>
                            <div class="c-474747 fw-bold fz-13">创建数据库</div>
                            <em class="p-absolute bg-yellow line"></em>
                        </li>
                        <li>
                        	<span class="circle mao lh-30 md_10 show rod c-white bg-yellow fz-13">4</span>
                            <div class="c-474747 fw-bold fz-13">网站基本配置</div>
                            <em class="p-absolute bg-ygradualChange line"></em>
                        </li>
                        <li>
                        	<span class="circle mao lh-30 md_10 show rod bg-eee c-9d9d9d fz-13">5</span>
                            <div class="c-474747 fw-bold fz-13">选择网站风格</div>
                            <em class="p-absolute bg-eee line"></em>
                        </li>
                        <li>
                        	<span class="circle mao lh-30 md_10 show rod bg-eee c-9d9d9d fz-13">6</span>
                            <div class="c-474747 fw-bold fz-13">安装完成</div>
                            <em class="p-absolute bg-eee line hide"></em>
                        </li>
                          <%}else if (step==5){ %>
                               <li class="on">
                        	<span class="circle mao lh-30 md_10 show rod c-white bg-yellow fz-13">1</span>
                            <div class="c-474747 fw-bold fz-13">阅读许可协议</div>
                            <em class="p-absolute bg-yellow line on"></em>
                        </li>
                        <li>
                        	<span class="circle mao lh-30 md_10 show rod c-white bg-yellow fz-13">2</span>
                            <div class="c-474747 fw-bold fz-13">检查安装环境</div>
                            <em class="p-absolute bg-yellow line"></em>
                        </li>
                        <li>
                        	<span class="circle mao lh-30 md_10 show rod c-white bg-yellow fz-13">3</span>
                            <div class="c-474747 fw-bold fz-13">创建数据库</div>
                            <em class="p-absolute bg-yellow line"></em>
                        </li>
                        <li>
                        	<span class="circle mao lh-30 md_10 show rod c-white bg-yellow fz-13">4</span>
                            <div class="c-474747 fw-bold fz-13">网站基本配置</div>
                            <em class="p-absolute bg-yellow line"></em>
                        </li>
                        <li>
                        	<span class="circle mao lh-30 md_10 show rod c-white bg-yellow fz-13">5</span>
                            <div class="c-474747 fw-bold fz-13">选择网站风格</div>
                            <em class="p-absolute bg-ygradualChange line"></em>
                        </li>
                        <li>
                        	<span class="circle mao lh-30 md_10 show rod bg-eee c-9d9d9d fz-13">6</span>
                            <div class="c-474747 fw-bold fz-13">安装完成</div>
                            <em class="p-absolute bg-eee line hide"></em>
                        </li>
                          <%}else if (step==6){ %>
                        <li class="on">
                        	<span class="circle mao lh-30 md_10 show rod c-white bg-yellow fz-13">1</span>
                            <div class="c-474747 fw-bold fz-13">阅读许可协议</div>
                            <em class="p-absolute bg-yellow line on"></em>
                        </li>
                        <li>
                        	<span class="circle mao lh-30 md_10 show rod c-white bg-yellow fz-13">2</span>
                            <div class="c-474747 fw-bold fz-13">检查安装环境</div>
                            <em class="p-absolute bg-yellow line"></em>
                        </li>
                        <li>
                        	<span class="circle mao lh-30 md_10 show rod c-white bg-yellow fz-13">3</span>
                            <div class="c-474747 fw-bold fz-13">创建数据库</div>
                            <em class="p-absolute bg-yellow line"></em>
                        </li>
                        <li>
                        	<span class="circle mao lh-30 md_10 show rod c-white bg-yellow fz-13">4</span>
                            <div class="c-474747 fw-bold fz-13">网站基本配置</div>
                            <em class="p-absolute bg-yellow line"></em>
                        </li>
                        <li>
                        	<span class="circle mao lh-30 md_10 show rod c-white bg-yellow fz-13">5</span>
                            <div class="c-474747 fw-bold fz-13">选择网站风格</div>
                            <em class="p-absolute bg-yellow line"></em>
                        </li>
                        <li>
                        	<span class="circle mao lh-30 md_10 show rod c-white bg-yellow fz-13">6</span>
                            <div class="c-474747 fw-bold fz-13">安装完成</div>
                            <em class="p-absolute bg-ygradualChange line hide"></em>
                        </li>
                          <%}else if (step==7){ %>
                        <%} %>
                    </ul>
                </div>

              <!--  步骤1  begin  -->
               <asp:Panel ID="Step1" runat="server">
                    <div class="stepTips c-747474 t-c pd_10 pp_10 bg-gray lh-25 gray-borderColor borderWidth borderTop borderBottom">阅读许可协议，点击“<font class="c-yellow2">同意</font>”进入下一步</div>
                    <div class="stepOneCon plr_40 pp_40 pd_30">
                	    <h2 class="t-c fw-normal md_20"><%=ProductName %> 安装许可协议</h2>
                        <div class="stepOneText lh-25 c-747474" style="height:420px;overflow-y:auto">
                    	     <%
                                 string license = Kesion.HtmlTags.Function.ReadFile("license.txt").Replace("\n", "<br/>");
                                 license = license.Replace("{$Version}", ProductName + " " + ProductVersion);
                                 license = license.Replace("{$year}", DateTime.Now.Year.ToString());
                                 license = license.Replace("{$month}", DateTime.Now.Month.ToString());
                                 license = license.Replace("{$day}", DateTime.Now.Day.ToString());
                                 Response.Write(license);
                                 %>
                            
                        </div>
                    </div>
                    <div class="nextStep pd_25 t-c">
                        <asp:Button ID="BtnStep1" runat="server" CssClass="nextStepBtn c-white ro_3 fz-14" Text="同意" OnClick="BtnStep1_Click" />
                    </div>
              </asp:Panel>
                <!--  步骤1 end    -->


                


            <!--  步骤2  begin  -->
            <asp:Panel ID="Step2" runat="server" Visible="false">
                  <div class="stepTips c-747474 t-c pd_10 pp_10 bg-gray lh-25 gray-borderColor borderWidth borderTop borderBottom">检查安装环境，点击“<font class="c-yellow2">下一步</font>”继续安装</div>
                    <div class="stepOneCon w80 mao pd_30">
                	    <h2 class="t-c md_20 pp_20 fz-14 c-747474">环境检查</h2>
                        <table cellpadding="0" cellspacing="0" border="0" class="fileItem c-c2c2c2 t-c gray2-borderColor borderLeft borderRight borderTop borderWidth">
                    	    <tr class="attributeTitle">
                        	    <td class="w3 c-747474 borderWidth borderBottom gray2-borderColor fz-13">项目</td>
                                <td class="w3 c-747474 borderWidth borderBottom gray2-borderColor fz-13">所需配置</td>
                                <td class="w3 c-747474 borderWidth borderBottom gray2-borderColor fz-13">当前服务器</td>
                            </tr>
                            <tr>
                        	    <td class="borderWidth borderBottom gray2-borderColor">.NET 版本</td>
                                <td class="borderWidth borderBottom gray2-borderColor">ASP.NET 4.0及以上</td>
                                <td class="t-l borderWidth borderBottom gray2-borderColor">
                                    <i class="Identification<%=Environment.Version.Major<4?"":" success" %>"></i>ASP.NET <%=Environment.Version.Major.ToString()%>.<%=Environment.Version.Minor%>.<%=Environment.Version.Build.ToString()%>.<%=Environment.Version.Revision%></td>
                            </tr>
                            <tr>
                        	    <td class="borderWidth borderBottom gray2-borderColor">IIS版本</td>
                                <td class="borderWidth borderBottom gray2-borderColor">IIS 7.0及以上</td>
                                <td class="t-l borderWidth borderBottom gray2-borderColor"><i class="Identification success"></i><%=Request.ServerVariables["SERVER_SOFTWARE"] %></td>
                            </tr>
                            <tr>
                        	    <td class="borderWidth borderBottom gray2-borderColor">应用程序池托管管道模式</td>
                                <td class="borderWidth borderBottom gray2-borderColor">集成</td>
                                <td class="t-l borderWidth borderBottom gray2-borderColor">请自行检测</td>
                            </tr>
                            <tr>
                        	    <td class="borderWidth borderBottom gray2-borderColor">数据库</td>
                                <td class="borderWidth borderBottom gray2-borderColor">MSSQL 2008及以上</td>
                                <td class="t-l borderWidth borderBottom gray2-borderColor">请自行检测</td>
                            </tr>
                        </table>
                        <h2 class="t-c md_20 pp_20 fz-14 c-747474">目录、文件权限检查</h2>
                        <table cellpadding="0" cellspacing="0" border="0" class="fileItem c-c2c2c2 t-c gray2-borderColor borderLeft borderRight borderTop borderWidth">
                    	    <tr class="attributeTitle">
                        	    <td class="w3 c-747474 borderWidth borderBottom gray2-borderColor fz-13">目录文件</td>
                                <td class="w3 c-747474 borderWidth borderBottom gray2-borderColor fz-13">所需状态</td>
                                <td class="w3 c-747474 borderWidth borderBottom gray2-borderColor fz-13">当前状态</td>
                            </tr>
                            <tr>
                        	    <td class="borderWidth borderBottom gray2-borderColor">/config/</td>
                                <td class="borderWidth borderBottom gray2-borderColor"><i class="Identification success"></i>可写</td>
                                <td class="borderWidth borderBottom gray2-borderColor"><i class="Identification<%=CheckFolderCanSave(KSCMS.GetInstallDir() + "config/") == true?" success":""%>"></i>可写</td>
                            </tr>
                            <tr>
                        	    <td class="borderWidth borderBottom gray2-borderColor">/uploadfiles/</td>
                                <td class="borderWidth borderBottom gray2-borderColor"><i class="Identification success"></i>可写</td>
                                <td class="borderWidth borderBottom gray2-borderColor"><i class="Identification <%=CheckFolderCanSave(KSCMS.GetInstallDir() + "uploadfiles/") == true?" success":""%>"></i>可写</td>
                            </tr>
                            <tr>
                        	    <td class="borderWidth borderBottom gray2-borderColor">/tp/</td>
                                <td class="borderWidth borderBottom gray2-borderColor"><i class="Identification success"></i>可写</td>
                                <td class="borderWidth borderBottom gray2-borderColor"><i class="Identification <%=CheckFolderCanSave(KSCMS.GetInstallDir() + "tp/") == true?" success":""%>"></i>可写</td>
                            </tr>
                            <tr>
                        	    <td class="borderWidth borderBottom gray2-borderColor">/install/</td>
                                <td class="borderWidth borderBottom gray2-borderColor"><i class="Identification success"></i>可写</td>
                                <td class="borderWidth borderBottom gray2-borderColor"><i class="Identification <%=CheckFolderCanSave(KSCMS.GetInstallDir() + "install/") == true?" success":""%>"></i>可写</td>
                            </tr>
                           
                            <tr>
                        	    <td class="borderWidth borderBottom gray2-borderColor">/conn.config</td>
                                <td class="borderWidth borderBottom gray2-borderColor"><i class="Identification success"></i>可写</td>
                                <td class="borderWidth borderBottom gray2-borderColor"><i class="Identification <%=CheckFileCanSave(KSCMS.GetInstallDir() + "conn.config") == true?" success":""%>"></i>可写</td>
                            </tr>
                            <tr>
                        	    <td class="borderWidth borderBottom gray2-borderColor">/web.config</td>
                                <td class="borderWidth borderBottom gray2-borderColor"><i class="Identification success"></i>可写</td>
                                <td class="borderWidth borderBottom gray2-borderColor"><i class="Identification <%=CheckFileCanSave(KSCMS.GetInstallDir() + "web.config") == true?" success":""%>"></i>可写</td>
                            </tr>
                          
                        </table>
                    </div>
                    <div class="nextStep pd_25 p-relative t-c  w80 mao">
                	    <a href="index.aspx" class="p-absolute c-c2c2c2 fz-13 lh-35 prevStep"><i class="returnIcon mr_5"></i><span>上一步</span></a>
                        <asp:Button ID="BtnStep2" runat="server" CssClass="nextStepBtn c-white ro_3 fz-14" Text="下一步" OnClick="BtnStep2_Click" />
                    </div>
            </asp:Panel>
            <!--  步骤2 end    -->




            <!--  步骤3  begin  -->
            <asp:Panel ID="Step3" runat="server" Visible="false">

                <asp:Panel ID="Step3_1" Visible="true" runat="server">
                         <div class="stepTips c-747474 t-c pd_10 pp_10 bg-gray lh-25 gray-borderColor borderWidth borderTop borderBottom">创建数据库，<font class="c-yellow2">填写</font>信息后，点击“<font class="c-yellow2">下一步</font>”继续安装</div>
                        <div class="stepOneCon w80 mao pd_30">
                	        <h2 class="t-c md_20 pp_20 fz-14 c-747474">填写数据库信息</h2>
                            <table cellpadding="0" cellspacing="0" border="0" class="fileItem c-c2c2c2 t-c gray2-borderColor borderLeft borderRight borderTop borderWidth">
                    	        <tr class="attributeTitle">
                        	        <td class="w4 c-747474 borderWidth borderBottom gray2-borderColor fz-13">数据库服务器</td>
                                    <td class="w4 c-747474 borderWidth borderBottom gray2-borderColor fz-13">数据库名</td>
                                    <td class="w4 c-747474 borderWidth borderBottom gray2-borderColor fz-13">数据库用户名</td>
                                    <td class="w4 c-747474 borderWidth borderBottom gray2-borderColor fz-13">数据库密码</td>
                                </tr>
                                <tr>
                        	        <td class="borderWidth borderBottom gray2-borderColor"><asp:TextBox ID="TxtDBService" runat="server" Text="KESIONCMS\MSSQL2008" CssClass="dataBtn border w80 ro_3 c-747474 bg-gray2 lh-30 t-c" /></td>
                                    <td class="borderWidth borderBottom gray2-borderColor"><asp:TextBox ID="TxtDBName" MaxLength="50" runat="server" Text="KesionICMS" CssClass="textdataBtn border w80 ro_3 c-747474 bg-gray2 lh-30 t-c"/></td>
                                    <td class="borderWidth borderBottom gray2-borderColor"><asp:TextBox ID="TxtDBUser" MaxLength="50"  runat="server" Text="sa" cssclass="dataBtn border w80 ro_3 c-747474 bg-gray2 lh-30 t-c"/></td>
                                    <td class="borderWidth borderBottom gray2-borderColor"><asp:TextBox ID="TxtDBPass" MaxLength="50" runat="server" Text="989066" cssclass="dataBtn border w80 ro_3 c-747474 bg-gray2 lh-30 t-c"/></td>
                                </tr>
                            </table>
          			        <div class="c-c2c2c2 mp_15">温馨提示：如果无法在线安装，点此了解<a href="http://bbs.kesion.com/forumthread-1238712.html" target="_blank"><font class="c-yellow2">手工安装方式</font></a>。</div>          
                        </div>
                        <div class="nextStep pd_25 p-relative t-c w80 mao">
                	        <a href="javascript:;" onclick="history.back();" class="p-absolute c-c2c2c2 fz-13 lh-35 prevStep"><i class="returnIcon mr_5"></i><span>上一步</span></a>
                            <asp:Button ID="BtnStep2_1" runat="server" CssClass="nextStepBtn c-white ro_3 fz-14" Text="下一步" OnClick="BtnStep2_1_Click" />
                        </div>
                </asp:Panel>

                 <asp:Panel ID="Step3_2" Visible="false" runat="server">
                           <div class="stepTips c-747474 t-c pd_10 pp_10 bg-gray lh-25 gray-borderColor borderWidth borderTop borderBottom">创建数据库，<font class="c-yellow2">填写</font>信息后，点击“<font class="c-yellow2">下一步</font>”继续安装</div>
                            <div class="stepOneCon w80 mao pd_40">
                	            <h2 class="t-c md_20 pp_20 fz-14 c-747474">填写数据库信息</h2>
                                <table cellpadding="0" cellspacing="0" border="0" class="fileItem c-747474 t-c gray2-borderColor borderLeft borderRight borderTop borderWidth">
                    	            <tr class="attributeTitle">
                        	            <td class="w4 borderWidth borderBottom gray2-borderColor fz-13">数据库服务器</td>
                                        <td class="w4 borderWidth borderBottom gray2-borderColor fz-13">数据库名</td>
                                        <td class="w4 borderWidth borderBottom gray2-borderColor fz-13">数据库用户名</td>
                                        <td class="w4 borderWidth borderBottom gray2-borderColor fz-13">数据库密码</td>
                                    </tr>
                                    <tr>
                        	            <td class="borderWidth borderBottom gray2-borderColor"><%=this.TxtDBService.Text %></td>
                                        <td class="borderWidth borderBottom gray2-borderColor"><%=this.TxtDBName.Text %></td>
                                        <td class="borderWidth borderBottom gray2-borderColor"><%=this.TxtDBUser.Text %></td>
                                        <td class="borderWidth borderBottom gray2-borderColor"><%=this.TxtDBPass.Text %></td>
                                    </tr>
                                </table>
          			          <div class="c-c2c2c2 mp_15">温馨提示：如果无法在线安装，点此了解<a href="http://bbs.kesion.com/forumthread-1238712.html" target="_blank"><font class="c-yellow2">手工安装方式</font></a>。</div>          
                            </div>

                              
                             <div  class="stepOneCon w80 mao progressShow">
                	                <table cellpadding="0" cellspacing="0" border="0" class="applicationTable md_30" width="100%;">
                                        <tr>
                                            <td class="t-r w90">
                            	                <img src="images/wait.gif" width="57" class="mr_20 va-m">
                                            </td>
                                            <td class="t-l va-t">
                            	                <div class="c-747474 lh-20 md_10">正在安装数据库，请稍后...</div>
                                                <div class="progressBarBg ro_11 o-hidden bg-eee">
                                                    <span class="show progressBar bg-ygradualChange ro_11"></span>
                                                </div>
                                                <div class="c-595959 lh-30 p-relative progressData"><span class="p-absolute progressBar_percent"></span></div>
                                            </td>
                                        </tr>
                        
                                    </table>
                                 </div>
                                 
                               <div  class="stepOneCon w80 mao progressShow_error"></div> <!--安装出错时，显示-->
                      
                        
                              
                 </asp:Panel>

                  
                  
            </asp:Panel>
            <!--  步骤3 end    -->




           <!--  步骤4  begin  -->
            <asp:Panel ID="Step4" runat="server" Visible="false">
                   <div class="stepTips c-747474 t-c pd_10 pp_10 bg-gray lh-25 gray-borderColor borderWidth borderTop borderBottom">填写网络基本配置，点击“<font class="c-yellow2">下一步</font>”继续安装</div>
                <div class="stepOneCon w80 mao pd_40">
                	<h2 class="t-c md_20 pp_20 fz-14 c-747474">填写管理员信息</h2>
                     <table cellpadding="0" cellspacing="0" border="0" class="fileItem gray2-borderColor borderLeft borderRight borderTop borderWidth">
                        <tr>
                        	<td width="100" class="borderWidth borderBottom gray2-borderColor c-747474 fz-13 t-r"><font class="c-red">*</font>管理员账号：</td>
                            <td class="borderWidth borderBottom gray2-borderColor t-l"><asp:TextBox ID="TxtUserName" runat="server" Text="admin" cssclass="dataBtn border ro_3 c-747474 bg-gray2 lh-30 t-c w220"/><span class="ml_10 c-afafaf">如：KesionICMS官方站</span></td>
                        </tr>
                       <tr>
                        	<td class="borderWidth borderBottom gray2-borderColor c-747474 fz-13 t-r"><font class="c-red">*</font>管理员密码：</td>
                            <td class="borderWidth borderBottom gray2-borderColor t-l"><asp:TextBox ID="TxtUserPass" runat="server" Text="123456" cssclass="dataBtn border ro_3 c-747474 bg-gray2 lh-30 t-c w220"/><span class="ml_10 c-afafaf">如：KesionICMS官方站</span></td>
                        </tr>
                    </table>
          			<h2 class="t-c md_20 pp_20 fz-14 c-747474">网站参数配置</h2>
                    <table cellpadding="0" cellspacing="0" border="0" class="fileItem gray2-borderColor borderLeft borderRight borderTop borderWidth">
                        <tr>
                        	<td width="100" class="borderWidth borderBottom gray2-borderColor c-747474 fz-13 t-r"><font class="c-red">*</font>网站名称：</td>
                            <td class="borderWidth borderBottom gray2-borderColor t-l"><asp:TextBox ID="TxtSiteName" runat="server" Text="科汛网络系统" cssclass="dataBtn border ro_3 c-747474 bg-gray2 lh-30 t-c w220"/><span class="ml_10 c-afafaf">如：KesionICMS官方站</span></td>
                        </tr>
                        <tr>
                        	<td class="borderWidth borderBottom gray2-borderColor c-747474 fz-13 t-r"><font class="c-red">*</font>网站域名：</td>
                            <td class="borderWidth borderBottom gray2-borderColor t-l"><asp:TextBox ID="TxtSiteUrl" runat="server" Text="http://localhost"  cssclass="dataBtn border ro_3 c-747474 bg-gray2 lh-30 t-c w220"/><span class="ml_10 c-afafaf">后面不要带“/”,如：http://www.kesion.com</span></td>
                        </tr>
                        <tr>
                        	<td class="borderWidth borderBottom gray2-borderColor c-747474 fz-13 t-r">授权码：</td>
                            <td class="borderWidth borderBottom gray2-borderColor t-l"><asp:TextBox ID="TxtSiteKey" runat="server" Text="0" cssclass="dataBtn border ro_3 c-747474 bg-gray2 lh-30 t-c w220"/><span class="ml_10 c-afafaf">免费版用户，此处请留空或者填0</span></td>
                        </tr>
                        <tr>
                        	<td class="borderWidth borderBottom gray2-borderColor c-747474 fz-13 t-r"><font class="c-red">*</font>后台目录：</td>
                            <td class="borderWidth borderBottom gray2-borderColor t-l"><asp:TextBox ID="TxtManageDir" runat="server" Text="manage" cssclass="dataBtn border ro_3 c-747474 bg-gray2 lh-30 t-c w220"/><span class="ml_10 c-afafaf">如：Manage，Admin，不能加“/”</span></td>
                        </tr>
                        <!--
                        <tr>
                        	<td class="borderWidth borderBottom gray2-borderColor" colspan="2">
                            	<span class="c-747474 fz-13 ml_40">安装版本：</span>
                                <label class="mr_10">
                                	<input type="radio" name="version" checked value="1">
                                    <span class="va-m c-c2c2c2">单用户网站</span>
                                </label>
                                <label class="mr_40">
                                	<input type="radio" name="version">
                                    <span class="va-m c-c2c2c2">多用户网站</span>
                                </label>
                               
                            </td>
                        </tr>
                        -->
                    </table>
                </div>
                <div class="nextStep pd_25 p-relative t-c w80 mao">
                	<a href="javascript:history.back();" class="p-absolute c-c2c2c2 fz-13 lh-35 prevStep"><i class="returnIcon mr_5"></i><span>上一步</span></a>
                     <asp:Button ID="BtnStep4" runat="server" CssClass="nextStepBtn c-white ro_3 fz-14" Text="下一步" OnClick="BtnStep4_Click" />
                </div>
            </asp:Panel>
            <!--  步骤4 end    -->







           <!--  步骤5  begin  -->
            <asp:Panel ID="Step5" runat="server" Visible="false">
                <asp:panel ID="Step5_1" runat="server">
                <div class="stepTips c-747474 t-c pd_10 pp_10 bg-gray lh-25 gray-borderColor borderWidth borderTop borderBottom">选择您所需要安装的风格，点击“<font class="c-yellow2">下一步</font>”继续安装</div>
                <div class="stepOneCon pp_30 ml_40 mr_40 pd_40">
                	<ul class="templateBox clearfix">


                         <asp:Repeater ID="YunTemplateList" runat="server">
                             <ItemTemplate>
                                 <li class="md_25">
                        	        <div class="template border">
                            	        <label class="show p-relative"><img src="<%# new Kesion.NET.WebSite.Admin_TemplateSkin().GetYunTemplatePic(Convert.ToString(Eval("defaultPic"))) %>" class="show">
                                            <input name="skinid" type="radio" class="p-absolute" value="<%#Eval("TemplateID") %>"></label>
                                        <div class="c-858585 mp_10 lh-25 md_10 mr_10 ml_10 fz-14 ellipsis"><a href="<%#Eval("viewurl") %>" target="_blank" class="fr c-white ro_3 bg-yellow plr_10 fz-12">预览</a><%# Eval("templateName") %></div>
                                    </div>
                                </li>
                             </ItemTemplate>
                            
                         </asp:Repeater>
                    	  <li class="md_25"<%=this.YunTemplateList.Items.Count>0?" style='display:none'":"" %>>
                        	<div class="template border">
                            	<label class="show p-relative"><img src="/sysimg/nologo.gif" class="show"><input name="skinid" type="radio" class="p-absolute" <%=this.YunTemplateList.Items.Count>0?"":"  checked" %> value='-1'></label>
                                <div class="c-858585 mp_10 lh-25 md_10 mr_10 ml_10 fz-14 ellipsis"><a href="#" class="fr c-white ro_3 bg-yellow plr_10 fz-12"></a>系统默认风格</div>
                            </div>
                          </li>
                      
                       
                    </ul>
                </div>
                <script>
                    $("input[name='skinid']").eq(0).click();
                </script>
                <div class="nextStep pd_25 p-relative t-c  w80 mao">
                	<a href="javascript:history.back();" class="p-absolute c-c2c2c2 fz-13 lh-35 prevStep"><i class="returnIcon mr_5"></i><span>上一步</span></a>
                    <%if (this.YunTemplateList.Items.Count > 0)
                        { %>
                    <asp:Button ID="BtnStep4_1" runat="server" CssClass="nextStepBtn c-white ro_3 fz-14" Text="下载并安装" OnClick="BtnStep4_1_Click" />
                    <asp:Button ID="BtnStep5" runat="server" CssClass="nextStepBtn c-white ro_3 fz-14" Text="跳过下载" OnClick="BtnStep5_Click" />
                    <%}
                      else
                       { %>
                     <asp:Button ID="BtnFinish" runat="server" CssClass="nextStepBtn c-white ro_3 fz-14" Text="完成安装" OnClick="BtnStep4_1_Click" />
                    <%} %>
                </div>
              </asp:panel>

              <asp:panel ID="Step5_2" runat="server" Visible="false">
                    <div class="stepTips c-747474 t-c pd_10 pp_10 bg-gray lh-25 gray-borderColor borderWidth borderTop borderBottom">安装向导根据您选择需要安装的风格，正在从科汛云端市场服务器下载，下载完成后将自动完成安装。请耐心等待！！！</div>
                    <div class="stepOneCon w80 pp_30 mao">

                         <div class="progressShow">
                	            <table cellpadding="0" cellspacing="0" border="0" class="applicationTable md_30" width="100%;">
                                    <tr>
                        	            <td class="t-r w90">
                            	            <img src="images/wait.gif" width="57" class="mr_20 va-m">
                                        </td>
                                        <td class="t-l va-t">
                               
                            	            <div class="c-747474 lh-20 md_10">正在下载风格，总大小：<span class="progressBar_totalnum c-yellow"></span> 已下载:<span class="progressBar_currnum c-yellow"></span>，请稍候...</div>
                                            <div class="progressBarBg ro_11 o-hidden bg-eee">
                                                <span class="show progressBar bg-ygradualChange ro_11"></span>
                                            </div>
                                            <div class="c-595959 lh-30 p-relative progressData"><span class="p-absolute progressBar_percent"></span></div>
                               
                                        </td>
                                    </tr>
                                </table>
                         </div>

                         <div  class="stepOneCon w80 mao progressShow_error"></div> <!--下载出错时，显示-->
                 </div>

                 
              </asp:Panel>

            </asp:Panel>
            <!--  步骤5 end    -->









           <!--  步骤6  begin  -->
            <asp:Panel ID="Step6" runat="server" Visible="false">
               <div class="stepTips c-747474 t-c pd_10 pp_10 bg-gray lh-25 gray-borderColor borderWidth borderTop borderBottom">恭喜您，已全部安装完毕</div>
                <div class="stepOneCon pp_40 ml_40 mr_40 pd_70 t-c">
                	<img src="images/success.png" class="md_25">
                    <p class="t-c fz-16 c-747474 lh-30"><%=ProductName %>产品安装成功！</p>
                    <p class="t-c fz-16 c-747474 lh-30">为了您的网站安全，建议及时删除“<font class="c-yellow2">install</font>”安装目录</p>
                </div>
				<div class="c-7a7a7a t-c mp_20">
                	<a href="../<%=Kesion.Cache.MyCache.GetCacheConfig(4) %>/login.aspx" class="c-7a7a7a">进入后台</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="../" class="c-7a7a7a">网站前台</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://www.kesion.com" target="_blank" class="c-7a7a7a">官方网站</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://bbs.kesion.com" class="c-7a7a7a" target="_blank">技术交流</a>
                </div>
            </asp:Panel>
            <!--  步骤6 end    -->








            </div>
        </div>
    </div>
    
   
      <div class="footer pd_20 p-absolute">
    	<div class="page-width lh-25 c-white t-c fz-14">
        	<p>Powered By KESION Inc. WebUrl:<a href="http://www.kesion.com/" target="_blank" style="color:white;text-decoration:underline">www.kesion.com</a> </p>
			<p>福建·厦门科汛软件有限公司 版权所有 © 2006-<%=DateTime.Now.Year.ToString() %></p>
        </div>
    </div>
    <div class="bg-img"></div>
    <script src="js/common.js"></script>
        <script>
		     //   progressBar('.progressBar',false)
        </script>

    <%
        if (beginDo == 1)
        {
            if (step == 3)                   //安装数据库
            {
                beginInstallDB();
                if (errMsg == "success")
                {
                   Response.Write("<script>location.href='index.aspx?step=4';</script>");
                }
                else
                {
                    EchoErrorTips();
                }

            }
            else if (step == 5)            //下载风格
            {
                beginDownTemplate();
                if (errMsg == "success")
                {
                    Response.Write("<script>location.href='index.aspx?step=6';</script>");
                }
                else
                {
                    EchoErrorTips();
                }
            }
        }
    %>
    </form>
</body>
</html>
