<%@ Page Language="C#" Inherits="Web.User.VoteReview" CodeBehind="VoteReview.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>
    <form id="newsMange" method="post" runat="server">
        <div class="list-func-box func-box">
            <div class="hd">
                <div class="breadcrumb">
                    <asp:Label ID="lbpageNav" runat="server" Text=""></asp:Label>
                </div>
                <!--/breadcrumb-->
            </div>
            <div class="page-content">
                <div class="page-header clearfix">
                    <div class="pull-left">
                        <asp:Button ID="btnreturn" runat="server" class="btn btn-sm btn-primary" Text="返 回" OnClick="Btn_Click"></asp:Button>
                        &nbsp;&nbsp;
                        <asp:Button ID="btnDel" class="btn btn-sm btn-primary" runat="server" Text="删 除" OnClick="Btn_Click"></asp:Button>

                    </div>
                    <!--/action-field-->
                    <div class="pull-right">
                    </div>

                </div>
                <div class="row">
                    <div class="col-xs-12">
                        <!--[if lte IE 7]><div style="zoom:1"><![endif]-->
                        <asp:HiddenField ID="hfidstr" runat="server" />
                        <asp:HiddenField ID="hftitlestr" runat="server" />
                        <asp:GridView ID="GridView1" runat="server" OnRowDataBound="GridView1_RowDataBound" EmptyDataText="暂无数据…"
                            AutoGenerateColumns="False" class="table table-striped table-bordered table-hover table-sorting">
                            <Columns>
                                <asp:TemplateField HeaderStyle-CssClass="title text-center" ItemStyle-CssClass="text-center" ItemStyle-Width="36px">
                                    <HeaderTemplate>
                                        <asp:CheckBox ID="cbAll" Text=" " runat="server" onclick="GridSelectAll('GridView1',this.checked)" />
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="cbthis" runat="server" Text=" "></asp:CheckBox>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="pkId" HeaderText="ID号" HeaderStyle-CssClass="title" />
                                <asp:BoundField DataField="questionName" HeaderText="问题名称" HeaderStyle-CssClass="title" />
                                <asp:TemplateField HeaderText="选项名称" HeaderStyle-CssClass="title">
                                    <ItemTemplate>
                                        <asp:Label ID="optionsName" runat="server"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <%--<asp:BoundField DataField="optionsName" HeaderText="选项名称" HeaderStyle-CssClass="title" />--%>
                                <asp:BoundField DataField="userName" HeaderText="用户名" HeaderStyle-CssClass="title" />
                                <asp:TemplateField HeaderText="IP地址" HeaderStyle-CssClass="title">
                                    <ItemTemplate>
                                        <asp:Label ID="IP" runat="server"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <%--<asp:BoundField DataField="IP" HeaderText="IP地址" HeaderStyle-CssClass="title" />--%>
                                <asp:BoundField DataField="IsTextbox" Visible="False" HeaderStyle-CssClass="title" />
                                <asp:TemplateField HeaderText="用户填写信息" HeaderStyle-CssClass="title">
                                    <ItemTemplate>
                                        <asp:Label ID="Message" runat="server"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <%--<asp:BoundField DataField="Message" HeaderText="用户填写信息" HeaderStyle-CssClass="title"/>--%>
                                <asp:BoundField DataField="Date" HeaderText="投票时间" HeaderStyle-CssClass="title" />
                            </Columns>
                        </asp:GridView>
                        <div class="grid-pager">
                            <uc1:pageNavi runat="server" id="pageNavi" dataCtlName="GridView1" />
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
    <!--#include file="../Css/foot.htm"-->
    ​
      <script type="text/javascript">
          jQuery(function ($) {

              $("#btnDel").click(function () {
                  return GridSelectCheck('GridView1', true);
              });

          });

          //选中背景特效
          //$(function () {
          //    $('.text-center input').click(function () {
          //        $(this).parents('tr').toggleClass('active');
          //    })

          //    $('.title.text-center input').click(function () {

          //        if ($('.list-table tr:first').hasClass('active')) {
          //            $('.list-table tr').addClass('active');
          //        } else {
          //            $('.list-table tr').removeClass('active');
          //        }
          //    })

          //    $('.list-table select').change(function () {
          //        //背景选中
          //        if ($(this).parents('tr').hasClass('active')) {

          //        } else {
          //            $(this).parents('tr').toggleClass('active');
          //        }

          //        //复选框选中
          //        var checkbox = $(this).parents("tr").find("input");
          //        for (var i = 0; i < checkbox.length; i++) {
          //            if (checkbox[i].type == 'checkbox') {
          //                checkbox[i].checked = true;
          //            }
          //        }

          //    })
          //})
      </script>
</body>
</html>
