温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:简单多功能投票/调查系统源码
当前文件路径:Votes/ShowVotesByPictures.aspx

1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ShowVotesByPictures.aspx.cs" Inherits="ShowVotesByPictures" %> 2
<%@ Register Src="~/LinkList.ascx" TagName="LinkList22" TagPrefix="voteLink" %> 3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 4
5
<html xmlns="http://www.w3.org/1999/xhtml" > 6
<head runat="server"> 7
<title>无标题页</title> 8
</head> 9
<body style="font-size:12px;"> 10
<form id="form1" runat="server"> 11
<div> 12
<voteLink:LinkList22 runat="server" ID="qq" /> 13
<table style="width: 685px; height: 1px"> 14
<tr> 15
<td style="width: 38px; height: 6px"> 16
</td> 17
<td style="width: 572px; height: 6px"> 18
</td> 19
<td style="height: 6px"> 20
</td> 21
</tr> 22
<tr> 23
<td style="width: 38px; height: 30px"> 24
</td> 25
<td style="width: 572px; height: 30px"> 26
<asp:GridView ID="SubjectsView" runat="server" Height="1px" Width="546px" CellPadding="4" ForeColor="#333333" GridLines="None" AutoGenerateColumns="false" DataKeyNames="s_id" OnRowDataBound="SubjectsView_RowDataBound"> 27
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White"/> 28
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" /> 29
<EditRowStyle BackColor="#999999" /> 30
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" /> 31
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" /> 32
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> 33
<AlternatingRowStyle BackColor="White" ForeColor="#284775" /> 34
<Columns> 35
<asp:TemplateField> 36
<ItemTemplate> 37
<%#DataBinder.Eval(Container.DataItem,"s_name") %> 38
<asp:GridView ID="ItemsView" runat="server" Height="64px" Width="511px" CellPadding="4" ForeColor="#333333" GridLines="None" AutoGenerateColumns="false"> 39
<Columns> 40
<asp:TemplateField HeaderText="投票项(Items-name)"> 41
<ItemTemplate> 42
<%#((VotesList)Container.DataItem).name%> 43
</ItemTemplate> 44
</asp:TemplateField> 45
<asp:TemplateField FooterText="所占百分比"> 46
<ItemTemplate> 47
<asp:Image runat="server" ID="image" ImageUrl="~/vote.gif" Height="20" Width="<%#FormatImage(FormatCount(((VotesList)Container.DataItem).count, ((VotesList)Container.DataItem).totalcount))%>" /> 48
<%#FormatCount(((VotesList)Container.DataItem).count, ((VotesList)Container.DataItem).totalcount) %>% 49
</ItemTemplate> 50
</asp:TemplateField> 51
<asp:TemplateField HeaderText="票数(Items-count)"> 52
<ItemTemplate> 53
<%#((VotesList)Container.DataItem).count%> 54
</ItemTemplate> 55
</asp:TemplateField> 56
</Columns> 57
</asp:GridView> 58
</ItemTemplate> 59
</asp:TemplateField> 60
</Columns> 61
</asp:GridView> 62
</td> 63
<td style="height: 30px"> 64
</td> 65
</tr> 66
<tr> 67
<td style="width: 38px"> 68
</td> 69
<td style="width: 572px"> 70
</td> 71
<td> 72
</td> 73
</tr> 74
</table> 75
76
</div> 77
</form> 78
</body> 79
</html> 80




