TCQXCInfoEdit.aspx 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TCQXCInfoEdit.aspx.cs" Inherits="CB.Admin.Plugins.OpenCode.TCQXCInfoEdit" %>
  2. <!DOCTYPE html >
  3. <html >
  4. <head id="Head1" runat="server">
  5. <title>编辑体彩七星彩开奖信息</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 %>体彩七星彩开奖信息</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="txtOpenCode1" runat="server" Width="35"></asp:TextBox>&nbsp;&nbsp;<asp:TextBox
  43. ID="txtOpenCode2" runat="server" Width="35"></asp:TextBox>&nbsp;&nbsp;<asp:TextBox
  44. ID="txtOpenCode3" runat="server" Width="35"></asp:TextBox>&nbsp;&nbsp;<asp:TextBox
  45. ID="txtOpenCode4" runat="server" Width="35"></asp:TextBox>&nbsp;&nbsp;<asp:TextBox
  46. ID="txtOpenCode5" runat="server" Width="35"></asp:TextBox>&nbsp;&nbsp;<asp:TextBox
  47. ID="txtOpenCode6" runat="server" Width="35"></asp:TextBox>&nbsp;&nbsp;<asp:TextBox
  48. ID="txtOpenCode7" runat="server" Width="35"></asp:TextBox>&nbsp;&nbsp;<span style="color: Red;">(必填:号码在0-9中取值)</span></div>
  49. </td>
  50. </tr>
  51. <tr>
  52. <td>
  53. 开奖日期:
  54. </td>
  55. <td>
  56. <div class="left">
  57. <asp:TextBox ID="txtOpenTime" runat="server" class="Wdate"></asp:TextBox><span style="color: Red;">(必填)</span></div>
  58. </td>
  59. </tr>
  60. <tr>
  61. <td>
  62. 投入金额:
  63. </td>
  64. <td>
  65. <div class="left">
  66. <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>
  67. </td>
  68. </tr>
  69. <tr>
  70. <td>
  71. 滚动金额:
  72. </td>
  73. <td>
  74. <div class="left">
  75. <asp:TextBox ID="txtnextmoeny" 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>
  76. </td>
  77. </tr>
  78. <tr>
  79. <td>
  80. 一等奖注数:
  81. </td>
  82. <td>
  83. <div class="left">
  84. <asp:TextBox ID="txtzj1" 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>
  85. &nbsp;&nbsp;&nbsp;&nbsp;一等奖金额:
  86. <asp:TextBox ID="txtjo1" runat="server" Text="0" 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>
  87. </td>
  88. </tr>
  89. <tr>
  90. <td>
  91. 二等奖注数:
  92. </td>
  93. <td>
  94. <div class="left">
  95. <asp:TextBox ID="txtzj2" 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>
  96. &nbsp;&nbsp;&nbsp;&nbsp;二等奖金额:
  97. <asp:TextBox ID="txtjo2" runat="server" Text="0" 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>
  98. </td>
  99. </tr>
  100. <tr>
  101. <td>
  102. 三等奖注数:
  103. </td>
  104. <td>
  105. <div class="left">
  106. <asp:TextBox ID="txtzj3" 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>
  107. &nbsp;&nbsp;&nbsp;&nbsp;三等奖金额:
  108. <asp:TextBox ID="txtjo3" runat="server" Text="1800" 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>
  109. </td>
  110. </tr>
  111. <tr>
  112. <td>
  113. 四等奖注数:
  114. </td>
  115. <td>
  116. <div class="left">
  117. <asp:TextBox ID="txtzj4" 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>
  118. &nbsp;&nbsp;&nbsp;&nbsp;四等奖金额:
  119. <asp:TextBox ID="txtjo4" runat="server" Text="300" 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>
  120. </td>
  121. </tr>
  122. <tr>
  123. <td>
  124. 五等奖注数:
  125. </td>
  126. <td>
  127. <div class="left">
  128. <asp:TextBox ID="txtzj5" 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>
  129. &nbsp;&nbsp;&nbsp;&nbsp;五等奖金额:
  130. <asp:TextBox ID="txtjo5" runat="server" Text="20" 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>
  131. </td>
  132. </tr>
  133. <tr>
  134. <td>
  135. 六等奖注数:
  136. </td>
  137. <td>
  138. <div class="left">
  139. <asp:TextBox ID="txtzj6" 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>
  140. &nbsp;&nbsp;&nbsp;&nbsp;六等奖金额:
  141. <asp:TextBox ID="txtjo6" runat="server" Text="5" 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>
  142. </td>
  143. </tr>
  144. <tr>
  145. <td>
  146. 操作:
  147. </td>
  148. <td>
  149. <div class="left">
  150. <asp:Button ID="btnEdit" runat="server" Text=" 保 存 " OnClick="btnEdit_Click" /><span
  151. style="margin-left: 5px">
  152. <asp:Button ID="btnClear" runat="server" Text=" 清 除 " OnClick="btnClear_Click" />
  153. </span>
  154. </div>
  155. <asp:Label ID="labID" runat="server" Text="" Visible="false"></asp:Label>
  156. </td>
  157. </tr>
  158. </table>
  159. </div>
  160. </div>
  161. </div>
  162. </form>
  163. </body>
  164. </html>
  165. <script type="text/javascript">
  166. var chi = new Array();
  167. chi[0] = "txtOpenCode1";
  168. chi[1] = "txtOpenCode2";
  169. chi[2] = "txtOpenCode3";
  170. chi[3] = "txtOpenCode4";
  171. chi[4] = "txtOpenCode5";
  172. chi[5] = "txtOpenCode6";
  173. chi[6] = "txtOpenCode7";
  174. $("input:text").keyup(function () {
  175. var a = $(this).val();
  176. var id = $(this).attr('id');
  177. var index = 7;
  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<7) {
  186. if (a >= 0 && a <= 9 && a.length == 1) {
  187. $(this).blur();
  188. if (index != 7) {
  189. var nid = "#" + chi[index];
  190. $(nid).focus();
  191. }
  192. } else { $(this).val("") }
  193. }
  194. });
  195. </script>