FC3DInfoEdit.aspx 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FC3DInfoEdit.aspx.cs" Inherits="CB.Admin.Plugins.OpenCode.FC3DInfoEdit" %>
  2. <!DOCTYPE html >
  3. <html >
  4. <head runat="server">
  5. <title>编辑福彩3D开奖信息</title>
  6. <link href="../../static/css/main.css" rel="stylesheet" type="text/css" />
  7. <script src="../../static/js/jquery.js" type="text/javascript"></script>
  8. <script src="../../Static/js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
  9. <script type="text/javascript">
  10. //窗体加载
  11. $(function () {
  12. $("#txtOpenTime").click(WdatePicker);
  13. });
  14. </script>
  15. </head>
  16. <body>
  17. <form id="form1" runat="server">
  18. <div class="box">
  19. <div class="title">
  20. <span>
  21. <%=title %>福彩3D开奖信息</span>
  22. </div>
  23. <div class="content">
  24. <div class="listtable">
  25. <table style="margin-top: 3px" width="98%" border="0" align="center" cellpadding="0"
  26. cellspacing="0">
  27. <tr>
  28. <td width="100">
  29. 期号:
  30. </td>
  31. <td>
  32. <div class="left">
  33. <asp:TextBox ID="txtTerm" runat="server" Enabled="False"></asp:TextBox>&nbsp;&nbsp;<span style="color: Red;">(必填)</span></div>
  34. </td>
  35. </tr>
  36. <tr>
  37. <td>
  38. 开机号:
  39. </td>
  40. <td>
  41. <div class="left">
  42. <asp:TextBox ID="txtKJH1" runat="server" Width="35"></asp:TextBox>&nbsp;&nbsp;<asp:TextBox
  43. ID="txtKJH2" runat="server" Width="35"></asp:TextBox>&nbsp;&nbsp;<asp:TextBox ID="txtKJH3"
  44. runat="server" Width="35"></asp:TextBox>&nbsp;&nbsp;<span style="color: Red;">(必填:号码在0-9中取值)</span></div>
  45. </td>
  46. </tr>
  47. <tr>
  48. <td>
  49. 试机号:
  50. </td>
  51. <td>
  52. <div class="left">
  53. <asp:TextBox ID="txtShiJiHao1" runat="server" Width="35"></asp:TextBox>&nbsp;&nbsp;<asp:TextBox
  54. ID="txtShiJiHao2" runat="server" Width="35"></asp:TextBox>&nbsp;&nbsp;<asp:TextBox
  55. ID="txtShiJiHao3" runat="server" Width="35"></asp:TextBox>&nbsp;&nbsp;<span style="color: Red;">(必填:号码在0-9中取值)</span></div>
  56. </td>
  57. </tr>
  58. <tr>
  59. <td>
  60. 特殊:
  61. </td>
  62. <td>
  63. <div class="left">
  64. 金码:<asp:TextBox ID="txtJm" runat="server" Width="35"></asp:TextBox>&nbsp;&nbsp;关注码:<asp:TextBox
  65. ID="txtGzm1" runat="server" Width="35"></asp:TextBox>&nbsp;&nbsp;<asp:TextBox
  66. ID="txtGzm2" runat="server" Width="35"></asp:TextBox>&nbsp;&nbsp;<asp:TextBox
  67. ID="txtGzm3" runat="server" Width="35"></asp:TextBox>&nbsp;&nbsp;对应码:<asp:TextBox ID="txtDym1"
  68. runat="server" Width="35"></asp:TextBox>&nbsp;&nbsp;<asp:TextBox ID="txtDym2"
  69. runat="server" Width="35"></asp:TextBox>&nbsp;&nbsp;<asp:TextBox ID="txtDym3"
  70. runat="server" Width="35"></asp:TextBox>&nbsp;&nbsp;<span style="color: Red;">(必填:号码在0-9中取值)</span></div>
  71. </td>
  72. </tr>
  73. <tr>
  74. <td>
  75. 开奖号:
  76. </td>
  77. <td>
  78. <div class="left">
  79. <asp:TextBox ID="txtOpenCode1" runat="server" Width="35"></asp:TextBox>&nbsp;&nbsp;<asp:TextBox
  80. ID="txtOpenCode2" runat="server" Width="35"></asp:TextBox>&nbsp;&nbsp;<asp:TextBox
  81. ID="txtOpenCode3" runat="server" Width="35"></asp:TextBox>&nbsp;&nbsp;<span style="color: Red;">(必填:号码在0-9中取值)</span></div>
  82. </td>
  83. </tr>
  84. <tr>
  85. <td>
  86. 开奖日期:
  87. </td>
  88. <td>
  89. <div class="left">
  90. <asp:TextBox ID="txtOpenTime" runat="server" class="Wdate"></asp:TextBox><span style="color: Red;">(必填)</span></div>
  91. </td>
  92. </tr>
  93. <tr>
  94. <td>
  95. 本期投注:
  96. </td>
  97. <td>
  98. <div class="left">
  99. <asp:TextBox ID="txttzmoney" runat="server" onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" onblur="this.value=this.value.replace(/[^0-9]/g,'')"></asp:TextBox><span style="color: Red;">(必填)</span></div>
  100. </td>
  101. </tr>
  102. <tr>
  103. <td>
  104. 直选注数:
  105. </td>
  106. <td>
  107. <div class="left">
  108. <asp:TextBox ID="txtZX" runat="server" onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" onblur="this.value=this.value.replace(/[^0-9]/g,'')"></asp:TextBox><span style="color: Red;">(必填)</span>
  109. &nbsp;&nbsp;&nbsp;&nbsp;直选金额:
  110. <asp:TextBox ID="txtZXmoney" runat="server" Text="1040" onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" onblur="this.value=this.value.replace(/[^0-9]/g,'')"></asp:TextBox><span style="color: Red;">(必填)</span></div>
  111. </td>
  112. </tr>
  113. <tr>
  114. <td>
  115. 组三注数:
  116. </td>
  117. <td>
  118. <div class="left">
  119. <asp:TextBox ID="txtZS" runat="server" onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" onblur="this.value=this.value.replace(/[^0-9]/g,'')"></asp:TextBox><span style="color: Red;">(必填)</span>
  120. &nbsp;&nbsp;&nbsp;&nbsp;组三金额:
  121. <asp:TextBox ID="txtZSmoney" runat="server" Text="346" onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" onblur="this.value=this.value.replace(/[^0-9]/g,'')"></asp:TextBox><span style="color: Red;">(必填)</span></div>
  122. </td>
  123. </tr>
  124. <tr>
  125. <td>
  126. 组六注数:
  127. </td>
  128. <td>
  129. <div class="left">
  130. <asp:TextBox ID="txtZL" runat="server" onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" onblur="this.value=this.value.replace(/[^0-9]/g,'')"></asp:TextBox><span style="color: Red;">(必填)</span>
  131. &nbsp;&nbsp;&nbsp;&nbsp;组六金额:
  132. <asp:TextBox ID="txtZLmoney" runat="server" Text="173" onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" onblur="this.value=this.value.replace(/[^0-9]/g,'')"></asp:TextBox><span style="color: Red;">(必填)</span></div>
  133. </td>
  134. </tr>
  135. <tr>
  136. <td>
  137. 操作:
  138. </td>
  139. <td>
  140. <div class="left">
  141. <asp:Button ID="btnEdit" runat="server" Text=" 保 存 " OnClick="btnEdit_Click" /><span
  142. style="margin-left: 5px">
  143. <asp:Button ID="btnClear" runat="server" Text=" 清 除 " OnClick="btnClear_Click" />
  144. </span>
  145. </div>
  146. <asp:Label ID="labID" runat="server" Text="" Visible="false"></asp:Label>
  147. </td>
  148. </tr>
  149. </table>
  150. </div>
  151. </div>
  152. </div>
  153. </form>
  154. </body>
  155. </html>
  156. <script type="text/javascript">
  157. var chi = new Array();
  158. chi[0] = "txtKJH1";
  159. chi[1] = "txtKJH2";
  160. chi[2] = "txtKJH3";
  161. chi[3] = "txtShiJiHao1";
  162. chi[4] = "txtShiJiHao2";
  163. chi[5] = "txtShiJiHao3";
  164. chi[6] = "txtJm";
  165. chi[7] = "txtGzm1";
  166. chi[8] = "txtGzm2";
  167. chi[9] = "txtGzm3";
  168. chi[10] = "txtDym1";
  169. chi[11] = "txtDym2";
  170. chi[12] = "txtDym3";
  171. chi[13]= "txtOpenCode1";
  172. chi[14]="txtOpenCode2";
  173. chi[15]="txtOpenCode3";
  174. $("input:text").keyup(function () {
  175. var a = $(this).val();
  176. var id = $(this).attr('id');
  177. var index = 17;
  178. for (var i = 0; i < chi.length; i++) {
  179. if (chi[i] == id) {
  180. if (i != chi.length - 1) {
  181. index = i + 1;
  182. }; break;
  183. }
  184. }
  185. if (index < 16) {
  186. if (a >= 0 && a <= 16 && a.length == 1) {
  187. $(this).blur();
  188. if (index != 16) {
  189. var nid = "#" + chi[index];
  190. $(nid).focus();
  191. }
  192. } else { $(this).val("") }
  193. }
  194. });
  195. </script>