<%@ Page Language="c#" Inherits="Web.User.manageWebResear" CodeBehind="manageWebResear.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">
                        <input type="button" value="添 加" class="btn btn-sm btn-primary" id="btnAdd" runat="server" />
                        <%--<asp:Button ID="add" class="btn btn-sm btn-primary" runat="server" Text="添 加" OnClick="Btn_Click"></asp:Button>--%>
                    </div>
                    <!--/action-field-->
                </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="questionnaireSpecialName" HeaderText="问卷主题名称" HeaderStyle-CssClass="title" />
                                <asp:BoundField DataField="name" HeaderText="新闻页模板" HeaderStyle-CssClass="title" />
                                <asp:BoundField DataField="QuestionCount" HeaderText="问题数目" HeaderStyle-CssClass="title" />
                                <asp:TemplateField HeaderText="管理" HeaderStyle-CssClass="title" ItemStyle-CssClass="td-a">
                                    <ItemTemplate>
                                        <div class="action-buttons">
                                            <asp:HyperLink ID="edit" runat="server" CssClass="FBox" data-toggle="tooltip" data-placement="bottom" Visible="false" title="编辑"><i class="ace-icon fa fa-pencil bigger-120 blue" ></i></asp:HyperLink>
                                            <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="QuestionManage" runat="server" CommandName="Manage" CausesValidation="False" data-toggle="tooltip" data-placement="bottom" Visible="false" CommandArgument='<%# Eval("pkId") %>' title="问题管理"><i class="ace-icon fa fa-question bigger-120 red" ></i></asp:LinkButton>
                                            <asp:LinkButton ID="QuestionManage1" runat="server"   data-toggle="tooltip" data-placement="bottom"  title="很抱歉，您没有权限编辑问题"  Visible="false" Enabled="false"><i class="ace-icon fa fa-question bigger-120 grey" ></i></asp:LinkButton>
                                            <asp:LinkButton ID="del" runat="server" CommandName="del"  CommandArgument='<%#  Eval("pkId")+"&"+Eval("questionnaireSpecialName") %>' CausesValidation="False" OnClientClick="return confirm('您确认要删除本问卷及其相关信息吗？');" data-toggle="tooltip" data-placement="bottom" Visible="false" title="删除"><i class="ace-icon fa fa-trash 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>
                                        </div>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                        <div class="grid-pager">
                            <uc1:pageNavi runat="server" ID="pageNavi" dataCtlName="GridView1" />
                        </div>
                        <!--[if lte IE 7]></div><![endif]-->
                    </div>
                    <!--/function-bd-->
                </div>
                <!-- PAGE CONTENT ENDS -->
            </div>
        </form>
    </div>
    <!--#include file="../Css/foot.htm"-->
    <script type="text/javascript">

        jQuery(function ($) {

            $("#btnAdd").click().fancybox({
                'width': 800,
                'height': 430,
                'hideOnOverlayClick': false,
                'transitionIn': 'elastic',
                'transitionOut': 'fade',
                'type': 'iframe',
                'padding': '0',
                'href': 'addWebResear.aspx?bigClassId=<%= bigClassId %>&menuId=<%= menuId %>&currentpage=<%= pageNavi.currentPage %>'
            });

            $(".FBox").click().fancybox({
                'width': 800,
                'height': 430,
                'hideOnOverlayClick': false,
                'transitionIn': 'elastic',
                'transitionOut': 'fade',
                'type': 'iframe',
                'padding': '0'
            });

        });

    </script>
</body>
</html>
