<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Search.aspx.cs" Inherits="eDocument.Server.Administrator.eDocumentTemplate.Search"  MasterPageFile="~/Site.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
			<h1>Søk etter skjema</h1>
			<p>Det blir utført søk i dine skjemaers navn og kortnavn.</p>
			<p>
				<asp:Label ID="Label1" runat="server">Søkeord</asp:Label>
				<asp:TextBox ID="txtSearch" runat="server"></asp:TextBox>
				<asp:Button ID="btnSearch" runat="server" Text="Søk" OnClick="btnSearch_Click"></asp:Button>
			</p>
			<p>&nbsp;</p>
			<asp:datagrid id="dgTemplates" runat="server" AutoGenerateColumns="False" Width="100%" HeaderStyle-CssClass="HeaderStyle"
				ItemStyle-CssClass="ItemStyle" AlternatingItemStyle-CssClass="AlternatingItemStyle" AllowSorting="True">
				<AlternatingItemStyle CssClass="AlternatingItemStyle"></AlternatingItemStyle>
				<ItemStyle CssClass="ItemStyle"></ItemStyle>
				<HeaderStyle CssClass="HeaderStyle"></HeaderStyle>
				<Columns>
					<asp:BoundColumn DataField="eDocumentTemplateID" HeaderText="Skjema ID"></asp:BoundColumn>
					<asp:BoundColumn DataField="ShortName" HeaderText="Form ID" SortExpression="ShortName ASC"></asp:BoundColumn>
					<asp:BoundColumn Visible="False" DataField="SignMode"></asp:BoundColumn>
					<asp:BoundColumn Visible="False" DataField="SignObject"></asp:BoundColumn>
					<asp:BoundColumn HeaderText="SignMode" Visible="False"></asp:BoundColumn>
					<asp:BoundColumn HeaderText="SignObject" Visible="False"></asp:BoundColumn>
					<asp:BoundColumn DataField="Name" SortExpression="Name ASC" HeaderText="Navn"></asp:BoundColumn>
					<asp:BoundColumn DataField="Comment" HeaderText="Kommentar" SortExpression="Comment ASC"></asp:BoundColumn>
					<asp:BoundColumn DataField="CreatedOn" SortExpression="CreatedOn ASC" HeaderText="Opprettet"></asp:BoundColumn>
					<asp:BoundColumn DataField="IsPublished" SortExpression="IsPublished ASC" HeaderText="Publisert" Visible="False"></asp:BoundColumn>
					<asp:HyperLinkColumn Text="Detaljer" DataNavigateUrlField="eDocumentTemplateID" DataNavigateUrlFormatString="~/eDocumentTemplate/Details.aspx?eDocumentTemplateID={0}" />
					<asp:HyperLinkColumn Text="Rediger" DataNavigateUrlField="eDocumentTemplateID" DataNavigateUrlFormatString="~/eDocumentTemplate/Edit.aspx?eDocumentTemplateID={0}" />
					<asp:HyperLinkColumn Text="Slett" DataNavigateUrlField="eDocumentTemplateID" DataNavigateUrlFormatString="~/eDocumentTemplate/Delete.aspx?eDocumentTemplateID={0}" />
				</Columns>
			</asp:datagrid>
			<p>
				<asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label>
			</p>
</asp:Content>