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

<%@ Register Assembly="Focus.Control" Namespace="Focus.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 align="left">
                                            <div style="padding-left:10px; padding-bottom:10px;"><img src="images/logo.gif" width="231" height="56" /></div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="87" align="center">
                                            <div style="padding-left:1px;"><img src="images/rbanner.jpg" width="580" height="87" /></div>
                                        </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;">
                                            请输入有效的<strong>视点网站后台管理系统(Foucs BMS)</strong>注册码进行软件的注册。&nbsp;</div>
                                        <div style="padding-left: 20px; padding-top: 10px; padding-right:20px;">
                                            如果没有，请您通过以下网址(<a href="http://bms.f008.com/license.aspx" target="_blank">http://bms.f008.com/license.aspx</a>)填写好您的有关信息后便可获得一个试用版本的注册码。<br>
                                        </div> 
                                        <div style="padding-left: 20px; padding-top: 10px; padding-right:20px;">完成此表格后，我们将通过电子邮件提供给您一个试用版本的注册码。在下面输入框中载入您收到的注册码，以后未注册信息将不会再出现。</div>
                                        <div style="padding-left: 20px; padding-top: 10px; padding-right:20px;">未注册版本只能添加20个栏目的限制，如果您想购买正式版的注册码，请与我们联系。</div>
                                        <div style="padding-left: 20px; padding-top: 10px; padding-right:20px;">官方网站：<a href="http://www.f008.com" target="_blank">http://www.f008.com</a></div><br />
                                    </td>
                                    </tr>
                                    <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: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 align="center" height="30"><cc1:Button ID="reistrater" runat="server" Text=" 注  册 " ButtonImgUrl="images/xz.gif"
                                            OnClick="reistrater_Click" /></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>
