<%@ Register Tagprefix="Training2" TagName="Header" Src="../Header and Footer/Header.ascx" %>

<%@ Register Tagprefix="Training2" Namespace="Training2.UI.Controls.ShowCustomersTablePage" %>

<%@ Register Tagprefix="Training2" TagName="Menu" Src="../Menu Panels/Menu.ascx" %>

<%@ Register Tagprefix="Selectors" Namespace="Training2" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register TagPrefix="FCKeditorV2" Namespace="FredCK.FCKeditorV2" Assembly="FredCK.FCKeditorV2" %>
<%@ Register Tagprefix="Training2" TagName="Pagination" Src="../Shared/Pagination.ascx" %>

<%@ Page Language="vb" EnableEventValidation="false" AutoEventWireup="false" CodeFile="ShowCustomersTablePage.aspx.vb" Culture="en-US" Inherits="Training2.UI.ShowCustomersTablePage" %>
<%@ Register Tagprefix="BaseClasses" Namespace="BaseClasses.Web.UI.WebControls" Assembly="BaseClasses" %>
<%@ Register Tagprefix="Training2" TagName="ThemeButton" Src="../Shared/ThemeButton.ascx" %>

<%@ Register Tagprefix="Training2" TagName="Footer" Src="../Header and Footer/Footer.ascx" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
    <title><asp:Literal runat="server" id="PageTitle" Text="&lt;%#String.Concat(GetResourceValue(&quot;Title:Show&quot;, &quot;Training2&quot;),&quot; Customers&quot;) %>">
</asp:Literal></title>
    <link rel="stylesheet" rev="stylesheet" type="text/css" href="../Styles/BaseStyles.css"/>
    <link rel="stylesheet" rev="stylesheet" type="text/css" href="../Styles/Styles.css"/>
    </head>
    <body id="Body1" runat="server" class="pBack">
    <form id="Form1" method="post" runat="server"><BaseClasses:ScrollCoordinates id="ScrollCoordinates" runat="server"></BaseClasses:ScrollCoordinates>
        <BaseClasses:BasePageSettings id="PageSettings" runat="server"></BaseClasses:BasePageSettings>
        <script language="JavaScript" type="text/javascript">clearRTL()</script>
		<asp:ScriptManager ID="scriptManager1" runat="server" EnablePartialRendering="True" EnablePageMethods="True" EnableScriptGlobalization="True" EnableScriptLocalization="True" />
		
        <table cellspacing="0" cellpadding="0" border="0" height="100%" width="100%">
        <tr>
        <td class="pAlign">
        <table cellspacing="0" cellpadding="0" border="0" class="pbTable">
            <tr>
            <td class="pbTL"><img src="../Images/space.gif" alt=""/></td>
            <td class="pbT"><img src="../Images/space.gif" alt=""/></td>
            <td class="pbTR"><img src="../Images/space.gif" alt=""/></td>
            </tr>
            <tr>
            <td class="pbL"><img src="../Images/space.gif" alt=""/></td>
            <td class="pbC">
            <table cellspacing="0" cellpadding="0" border="0" class="pcTable">
            <tr>
                <td class="pcT" colspan="2">
                <table cellspacing="0" cellpadding="0" border="0" width="100%">
                <tr>
                <td>
                </td>
            </tr>
            </table>
            <table cellspacing="0" cellpadding="0" border="0" width="100%">
            <tr>
            <td><Training2:Header runat="server" id="PageHeader">
		</Training2:Header></td>
            </tr>
            </table>
            </td>
            <td class="pcTR"></td>
            </tr>
            <tr>
                <td class="pcL">
                    </td>
                <td class="pcC">
                <table cellspacing="0" cellpadding="0" border="0" width="100%" height="100%">
                <tr>
                <td>
                    <Training2:Menu runat="server" id="Menu" hilitesettings="CustomersMenuItem">
		</Training2:Menu></td>
                </tr>
                <tr>
                    <td>
                        <table cellspacing="0" cellpadding="0" border="0" width="100%">
                        <tr>
                        <td class="pContent">
                            <a name="StartOfPageContent"></a>
