<%@ page language="C#" autoeventwireup="true" inherits="PollIndex, App_Web_i4ls6fef" enableEventValidation="false" %>
<%@ Register Src="usercontrol/top.ascx" TagName="top" TagPrefix="uc1" %>
<!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>
    <link href="css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    
      <div style="width:770px; margin:0 auto;">
                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td>
                            <uc1:top ID="Top1" runat="server" />
                                
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:FormView ID="FormView2" runat="server" Width="100%">
                                <ItemTemplate>
                                <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="770" height="160">
                                  <param name="movie" value="<%# "zhixinimages/"+Eval("LinkValue") %>" />
                                  <param name="quality" value="high" />
                                  <embed src="<%# "zhixinimages/"+Eval("LinkValue") %>" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="770" height="160"></embed>
                                </object>
                                </ItemTemplate>
                                </asp:FormView>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <div>
                                <!-- #include file="nav.html" -->
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td style="border:solid 1px #f2f2f2; padding:20px;">
                             <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <b>正在进行的调查</b><br />
                <!-- 父Repeater开始 -->
                <table border="0" width="90%" cellpadding="2" cellspacing="2">
                    <asp:Repeater ID="nowRepeater" runat="server">
                        <ItemTemplate>
                            <tr>
                                <td>
                                    <%# DataBinder.Eval(Container.DataItem,"PollCategoryTitle") %>
                                </td>
                                <td>
                                    有效期：<%# Convert.ToDateTime(DataBinder.Eval(Container.DataItem,"PollCategoryStartDate")).ToString("yy-MM-dd") %>
                                    <font color="red">-</font>
                                    <%# Convert.ToDateTime(DataBinder.Eval(Container.DataItem,"PollCategoryEndDate")).ToString("yy-MM-dd") %>
                                </td>
                                <td>
                                    <asp:Button ID="btnVote" runat="server" Text="参与调查" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"PollCategoryId") %>'
                                        CommandName="btnVote" OnCommand="btnVote_Click" />
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </table>
                <!-- 父Repeater结束 -->
                <br />
                <b></b>
                <br />
                 <table border="0" width="90%" cellpadding="2" cellspacing="2">
                    <asp:Repeater ID="oldRepeater" runat="server">
                        <ItemTemplate>
                            <tr>
                                <td>
                                    <%# DataBinder.Eval(Container.DataItem,"PollCategoryTitle") %>
                                </td>
                                <td>
                                    有效期：<%# DataBinder.Eval(Container.DataItem,"PollCategoryStartDate") %>
                                    -<%# DataBinder.Eval(Container.DataItem,"PollCategoryEndDate") %>
                                </td>
                                <td>
                                    <asp:Label ID="lblb" runat="server" Text="该调查已结束"></asp:Label>
                                   </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </table>
            </ContentTemplate>
        </asp:UpdatePanel>
        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
            <ContentTemplate>
                <div>
                    <asp:Panel ID="Panel1" EnableViewState="true" runat="server" Height="50px">
                        <table border="0" width="90%" cellpadding="2" cellspacing="2">
                            <tr>
                                <td>
                                    <asp:Label ID="labPollTitleName" runat="server" Text=""></asp:Label></td>
                                <asp:HiddenField ID="hidePollID" runat="server" />
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="labPollTitleDescription" runat="server" Text=""></asp:Label></td>
                            </tr>
                        </table>
                        <hr />
                        <asp:DataList ID="DataList1" runat="server" OnItemDataBound="DataList1_ItemDataBound" Width="100%">
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"PollTitleTitle") %>'></asp:Label>
                                <asp:Label ID="Label2" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"PollTitleDescription") %>'></asp:Label>
                                <asp:HiddenField ID="hdPollTitleIsCheck" runat="server" Value='<%# DataBinder.Eval(Container.DataItem,"PollTitleIsCheck")%>' />
                                <asp:HiddenField ID="hdPollTitleID" runat="server" Value='<%# DataBinder.Eval(Container.DataItem,"PollTitleId")%>' />
                                <asp:Panel ID="ItemPanel" runat="server">
                                </asp:Panel>
                            </ItemTemplate>
                        </asp:DataList>
                        <hr />
                        <asp:Button ID="VoteBtn" runat="server" Text="我要投票" CssClass="ButtonCss" OnClick="VoteBtn_Click" Width="200px" />
                    </asp:Panel>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <!-- #include file="foot.html" -->
                            </td>
                        </tr>
                    </table>
                </div>
    
    
       
    </form>
</body>
</html>
