using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using Plumtree.Remote.PRC;
using Plumtree.Remote.PRC.Search;

namespace PRCSearchPage
{
	/// <summary>
	/// Summary description for WebForm1.
	/// </summary>
	public class SimpleSearch : System.Web.UI.Page
	{
		public String searchString;
		public String startPage;
		public int startCount;
		public String startDate;
		
		private void Page_Load(object sender, System.EventArgs e)
		{
			// Put user code to initialize the page here
			searchString = Request.Params.Get("searchString");
			if (null == searchString)
			{
				searchString = "";
			}

			startPage = Request.Params.Get("startPage");
			if (null == startPage)
			{ 
				startPage = "1";
			}
 
			int pageInt = 0;
			pageInt = Convert.ToInt32(startPage);
			//startCount is the value we use for the first parameter is setResultsCount
			startCount = (pageInt * 10) -10;

			startDate = Request.Params.Get("startDate");
			
		}

		#region Web Form Designer generated code
		override protected void OnInit(EventArgs e)
		{
			//
			// CODEGEN: This call is required by the ASP.NET Web Form Designer.
			//
			InitializeComponent();
			base.OnInit(e);
		}
		
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{    
			this.Load += new System.EventHandler(this.Page_Load);
		}
		#endregion
	}
}