<asp:UpdateProgress runat="server" id="CustomersTableControlUpdateProgress" AssociatedUpdatePanelID="CustomersTableControlUpdatePanel">
										<ProgressTemplate>
											<div style="position:absolute;   width:100%;height:1000px;background-color:#000000;filter:alpha(opacity=10);opacity:0.20;-moz-opacity:0.20;padding:20px;">
											</div>
											<div style=" position:absolute; padding:30px;">
												<img src="../Images/updating.gif" alt="">
											</div>
										</ProgressTemplate>
									</asp:UpdateProgress>
									<asp:UpdatePanel runat="server" id="CustomersTableControlUpdatePanel" UpdateMode="Conditional">

										<ContentTemplate>
											<Training2:CustomersTableControl runat="server" id="CustomersTableControl">
														
    <!-- Begin Table Panel.html -->

    <table class="dv" cellpadding="0" cellspacing="0" border="0"><tr>
    <td class="dh">
    <table cellpadding="0" cellspacing="0" width="100%" border="0">
    <tr>
    <td class="dhel"><img src="../Images/space.gif" alt=""/></td><td class="dheci" valign="middle"><a onclick="toggleRegions(this);"><img id="ToggleRegionIcon" src="../Images/ToggleHideFilters.gif" border="0" alt="Hide Filters"/></a></td><td class="dht" valign="middle"><asp:Literal runat="server" id="CustomersTitle" Text="Customers">
														</asp:Literal></td>
    <td class="dhtrc">
        <table id="CollapsibleRegionTotalRecords" style="display:none;" cellspacing="0" cellpadding="0" border="0">
        <tr>
        <td class="dhtrct"><%# GetResourceValue("Txt:TotalItems", "Training2") %>&nbsp;<asp:Label runat="server" id="CustomersTotalItems">
														</asp:Label></td>
        </tr>
        </table>
    </td>
    <td class="dher"><img src="../Images/space.gif" alt=""/></td>
    </tr>
    </table>
    </td>
    </tr><tr>
        <td class="dBody">
        <table id="CollapsibleRegion" style="display:;" cellspacing="0" cellpadding="0" border="0">
        <tr>
        <td>
        <table id="FilterRegion" cellpadding="0" cellspacing="3" border="0">
    
    <!-- Search & Filter Area -->
    <tr>
        <td class="fila"><%# GetResourceValue("Txt:SearchFor", "Training2") %></td>
        <td>
        <%= SystemUtils.GenerateEnterKeyCaptureBeginTag(FindControl("CustomersTableControl$CustomersSearchButton")) %>
        <asp:TextBox runat="server" id="CustomersSearchArea" columns="50" cssclass="Search_Input">
															</asp:TextBox>
		<asp:AutoCompleteExtender id="CustomersSearchAreaAutoCompleteExtender" runat="server" TargetControlID="CustomersSearchArea" ServiceMethod="GetAutoCompletionList_CustomersSearchArea" MinimumPrefixLength="2" CompletionInterval="700" CompletionSetCount="10" CompletionListCssClass="autotypeahead_completionListElement" CompletionListItemCssClass="autotypeahead_listItem " CompletionListHighlightedItemCssClass="autotypeahead_highlightedListItem">
		</asp:AutoCompleteExtender>
		
        <%= SystemUtils.GenerateEnterKeyCaptureEndTag(FindControl("CustomersTableControl$CustomersSearchButton")) %>
        </td>
        <td class="filbc"><Training2:ThemeButton runat="server" id="CustomersSearchButton" button-causesvalidation="False" button-commandname="Search" button-text="&lt;%# GetResourceValue(&quot;Btn:SearchGoButtonText&quot;, &quot;Training2&quot;) %>">
		</Training2:ThemeButton></td>
    </tr>
    
            <tr>
            <td></td>
            <td></td>
            <td rowspan="100" class="filbc"></td> 
            </tr>
            
            <%= SystemUtils.GenerateEnterKeyCaptureBeginTag(FindControl("CustomersTableControl$CustomersFilterButton")) %>
                <tr>
                <td class="fila"><asp:Literal runat="server" id="CityLabel" Text="City">
		</asp:Literal></td><td><asp:DropDownList runat="server" id="CityFilter" cssclass="Filter_Input" onkeypress="dropDownListTypeAhead(this,false)" AutoPostBack="True">
		</asp:DropDownList></td></tr>
                <tr>
                <td class="fila"><asp:Literal runat="server" id="CompanyNameLabel" Text="Company Name">
		</asp:Literal></td><td><asp:DropDownList runat="server" id="CompanyNameFilter" cssclass="Filter_Input" onkeypress="dropDownListTypeAhead(this,false)" AutoPostBack="True">
		</asp:DropDownList></td></tr>
            <%= SystemUtils.GenerateEnterKeyCaptureEndTag(FindControl("CustomersTableControl$CustomersFilterButton")) %>
            </table>
        <div class="spacer"></div>
        <!-- Category Area -->
        <table cellspacing="0" cellpadding="0" border="0" width="100%">
        <tr>
        <td>
            <table cellspacing="0" cellpadding="0" border="0" width="100%">
            <tr>
            <td>
            <table cellpadding="0" cellspacing="0" border="0"><tr>
            <!-- Pagination Area -->
            <td class="pr" colspan="100">
            <table id="PaginationRegion" cellspacing="0" cellpadding="0" border="0">
            <tr>
            <td><img src="../Images/paginationRowEdgeL.gif" alt=""/></td>
            <td class="prbbc"><img src="../Images/ButtonBarEdgeL.gif" alt=""/></td><td class="prbbc"><img src="../Images/ButtonBarDividerL.gif" alt=""/></td>
            <td class="prbbc"><asp:ImageButton runat="server" id="CustomersNewButton" causesvalidation="false" commandname="Redirect" imageurl="../Images/ButtonBarNew.gif" onmouseout="this.src='../Images/ButtonBarNew.gif'" onmouseover="this.src='../Images/ButtonBarNewOver.gif'" tooltip="&lt;%# GetResourceValue(&quot;Btn:Add&quot;, &quot;Training2&quot;) %>" alternatetext="&lt;%# GetResourceValue(&quot;Btn:Add&quot;, &quot;Training2&quot;) %>">

		</asp:ImageButton></td>
            <td class="prbbc"><asp:ImageButton runat="server" id="CustomersEditButton" causesvalidation="false" commandname="Redirect" imageurl="../Images/ButtonBarEdit.gif" onmouseout="this.src='../Images/ButtonBarEdit.gif'" onmouseover="this.src='../Images/ButtonBarEditOver.gif'" tooltip="&lt;%# GetResourceValue(&quot;Btn:Edit&quot;, &quot;Training2&quot;) %>" alternatetext="&lt;%# GetResourceValue(&quot;Btn:Edit&quot;, &quot;Training2&quot;) %>">

		</asp:ImageButton></td>
            <td class="prbbc"><asp:ImageButton runat="server" id="CustomersCopyButton" causesvalidation="false" commandname="Redirect" imageurl="../Images/ButtonBarCopy.gif" onmouseout="this.src='../Images/ButtonBarCopy.gif'" onmouseover="this.src='../Images/ButtonBarCopyOver.gif'" tooltip="&lt;%# GetResourceValue(&quot;Btn:Copy&quot;, &quot;Training2&quot;) %>" alternatetext="&lt;%# GetResourceValue(&quot;Btn:Copy&quot;, &quot;Training2&quot;) %>">

		</asp:ImageButton></td>
            <td class="prbbc"><asp:ImageButton runat="server" id="CustomersDeleteButton" causesvalidation="false" commandname="DeleteRecord" imageurl="../Images/ButtonBarDelete.gif" onmouseout="this.src='../Images/ButtonBarDelete.gif'" onmouseover="this.src='../Images/ButtonBarDeleteOver.gif'" tooltip="&lt;%# GetResourceValue(&quot;Btn:Delete&quot;, &quot;Training2&quot;) %>" alternatetext="&lt;%# GetResourceValue(&quot;Btn:Delete&quot;, &quot;Training2&quot;) %>">

		</asp:ImageButton></td>
            <td class="prbbc"><asp:ImageButton runat="server" id="CustomersPDFButton" causesvalidation="false" commandname="ReportData" imageurl="../Images/ButtonBarPDFExport.gif" onmouseout="this.src='../Images/ButtonBarPDFExport.gif'" onmouseover="this.src='../Images/ButtonBarPDFExportOver.gif'" tooltip="&lt;%# GetResourceValue(&quot;Btn:PDF&quot;, &quot;Training2&quot;) %>" alternatetext="&lt;%# GetResourceValue(&quot;Btn:PDF&quot;, &quot;Training2&quot;) %>">

		</asp:ImageButton></td>
            <td class="prbbc"><asp:ImageButton runat="server" id="CustomersWordButton" causesvalidation="false" commandname="ExportToWord" imageurl="../Images/ButtonBarWordExport.gif" onmouseout="this.src='../Images/ButtonBarWordExport.gif'" onmouseover="this.src='../Images/ButtonBarWordExportOver.gif'" tooltip="&lt;%# GetResourceValue(&quot;Btn:Word&quot;, &quot;Training2&quot;) %>" alternatetext="&lt;%# GetResourceValue(&quot;Btn:Word&quot;, &quot;Training2&quot;) %>">

		</asp:ImageButton></td>
            <td class="prbbc"><asp:ImageButton runat="server" id="CustomersExportExcelButton" causesvalidation="false" commandname="ExportDataExcel" imageurl="../Images/ButtonBarExcelExport.gif" onmouseout="this.src='../Images/ButtonBarExcelExport.gif'" onmouseover="this.src='../Images/ButtonBarExcelExportOver.gif'" tooltip="&lt;%# GetResourceValue(&quot;Btn:ExportExcel&quot;, &quot;Training2&quot;) %>" alternatetext="&lt;%# GetResourceValue(&quot;Btn:ExportExcel&quot;, &quot;Training2&quot;) %>">

		</asp:ImageButton></td>
            <td class="prbbc"><asp:ImageButton runat="server" id="CustomersExportButton" causesvalidation="false" commandname="ExportData" imageurl="../Images/ButtonBarCSVExport.gif" onmouseout="this.src='../Images/ButtonBarCSVExport.gif'" onmouseover="this.src='../Images/ButtonBarCSVExportOver.gif'" tooltip="&lt;%# GetResourceValue(&quot;Btn:Export&quot;, &quot;Training2&quot;) %>" alternatetext="&lt;%# GetResourceValue(&quot;Btn:Export&quot;, &quot;Training2&quot;) %>">

		</asp:ImageButton></td>
            <td class="prbbc"><asp:ImageButton runat="server" id="CustomersImportButton" causesvalidation="false" commandname="ImportCSV" imageurl="../Images/ButtonBarImport.gif" onmouseout="this.src='../Images/ButtonBarImport.gif'" onmouseover="this.src='../Images/ButtonBarImportOver.gif'" tooltip="&lt;%# GetResourceValue(&quot;Btn:Import&quot;, &quot;Training2&quot;) %>" alternatetext="&lt;%# GetResourceValue(&quot;Btn:Import&quot;, &quot;Training2&quot;) %>">

		</asp:ImageButton></td>
            <td class="prbbc"><asp:ImageButton runat="server" id="CustomersRefreshButton" causesvalidation="false" commandname="ResetData" imageurl="../Images/ButtonBarRefresh.gif" onmouseout="this.src='../Images/ButtonBarRefresh.gif'" onmouseover="this.src='../Images/ButtonBarRefreshOver.gif'" tooltip="&lt;%# GetResourceValue(&quot;Btn:Refresh&quot;, &quot;Training2&quot;) %>" alternatetext="&lt;%# GetResourceValue(&quot;Btn:Refresh&quot;, &quot;Training2&quot;) %>">

		</asp:ImageButton></td>
            <td class="prbbc"><asp:ImageButton runat="server" id="CustomersResetButton" causesvalidation="false" commandname="ResetFilters" imageurl="../Images/ButtonBarReset.gif" onmouseout="this.src='../Images/ButtonBarReset.gif'" onmouseover="this.src='../Images/ButtonBarResetOver.gif'" tooltip="&lt;%# GetResourceValue(&quot;Btn:Reset&quot;, &quot;Training2&quot;) %>" alternatetext="&lt;%# GetResourceValue(&quot;Btn:Reset&quot;, &quot;Training2&quot;) %>">

		</asp:ImageButton></td><td class="prbbc"><img src="../Images/ButtonBarDividerR.gif" alt=""/></td><td class="prbbc"><img src="../Images/ButtonBarEdgeR.gif" alt=""/></td>
            <td class="pra"><Training2:Pagination runat="server" id="CustomersPagination">
	</Training2:Pagination></td><td><img src="../Images/paginationRowEdgeR.gif" alt=""/></td>
            </tr>
            </table>
            </td>
            </tr><!--Table View Area -->
            <tr>
            <td class="tre">
            <table cellspacing="0" cellpadding="0" border="0" width="100%" onkeydown="captureUpDownKey(this, event)">
            <!-- This is the table's header row -->
            
            <div id="AJAXUpdateHeaderRow">
            <tr class="tch">
            <th class="thc" colspan="4"><img src="../Images/space.gif" height="1" width="1" alt=""/></th><th class="thc" style="padding:0px;vertical-align:middle;"><asp:CheckBox runat="server" id="CustomersToggleAll" onclick="toggleAllCheckboxes(this);">

		</asp:CheckBox></th>
            <th class="thc" scope="col"><asp:LinkButton runat="server" id="CustomerIDLabel" Text="Customer" CausesValidation="False">
		</asp:LinkButton>
            </th>
            <th class="thc" scope="col"><asp:LinkButton runat="server" id="CompanyNameLabel1" Text="Company Name" CausesValidation="False">
		</asp:LinkButton>
            </th>
            <th class="thc" scope="col"><asp:LinkButton runat="server" id="ContactNameLabel" Text="Contact Name" CausesValidation="False">
		</asp:LinkButton>
            </th>
            <th class="thc" scope="col"><asp:LinkButton runat="server" id="ContactTitleLabel" Text="Contact Title" CausesValidation="False">
		</asp:LinkButton>
            </th>
            <th class="thc" scope="col"><asp:LinkButton runat="server" id="AddressLabel" Text="Address" CausesValidation="False">
		</asp:LinkButton>
            </th>
            <th class="thc" scope="col"><asp:LinkButton runat="server" id="CityLabel1" Text="City" CausesValidation="False">
		</asp:LinkButton>
            </th>
            <th class="thc" scope="col"><asp:LinkButton runat="server" id="RegionLabel" Text="Region" CausesValidation="False">
		</asp:LinkButton>
            </th>
            <th class="thc" scope="col"><asp:LinkButton runat="server" id="PostalCodeLabel" Text="Postal Code" CausesValidation="False">
		</asp:LinkButton>
            </th>
            <th class="thc" scope="col"><asp:LinkButton runat="server" id="CountryLabel" Text="Country" CausesValidation="False">
		</asp:LinkButton>
            </th>
            <th class="thc" scope="col"><asp:LinkButton runat="server" id="PhoneLabel" Text="Phone" CausesValidation="False">
		</asp:LinkButton>
            </th>
            <th class="thc" scope="col"><asp:LinkButton runat="server" id="FaxLabel" Text="Fax" CausesValidation="False">
		</asp:LinkButton>
            </th></tr>
            </div>
            <!-- Table Rows -->
            <asp:Repeater runat="server" id="CustomersTableControlRepeater">
			<ITEMTEMPLATE>
					<Training2:CustomersTableControlRow runat="server" id="CustomersTableControlRow">
							
            <div id="AJAXUpdateRecordRow">
            <tr>
                <td class="ticnb" scope="row"><asp:ImageButton runat="server" id="CustomersRowViewButton" causesvalidation="False" commandname="Redirect" cssclass="button_link" imageurl="../Images/icon_view.gif" tooltip="&lt;%# GetResourceValue(&quot;Txt:ViewRecord&quot;, &quot;Training2&quot;) %>" alternatetext="&lt;%# GetResourceValue(&quot;Txt:ViewRecord&quot;, &quot;Training2&quot;) %>">

							</asp:ImageButton></td>
                <td class="ticnb" scope="row"><asp:ImageButton runat="server" id="CustomersRowEditButton" causesvalidation="False" commandname="Redirect" cssclass="button_link" imageurl="../Images/icon_edit.gif" tooltip="&lt;%# GetResourceValue(&quot;Txt:EditRecord&quot;, &quot;Training2&quot;) %>" alternatetext="&lt;%# GetResourceValue(&quot;Txt:EditRecord&quot;, &quot;Training2&quot;) %>">

							</asp:ImageButton></td>
                <td class="ticnb" scope="row"><asp:ImageButton runat="server" id="CustomersRowCopyButton" causesvalidation="False" commandname="Redirect" cssclass="button_link" imageurl="../Images/icon_copy.gif" tooltip="&lt;%# GetResourceValue(&quot;Txt:CopyRecord&quot;, &quot;Training2&quot;) %>" alternatetext="&lt;%# GetResourceValue(&quot;Txt:CopyRecord&quot;, &quot;Training2&quot;) %>">

							</asp:ImageButton></td>
                <td class="ticnb" scope="row"><asp:ImageButton runat="server" id="CustomersRowDeleteButton" causesvalidation="False" commandname="DeleteRecord" cssclass="button_link" imageurl="../Images/icon_delete.gif" tooltip="&lt;%# GetResourceValue(&quot;Txt:DeleteRecord&quot;, &quot;Training2&quot;) %>" alternatetext="&lt;%# GetResourceValue(&quot;Txt:DeleteRecord&quot;, &quot;Training2&quot;) %>">

							</asp:ImageButton></td>
                <td class="ticwb" onclick="moveToThisTableRow(this);"><asp:CheckBox runat="server" id="CustomersRecordRowSelection">

							</asp:CheckBox></td>
            <td class="ttc" ><asp:Literal runat="server" id="CustomerID">
							</asp:Literal></td>
            <td class="ttc" ><asp:Literal runat="server" id="CompanyName">
							</asp:Literal></td>
            <td class="ttc" ><asp:Literal runat="server" id="ContactName">
							</asp:Literal></td>
            <td class="ttc" ><asp:Literal runat="server" id="ContactTitle">
							</asp:Literal></td>
            <td class="ttc" ><asp:Literal runat="server" id="Address">
							</asp:Literal></td>
            <td class="ttc" ><asp:Literal runat="server" id="City">
							</asp:Literal></td>
            <td class="ttc" ><asp:Literal runat="server" id="Region">
							</asp:Literal></td>
            <td class="ttc" ><asp:Literal runat="server" id="PostalCode">
							</asp:Literal></td>
            <td class="ttc" ><asp:Literal runat="server" id="Country">
							</asp:Literal></td>
            <td class="ttc" ><asp:Literal runat="server" id="Phone">
							</asp:Literal></td>
            <td class="ttc" ><asp:Literal runat="server" id="Fax">
							</asp:Literal></td>
            </tr>
            </div>
            
					</Training2:CustomersTableControlRow>
			</ITEMTEMPLATE>
	</asp:Repeater>
            </table>
        </td>
        </tr>
        </table>
        </td>
        </tr>
        </table>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </td>
