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

<%@ Page Language="vb" EnableEventValidation="false" AutoEventWireup="false" CodeFile="ShowAttachmentTable.aspx.vb" Culture="en-US" Inherits="FileUploadDownload.UI.ShowAttachmentTable" %>
<%@ Register Tagprefix="FileUploadDownload" TagName="Menu" Src="../Menu Panels/Menu.ascx" %>

<%@ Register Tagprefix="FileUploadDownload" Namespace="FileUploadDownload.UI.Controls.ShowAttachmentTable" %>

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

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

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

<%@ Register Tagprefix="BaseClasses" Namespace="BaseClasses.Web.UI.WebControls" Assembly="BaseClasses" %>
<%@ Register Tagprefix="FileUploadDownload" TagName="Pagination" Src="../Shared/Pagination.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(&quot;Attachment&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" 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>
<!-- #Region PageHeader --> <FileUploadDownload:Header runat="server" id="PageHeader">
		</FileUploadDownload:Header><!-- #EndRegion PageHeader -->
			</td>
            </tr>
            </table>
            </td>
            <td class="pcTR"></td>
            </tr>
            <tr>
                <td class="pcL">
<!-- #Region VerticalMenu --> 
                     
<!-- #EndRegion VerticalMenu -->
				</td>
                <td class="pcC">
                <table cellspacing="0" cellpadding="0" border="0" width="100%">
                <tr>
                <td>
<!-- #Region HorizontalMenu -->
                    <FileUploadDownload:Menu runat="server" id="Menu" hilitesettings="AttachmentMenuItem">
		</FileUploadDownload:Menu>
<!-- #EndRegion HorizontalMenu -->
				</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="UpdatePanel1_UpdateProgress1" AssociatedUpdatePanelID="UpdatePanel1">
					<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="UpdatePanel1" UpdateMode="Conditional">
					<ContentTemplate>
						
<FileUploadDownload:AttachmentTableControl runat="server" id="AttachmentTableControl">
									

    <table class="dv" cellpadding="0" cellspacing="0" border="0">
<!-- #Region PanelHeader -->
		<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"><asp:CollapsiblePanelExtender id="AttachmentTableControlCPExtender" runat="server" TargetControlid="AttachmentTableControlCollapsibleRegion" ExpandControlID="AttachmentTableControlToggleIcon" CollapseControlID="AttachmentTableControlToggleIcon" ImageControlID="AttachmentTableControlToggleIcon" ExpandedImage="~/images/icon_panelcollapse.gif" CollapsedImage="~/images/icon_panelexpand.gif" SuppressPostBack="true"/>
						<asp:ImageButton id="AttachmentTableControlToggleIcon" runat="server" alternatetext="&lt;%# GetResourceValue(&quot;Btn:ExpandCollapse&quot;, &quot;FileUploadDownload&quot;) %>" causesvalidation="False" imageurl="~/images/icon_panelcollapse.gif"/></td>
						<td class="dhb">
							<table cellpadding="0" cellspacing="0" border="0">
								<tr>
									<td class="dhtr" valign="middle"><asp:Literal runat="server" id="AttachmentTitle" Text="&lt;%#String.Concat(&quot;Attachment&quot;) %>">
									</asp:Literal></td>
								</tr>
							</table>
						</td>
						<td class="dher"><img src="../Images/space.gif" alt=""/></td>
					</tr>
				</table>
			</td>
		</tr>
<!-- #EndRegion PanelHeader -->
		<tr>
			<td>
				<asp:panel id="AttachmentTableControlCollapsibleRegion" runat="server">
				<table class="dBody" cellpadding="0" cellspacing="0" border="0" width="100%">
					<tr>
						<td>
<!-- #Region SearchFilter -->
							<table cellpadding="0" cellspacing="3" border="0">
								
								<tr>
									<td class="fila" ><%# GetResourceValue("Txt:SearchFor", "FileUploadDownload") %>
									</td>
									<td >
										<%= SystemUtils.GenerateEnterKeyCaptureBeginTag(FindControl("AttachmentTableControl$AttachmentSearchButton")) %><asp:TextBox runat="server" id="AttachmentSearchArea" columns="50" cssclass="Search_Input">
										</asp:TextBox>
