<%@ Page Language="C#" Inherits="Web.User.VoteReview" CodeBehind="VoteReview.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/userCssEdit.htm"-->
    
    <script type="text/javascript">
        jQuery(function ($) {

            $("#btnDel").click(function () {
                return GridSelectCheck('newsGrid', true);
            });
            
        });
        
        //选中背景特效
        $(function(){
            $('.txt-c input').click(function(){
	            $(this).parents('tr').toggleClass('active');
            })
            
            $('.title.txt-c 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>
</head>
<body>
    <form id="newsMange" method="post" runat="server">
    <div class="list-func-box func-box">
        <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">
                    
                </div>
                <div class="action-field">
                    <asp:Button ID="return" runat="server" class="btn" Text="返 回" OnClick="return_Click">
                    </asp:Button>
                    &nbsp;&nbsp;
                    <asp:Button ID="btnDel" class="btn" runat="server" Text="删 除" OnClick="update_Click"></asp:Button>
                    
                </div>
                <!--/action-field-->
            </div>
            <div class="function-bd" style="height: 592px; overflow: auto;">
            <!--[if lte IE 7]><div style="zoom:1"><![endif]-->
            <asp:HiddenField ID="hfidstr" runat="server" />
            <asp:HiddenField ID="hftitlestr" runat="server" />
            <asp:DataGrid ID="newsGrid" runat="server" CssClass="list-table" AutoGenerateColumns="False"
                AllowSorting="True" AllowPaging="True" PageSize="1">
                <Columns>
                    <asp:TemplateColumn HeaderStyle-CssClass="title txt-c" ItemStyle-CssClass="txt-c" ItemStyle-Width="36px">
                        <HeaderTemplate>
                            <asp:CheckBox ID="cbAll" Text="" runat="server" onclick="GridSelectAll('newsGrid',this.checked)" />
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="cbthis" runat="server" Text=""></asp:CheckBox>
                        </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:BoundColumn DataField="pkId" HeaderText="ID号" HeaderStyle-CssClass="title">
                    </asp:BoundColumn>
                    <asp:BoundColumn DataField="questionName" HeaderText="问题名称" HeaderStyle-CssClass="title">
                    </asp:BoundColumn>
                    <asp:BoundColumn DataField="optionsName" HeaderText="选项名称" HeaderStyle-CssClass="title">
                    </asp:BoundColumn>
                    <asp:BoundColumn DataField="userName" HeaderText="用户名" HeaderStyle-CssClass="title">
                    </asp:BoundColumn>
                    <asp:BoundColumn DataField="IP" HeaderText="IP地址" HeaderStyle-CssClass="title">
                    </asp:BoundColumn>
                    <asp:BoundColumn DataField="IsTextbox" Visible="False" HeaderStyle-CssClass="title">
                    </asp:BoundColumn>
                    <asp:BoundColumn DataField="Message" HeaderText="用户填写信息" HeaderStyle-CssClass="title">
                    </asp:BoundColumn>
                    <asp:BoundColumn DataField="Date" HeaderText="投票时间" HeaderStyle-CssClass="title">
                    </asp:BoundColumn>
                </Columns>
                <PagerStyle Mode="NumericPages" />
            </asp:DataGrid>
            </div>
            <div class="ft">
                <div class="action-field txt-c">
                    
                </div>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