</tr>
</table>
<!-- End Table Panel.html -->

</Training2:CustomersTableControl>

</ContentTemplate>
</asp:UpdatePanel>
<div id="detailPopup" class="detailRolloverPopup" onmouseout="detailRolloverPopupClose();" onmouseover="clearTimeout(gPopupTimer);"></div>
                        </td>
                        </tr>
                        </table>
                    </td>
                </tr>
                </table>
                </td>
                <td class="pcR"></td>
            </tr>
            <tr>
                <td class="pcBL"></td>
                <td class="pcB">
                <Training2:Footer runat="server" id="PageFooter">
</Training2:Footer></td>
                <td class="pcBR"></td>
            </tr>
            </table>
            </td>
            <td class="pbR"><img src="../Images/space.gif" alt=""/></td>
            </tr>
            <tr>
            <td class="pbBL"><img src="../Images/space.gif" alt=""/></td>
            <td class="pbB"><img src="../Images/space.gif" alt=""/></td>
            <td class="pbBR"><img src="../Images/space.gif" alt=""/></td>
        </tr>
        </table>
        </td>
        </tr>
        </table>
        <asp:ValidationSummary id="ValidationSummary1" ShowMessageBox="true" ShowSummary="false" runat="server"></asp:ValidationSummary></form>
    </body>
</html>
