123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196 |
- <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HaoCai1InfoEdit.aspx.cs" Inherits="CB.Admin.Plugins.OpenCode.HaoCai1InfoEdit" %>
- <!DOCTYPE html >
- <html >
- <head id="Head1" runat="server">
- <title>编辑好彩1开奖信息</title>
- <link href="../../static/css/main.css" rel="stylesheet" type="text/css" />
- <script src="../../static/js/jquery.js" type="text/javascript"></script>
- <script src="../../Static/js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
- <script type="text/javascript">
- //窗体加载
- $(function () {
- $("#txtOpenTime").click(WdatePicker);
- });
- </script>
- </head>
- <body>
- <form id="form1" runat="server">
- <div class="box">
- <div class="title">
- <span>
- <%=title %>好彩1开奖信息</span>
- </div>
- <div class="content">
- <div class="listtable">
- <table style="margin-top: 3px" width="98%" border="0" align="center" cellpadding="0"
- cellspacing="0">
- <tr>
- <td width="100">
- 期号:
- </td>
- <td>
- <div class="left">
- <asp:TextBox ID="txtTerm" runat="server" Enabled="False"></asp:TextBox> <span style="color: Red;">(必填)</span></div>
- </td>
- </tr>
- <tr>
- <td>
- 开奖号:
- </td>
- <td>
- <div class="left">
- <asp:TextBox ID="txtOpenCode1" runat="server" Width="35"></asp:TextBox> <span style="color: Red;">(必填:号码在01-36中取值)</span></div>
- </td>
- </tr>
- <tr>
- <td>
- 开奖日期:
- </td>
- <td>
- <div class="left">
- <asp:TextBox ID="txtOpenTime" runat="server" class="Wdate"></asp:TextBox><span style="color: Red;">(必填)</span></div>
- </td>
- </tr>
- <tr>
- <td>
- 本期投注:
- </td>
- <td>
- <div class="left">
- <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>
- </td>
- </tr>
- <tr>
- <td>
- 奖池滚动:
- </td>
- <td>
- <div class="left">
- <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>
- </td>
- </tr>
- <tr>
- <td>
- 数字注数:
- </td>
- <td>
- <div class="left">
- <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>
- 数字金额:
- <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>
- </td>
- </tr>
- <tr>
- <td>
- 生肖注数:
- </td>
- <td>
- <div class="left">
- <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>
- 生肖金额:
- <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>
- </td>
- </tr>
- <tr>
- <td>
- 方位注数:
- </td>
- <td>
- <div class="left">
- <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>
- 方位金额:
- <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>
- </td>
- </tr>
- <tr>
- <td>
- 季节注数:
- </td>
- <td>
- <div class="left">
- <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>
- 季节金额:
- <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>
- </td>
- </tr>
- <tr>
- <td>
- 操作:
- </td>
- <td>
- <div class="left">
- <asp:Button ID="btnEdit" runat="server" Text=" 保 存 " OnClick="btnEdit_Click" /><span
- style="margin-left: 5px">
- <asp:Button ID="btnClear" runat="server" Text=" 清 除 " OnClick="btnClear_Click" />
- </span>
- </div>
- <asp:Label ID="labID" runat="server" Text="" Visible="false"></asp:Label>
- </td>
- </tr>
- </table>
- </div>
- </div>
- </div>
- </form>
- </body>
- </html>
- <script type="text/javascript">
- var nums = new Array();
- nums[0] = "01";
- nums[1] = "02";
- nums[2] = "03";
- nums[3] = "04";
- nums[4] = "05";
- nums[5] = "06";
- nums[6] = "07";
- nums[7] = "08";
- nums[8] = "09";
- nums[9] = "10";
- nums[10] = "11";
- nums[11] = "12";
- nums[12] = "13";
- nums[13] = "14";
- nums[14] = "15";
- nums[15] = "16";
- nums[16] = "17";
- nums[17] = "18";
- nums[18] = "19";
- nums[19] = "20";
- nums[20] = "21";
- nums[21] = "22";
- nums[22] = "23";
- nums[23] = "24";
- nums[24] = "25";
- nums[25] = "26";
- nums[26] = "27";
- nums[27] = "28";
- nums[28] = "29";
- nums[29] = "30";
- nums[30] = "31";
- nums[31] = "32";
- nums[32] = "33";
- nums[33] = "34";
- nums[34] = "35";
- nums[35] = "36";
- $("#txtOpenCode1").keyup(function () {
- var a = $(this).val();
- if (a.length == 1) {
- if (!(a >= 0 && a < 10)) {
- $(this).val("")
- }
- }
- if (a.length >= 2) {
- if (check(a)) {
- $(this).blur();
- } else { $(this).val("") }
- }
- });
- var check = function (a) {
- for (var i = 0; i < nums.length; i++) {
- if (nums[i] == a) { return true; }
- }
- return false;
- };
- </script>
|