<%@ Control Language="VB" AutoEventWireup="false" CodeFile="SearchControl.ascx.vb"
    Inherits="SearchControl" %>

<script language="javascript" type="text/javascript">
function confirmDocumentDelete()
{
    return confirm('Delete this document?')
}
</script>

<style type="text/css">
<!--
#editLnk a:hover
{
	color: #990000;
	background-color:#FFE8E8;
}
#editLnk A:link {text-decoration: none; color:#000000}
#editLnk A:Visited {text-decoration: none; color:#999999}
-->
</style>
<asp:Panel ID="searchTable" runat="server">
    <table border="1" cellspacing="0" cellpadding="5">
        <tr>
            <td>
                <asp:Label ID="documentsLabel" runat="server" Text="Search Documents" Font-Bold="True"></asp:Label>
                <br />
                <br />
                <asp:TextBox ID="searchText" runat="server" Rows="200" Width="200px" EnableViewState="true"></asp:TextBox><asp:Button
                    ID="SearchButton" runat="server" Text="Search" EnableViewState="true" />
                <br />
                <div style="height: 151px; overflow: scroll; text-decoration: none;" id="editLnk">
                    <div style="display: block; height: auto; margin-top: 10px; line-height: 14px; text-align :left ">
                        <asp:DataList ID="resultListBox" runat="server" EnableViewState="true">
                            <ItemTemplate>
                                <div>
                                    <asp:HyperLink ID="editLink" runat="server" NavigateUrl='<%# "Default.aspx?DcoumentID="&DataBinder.Eval(Container.DataItem, "ID")&"&FolderID="&folderIdByDocId(DataBinder.Eval(Container.DataItem, "ID"))%>'
                                        Target="_blank"><%# DataBinder.Eval(Container.DataItem, "Title") %></asp:HyperLink>
                                </div>
                            </ItemTemplate>
                            <AlternatingItemTemplate>
                                <div style="background-color: #F5F5F5;">
                                    <asp:HyperLink ID="editLink" runat="server" NavigateUrl='<%# "Default.aspx?DcoumentID="&DataBinder.Eval(Container.DataItem, "ID")&"&FolderID="&folderIdByDocId(DataBinder.Eval(Container.DataItem, "ID"))%>'
                                        Target="_blank"><%# DataBinder.Eval(Container.DataItem, "Title") %></asp:HyperLink>
                                </div>
                            </AlternatingItemTemplate>
                            <FooterTemplate>
                            </FooterTemplate>
                        </asp:DataList>
                    </div>
                </div>
            </td>
        </tr>
    </table>
</asp:Panel>
