<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="addWebResear.aspx.cs" Inherits="Web.User.addWebResear" %>
<!DOCTYPE html>
<!--[if lt IE 9]><html class="lte-ie8"><![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head>
    <title>addWebResear</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!--#include file = "../Css/head.htm" -->

    <script type="text/javascript" language="javascript">
        
        //关闭弹出层 刷新列表
        function divClose(bigclassid, menuid, currentPage) {
            parent.$.fancybox.close();
            parent.location = "manageWebResear.aspx?type=" + bigclassid + "&menuId=" + menuid + "&currentPageIndex=" + currentPage;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="edit-func-box func-box">
        <div class="hd b">编辑</div>
        <div class="bd">
            <table class="edit-table">
                <tr>
                    <th>
                        问卷主题名称：
                    </th>
                    <td style="width:66%;">
                        <asp:TextBox ID="title" runat="server" CssClass="input-md" MaxLength="200"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*" ControlToValidate="title"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <th>
                        新闻页模板：
                    </th>
                    <td>
                        <asp:DropDownList ID="ItemType" runat="server" DataValueField="pkId" DataTextField="name"  CssClass="input-md"></asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <th>
                        显示标题：
                    </th>
                    <td>
                        <asp:DropDownList ID="IsShow" runat="server"  CssClass="input-mini">
                            <asp:ListItem Selected="True" Value="1">是</asp:ListItem>
                            <asp:ListItem Value="0">否</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <th>
                        显示问题编号：
                    </th>
                    <td>
                        <asp:DropDownList ID="IsShowNumber" runat="server" CssClass="input-mini">
                            <asp:ListItem Selected="True" Value="0">否</asp:ListItem>
                            <asp:ListItem Value="1">是</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <th>
                        用户提交投票时必须先登录：
                    </th>
                    <td>
                        <asp:DropDownList ID="IsAnonymity" runat="server" CssClass="input-mini">
                            <asp:ListItem Selected="True" Value="0">否</asp:ListItem>
                            <asp:ListItem Value="1">是</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <th>
                        用户指定投票时使用验证码：
                    </th>
                    <td>
                        <asp:DropDownList ID="IsVerify" runat="server" CssClass="input-mini">
                            <asp:ListItem Selected="True" Value="0">否</asp:ListItem>
                            <asp:ListItem Value="1">是</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <th>
                        当前主题的有效期显示日期：
                    </th>
                    <td>
                        <asp:DropDownList ID="validDays" runat="server" AutoPostBack="True" OnSelectedIndexChanged="validDays_SelectedIndexChanged" CssClass="input-md">
                            <asp:ListItem Selected="True" Value="1">一直有效</asp:ListItem>
                            <asp:ListItem Value="2">无效</asp:ListItem>
                            <asp:ListItem Value="3">过期时间</asp:ListItem>
                        </asp:DropDownList>
                        <asp:TextBox ID="Days" runat="server" CssClass="input-md w2" Visible="false"></asp:TextBox>
                        <asp:Label ID="day" runat="server" Text="天" Visible="false"></asp:Label>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*" ControlToValidate="Days" Display="Dynamic"></asp:RequiredFieldValidator>
                        <asp:RangeValidator ID="Daysva" runat="server" Text="*" ControlToValidate="Days" Type="Integer" MinimumValue="1" MaximumValue="100000" Display="Dynamic"></asp:RangeValidator>
                    </td>
                </tr>
                <tr>
                    <th>
                        投票时所应用的限制类型：
                    </th>
                    <td>
                        <asp:DropDownList ID="restrictMode" runat="server" AutoPostBack="True" OnSelectedIndexChanged="restrictMode_SelectedIndexChanged" CssClass="input-md">
                            <asp:ListItem Selected="True" Value="0">不受限制</asp:ListItem>
                            <asp:ListItem Value="1">Cookies</asp:ListItem>
                            <asp:ListItem Value="2">IP</asp:ListItem>
                        </asp:DropDownList>
                        <asp:Label ID="objectlabel" runat="server" Text="限制对象" Visible="false"></asp:Label>
                        <asp:DropDownList ID="restrictObject" runat="server" Visible="false">
                            <asp:ListItem Value="1">匿名用户</asp:ListItem>
                            <asp:ListItem Selected="True" Value="2">所有用户</asp:ListItem>
                        </asp:DropDownList>
                        <asp:Label ID="Time" runat="server" Text="连续投票最小间隔" Visible="false"></asp:Label>
                        <asp:TextBox ID="restrictDays" runat="server" CssClass="input-md w2" Visible="false"></asp:TextBox>
                        <asp:DropDownList ID="day2" runat="server" AutoPostBack="True" OnSelectedIndexChanged="day2_SelectedIndexChanged" Visible="false" CssClass="input-mini">
                            <asp:ListItem Value="1">天</asp:ListItem>
                            <asp:ListItem Selected="True" Value="2">小时</asp:ListItem>
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*" ControlToValidate="restrictDays"></asp:RequiredFieldValidator>
                        <asp:RangeValidator ID="restrictDaysva" runat="server" Text="*" ControlToValidate="restrictDays" Type="Integer" MinimumValue="0" MaximumValue="100000" Display="Dynamic"></asp:RangeValidator>
                        
                    </td>
                </tr>
            </table>
        </div>
        <div class="ft">
            <div class="action-field text-center">
                <asp:Button ID="ok" runat="server" class="btn btn-sm btn-primary" CausesValidation="True" Text="确 定" OnClick="ok_Click"></asp:Button>
                &nbsp;
                <input type="button" class="btn btn-sm btn-primary" value="关 闭" onclick="parent.$.fancybox.close();" />
                <%--<asp:Button ID="BackToResear" runat="server" class="btn" Text="返 回" onclick="BackToResear_Click" ></asp:Button>--%>
                &nbsp;&nbsp;<asp:Label ID="labMsg" runat="server" Text=""></asp:Label>
            </div>
        </div>
    </div>
    </form>
</body>
</html>