HaoCai1InfoEdit.aspx 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HaoCai1InfoEdit.aspx.cs" Inherits="CB.Admin.Plugins.OpenCode.HaoCai1InfoEdit" %>
  2. <!DOCTYPE html >
  3. <html >
  4. <head id="Head1" runat="server">
  5. <title>编辑好彩1开奖信息</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 %>好彩1开奖信息</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;<span style="color: Red;">(必填:号码在01-36中取值)</span></div>
  43. </td>
  44. </tr>
  45. <tr>
  46. <td>
  47. 开奖日期:
  48. </td>
  49. <td>
  50. <div class="left">
  51. <asp:TextBox ID="txtOpenTime" runat="server" class="Wdate"></asp:TextBox><span style="color: Red;">(必填)</span></div>
  52. </td>
  53. </tr>
  54. <tr>
  55. <td>
  56. 本期投注:
  57. </td>
  58. <td>
  59. <div class="left">
  60. <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>
  61. </td>
  62. </tr>
  63. <tr>
  64. <td>
  65. 奖池滚动:
  66. </td>
  67. <td>
  68. <div class="left">
  69. <asp:TextBox ID="txtnextmoney" 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>
  70. </td>
  71. </tr>
  72. <tr>
  73. <td>
  74. 数字注数:
  75. </td>
  76. <td>
  77. <div class="left">
  78. <asp:TextBox ID="txtNum" 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>
  79. &nbsp;&nbsp;&nbsp;&nbsp;数字金额:
  80. <asp:TextBox ID="txtNummoney" runat="server" Text="46" 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>
  81. </td>
  82. </tr>
  83. <tr>
  84. <td>
  85. 生肖注数:
  86. </td>
  87. <td>
  88. <div class="left">
  89. <asp:TextBox ID="txtSX" 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>
  90. &nbsp;&nbsp;&nbsp;&nbsp;生肖金额:
  91. <asp:TextBox ID="txtSXmoney" runat="server" Text="15" 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>
  92. </td>
  93. </tr>
  94. <tr>
  95. <td>
  96. 方位注数:
  97. </td>
  98. <td>
  99. <div class="left">
  100. <asp:TextBox ID="txtFW" 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>
  101. &nbsp;&nbsp;&nbsp;&nbsp;方位金额:
  102. <asp:TextBox ID="txtFWmoney" 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>
  103. </td>
  104. </tr>
  105. <tr>
  106. <td>
  107. 季节注数:
  108. </td>
  109. <td>
  110. <div class="left">
  111. <asp:TextBox ID="txtJJ" 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>
  112. &nbsp;&nbsp;&nbsp;&nbsp;季节金额:
  113. <asp:TextBox ID="txtJJmoney" 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>
  114. </td>
  115. </tr>
  116. <tr>
  117. <td>
  118. 操作:
  119. </td>
  120. <td>
  121. <div class="left">
  122. <asp:Button ID="btnEdit" runat="server" Text=" 保 存 " OnClick="btnEdit_Click" /><span
  123. style="margin-left: 5px">
  124. <asp:Button ID="btnClear" runat="server" Text=" 清 除 " OnClick="btnClear_Click" />
  125. </span>
  126. </div>
  127. <asp:Label ID="labID" runat="server" Text="" Visible="false"></asp:Label>
  128. </td>
  129. </tr>
  130. </table>
  131. </div>
  132. </div>
  133. </div>
  134. </form>
  135. </body>
  136. </html>
  137. <script type="text/javascript">
  138. var nums = new Array();
  139. nums[0] = "01";
  140. nums[1] = "02";
  141. nums[2] = "03";
  142. nums[3] = "04";
  143. nums[4] = "05";
  144. nums[5] = "06";
  145. nums[6] = "07";
  146. nums[7] = "08";
  147. nums[8] = "09";
  148. nums[9] = "10";
  149. nums[10] = "11";
  150. nums[11] = "12";
  151. nums[12] = "13";
  152. nums[13] = "14";
  153. nums[14] = "15";
  154. nums[15] = "16";
  155. nums[16] = "17";
  156. nums[17] = "18";
  157. nums[18] = "19";
  158. nums[19] = "20";
  159. nums[20] = "21";
  160. nums[21] = "22";
  161. nums[22] = "23";
  162. nums[23] = "24";
  163. nums[24] = "25";
  164. nums[25] = "26";
  165. nums[26] = "27";
  166. nums[27] = "28";
  167. nums[28] = "29";
  168. nums[29] = "30";
  169. nums[30] = "31";
  170. nums[31] = "32";
  171. nums[32] = "33";
  172. nums[33] = "34";
  173. nums[34] = "35";
  174. nums[35] = "36";
  175. $("#txtOpenCode1").keyup(function () {
  176. var a = $(this).val();
  177. if (a.length == 1) {
  178. if (!(a >= 0 && a < 10)) {
  179. $(this).val("")
  180. }
  181. }
  182. if (a.length >= 2) {
  183. if (check(a)) {
  184. $(this).blur();
  185. } else { $(this).val("") }
  186. }
  187. });
  188. var check = function (a) {
  189. for (var i = 0; i < nums.length; i++) {
  190. if (nums[i] == a) { return true; }
  191. }
  192. return false;
  193. };
  194. </script>