<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/ViewMasterPageMain.Master"
	Inherits="System.Web.Mvc.ViewPage<IEnumerable<MvcEnterprise.Models.DataSet1+VoteRow>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
	<link href="../../Content/Skin/<%= Setting.Context.Skin %>/Vote.css" type="text/css" rel="Stylesheet" />
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<div class="MainWidth">
		<div id="right">
			<div class="tr">
				<div class="tl">
					<div class="tm">
					</div>
				</div>
			</div>
			<div class="mr">
				<div class="ml">
<%
	if (Model!=null)
	{
		var voteClassService=new VoteClassService();
		var voteClass=voteClassService.GetModel(Model.First().Class);
		var count=voteClassService.VoteCount(voteClass.ID);
%>
				<h1>关于“<%= voteClass.Title%> ”的主题投票结果如下：</h1>
<%
		foreach (var item in Model)
		{
%>
			<div>
              <div class="voteItem c1"><%= item.Title %></div>
              <div class="voteItem c2"><img src="../../Content/images/vote.gif" width="<%= 100*item.Total/count %>%" height="15"></div>
              <div class="voteItem c3"><span class="num"><%= 100*item.Total/count %></span>%</div>
              <div class="voteItem c4"><span class="num"><%= item.Total %></span>人</div>
			</div>
<%			
		}
	}
%>
				</div>
			</div>
			<div class="br">
				<div class="bl">
					<div class="bm">
					</div>
				</div>
			</div>
		</div>
	</div>
</asp:Content>

