123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366 |
- <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TCDLTInfoEdit.aspx.cs" Inherits="CB.Admin.Plugins.OpenCode.TCDLTInfoEdit" %>
- <!DOCTYPE html >
- <html >
- <head id="Head1" runat="server">
- <title>编辑体彩大乐透开奖信息</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 %>体彩大乐透开奖信息</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="txtKJH1" runat="server" Width="35"></asp:TextBox> <asp:TextBox
- ID="txtKJH2" runat="server" Width="35"></asp:TextBox> <asp:TextBox ID="txtKJH3"
- runat="server" Width="35"></asp:TextBox> <asp:TextBox ID="txtKJH4"
- runat="server" Width="35"></asp:TextBox> <asp:TextBox ID="txtKJH5"
- runat="server" Width="35"></asp:TextBox> 附加区:<asp:TextBox ID="txtKJH6"
- runat="server" Width="35"></asp:TextBox> <asp:TextBox ID="txtKJH7"
- runat="server" Width="35"></asp:TextBox> <span style="color: Red;">(必填:前区五位号码在01-35中取值,后区两位在01-12中取值)</span></div>
- </td>
- </tr>
- <tr>
- <td>
- 开奖号:
- </td>
- <td>
- <div class="left">
- <asp:TextBox ID="txtOpenCode1" runat="server" Width="35"></asp:TextBox> <asp:TextBox
- ID="txtOpenCode2" runat="server" Width="35"></asp:TextBox> <asp:TextBox
- ID="txtOpenCode3" runat="server" Width="35"></asp:TextBox> <asp:TextBox
- ID="txtOpenCode4" runat="server" Width="35"></asp:TextBox> <asp:TextBox
- ID="txtOpenCode5" runat="server" Width="35"></asp:TextBox> 附加区:<asp:TextBox
- ID="txtOpenCode6" runat="server" Width="35"></asp:TextBox> <asp:TextBox
- ID="txtOpenCode7" runat="server" Width="35"></asp:TextBox> <span style="color: Red;">(必填:前区五位号码在01-35中取值,后区两位在01-12中取值)</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="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>
- </td>
- </tr>
- <tr>
- <td>
- 一等奖注数:
- </td>
- <td>
- <div class="left">
- <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>
- 一等奖金额:
- <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>
- </td>
- </tr>
- <tr>
- <td>
- 追加:
- </td>
- <td>
- <div class="left">
- <asp:TextBox ID="txtzzj1" 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="txtzjo1" 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="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>
- 二等奖金额:
- <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>
- </td>
- </tr>
- <tr>
- <td>
- 追加:
- </td>
- <td>
- <div class="left">
- <asp:TextBox ID="txtzzj2" 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="txtzjo2" 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="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>
- 三等奖金额:
- <asp:TextBox ID="txtjo3" 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="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>
- 四等奖金额:
- <asp:TextBox ID="txtjo4" runat="server" Text="200" 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="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>
- 五等奖金额:
- <asp:TextBox ID="txtjo5" runat="server" Text="10" 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="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>
- 六等奖金额:
- <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>
- </td>
- </tr>
- <tr>
- <td>
- 七等奖注数:
- </td>
- <td>
- <div class="left">
- <asp:TextBox ID="txtzj7" 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="txtjo7" 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="txtzj8" 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="txtjo8" 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="txtzj9" 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="txtjo9" 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: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 chi = new Array();
- chi[0] = "txtKJH1";
- chi[1] = "txtKJH2";
- chi[2] = "txtKJH3";
- chi[3] = "txtKJH4";
- chi[4] = "txtKJH5";
- chi[5] = "txtKJH6";
- chi[6] = "txtKJH7";
- chi[7] = "txtOpenCode1";
- chi[8] = "txtOpenCode2";
- chi[9] = "txtOpenCode3";
- chi[10] = "txtOpenCode4";
- chi[11] = "txtOpenCode5";
- chi[12] = "txtOpenCode6";
- chi[13] = "txtOpenCode7";
- 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";
- var Bnums = new Array();
- Bnums[0] = "01";
- Bnums[1] = "02";
- Bnums[2] = "03";
- Bnums[3] = "04";
- Bnums[4] = "05";
- Bnums[5] = "06";
- Bnums[6] = "07";
- Bnums[7] = "08";
- Bnums[8] = "09";
- Bnums[9] = "10";
- Bnums[10] = "11";
- Bnums[11] = "12";
- $("input:text").keyup(function () {
- var a = $(this).val();
- if (a.length == 1) {
- if (!(a >= 0 && a < 10)) {
- $(this).val("")
- }
- }
- var id = $(this).attr('id');
- var index = 14;
- for (var i = 0; i < chi.length; i++) {
- if (chi[i] == id) {
- if (i != chi.length - 1) {
- index = i + 1;
- }; break;
- }
- }
- if (index<14) {
- if (index != 14 && index != 7 && index != 6 && index != 13) {
- if (checkNum(a) && a.length == 2) {
- if (index != 14) {
- $(this).blur();
- var nid = "#" + chi[index];
- $(nid).focus();
- }
- } else {
- if (a.length >= 2) {
- $(this).val("")
- }
- }
- } else {
- if (checkBNum(a) && a.length == 2) {
- if (index != 14) {
- $(this).blur();
- var nid = "#" + chi[index];
- $(nid).focus();
- }
- } else {
- if (a.length >= 2) {
- $(this).val("")
- }
- }
- }
- }
- });
- var checkNum = function (a) {
- for (var i = 0; i < nums.length; i++) {
- if (nums[i] == a) {
- return true;
- }
- }
- return false;
- };
- var checkBNum = function (a) {
- for (var i = 0; i < Bnums.length; i++) {
- if (nums[i] == a) {
- return true;
- }
- }
- return false;
- };
- </script>
|