<%@ Control Language="c#" AutoEventWireup="false" Codebehind="ActivityQueryControl.ascx.cs" Inherits="CommunityServer.ControlPanel.Tools.Reports.ActivityQueryControl" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<%@ Import Namespace = "CommunityServer.Components" %>
<%@ Register TagPrefix="CP" Namespace="CommunityServer.ControlPanel.Controls" Assembly="CommunityServer.Web" %>
<%@ Register TagPrefix="ComponentArt" Namespace="ComponentArt.Web.UI" Assembly="ComponentArt.Web.UI" %>
<%@ Register TagPrefix="CS" Namespace="CommunityServer.Controls" Assembly="CommunityServer.Controls" %>
<script language="javascript">

function onBegReportPickerChange(picker)
{
	<%=this.BegReportDateCalendar.ClientID %>.SetSelectedDate(picker.GetSelectedDate());
}
function onBegReportCalendarChange(calendar)
{
	<%=this.BegReportDatePicker.ClientID %>.SetSelectedDate(calendar.GetSelectedDate());
}

function onEndReportPickerChange(picker)
{
	<%=this.EndReportDateCalendar.ClientID %>.SetSelectedDate(picker.GetSelectedDate());
}
function onEndReportCalendarChange(calendar)
{
	<%=this.EndReportDatePicker.ClientID %>.SetSelectedDate(calendar.GetSelectedDate());
}

</script>
<fieldset>
	<legend>
		<cp:ResourceControl id="Summary" runat="server" ResourceName="CP_Tools_Criteria" /></legend>
	<table width="700" border="0" cellpadding="4" cellspacing="0">
		<tr>
			<td class="CommonFormFieldName"><cp:resourcecontrol runat="server" resourcename="CP_Tools_BlogActivityReport_BegReportMonth" id="Resourcecontrol8" /></td>
			<td class="CommonFormField" nowrap>
				<ComponentArt:Calendar id="BegReportDatePicker" ControlType="Picker" PickerFormat="Custom" allowdayselection="false"
					PickerCustomFormat="MMMM d yyyy" PickerCssClass="picker" SelectedDate="2005-9-14" ClientSideOnSelectionChanged="onBegReportPickerChange"
					runat="server" />
				<img id="BegReportDateCalendar_button" alt="" align="absbottom" class="calendar_button" src="../images/caimages/btn_calendar.gif" width="25" height="22" 
				onclick="<%=this.BegReportDateCalendar.ClientID %>.SetSelectedDate(<%=this.BegReportDatePicker.ClientID %>.GetSelectedDate());<%=this.BegReportDateCalendar.ClientID %>.Show();">
				<ComponentArt:Calendar runat="server" id="BegReportDateCalendar" allowmonthselection="false" allowmultipleselection="false"
					allowweekselection="false" calendarcssclass="calendar" calendartitlecssclass="title" clientsideonselectionchanged="onBegReportCalendarChange"
					controltype="Calendar" daycssclass="day" dayheadercssclass="dayheader" dayhovercssclass="dayhover"
					daynameformat="FirstTwoLetters" monthcssclass="month" nextimageurl="../images/caimages/cal_nextMonth.gif"
					nextprevcssclass="nextprev" othermonthdaycssclass="othermonthday" popup="Custom" popupexpandcontrolid="BegReportDateCalendar_button"
					previmageurl="../images/caimages/cal_prevMonth.gif" selecteddate="2005-9-14" selecteddaycssclass="selectedday"
					selectmonthcssclass="selector" selectmonthtext="¤" selectweekcssclass="selector" selectweektext="»"
					swapduration="300" swapslide="Linear" />
			</td>
			<td class="CommonFormFieldName"><cp:resourcecontrol runat="server" resourcename="CP_Tools_BlogActivityReport_EndReportMonth" id="Resourcecontrol1" /></td>
			<td class="CommonFormField" nowrap>
				<ComponentArt:Calendar id="EndReportDatePicker" ControlType="Picker" PickerFormat="Custom" allowdayselection="false"
					PickerCustomFormat="MMMM d yyyy" PickerCssClass="picker" SelectedDate="2005-9-14" ClientSideOnSelectionChanged="onEndReportPickerChange"
					runat="server" />
				<img id="EndReportDateCalendar_button" alt="" align="absbottom" class="calendar_button" src="../images/caimages/btn_calendar.gif" width="25" height="22" 
				onclick="<%=this.EndReportDateCalendar.ClientID %>.SetSelectedDate(<%=this.EndReportDatePicker.ClientID %>.GetSelectedDate());<%=this.EndReportDateCalendar.ClientID %>.Show();">
				<ComponentArt:Calendar runat="server" id="EndReportDateCalendar" allowmonthselection="false" allowmultipleselection="false"
					allowweekselection="false" calendarcssclass="calendar" calendartitlecssclass="title" clientsideonselectionchanged="onEndReportCalendarChange"
					controltype="Calendar" daycssclass="day" dayheadercssclass="dayheader" dayhovercssclass="dayhover"
					daynameformat="FirstTwoLetters" monthcssclass="month" nextimageurl="../images/caimages/cal_nextMonth.gif"
					nextprevcssclass="nextprev" othermonthdaycssclass="othermonthday" popup="Custom" popupexpandcontrolid="EndReportDateCalendar_button"
					previmageurl="../images/caimages/cal_prevMonth.gif" selecteddate="2005-9-14" selecteddaycssclass="selectedday"
					selectmonthcssclass="selector" selectmonthtext="¤" selectweekcssclass="selector" selectweektext="»"
					swapduration="300" swapslide="Linear" />
			</td>
			<td colspan="3" class="CommonFormField" nowrap align="center"><cp:resourcelinkbutton id="ReportButton" runat="server" cssclass="CommonTextButton" resourcename="Generate"></cp:resourcelinkbutton></td>
			<td class="CommonFormField" nowrap align="left"><asp:HyperLink runat="server" id="ImageButton1" CssClass="CommonImageTextButton" style="BACKGROUND-IMAGE: url(../../Themes/default/images/excel.gif)" /></td>
		</tr>
	</table>
	<DIV></DIV>
</fieldset>
