123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196 |
- <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TCQXCInfoEdit.aspx.cs" Inherits="CB.Admin.Plugins.OpenCode.TCQXCInfoEdit" %>
- <!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="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;">(必填:号码在0-9中取值)</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="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="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="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>
- </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="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>
- </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="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>
- </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: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] = "txtOpenCode1";
- chi[1] = "txtOpenCode2";
- chi[2] = "txtOpenCode3";
- chi[3] = "txtOpenCode4";
- chi[4] = "txtOpenCode5";
- chi[5] = "txtOpenCode6";
- chi[6] = "txtOpenCode7";
- $("input:text").keyup(function () {
- var a = $(this).val();
- var id = $(this).attr('id');
- var index = 7;
- for (var i = 0; i < chi.length; i++) {
- if (chi[i] == id) {
- if (i != chi.length - 1) {
- index = i + 1;
- }; break;
- }
- }
- if (index<7) {
- if (a >= 0 && a <= 9 && a.length == 1) {
- $(this).blur();
- if (index != 7) {
- var nid = "#" + chi[index];
- $(nid).focus();
- }
- } else { $(this).val("") }
- }
- });
- </script>
|