<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Vote.aspx.cs" Inherits="TopWinCMS.WebUI.Admin.Vote.Vote" %>

<%@ Register Assembly="TopWinCMS.WebControls" Namespace="TopWinCMS.WebControls" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>投票主题</title>
    <meta http-equiv="Pragma" content="No-cach" />
    <link href="../Style.css" type="text/css" rel="stylesheet" />

    <script language="javascript" type="text/javascript" src="../TopWin.js"></script>

    <script language="javascript" type="text/javascript" src="../../Images/skysoft.js"></script>

   

</head>
<body>
    <form id="form1" runat="server">
    <div id="tabs">
        <ul>
            <li id="current"><a href="Vote.aspx"><span>投票主题管理</span></a></li>
            <li><a href="Vote_Add.aspx"><span>添加投票主题</span></a></li>
        </ul>
    </div>
    <asp:Panel ID="Panel1" runat="server">
        <asp:GridView ID="GV_List" runat="server" AutoGenerateColumns="False" 
            onrowdatabound="GV_List_RowDataBound">
            <Columns>
                <asp:TemplateField HeaderText="选择">
                    <ItemTemplate>
                        <asp:CheckBox ID="CheckBox1" runat="server" />
                    </ItemTemplate>
                    <ItemStyle Width="30px" />
                </asp:TemplateField>
                <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="Vote_Add.aspx?Action=Edit&amp;ID={0}"
                    DataTextField="Title" HeaderText="投票主题" />
                <asp:BoundField DataField="CountChoice" HeaderText="选项数量">
                    <ItemStyle HorizontalAlign="Right" Width="60px" />
                </asp:BoundField>
                <asp:BoundField DataField="CountVoteNum" HeaderText="选票总和">
                    <ItemStyle HorizontalAlign="Right" Width="60px" />
                </asp:BoundField>
                <asp:BoundField DataField="DataTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" HeaderText="添加日期"
                    HtmlEncode="False">
                    <ItemStyle HorizontalAlign="Center" Width="120px" />
                </asp:BoundField>
                <asp:BoundField DataField="VoteType" HeaderText="选项类型">
                    <ItemStyle HorizontalAlign="Center" Width="60px" />
                </asp:BoundField>
            </Columns>
            <HeaderStyle CssClass="HeaderStyle" />
        </asp:GridView>
        <table style="width: 100%;">
            <tr>
                <td>
                    &nbsp;<input name="chkHeader" onclick="javascript:SelectAll(this);" type="checkbox"
                        value="chkHeader" />全选&nbsp;&nbsp;&nbsp;<asp:Button ID="BT_Delete" runat="server"
                            CssClass="btn" OnClick="BT_Delete_Click" OnClientClick="return CheckSelected(this);"
                            Text=" 删除 " />
                    &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;
                </td>
            </tr>
        </table>
        <div align="center">
            <div class="pagefield">
                <cc1:PageNavigation ID="PageNavigation1" runat="server" EnableViewState="False" OnPageChanging="PageNavigation1_PageChanging">
                </cc1:PageNavigation>
            </div>
        </div>
    </asp:Panel>
    </form>
</body>
</html>