<asp:AutoCompleteExtender id="AttachmentSearchAreaAutoCompleteExtender" runat="server" TargetControlID="AttachmentSearchArea" ServiceMethod="GetAutoCompletionList_AttachmentSearchArea" MinimumPrefixLength="2" CompletionInterval="700" CompletionSetCount="10" CompletionListCssClass="autotypeahead_completionListElement" CompletionListItemCssClass="autotypeahead_listItem " CompletionListHighlightedItemCssClass="autotypeahead_highlightedListItem">
</asp:AutoCompleteExtender>

										<%= SystemUtils.GenerateEnterKeyCaptureEndTag(FindControl("AttachmentTableControl$AttachmentSearchButton")) %>
									</td>
									<td class="filbc" ><FileUploadDownload:ThemeButton runat="server" id="AttachmentSearchButton" button-causesvalidation="False" button-commandname="Search" button-text="&lt;%# GetResourceValue(&quot;Btn:SearchGoButtonText&quot;, &quot;FileUploadDownload&quot;) %>">
</FileUploadDownload:ThemeButton>
									</td>
								</tr>
								<tr>
									<td class="fila" ><asp:Literal runat="server" id="FileNameLabel" Text="File Name">
</asp:Literal>
									</td>
									<td >
										<%= SystemUtils.GenerateEnterKeyCaptureBeginTag(FindControl("AttachmentTableControl$AttachmentFilterButton")) %><asp:DropDownList runat="server" id="FileNameFilter" cssclass="Filter_Input" onkeypress="dropDownListTypeAhead(this,false)" AutoPostBack="True">
</asp:DropDownList>
										<%= SystemUtils.GenerateEnterKeyCaptureEndTag(FindControl("AttachmentTableControl$AttachmentFilterButton")) %>
									</td>
									<td class="filbc" rowspan="2" >
									</td>
								</tr>
								<tr>
									<td class="fila" ><asp:Literal runat="server" id="DescriptionLabel" Text="Description">
</asp:Literal>
									</td>
									<td >
										<%= SystemUtils.GenerateEnterKeyCaptureBeginTag(FindControl("AttachmentTableControl$AttachmentFilterButton")) %><asp:DropDownList runat="server" id="DescriptionFilter" cssclass="Filter_Input" onkeypress="dropDownListTypeAhead(this,false)" AutoPostBack="True">
</asp:DropDownList>
										<%= SystemUtils.GenerateEnterKeyCaptureEndTag(FindControl("AttachmentTableControl$AttachmentFilterButton")) %>
									</td>
								</tr>
								
							</table>
<!-- #EndRegion SearchFilter -->
							<div class="spacer"></div>
					        <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">
<!-- #Region ButtonPaginationBar -->
														<tr>
															<td class="pr" colspan="100">
																<table 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="AttachmentNewButton" 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;FileUploadDownload&quot;) %>" alternatetext="&lt;%# GetResourceValue(&quot;Btn:Add&quot;, &quot;FileUploadDownload&quot;) %>">

	</asp:ImageButton></td>
																		<td class="prbbc" ><asp:ImageButton runat="server" id="AttachmentEditButton" 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;FileUploadDownload&quot;) %>" alternatetext="&lt;%# GetResourceValue(&quot;Btn:Edit&quot;, &quot;FileUploadDownload&quot;) %>">

	</asp:ImageButton></td>
																		<td class="prbbc" ><asp:ImageButton runat="server" id="AttachmentCopyButton" 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;FileUploadDownload&quot;) %>" alternatetext="&lt;%# GetResourceValue(&quot;Btn:Copy&quot;, &quot;FileUploadDownload&quot;) %>">

	</asp:ImageButton></td>
																		<td class="prbbc" ><asp:ImageButton runat="server" id="AttachmentDeleteButton" 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;FileUploadDownload&quot;) %>" alternatetext="&lt;%# GetResourceValue(&quot;Btn:Delete&quot;, &quot;FileUploadDownload&quot;) %>">

	</asp:ImageButton></td>
																		<td class="prbbc" ><asp:ImageButton runat="server" id="AttachmentPDFButton" 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;FileUploadDownload&quot;) %>" alternatetext="&lt;%# GetResourceValue(&quot;Btn:PDF&quot;, &quot;FileUploadDownload&quot;) %>">

	</asp:ImageButton></td>
																		<td class="prbbc" ><asp:ImageButton runat="server" id="AttachmentWordButton" 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;FileUploadDownload&quot;) %>" alternatetext="&lt;%# GetResourceValue(&quot;Btn:Word&quot;, &quot;FileUploadDownload&quot;) %>">

	</asp:ImageButton></td>
																		<td class="prbbc" ><asp:ImageButton runat="server" id="AttachmentExportExcelButton" 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;FileUploadDownload&quot;) %>" alternatetext="&lt;%# GetResourceValue(&quot;Btn:ExportExcel&quot;, &quot;FileUploadDownload&quot;) %>">

	</asp:ImageButton></td>
																		<td class="prbbc" ><asp:ImageButton runat="server" id="AttachmentExportButton" 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;FileUploadDownload&quot;) %>" alternatetext="&lt;%# GetResourceValue(&quot;Btn:Export&quot;, &quot;FileUploadDownload&quot;) %>">

	</asp:ImageButton></td>
																		<td class="prbbc" ><asp:ImageButton runat="server" id="AttachmentImportButton" 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;FileUploadDownload&quot;) %>" alternatetext="&lt;%# GetResourceValue(&quot;Btn:Import&quot;, &quot;FileUploadDownload&quot;) %>">

	</asp:ImageButton></td>
																		<td class="prbbc" ><asp:ImageButton runat="server" id="AttachmentRefreshButton" 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;FileUploadDownload&quot;) %>" alternatetext="&lt;%# GetResourceValue(&quot;Btn:Refresh&quot;, &quot;FileUploadDownload&quot;) %>">

	</asp:ImageButton></td>
																		<td class="prbbc" ><asp:ImageButton runat="server" id="AttachmentResetButton" 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;FileUploadDownload&quot;) %>" alternatetext="&lt;%# GetResourceValue(&quot;Btn:Reset&quot;, &quot;FileUploadDownload&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"><FileUploadDownload:Pagination runat="server" id="AttachmentPagination">
