<%@ Control Language="c#" AutoEventWireup="True" Codebehind="CounterYear.ascx.cs" Inherits="DreamerShop.Counter.CounterYear" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<%@ Register TagPrefix="uc1" TagName="LanguagesDeal" Src="LanguagesDeal.ascx" %>
<uc1:LanguagesDeal id="myLanguagesDeal" runat="server" Visible="False"></uc1:LanguagesDeal>
<TABLE class="table-you" cellSpacing="0" cellPadding="0" width="100%" align="center" border="0"
	bordercolordark="#ffffff">
	<tr align="center" bgColor="#f1f1f1">
	<tr>
		<td width="49%"><font color="#333333"><%=myLanguagesDeal.GetMyString("CounterTextStatisticsYear")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><%=Cyear%>
				<%=myLanguagesDeal.GetMyString("CounterTexYearVisitSum")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><%=SumCount%>
			</font>
		</td>
		
	</tr>
</TABLE>
<% 
					if (pmonth==0) {%>
<TABLE class="table-you" cellSpacing="0" cellPadding="0" width="100%" align="center" border="1"
	bordercolordark="#ffffff">
	<tr>
		<td><div align="center"><%=myLanguagesDeal.GetMyString("CounterTexNone")%></div>
		</td>
	</tr>
</TABLE>
<%			}
							else
							{
							%>
<TABLE class="table-you" cellSpacing="0" cellPadding="0" width="100%" align="center" border="1"
	bordercolordark="#ffffff">
	<tr align="center" bgColor="#f1f1f1">
		<td width="25%"><%=myLanguagesDeal.GetMyString("CounterTextStrMonth")%></td>
		<td width="25%"><%=myLanguagesDeal.GetMyString("CounterTexAreaVisitQuantity")%></td>
		<td width="50%"><%=myLanguagesDeal.GetMyString("CounterTexAreaVisitProportion")%></td>
	</tr>
	<%
	for (int i=1; i<=12; i++)
	{		
%>
	<tr bgcolor="#ffffff">
		<td align="center">
			<% = i %>
			&nbsp;</td>
		<td align="center"><%=dsadmin.Tables["Count_Year"].Rows[0][i].ToString()%>&nbsp;</td>
		<td width="351">
			<%
			if (MaxCount ==0) 
			{
				LeftPx = 0;
			}
			else
			{
			    LeftPx = Convert.ToInt32(350 *Convert.ToInt32(dsadmin.Tables["Count_Year"].Rows[0][i].ToString())/MaxCount);
			 }
			%>
			<table height="10" cellspacing="0" cellpadding="0" width="351" border="0">
				<tr>
					<td bgcolor="#00cc00" width='<% = (1 + LeftPx) %>' height="9"></td>
					<td bgcolor="#efefef" width='<% = (350 - LeftPx) %>'></td>
				</tr>
			</table>
		</td>
	</tr>
	<%}%>
</TABLE>
<%}%>
