<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="registration.aspx.cs" Inherits="FangPage.Admin.registration" %>

<%@ Register Assembly="FangPage.Control" Namespace="FangPage.Control" TagPrefix="cc1" %>
<!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">
<html>
<head>
    <title>软件注册许可</title>
    <link href="styles/style.css" type="text/css" rel="stylesheet" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script type="text/javascript">
    function paste()   
      {          
          var copySN=clipboardData.getData("Text");	  		
          if (copySN.length==35) {
              document.Form1.License1.value=copySN.substring(0,8);
              document.Form1.License2.value=copySN.substring(9,17);
              document.Form1.License3.value=copySN.substring(18,26);
              document.Form1.License4.value=copySN.substring(27,35);
              document.Form1.License4.focus();
         }
      }
    function License_onkeyup(num) {
      var this_obj=eval('document.Form1.License'+num)
      var sn=this_obj.value
      sn=sn.toUpperCase()
      var valid_char='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'
      for (i=0;i<=sn.length;i++) {
        var the_char=sn.charAt(i)
        if(valid_char.indexOf(the_char)==-1){
          alert('注册码只由数字和字母组成！')
          this_obj.value=sn.substring(0,i)
          return 1
        }
      }
      var next_obj=eval('document.Form1.License'+(num+1))
      if (num+1<=4){
         if (this_obj.value.length>=8) next_obj.focus()
      }
      if(this_obj.value!=sn) this_obj.value=sn
    }
    </script>

</head>
<body>
    <form id="Form1" runat="server">
    <table height="100%" width="100%" align="center">
        <tbody>
            <tr>
                <td align="center">
                    <table width="590" border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr>
                            <td height="10" align="left"><img src="images/rtop.jpg" width="590" height="10" /></td>
                        </tr>
                        <tr>
                            <td background="images/rmiddle.jpg">
                                <table width="588" border="0" align="left" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td height="20" align="center">
                                            
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left">
                                            <div style="padding-left:10px; padding-bottom:10px;"><img src="images/logo.gif" width="552" height="75" /></div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="10" align="center">
                                            
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="30" align="left">
                                            <div style="padding-left:20px;padding-right:20px;"><strong><asp:Label ID="Label2" runat="server" Text=""></asp:Label></strong></div>
                                        </td>
                                    </tr>
                                    <tr>
                                    <td align="left">
                                        <div style="padding-left:20px;padding-right:20px;"><asp:Label ID="Label1" runat="server" Text=""></asp:Label></div>
                                        <div style="padding-left: 20px; padding-top: 10px; padding-right:20px;">
                                            方配网络免费提供网站后台管理系统(BMS)，您可以在完全遵守本最终用户许可协议的基础上，将本软件应用于非商业用途而不必支付费用，如果需要进行商业性的销售、复制和散发，必须获得方配网络公司的授权和许可。<br>
                                        </div> 
                                        <div style="padding-left: 20px; padding-top: 10px; padding-right:20px;">用户可以在本机(localhost)上免费无功能限制使用，在网络服务器安装使用则需要注册软件，如果您想购买正式版的注册码，请与我们联系。方配官方网站：<a href="http://www.fangpage.com" target="_blank">http://www.fangpage.com</a></div>
                                        <div style="padding-left: 20px; padding-top: 10px; padding-right:20px;">如果您安装使用本软件，则表示接受本协议所有条款。安装使用之前请认真阅读<a href="license.html" target="_blank">《用户许可协议》</a>。</div>
                                    </td>
                                    </tr>
                                    <%if (isregister == false||isrepeat==true)
                                      {%>
                                    <tr>
                                    <td>
                                    <table width="588" border="0">
                                        <tbody>
                                            <tr>
                                                <td style="width: 100px; height: 30px" align="right" valign="middle">
                                                    <b>版本类型：</b>
                                                </td>
                                                <td valign="middle" align="left" style="padding-bottom: 5px;">
                                                    <cc1:RadioButtonList ID="Versiontype" runat="server" RepeatColumns="3">
                                                        <asp:ListItem Value="1" Selected="True">标准版</asp:ListItem>
                                                        <asp:ListItem Value="2">企业版</asp:ListItem>
                                                        <asp:ListItem Value="3">高级版</asp:ListItem>
                                                    </cc1:RadioButtonList>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 100px; height: 30px" align="right" valign="middle">
                                                    <b>注册域名：</b>
                                                </td>
                                                <td valign="middle" align="left" style="padding-bottom: 5px;">
                                                    <cc1:TextBox ID="SerialNo" runat="server" Width="285"></cc1:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 100px; height: 30px" align="right">
                                                    <b>注册码：</b>
                                                </td>
                                                <td valign="middle" align="left">
                                                    <cc1:TextBox ID="License1" runat="server" Width="64px" MaxLength="8"></cc1:TextBox>-<cc1:TextBox
                                                        ID="License2" runat="server" Width="64px" MaxLength="8"></cc1:TextBox>-<cc1:TextBox
                                                            ID="License3" runat="server" Width="64px" MaxLength="8"></cc1:TextBox>-<cc1:TextBox
                                                                ID="License4" runat="server" Width="64px" MaxLength="8"></cc1:TextBox></td>
                                            </tr>
                                        </tbody>
                                    </table>
                                    </td>
                                    </tr>
                                    <tr>
                                        <td height="5" align="center">
                                            
                                        </td>
                                    </tr>
                                    <tr>
                                      <td align="center" height="30"><cc1:Button ID="reistrater" runat="server" Text=" 注  册 " ButtonImgUrl="images/sn.gif"
                                            OnClick="reistrater_Click" /></td>
                                    </tr>
                                    <%}
                                      else
                                      { %>
                                      <tr>
                                        <td height="10" align="center">
                                            
                                        </td>
                                      </tr>
                                      <tr>
                                      <td align="center" height="30"><cc1:Button ID="repeater" runat="server" Text="重新注册" 
                                              ButtonImgUrl="images/sn.gif" onclick="repeater_Click"/></td>
                                      </tr>
                                      <%} %>
                                      <tr>
                                      <td align="center" height="15"></td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td><img src="images/rbottom.jpg" width="590" height="11" /></td>
                        </tr>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>
    </form>
</body>
</html>
