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

<%@ Register Src="~/Module/pageNavi.ascx" TagPrefix="uc1" TagName="pageNavi" %>
<!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/head.htm"-->

</head>
<body>
    <div class="list-func-box func-box">
        <form id="newsMange" method="post" runat="server">
            <div class="breadcrumbs" id="breadcrumbs">
                <ul class="breadcrumb">
                    <li>
                        <i class="ace-icon fa  fa-desktop"></i>
                        <asp:Label ID="lbpageNav" runat="server" Text=""></asp:Label>
                    </li>
                </ul>
            </div>
            <div class="page-content">
                <!-- PAGE CONTENT BEGINS -->
                <div class="page-header clearfix">
                    <div class="pull-left">
                        <asp:Button ID="BackToResear" runat="server" class="btn btn-sm btn-primary" OnClick="Btn_Click" Text="返 回" CausesValidation="False" />
                    </div>
                    <!--/action-field-->
                    <div class="pull-right">
                        题目名称：
                        <asp:TextBox ID="txtName" class="input-md" 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" class="input-md">
                            <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" class="input-mini">
                            <asp:ListItem Selected="True" Value="1">是</asp:ListItem>
                            <asp:ListItem Value="0">否</asp:ListItem>
                        </asp:DropDownList>
                        &nbsp;
                        <asp:Button ID="update" class="btn btn-sm btn-primary" runat="server" Text="添 加" OnClick="Btn_Click"></asp:Button>
                        &nbsp;
                        <asp:Button ID="Cancel" class="btn btn-sm btn-primary" runat="server" CausesValidation="False" OnClick="Btn_Click" Text="取 消" />
                    </div>
                    <!--/search-box-->
                </div>
                <div class="row">
                    <div class="col-xs-12">
                        <!--[if lte IE 7]><div style="zoom:1"><![endif]-->
                        <asp:GridView ID="GridView1" runat="server" OnRowCommand="GridView1_RowCommand" OnRowDataBound="GridView1_RowDataBound" EmptyDataText="暂无数据…"
                            AutoGenerateColumns="False" class="table table-striped table-bordered table-hover table-sorting">
                            <Columns>
                                <asp:BoundField DataField="pkId" HeaderText="问题ID号" HeaderStyle-CssClass="title" />
                                <asp:BoundField DataField="questionName" HeaderText="题目名称" HeaderStyle-CssClass="title" />
                                <asp:BoundField DataField="optionsCount" HeaderText="选项数目" HeaderStyle-CssClass="title" />
                                <asp:TemplateField HeaderText="题型" HeaderStyle-CssClass="title">
                                    <ItemTemplate>
                                        <asp:Label ID="optionsType" runat="server"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="必选" HeaderStyle-CssClass="title">
                                    <ItemTemplate>
                                        <asp:Label ID="NotNull" runat="server"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <%--<asp:BoundField DataField="optionsType" HeaderText="题型" HeaderStyle-CssClass="title" />--%>
                                <%--<asp:BoundField DataField="NotNull" HeaderText="必选" HeaderStyle-CssClass="title" />--%>
                                <asp:TemplateField HeaderText="管理" HeaderStyle-CssClass="title" ItemStyle-CssClass="td-a">
                                    <ItemTemplate>
                                        <div class="action-buttons">
                                            <asp:LinkButton ID="edit" runat="server" CommandName="editt" CausesValidation="False" data-toggle="tooltip" data-placement="bottom" Visible="false" title="编辑" CommandArgument='<%# Eval("pkId")+"&"+Eval("questionName")+"&"+Eval("optionsType")+"&"+Eval("NotNull") %>'><i class="ace-icon fa fa-pencil bigger-120 blue" ></i></asp:LinkButton>
                                            <asp:LinkButton ID="edit1" runat="server" data-toggle="tooltip" data-placement="bottom" title="很抱歉，您没有权限编辑" Visible="false" Enabled="false"><i class="ace-icon fa fa-pencil bigger-120 grey"></i></asp:LinkButton>
                                            <asp:LinkButton ID="del" runat="server" CommandName="del" CausesValidation="False" Visible="false" OnClientClick="return confirm('您确认要删除本问题吗？');" data-toggle="tooltip" data-placement="bottom" title="删除" CommandArgument='<%# Eval("pkId")+"&"+Eval("questionName") %>'><i class="ace-icon fa fa-trash-o bigger-120 red" ></i></asp:LinkButton>
                                            <asp:LinkButton ID="del1" runat="server" data-toggle="tooltip" data-placement="bottom" title="很抱歉，您没有权限删除" Visible="false" Enabled="false"><i class="ace-icon fa fa-trash bigger-120 grey"></i></asp:LinkButton>
                                            <asp:LinkButton ID="AddOptions" runat="server" CommandName="AddOptions" CausesValidation="false" data-toggle="tooltip" data-placement="bottom" title="选项管理" CommandArgument='<%# Eval("pkId")+"&"+Eval("optionsType") %>'><i class="ace-icon fa fa-align-justify bigger-120 blue" ></i></asp:LinkButton>
                                            <asp:LinkButton ID="VoteReview" runat="server" CommandName="VoteReview" CausesValidation="false" data-toggle="tooltip" data-placement="bottom" title="投票查看" CommandArgument='<%# Eval("pkId") %>'><i class="ace-icon fa fa-bar-chart bigger-120 green" ></i></asp:LinkButton>
                                        </div>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                        <div class="grid-pager">
                            <uc1:pageNavi runat="server" ID="pageNavi" dataCtlName="GridView1" />
                        </div>
                    </div>
                    <!-- PAGE CONTENT ENDS -->
                </div>
            </div>
        </form>
    </div>
    <!--#include file="../Css/foot.htm"-->
</body>
</html>
