<%@ Page Language="C#" MasterPageFile="~/2ColMaster.Master" AutoEventWireup="true" CodeBehind="Search.aspx.cs" Inherits="ProcessDefinition.Search" Title="Search results" %>
<%@ Import Namespace="DevProcess.Common.Utils" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentMain" runat="server">

<h1 class='pt'>Search results for &quot;<%= Server.HtmlEncode(SearchTerm) %>&quot;</h1>

<dp:DpRepeater ID="repResults" runat="server" EmptyDataText="no processes found">
<HeaderTemplate><ul>
</HeaderTemplate>
<ItemTemplate>
<li class='pSum'>
    <asp:HyperLink ID='lnk' runat="server" NavigateUrl='<%#GetNavUrl(Eval("SearchPrettyPostTitle"),Eval("SearchMinorVersion"),Eval("SearchIsLatestVersion")) %>' Text='<%#GetProcessTitle(Eval("SearchProcessTitle"),Eval("SearchMinorVersion"),Eval("SearchIsLatestVersion")) %>' CssClass='pName' />
    <span class='pSnip'><%#Eval("DescriptionSnippet")%></span>
</li>
</ItemTemplate>
<FooterTemplate></ul>
</FooterTemplate>
</dp:DpRepeater>

<dp:DpRepeater ID="repFileResults" runat="server" EmptyDataText="">
<HeaderTemplate><h2><span class="blueIcon ui-icon-disk"></span>Files</h2><ul>
</HeaderTemplate>
<ItemTemplate>
<li class='pSum'>
    <asp:HyperLink ID='lnk' runat="server" NavigateUrl='<%#Eval("UploadedFileUrlOffset") %>' Text='<%#Eval("UploadedFilename") %>' CssClass='pName' Target="_blank" />
    <span class='pSnip'><%#Eval("ContentSnippet")%></span>
</li>
</ItemTemplate>
<FooterTemplate></ul>
</FooterTemplate>
</dp:DpRepeater>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentOptions" runat="server">
    <ul class='ui-widget-content'>
        <li class="btn"><span class="ui-icon ui-icon-arrowreturnthick-1-w"></span><a href="./">Back to library</a></li>
    </ul>
</asp:Content>