<%@ Page language="c#" Codebehind="search.aspx.cs" AutoEventWireup="false" Inherits="Orciid.SearchWebForm" %>
<%@ Register TagPrefix="uc1" TagName="CollectionSelection" Src="UserControls/CollectionSelection.ascx" %>
<%@ Import namespace="Orciid.Core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
  <HEAD>
		<title runat="server" id="PageTitle">Search Collections</title>
		<meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  </HEAD>
	<body>
		<form id="SearchForm" method="post" runat="server">
			<h1 runat="server" id="Heading">Search Collections</h1>
			<p><span id="CollectionsLabelSpan" runat="server">Collections to search:</span><br>
				<uc1:CollectionSelection id="CollectionSelection" runat="server"></uc1:CollectionSelection></p>
			<asp:panel id="SearchCriteriaPanel" runat="server">
<TABLE border="0">
  <TR>
    <TD align=right><B><SPAN id="KeywordLabelSpan" runat="server">Search for 
      keyword:</SPAN></B></TD>
    <TD>
<asp:textbox id="KeywordField" runat="server"></asp:textbox></TD></TR>
<asp:repeater id="FieldRepeater" runat="server">
						<itemtemplate>
							<tr>
								<td align="right"><%# GetFieldLabel((Field)Container.DataItem) %>:</td>
								<td>
									<asp:placeholder runat="server" ondatabinding="FieldRepeater_PlaceHolder_OnDataBinding" id="Placeholder1"></asp:placeholder>
								</td>
							</tr>
						</itemtemplate>
					</asp:repeater>
  <TR id="ImagesAddedSelection" runat="server">
    <TD style="HEIGHT: 20px" align=right><SPAN id="ImagesAddedLabelSpan" 
      runat="server">Images added</SPAN></TD>
    <TD style="HEIGHT: 20px"><SPAN id="ImagesAddedWithinLabelSpan" 
      runat="server">within last</SPAN>&nbsp; 
<asp:DropDownList id="ImagesAddedDropDownList" runat="server">
								<asp:ListItem Selected="True"></asp:ListItem>
								<asp:ListItem Value="1">1</asp:ListItem>
								<asp:ListItem Value="2">2</asp:ListItem>
								<asp:ListItem Value="7">7</asp:ListItem>
								<asp:ListItem Value="14">14</asp:ListItem>
								<asp:ListItem Value="30">30</asp:ListItem>
							</asp:DropDownList>&nbsp;<SPAN id="ImagesAddedDaysLabelSpan" 
      runat="server">days</SPAN></TD></TR>
  <TR id="ImagesUpdatedSelection" runat="server">
    <TD align=right><SPAN id="ImagesUpdatedLabelSpan" runat="server">Images 
      updated</SPAN></TD>
    <TD><SPAN id="ImagesUpdatedWithinLabelSpan" runat="server">within 
      last</SPAN>&nbsp; 
<asp:DropDownList id="ImagesUpdatedDropDownList" runat="server">
								<asp:ListItem Selected="True"></asp:ListItem>
								<asp:ListItem Value="1">1</asp:ListItem>
								<asp:ListItem Value="2">2</asp:ListItem>
								<asp:ListItem Value="7">7</asp:ListItem>
								<asp:ListItem Value="14">14</asp:ListItem>
								<asp:ListItem Value="30">30</asp:ListItem>
							</asp:DropDownList>&nbsp;<SPAN id="ImagesUpdatedDaysLabelSpan" 
      runat="server">days</SPAN></TD></TR></TABLE>
<P>
<asp:button id="SearchButton" runat="server" text="Search"></asp:button>&nbsp; 
<asp:button id="ClearFormButton" runat="server" text="Clear form" causesvalidation="False"></asp:button></P>
			</asp:panel>
			<div id="LoadSavedSearchDiv" runat="server">
				<br>
				<h3 id="SavedSearchesLabelSpan" runat="server">Previously saved searches:</h3>
				<p><asp:DropDownList id="SavedSearchDropDownList" runat="server"></asp:DropDownList></p>
				<p><asp:Button id="LoadSavedSearchButton" runat="server" Text="Load"></asp:Button>&nbsp;
				<asp:Button id="RunSavedSearchButton" runat="server" Text="Run"></asp:Button>
				<asp:Button id="RecentlyAddedSavedSearchButton" runat="server" Text="Recently added"></asp:Button>&nbsp;
				<asp:Button id="RemoveSavedSearchButton" runat="server" Text="Remove"></asp:Button></p>
			</div>
		</form>
	</body>
</HTML>
