1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="KeyCodeAdd.aspx.cs" Inherits="CY.WebForm.Pages.soft.KeyCodeAdd" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>新增/修改软件激活码</title>
    <uc:CMSHead ID="CMSHead1" runat="server" />
    <script type="text/javascript">
        $(function () {
            $("#txtKeyVersion").change(function () {
                var keyVersion = $(this).val();
                if (keyVersion == "1") {
                    $("#KeyNum").hide();
                    $("#txtKeyUseIP").val("-1");
                } else {
                    $("#KeyNum").css("display", "table-row");
                    $("#txtKeyUseIP").val("10");
                }
            });
        });
    </script>
</head>
<body>
    <%--<textarea id="txtExaminedRecore" runat="server" style="width: 370px; height: 50px;" class=""></textarea>--%>
    <form id="form1" class="form2" runat="server">
    <div>
        <table class="tableStyle" style="margin: 10px auto;" cellpadding="0" cellspacing="0">
            <tr>
                <td class="ali03 w150px">
                    软件名称:
                </td>
                <td>
                    <asp:DropDownList runat="server" ID="txtSoftTypeId" keepdefaultstyle="true" class="Sreq w120px" msg="请选择软件">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="ali03">
                    生成数量:
                </td>
                <td>
                    <input id="txtNum" type="text" class="req int w120px" min="0" max="1000" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="ali03">
                    标记:
                </td>
                <td>
                    <input id="txtKeyWord" type="text" class="w120px" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="ali03">
                    版本类型:
                </td>
                <td>
                    <select runat="server" id="txtKeyVersion" keepdefaultstyle="true" class="w120px">
                        <option value="1">正式版</option>
                        <option value="2">试用版</option>
                    </select>(正式版为永久使用)
                </td>
            </tr>
            <tr id="KeyNum" style="display: none;">
                <td class="ali03">
                    使用次数:
                </td>
                <td>
                    <input id="txtKeyUseIP" type="text" class="req int w40px" min="-1" value="-1" max="1000" runat="server" />(永久请填写‘-1’)
                </td>
            </tr>
            <tr>
                <td colspan="2" style="text-align: center;">
                    <asp:Button ID="btn_submit" runat="server" OnClick="btn_submit_form" Text="提交" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>