<%@ Import Namespace="Xpdt.Portal" %>
<%@ Control CodeBehind="DesktopPortalBanner.ascx.cs" Language="c#" AutoEventWireup="false" Inherits="Xpdt.Portal.DesktopPortalBanner" %>
<%--

   The DesktopPortalBanner User Control is responsible for displaying the standard Portal
   banner at the top of each .aspx page.

   The DesktopPortalBanner uses the Portal Configuration System to obtain a list of the
   portal's sitename and tab settings. It then render's this content into the page.

--%>
<table class="HeadBg" height="10" cellSpacing="0" cellPadding="0" width="100%" border="0">
	<tr class="TabRow">
		<td class="TabRow" noWrap align="left" width="200"><asp:textbox id="SearchText" Width="128px" CssClass="SearchEditBox" runat="server"></asp:textbox><asp:button id="SearchButton" Width="56px" CssClass="SearchButton" runat="server" Text="Search" CausesValidation="False"></asp:button></td>
		<td class="TabRow" noWrap align="left" width="25"><asp:hyperlink id="cartLink" runat="server" NavigateUrl="~/CommerceModules/ShoppingCart.aspx" ImageUrl="~/images/showCart.gif" ToolTip="Shoppers... check your cart here!"></asp:hyperlink>&nbsp;
		</td>
		<td class="TabRow" vAlign="baseline" align="right" colSpan="3"><asp:datalist id="tabs" runat="server" cssclass="OtherTabsBg" repeatdirection="Horizontal" SelectedItemStyle-CssClass="TabBg" ItemStyle-BorderWidth="1" ItemStyle-VerticalAlign="Bottom" EnableViewState="False">
				<SelectedItemStyle Wrap="False" CssClass="TabBg"></SelectedItemStyle>
				<EditItemStyle Wrap="False"></EditItemStyle>
				<SelectedItemTemplate>
					&nbsp;<a href='http://<%= Request.Url.Host %><%= Request.ApplicationPath %>/DesktopDefault.aspx?tabindex=<%# Container.ItemIndex %>&tabid=<%# ((TabStripDetails) Container.DataItem).TabId %>' class="OtherTabs"><span class="SelectedTab"><%# ((TabStripDetails) Container.DataItem).TabName %></span></a>&nbsp;
				</SelectedItemTemplate>
				<AlternatingItemStyle Wrap="False"></AlternatingItemStyle>
				<ItemStyle Wrap="False" Height="10px" BorderWidth="1px"></ItemStyle>
				<ItemTemplate>
					&nbsp;<a href='http://<%= Request.Url.Host %><%= Request.ApplicationPath %>/DesktopDefault.aspx?tabindex=<%# Container.ItemIndex %>&tabid=<%# ((TabStripDetails) Container.DataItem).TabId %>' class="OtherTabs"><%# ((TabStripDetails) Container.DataItem).TabName %></a>&nbsp;
				</ItemTemplate>
			</asp:datalist></td>
		<td class="TabRow" align="middle" width="60"><asp:label id="WelcomeMessage" runat="server" Visible="False" forecolor="#eeeeee"></asp:label><asp:label id="siteName" runat="server" Visible="False" forecolor="#eeeeee"></asp:label>
			<%= LogoffLink %>
		</td>
	</tr>
	<tr class="SubTabRow" id="SubTabsTD" runat="server" border="0">
		<td class="SubTabRow" vAlign="top" align="right" colSpan="6" height="12" border="0">
			<!--Edit the datalist control below to modify the sub menu-->
			<!--sub menu--><asp:datalist id="subtabs" runat="server" cssclass="OtherSubTabsBg" repeatdirection="Horizontal" SelectedItemStyle-CssClass="SubTabBg" ItemStyle-BorderWidth="1" EnableViewState="False" ItemStyle-Height="10">
				<SelectedItemStyle Wrap="False" CssClass="SubTabBg"></SelectedItemStyle>
				<EditItemStyle Wrap="False"></EditItemStyle>
				<SelectedItemTemplate>
					&nbsp;<a href='http://<%= Request.Url.Host %><%= Request.ApplicationPath %>/DesktopDefault.aspx?tabindex=<%# Container.ItemIndex %>&tabid=<%# ((TabStripDetails) Container.DataItem).TabId %>' class="OtherSubTabs"><span class="SelectedSubTab"><%# ((TabStripDetails) Container.DataItem).TabName %></span></a>&nbsp;
				</SelectedItemTemplate>
				<AlternatingItemStyle Wrap="False"></AlternatingItemStyle>
				<ItemStyle Wrap="False" Height="10px" BorderWidth="1px"></ItemStyle>
				<ItemTemplate>
					&nbsp;<a href='http://<%= Request.Url.Host %><%= Request.ApplicationPath %>/DesktopDefault.aspx?tabindex=<%# Container.ItemIndex %>&tabid=<%# ((TabStripDetails) Container.DataItem).TabId %>' class="OtherSubTabs"><%# ((TabStripDetails) Container.DataItem).TabName %></a>&nbsp;
				</ItemTemplate>
			</asp:datalist></td>
	</tr>
</table>
<table class="HeadBg" id="HeaderImageTable" cellSpacing="0" cellPadding="0" width="100%" border="0" runat="server">
	<tr>
		<td id="TDImage" width="559" height="62" runat="server"><IMG SRC="http://<%= Request.Url.Host %><%= Request.ApplicationPath %>/images/spacer.gif" WIDTH=559 HEIGHT=1 ALT="">
		</td>
		<TD background="images/top-bg.gif" width="100%" height="62"></TD> 
		<TD><IMG border=0 SRC="http://<%= Request.Url.Host %><%= Request.ApplicationPath %>/images/logo.gif" WIDTH=238 HEIGHT=62 ALT=""></TD> 
	</tr>
</table>
