<%@ Page Language="c#" Inherits="Web.User.manageWebResearQuestion" CodeBehind="manageWebResearQuestion.aspx.cs" %>

<!DOCTYPE html>
<!--[if lt IE 9]><html class="lte-ie8"><![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head>
    <title>问卷问题管理</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!--#include file="../Css/userCssList.htm"-->

</head>
<body>
    <div class="list-func-box func-box">
        <form id="newsMange" method="post" runat="server">
        <div class="hd">
            <div class="breadcrumb">
                <asp:PlaceHolder ID="placeHead" runat="server"></asp:PlaceHolder>
            </div>
            <!--/breadcrumb-->
            <div class="user-service">
                <a class="help" href="#">帮助</a></div>
            <!--/user-service-->
        </div>
        <div class="bd">
            <div class="function-hd">
                <div class="search-box fr">
                    题目名称：
                        <asp:TextBox ID="txtName" class="input-txt input-txt1" runat="server" MaxLength="200" notNull="true" msgName="题目名称"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="*"
                            ControlToValidate="txtName"></asp:RequiredFieldValidator>
                        &nbsp;题型：
                        <asp:DropDownList ID="ddlType" runat="server">
                            <asp:ListItem Selected="True" Value="radio">单选</asp:ListItem>
                            <asp:ListItem Value="check">多选</asp:ListItem>
                            <asp:ListItem Value="text">填空</asp:ListItem>
                        </asp:DropDownList>
                        &nbsp;必选：
                        <asp:DropDownList ID="ddlAllowNull" runat="server">
                            <asp:ListItem Selected="True" Value="1">是</asp:ListItem>
                            <asp:ListItem Value="0">否</asp:ListItem>
                        </asp:DropDownList>
                        &nbsp;
                        <asp:Button ID="update" class="btn" runat="server" Text="添 加" OnClick="Btn_Click"></asp:Button>
                        &nbsp;
                        <asp:Button ID="Cancel" class="btn" runat="server" CausesValidation="False" OnClick="Btn_Click" Text="取 消" />
                </div>
                <!--/search-box-->
                <div class="action-field">
                        <asp:Button ID="BackToResear" runat="server" class="btn" OnClick="Btn_Click" Text="返 回" CausesValidation="False" />
                </div>
                <!--/action-field-->
            </div>
            <div class="function-bd" style="height: 592px; overflow: auto;">
            <!--[if lte IE 7]><div style="zoom:1"><![endif]-->
                <asp:DataGrid ID="linkGrid" runat="server" CssClass="list-table" AutoGenerateColumns="False"
                    AllowSorting="True" OnItemCommand="linkGrid_ItemCommand"
                    OnPageIndexChanged="linkGrid_PageIndexChanged">
                    <Columns>
                        <asp:BoundColumn DataField="pkId" HeaderText="问题ID号" HeaderStyle-CssClass="title">
                        </asp:BoundColumn>
                        <asp:BoundColumn DataField="questionName" HeaderText="题目名称" HeaderStyle-CssClass="title">
                        </asp:BoundColumn>
                        <asp:BoundColumn DataField="optionsCount" HeaderText="选项数目" HeaderStyle-CssClass="title">
                        </asp:BoundColumn>
                        <asp:BoundColumn DataField="optionsType" HeaderText="题型" HeaderStyle-CssClass="title">
                        </asp:BoundColumn>
                        <asp:BoundColumn DataField="NotNull" HeaderText="必选" HeaderStyle-CssClass="title">
                        </asp:BoundColumn>
                        <asp:TemplateColumn HeaderText="管理" HeaderStyle-CssClass="title" ItemStyle-CssClass="td-a">
                            <ItemTemplate>
                                <asp:LinkButton ID="edit" runat="server" CommandName="edit" CausesValidation="False">编辑</asp:LinkButton>&nbsp;&nbsp;
                                <asp:LinkButton ID="del" runat="server" CommandName="del" CausesValidation="False" OnClientClick="return confirm('您确认要删除本问题吗？');">删除</asp:LinkButton>
                                &nbsp;&nbsp;
                                <asp:LinkButton ID="AddOptions" runat="server" CommandName="AddOptions" CausesValidation="false">选项管理</asp:LinkButton>&nbsp;&nbsp;
                                <asp:LinkButton ID="VoteReview" runat="server" CommandName="VoteReview" CausesValidation="false">投票查看</asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                    </Columns>
                    <PagerStyle Mode="NumericPages" />
                </asp:DataGrid>
            </div>
            <div class="ft">
                <div class="txt-c">
                </div>
            </div>
        </div>
        </form>
    </div>
</body>
</html>
