<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LccReg.aspx.cs" Inherits="schoolUpdateSubPlate.Sys.LccReg" %>

<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>授权客户端 -- <%=hdTitle.Value %></title>
<link href="css/style.css" rel="stylesheet" type="text/css" />

</head>

<body>
<form runat="server" id="form1">
<div id="index">
	<div class="top">
    	<table width="1000" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="299" height="82"><img src="images/logo2.png" /></td>
    <td width="372">&nbsp;<input type="hidden" runat="server" id="hdTitle" value="重新注册平台" /></td>
    <td width="329">
    	<p>注册单位全称：<asp:Label runat="server" ID="lbUnitFullName" Text="未知"/></p>
        <p>序列号： <asp:Label runat="server" ID="lbSN" Text="未知"/></p>
        <p>服务电话：021-51098339-15</p>
    </td>
  </tr>
</table>

    </div>
    
    <div class="nav nav2">欢迎 &nbsp;<asp:Label runat="server" ID="lbUserName"/>&nbsp; 进入！&nbsp;<span style="color:Black;">【</span> <asp:HyperLink ID="hlIndex" runat="server" Text="首页" ForeColor="black" />&nbsp;&nbsp;<asp:LinkButton runat="server" ID="lbnLogout" OnClick="lbnLogout_Click" Text="退出"  ForeColor="black"/> <span style="color:Black;">】</span></div>
    
    <div class="level_bar">
    	<ul>
        	<li class="">第一步：升级基础平台</li>
        	<li class="l2 l2H">第二步：注册平台</li>
            <li class="l2">第三步：获取授权</li>
            <li class="l3">第四步：升级更新</li>
        </ul>
    </div>
    
    <div style="clear:both"></div>
    
    <div id="mainBox">
        
        <table width="890" border="0" cellspacing="0" cellpadding="0" class="xl">
  <tr>
    <td width="87" height="60">产品序列号：</td>
    <td width="803"><table width="803" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="42" height="60">
        	<input type="text" class="text textS" style="width:48px;" runat="server" id="tbSN1"/>
        </td>
        <td width="10"><div align="center">-</div></td>
        <td width="42"><input type="text" class="text textS" style="width:48px;" runat="server" id="tbSN2"/></td>
        <td width="10"><div align="center">-</div></td>
        <td width="42"><input type="text" class="text textS" style="width:48px;" runat="server" id="tbSN3"/></td>
        <td width="10"><div align="center">-</div></td>
        <td width="42"><input type="text" class="text textS" style="width:48px;" runat="server" id="tbSN4"/></td>        
        <td width="10"><div align="center">-</div></td>
        <td width="57"><input type="text" class="text textS" style="width:48px;" runat="server" id="tbSN5"/></td>
        <td width="38"><asp:LinkButton runat="server" ID="lbnCheck" OnClick="lbnCheck_Click" Text="检测" CssClass="btn" OnClientClick="return checkSN()" /></td>
        <td width="500">&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label runat="server" ID="lbCheckMsg"/></td>
      </tr>
    </table></td>
  </tr>
  <tr id="trUnitName" runat="server" visible="false">
    <td height="60">注册单位简称：</td>
    <td>
    	<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="19%" height="60"><input type="text" class="text" id="tbUnitName" runat="server" style="width:132px;" /></td>
    <td width="81%"><span class="redw">（请仔细填写，注册后不允许修改）</span></td>
  </tr>
</table>

    </td>
  </tr>
  <tr id="trUnitFullName" runat="server" visible="false">
    <td height="60">注册单位全称：</td>
    <td>
    	<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="29%" height="60"><input type="text" class="text" id="tbUnitFullName" runat="server" style="width:212px;" /></td>
    <td width="71%"><span class="redw" id="spanUnitFullName" runat="server">（请仔细填写，注册后不允许修改）</span></td>
  </tr>
</table>

    </td>
  </tr>
  <tr id="trReg" runat="server" visible="false">
    <td>&nbsp;</td>
    <td>
    	<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="11%" height="60">&nbsp;</td>
    <td width="89%">    	
    	<asp:LinkButton runat="server" ID="lbnReg" CssClass="btn zc" Text="重新注册" OnClick="lbnReg_Click" OnClientClick="return regCheck()" />
    </td>
  </tr>
  <tr>
    <td width="11%" height="60">&nbsp;</td>
    <td width="89%">    	
    	<asp:Label runat="server" ID="lbRegMsg" />
    </td>
  </tr>
</table>

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

        
        <!--mainBoxRight end-->
      
      <div style="clear:both"></div>
        
    </div><!--mainBox end-->
    
    <div id="bom">
    	<p style="margin-bottom:10px;">鼎创应用管理平台 V3.2 ©2002-2014　上海鼎创信息科技有限公司　保留所有权利。</p>
        <p>警告：本计算机程序受版权法和国际条约保护。如未经授权而擅自复制或传播本程序（或其中任何部分），将受到严厉的民事和刑事制裁，并将<br />在法律许可的最大限度内受到起诉。
</p>
    </div>

    </div><!--index end-->
    </form>
</body>
</html>
<script type="text/javascript" language="javascript" src="js/jquery.js"></script>
<script type="text/javascript"  language="javascript">
$(document).ready(function(){
  $("#tbSN1").bind("paste",function(e){
     if(window.clipboardData!=undefined)
     {
         var text = window.clipboardData.getData("Text");     
         var text2=text.split('-');
         for(var i=0;i<text2.length&&i<5;i++)
         {
             $("#tbSN"+(i+1)).val(text2[i]);
         }
         return false;
     }
     else
     {
         return true;
     }
  });
});
function checkSN()
{
    if($.trim($("#tbSN1").val()).length!=5||$.trim($("#tbSN2").val()).length!=5||$.trim($("#tbSN3").val()).length!=5||$.trim($("#tbSN4").val()).length!=5||$.trim($("#tbSN5").val()).length!=5) 
    {
        alert("请正确填写序列号！");
        return false;
    }
    return true;
}
function regCheck()
{
   if($.trim($("#tbUnitName").val()).length<=0) 
   {
       alert("请输入注册单位简称！");
       return false;
   }
   if($.trim($("#tbUnitFullName").val()).length<=0) 
   {
       alert("请输入注册单位全称！");
       return false;
   }
   return true;
}
</script>