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

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

<%@ Register Tagprefix="Training2" TagName="Pagination" Src="../Shared/Pagination.ascx" %>

<%@ Register Tagprefix="BaseClasses" Namespace="BaseClasses.Web.UI.WebControls" Assembly="BaseClasses" %>
<%@ Register Tagprefix="Selectors" Namespace="Training2" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register TagPrefix="FCKeditorV2" Namespace="FredCK.FCKeditorV2" Assembly="FredCK.FCKeditorV2" %>
<%@ Register Tagprefix="Training2" Namespace="Training2.UI.Controls.EditCategoriesTablePage" %>

<%@ Page Language="vb" EnableEventValidation="false" AutoEventWireup="false" CodeFile="EditCategoriesTablePage.aspx.vb" Culture="en-US" Inherits="Training2.UI.EditCategoriesTablePage" %>
<%@ 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:Edit&quot;, &quot;Training2&quot;),&quot; Categories&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="CategoriesMenuItem">
		</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="CategoriesTableControlUpdateProgress" AssociatedUpdatePanelID="CategoriesTableControlUpdatePanel">
										<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="CategoriesTableControlUpdatePanel" UpdateMode="Conditional">

										<ContentTemplate>
											<Training2:CategoriesTableControl runat="server" id="CategoriesTableControl">
														
    <!-- 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="CategoriesTitle" Text="Categories">
														</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="CategoriesTotalItems">
														</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("CategoriesTableControl$CategoriesSearchButton")) %>
        <asp:TextBox runat="server" id="CategoriesSearchArea" columns="50" cssclass="Search_Input">
															</asp:TextBox>
		<asp:AutoCompleteExtender id="CategoriesSearchAreaAutoCompleteExtender" runat="server" TargetControlID="CategoriesSearchArea" ServiceMethod="GetAutoCompletionList_CategoriesSearchArea" MinimumPrefixLength="2" CompletionInterval="700" CompletionSetCount="10" CompletionListCssClass="autotypeahead_completionListElement" CompletionListItemCssClass="autotypeahead_listItem " CompletionListHighlightedItemCssClass="autotypeahead_highlightedListItem">
		</asp:AutoCompleteExtender>
		
        <%= SystemUtils.GenerateEnterKeyCaptureEndTag(FindControl("CategoriesTableControl$CategoriesSearchButton")) %>
        </td>
        <td class="filbc"><Training2:ThemeButton runat="server" id="CategoriesSearchButton" 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("CategoriesTableControl$CategoriesFilterButton")) %>
                <tr>
                <td class="fila"><asp:Literal runat="server" id="CategoryNameLabel" Text="Category Name">
		</asp:Literal></td><td><asp:DropDownList runat="server" id="CategoryNameFilter" cssclass="Filter_Input" onkeypress="dropDownListTypeAhead(this,false)" AutoPostBack="True">
		</asp:DropDownList></td></tr>
            <%= SystemUtils.GenerateEnterKeyCaptureEndTag(FindControl("CategoriesTableControl$CategoriesFilterButton")) %>
            </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="CategoriesAddButton" causesvalidation="false" commandname="AddRecord" 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="CategoriesEditButton" 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="CategoriesDeleteButton" causesvalidation="false" commandargument="DeleteOnUpdate" 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="CategoriesSaveButton" causesvalidation="true" commandname="UpdateData" imageurl="../Images/ButtonBarSave.gif" onmouseout="this.src='../Images/ButtonBarSave.gif'" onmouseover="this.src='../Images/ButtonBarSaveOver.gif'" tooltip="&lt;%# GetResourceValue(&quot;Btn:Save&quot;, &quot;Training2&quot;) %>" alternatetext="&lt;%# GetResourceValue(&quot;Btn:Save&quot;, &quot;Training2&quot;) %>">

		</asp:ImageButton></td>
            <td class="prbbc"><asp:ImageButton runat="server" id="CategoriesRefreshButton" 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="CategoriesResetButton" 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="CategoriesPagination">
	</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="3"><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="CategoriesToggleAll" onclick="toggleAllCheckboxes(this);">

		</asp:CheckBox></th>
            <th class="thc" scope="col"><asp:LinkButton runat="server" id="CategoryNameLabel1" Text="Category Name" CausesValidation="False">
		</asp:LinkButton>
            </th>
            <th class="thc" scope="col"><asp:Literal runat="server" id="DescriptionLabel" Text="Description">
		</asp:Literal>
            </th></tr>
            </div>
            <!-- Table Rows -->
            <asp:Repeater runat="server" id="CategoriesTableControlRepeater">
			<ITEMTEMPLATE>
					<Training2:CategoriesTableControlRow runat="server" id="CategoriesTableControlRow">
							
            <div id="AJAXUpdateRecordRow">
            <tr>
                <td class="ticnb" scope="row"><asp:ImageButton runat="server" id="CategoriesRowViewButton" 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="CategoriesRowEditButton" 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="CategoriesRowDeleteButton" causesvalidation="False" commandargument="DeleteOnUpdate" 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="CategoriesRecordRowSelection">

							</asp:CheckBox></td>
            <td class="ttc" style="white-space:nowrap;"><asp:TextBox runat="server" id="CategoryName" Columns="15" MaxLength="15" cssclass="field_input">
							</asp:TextBox>&nbsp;
							<asp:RequiredFieldValidator runat="server" id="CategoryNameRequiredFieldValidator" ControlToValidate="CategoryName" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueIsRequired&quot;, &quot;Training2&quot;).Replace(&quot;{FieldName}&quot;, &quot;Category Name&quot;) %>" enabled="True" text="*">							</asp:RequiredFieldValidator>&nbsp;
							<BaseClasses:TextBoxMaxLengthValidator runat="server" id="CategoryNameTextBoxMaxLengthValidator" ControlToValidate="CategoryName" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;Training2&quot;).Replace(&quot;{FieldName}&quot;, &quot;Category Name&quot;) %>">							</BaseClasses:TextBoxMaxLengthValidator></td>
            <td class="ttc" style="white-space:nowrap;"><FCKeditorV2:FCKeditor id="Description" runat="server" Height="220" Width="335"  ToolbarStartExpanded="False" ToolbarSet = "ISTable" AutoDetectLanguage="false" DefaultLanguage ="en" Visible="True"  ></FCKeditorV2:FCKeditor></td>
            </tr>
            </div>
            
					</Training2:CategoriesTableControlRow>
			</ITEMTEMPLATE>
	</asp:Repeater>
            </table>
        </td>
        </tr>
        </table>
        </td>
        </tr>
        </table>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </td>
</tr>
</table>
<!-- End Table Panel.html -->

</Training2:CategoriesTableControl>

</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>
