<%@ Control Language="c#" AutoEventWireup="True" Codebehind="CounterMonth.ascx.cs" Inherits="DreamerShop.Counter.CounterMonth" 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>
			<td width="49%"><font color="#333333"><%=myLanguagesDeal.GetMyString("CounterTextStatisticsDate")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><%=Cyear+"Y"+Cmonth+"M"%>
					<%=myLanguagesDeal.GetMyString("CounterTexMonthVisitSum")%><%=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="15%"><%=myLanguagesDeal.GetMyString("CounterTextStrDay")%></td>
			<td width="15%"><%=myLanguagesDeal.GetMyString("CounterTextStrWeek")%></td>
			<td width="15%"><%=myLanguagesDeal.GetMyString("CounterTexAreaVisitQuantity")%></td>
			<td width="55%"><%=myLanguagesDeal.GetMyString("CounterTexAreaVisitProportion")%></td>
		
		</tr>
		<%
	for (int ii=1; ii<LastdayL+1; ii++)
	{
	DateTime  aboutdate1=Convert.ToDateTime(aboutdate+"-"+ii);	
%>
		<tr bgcolor="#ffffff">
			<td align="center"><%=ii%>&nbsp;</td>
			<td align="center">
				<%
												if ((aboutdate1.DayOfWeek.ToString()=="Saturday")||(aboutdate1.DayOfWeek.ToString()=="Sunday"))
												{Response.Write("<font color=red>"+GetDayOfWeek(aboutdate1.DayOfWeek.ToString())+"</font>");}
												else
												{Response.Write(GetDayOfWeek(aboutdate1.DayOfWeek.ToString()));}
												%>
				&nbsp;</td>
			<td align="center"><%=dsadmin.Tables["Count_Month"].Rows[0][ii].ToString()%></td>
			<td >
				<%
			if (MaxCount ==0) 
			{
				LeftPx = 0;
			}
			else
			{
			    LeftPx = Convert.ToInt32(350 *Convert.ToInt32(dsadmin.Tables["Count_Month"].Rows[0][ii].ToString())/MaxCount);
			 }
			%>
				<table width="351" height="10" border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td bgcolor="#00cc00" width='<% = (1 + LeftPx) %>' height="9"></td>
						<td bgcolor="#efefef" width='<% = (350 - LeftPx) %>'></td>
					</tr>
				</table>
			</td>
		</tr>
		<%}%>
	</TABLE>
	<%}%>

