<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CmsConvert.aspx.cs" Inherits="TotCms.Web.Admin.CmsConvert" %>

<%@ Register src="UI/main_top.ascx" tagname="main_top" 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 id="Head1" runat="server">
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>CMS转换</title>
    <link href="style/global.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="js/common.js"></script>
    <script type="text/javascript">
      function Process(){
        $('Layer1').style.display='block';
        $('Layer1').style.left=event.x-300;
        $('Layer1').style.top=event.y;
      }
      </script>
</head>
<body bgcolor="#ffffff">
    <form id="form1" runat="server">
    <input type="hidden" name="CategoryId" id="CategoryId" value="0" />
    <div>
    
      <uc1:main_top ID="main_top1" runat="server" />
    
    </div>
    <table style="width:100%;" border="0" cellpadding="0" cellspacing="1" 
      class="black_border">
      <tr class="suphead">
        <td>
                                                                                CMS转换</td>
    </tr>
    <tr>
      <td align="center">
        <table>
                <tr>
                  <td align="left">
                      CMS产品名称：</td>
                  <td align="left">
                      <asp:DropDownList ID="CmsType" runat="server">
                          <asp:ListItem Value="1">动易SiteWeaver_CMS6.8</asp:ListItem>                          
                          <asp:ListItem Value="2">淘特CMS（Access）</asp:ListItem>
                      </asp:DropDownList>
                  </td>
                </tr>
                <tr>
                  <td align="left">
                      &nbsp;数据库类型：</td>
                  <td align="left">
                    <asp:DropDownList ID="db_type" runat="server">
                      <asp:ListItem Selected="True" Value="0">Access</asp:ListItem>
                      <asp:ListItem Value="1">Sqlserver</asp:ListItem>
                    </asp:DropDownList>
                      &nbsp;
                  </td>
                </tr>
                <tr>
                  <td align="left">
                      数据库地址：</td>
                  <td align="left">
                    <asp:TextBox ID="db_host" runat="server"></asp:TextBox>
                      Access库直接填写文件路径(支持相对地址,如:/Database/SiteWeaver.mdb),Mssql库填写库服务器地址如:192.168.1.10</td>
                </tr>
                <tr>
                  <td align="left">
                      数据库名称：</td>
                  <td align="left">
                    <asp:TextBox ID="db_name" runat="server"></asp:TextBox>
                  </td>
                </tr>
                <tr>
                  <td align="left">
                      用户名：</td>
                  <td align="left">
                    <asp:TextBox ID="db_username" runat="server"></asp:TextBox>
                  </td>
                </tr>
                <tr>
                  <td align="left">
                      &nbsp;连接密码：</td>
                  <td align="left">
                    <asp:TextBox ID="db_password" runat="server"></asp:TextBox>
                      &nbsp;
                  </td>
                </tr>
                <tr>
                  <td align="left">
                      &nbsp;</td>
                  <td align="left">
                    <asp:Button ID="TestConn" runat="server" OnClick="TestConn_Click" Text="测试连接" />
                    &nbsp;&nbsp;
                      <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="开始转换" OnClientClick="Process()" />
                  </td>
                </tr>
                <tr>
                  <td align="left" colspan="2">
                      说明：本模块为方便使用其它CMS的用户转至淘特CMS。请选择您原来使用的其它CMS版本，然后设置数据库参数，如果是Access数据库，只需要设置数据库地址为Access库所在WEB路径即可(如/totcms.mdb)。如果是Mssql数据库，需要设置数据库地址(数据库所在服务器IP或主机名)、数据库名称、用户名、连接密码)。</td>
                </tr>
              </table>
        
      </td>
    </tr>
    <tr>
      <td align="center">
        
          <asp:TextBox ID="StatusBar" runat="server" CssClass="text_content_big" 
              TextMode="MultiLine" Visible="False"></asp:TextBox>
        </td>
    </tr>
  </table>
  <div id="Layer1" style="position:absolute; display:none; filter:alpha(opacity=50); width:285px; height:159px; z-index:1; left: 447px; top: 381px; background-color: #003399; layer-background-color: #99FFFF; border: 1px none #000000;">
        <div align="center">
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p><font color="#FFFFFF">CMS转换中，所需时间取决于您原有CMS中的数据多少...</font></p>
        </div>
      </div>
    </form>
</body>
</html>