</FileUploadDownload:Pagination></td>
																		<td><img src="../Images/paginationRowEdgeR.gif" alt=""/></td>
																	</tr>
																</table>
															</td>
														</tr>
<!-- #EndRegion ButtonPaginationBar -->
<!-- #Region DataViewArea -->
														<tr>
															<td class="tre">
																<table cellspacing="0" cellpadding="0" border="0" width="100%" onkeydown="captureUpDownKey(this, event)">
																	
																		<tr class="tch">
																			<th class="thcnb" colspan="4"><img src="../Images/space.gif" height="1" width="1" alt=""/></th>
																			<th class="thcwb" style="padding:0px;vertical-align:middle;"><asp:CheckBox runat="server" id="AttachmentToggleAll" onclick="toggleAllCheckboxes(this);">

	</asp:CheckBox></th>
																			<th class="thc" scope="col" ><asp:Literal runat="server" id="FileContentLabel" Text="File Content">
	</asp:Literal></th>
																			<th class="thc" scope="col" ><asp:LinkButton runat="server" id="DescriptionLabel1" Text="Description" CausesValidation="False">
	</asp:LinkButton></th>
																		</tr>
																	
																	<asp:Repeater runat="server" id="AttachmentTableControlRepeater">
		<ITEMTEMPLATE>
				<FileUploadDownload:AttachmentTableControlRow runat="server" id="AttachmentTableControlRow">
						
																		<tr >
																			<td class="ticnb" scope="row"><asp:ImageButton runat="server" id="AttachmentRowViewButton" causesvalidation="False" commandname="Redirect" cssclass="button_link" imageurl="../Images/icon_view.gif" tooltip="&lt;%# GetResourceValue(&quot;Txt:ViewRecord&quot;, &quot;FileUploadDownload&quot;) %>" alternatetext="&lt;%# GetResourceValue(&quot;Txt:ViewRecord&quot;, &quot;FileUploadDownload&quot;) %>">

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

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

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

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

						</asp:CheckBox></td>
																			<td class="ttc" ><asp:LinkButton runat="server" id="FileContent" CommandName="Redirect" filenamefield="FileName">
						</asp:LinkButton></td>
																			<td class="ttc" ><asp:Literal runat="server" id="Description">
						</asp:Literal></td>
																		</tr>
																	
				</FileUploadDownload:AttachmentTableControlRow>
		</ITEMTEMPLATE>
</asp:Repeater>
																</table>
															</td>
														</tr>
<!-- #EndRegion DataViewArea -->
													</table>
												</td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
				</asp:panel>
			</td>
		</tr>
	</table>

</FileUploadDownload:AttachmentTableControl>
</ContentTemplate>
</asp:UpdatePanel>


<!-- #Region PageButtons -->
<!-- #EndRegion PageButtons --> <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">
<!-- #Region PageFooter --> 
				
                <FileUploadDownload:Footer runat="server" id="PageFooter">
</FileUploadDownload:Footer>
<!-- #EndRegion PageFooter --> 
				</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>
