| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
- <%
- String path = request.getContextPath();
- String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
- %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <base href="<%=basePath%>">
-
- <title>My JSP 'timeSync.jsp' starting page</title>
-
- <meta http-equiv="pragma" content="no-cache">
- <meta http-equiv="cache-control" content="no-cache">
- <meta http-equiv="expires" content="0">
- <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
- <meta http-equiv="description" content="This is my page">
- <meta http-equiv="X-UA-Compatible" content="IE=9"/>
- <meta http-equiv="X-UA-Compatible" content="IE=10"/>
- <link rel="stylesheet" type="text/css" href="css/easyui/themes/default/easyui.css">
- <link rel="stylesheet" type="text/css" href="css/easyui/themes/icon.css">
- <link rel="stylesheet" type="text/css" href="css/easyui/demo/demo.css">
- <script type="text/javascript" src="css/easyui/jquery.min.js"></script>
- <script type="text/javascript" src="css/easyui/jquery.easyui.min.js" charset="utf-8"></script>
- <script type="text/javascript" src="css/easyui/locale/easyui-lang-zh_CN.js" charset="utf-8"></script>
- <link rel="stylesheet" type="text/css" href="css/common/hzbstyle.css">
- <style type="text/css">
- .datagrid-header-row td{font-weight: bold;}
- #fm
- {
- margin: 0;
- padding: 10px 30px;
- }
- .ftitle
- {
- font-size: 14px;
- font-weight: bold;
- padding: 5px 0;
- margin-bottom: 10px;
- border-bottom: 1px solid #ccc;
- }
- .fitem
- {
- margin-bottom: 5px;
- }
- .fitem label
- {
- display: inline-block;
- width: 90px;
- }
-
- </style>
- <script type="text/javascript">
- $(document).ready(function(){
- $("#randomCode").textbox('textbox').css("font-size", "40px");
- });
- function save(){
- var randomCode = $("#randomCode").textbox('getValue');
- if(randomCode){
- $.messager.progress({
- title: '请等待',
- msg: '正在请求数据...',
- text: '查询中.......'
- });
- $("#disposablefm").form("submit", {
- url: "appgetkey.do",
- type: 'post',
- onsubmit: function () {
-
- return $(this).form("validate");
- },
- success:function (data){
- $.messager.progress('close');
- var vData = $.parseJSON(data);
- $('#lockKey').textbox('setValue', vData.msg);
- var s = vData.msg.substring(0,2)+vData.msg.substring(2,4)+vData.msg.substring(4,6)+" "+vData.msg.substring(6,8)
- +vData.msg.substring(8,10)+" "+vData.msg.substring(10,14);
-
-
- $("#showcontent").text(s);
-
-
- },
- error:function(XMLHttpRequest,textStatus, errorThrown) {
- $.messager.progress('close');
- $.messager.show({
- title: '提示',
- msg: '系统错误' + XMLHttpRequest.status
- });
- }
- });
- }else{
- $.messager.show({
- title: '提示',
- msg: '请输入8位手持码'
- });
- }
-
-
- }
- </script>
- </head>
-
- <body>
- <center>
- <form action="" id="disposablefm">
- <table>
-
- <tr>
- <td style="text-align: left;font-size: 40px;">8位手持密码:</td>
- <td><input name="number" id="randomCode" class="easyui-textbox" style="width: 250px;height: 50px;" data-options="required:true,validType:['length[1,8]']"/></td>
- </tr>
- <tr height="20px;"></tr>
- <tr >
- <td style="text-align: left;font-size: 40px;" id="hiddentd"></td>
- <td colspan="1"><a style="width:250px;height:60px;" href="javascript:void(0)" class="easyui-linkbutton" onclick="save()" iconcls="icon-add1">
- <span style="font-size: 26px;">点击获取</span>
- </a> </td>
- </tr>
- <tr height="40px;"></tr>
- <tr>
- <td style="text-align: left;font-size: 40px;">14位同步码:</td>
- <td><span id="showcontent" style="font-size: 50px;font-weight: bold;color: green;"></span></td>
- </tr>
-
- <tr>
- <td style="text-align: left;font-size: 40px;">扫描下载:</td>
- <td >
- <img src="appDownload_new.png" width="100px"/>
-
-
- </td>
-
- </tr>
-
- <tr>
- <td style="text-align: left;font-size: 40px;">点击下载:</td>
- <td >
-
-
- <a style="width:250px;height:60px;" href="http://www.cngrfid.com/rzx_new.apk" class="easyui-linkbutton" target="_blank" >
- <span style="font-size: 26px;">点击下载</span>
- </a>
- </td>
-
- </tr>
- </table>
- </form>
-
-
-
-
- </div>
- </center>
- </body>
- </html>
|