<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" validateRequest="false" CodeBehind="StatVote.aspx.cs" Inherits="BiceSurvey.StatVote"  Title="佰思超强自定义调查问卷软件 - 调查结果分析" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script language="javascript" src="Images/BiceClip.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<table height="96%" cellSpacing="0" cellPadding="0" width="96%" align="center" border="0">
					<tr>
						<td vAlign="top" align="center" bgColor="#f4f4f4">
							<table cellSpacing="0" cellPadding="0" width="96%" border="0">
								<tr>
									<td width="80%" align="left" class="BannerFont">&nbsp;现有调查结果列表</td>
									<td><font color="#3c3c3c"><asp:label id="Label4" runat="server"></asp:label></font></td>
								</tr>
								<tr>
									<td colSpan="2" align="left"><asp:datagrid id="DataGrid1" runat="server" Width="100%" 
                                            AutoGenerateColumns="False" BorderWidth="1px" 
                                            onitemcommand="DataGrid1_ItemCommand">
											<AlternatingItemStyle BackColor="#F9F9FF"></AlternatingItemStyle>
											<ItemStyle Height="25px"></ItemStyle>
											<HeaderStyle HorizontalAlign="Center" Height="30px" BackColor="AliceBlue"></HeaderStyle>
											<Columns>
												<asp:BoundColumn Visible="False" DataField="N_SysId" HeaderText="编号"></asp:BoundColumn>
												<asp:BoundColumn DataField="C_Title" HeaderText="投票名称"></asp:BoundColumn>
												<asp:ButtonColumn Text="分析结果" HeaderText="分析结果" CommandName="Result">
													<ItemStyle HorizontalAlign="Center"></ItemStyle>
												</asp:ButtonColumn>
												<asp:ButtonColumn Text="图形分析" HeaderText="图形分析" CommandName="Graphic">
													<ItemStyle HorizontalAlign="Center"></ItemStyle>
												</asp:ButtonColumn>
												<asp:ButtonColumn Text="图形报表" HeaderText="图形报表" CommandName="ImgReport">
													<ItemStyle HorizontalAlign="Center"></ItemStyle>
												</asp:ButtonColumn>
												<asp:ButtonColumn Text="设计分析" HeaderText="设计分析" CommandName="Across">
													<ItemStyle HorizontalAlign="Center"></ItemStyle>
												</asp:ButtonColumn>
												<asp:ButtonColumn Text="原始数据" HeaderText="原始数据" CommandName="First">
													<ItemStyle HorizontalAlign="Center"></ItemStyle>
												</asp:ButtonColumn>
												<asp:ButtonColumn Text="导出Excel" HeaderText="导出到Excel" CommandName="ToExcel">
													<ItemStyle HorizontalAlign="Center"></ItemStyle>
												</asp:ButtonColumn>
											</Columns>
										</asp:datagrid></td>
								</tr>
							</table>
							<P align="center"><FONT face="宋体">
									<BR>
								</FONT>
								<asp:label id="Label1" runat="server"></asp:label></P>
							<table cellSpacing="0" cellPadding="0" width="80%" align="center" border="0">
								<tr>
									<td align="left"><Table id="DateSearch" runat="server">
											<tr>
												<td><a href="#" onClick="if(document.all.DateArea.style.display=='none'){document.all.DateArea.style.display='';}else{document.all.DateArea.style.display='none';}">按日期段查找:</a><BR>
													<div id="DateArea" style="DISPLAY:none">
														开始日期
														<asp:Label id="Label5" runat="server" Visible="False"></asp:Label>
                                                        <asp:TextBox ID="Calendar1" runat="server" onclick="calendar(this)" Width="150px"></asp:TextBox>
                                                        结束日期
														<asp:TextBox ID="Calendar2" runat="server" onclick="calendar(this)" Width="150px"></asp:TextBox>
														<asp:Button id="Button1" runat="server" Text="按日期段检索" onclick="Button1_Click"></asp:Button></div>
												</td>
											</tr>
										</Table>
										<asp:ImageButton id="ImageButton1" runat="server" Visible="False" ImageUrl="images/bice_del.gif" onclick="ImageButton1_Click"></asp:ImageButton></SPAN><BR>
										<asp:label id="Label2" runat="server"></asp:label>
                                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                                            Width="90%" CellPadding="4" ForeColor="#333333" GridLines="None">
                                            <RowStyle BackColor="#EFF3FB" />
                                            <Columns>
                                                <asp:BoundField DataField="编号" HeaderText="编号">
                                                <ItemStyle Height="25px" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="名称" HeaderText="内容" HtmlEncode="False" />
                                                <asp:BoundField DataField="票数" HeaderText="参与票数" />
                                            </Columns>
                                            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                            <EditRowStyle BackColor="#2461BF" />
                                            <AlternatingRowStyle BackColor="White" />
                                        </asp:GridView>
                                    </td>
								</tr>
							</table>
							&nbsp;</td>
					</tr>
				</table>
				
</asp:Content>
