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

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

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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register TagPrefix="FCKeditorV2" Namespace="FredCK.FCKeditorV2" Assembly="FredCK.FCKeditorV2" %>
<%@ Page Language="vb" EnableEventValidation="false" AutoEventWireup="false" CodeFile="AddAttachment.aspx.vb" Culture="en-US" Inherits="FileUploadDownload.UI.AddAttachment" %>
<%@ 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="ThemeButton" Src="../Shared/ThemeButton.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:Add&quot;, &quot;FileUploadDownload&quot;),&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:AttachmentRecordControl runat="server" id="AttachmentRecordControl">
									

 <%= SystemUtils.GenerateEnterKeyCaptureBeginTag(FindControl("CancelButton$_Button")) %>
 <%= SystemUtils.GenerateEnterKeyCaptureBeginTag(FindControl("EditButton$_Button")) %>
 <%= SystemUtils.GenerateEnterKeyCaptureBeginTag(FindControl("OKButton$_Button")) %>
 <%= SystemUtils.GenerateEnterKeyCaptureBeginTag(FindControl("SaveAndNewButton$_Button")) %>
  <%= SystemUtils.GenerateEnterKeyCaptureBeginTag(FindControl("SaveButton$_Button")) %>
		
    <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="AttachmentRecordControlCPExtender" runat="server" TargetControlid="AttachmentRecordControlCollapsibleRegion" ExpandControlID="AttachmentRecordControlToggleIcon" CollapseControlID="AttachmentRecordControlToggleIcon" ImageControlID="AttachmentRecordControlToggleIcon" ExpandedImage="~/images/icon_panelcollapse.gif" CollapsedImage="~/images/icon_panelexpand.gif" SuppressPostBack="true"/>
						<asp:ImageButton id="AttachmentRecordControlToggleIcon" 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(GetResourceValue(&quot;Title:Add&quot;, &quot;FileUploadDownload&quot;),&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="AttachmentRecordControlCollapsibleRegion" runat="server">
				<table class="dBody" cellpadding="0" cellspacing="0" border="0" width="100%">
					<tr>
						<td>
<!-- #Region SearchFilter -->
<!-- #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 -->
<!-- #EndRegion ButtonPaginationBar -->
<!-- #Region DataViewArea -->
														<tr>
															<td>
																<asp:panel id="AttachmentRecordControlPanel" Runat="Server">
																	<table cellpadding="0" cellspacing="3" border="0">
																		<tr>
																			<td class="fls" ><asp:Literal runat="server" id="FileContentLabel" Text="File Content">
									</asp:Literal></td>
																			<td class="dfv" ><asp:FileUpload runat="server" id="FileContent" cssclass="field_input" filenamefield="FileName" size="60">
									</asp:FileUpload></td>
																		</tr>
																		<tr>
																			<td class="fls" ><asp:Literal runat="server" id="DescriptionLabel" Text="Description">
									</asp:Literal></td>
																			<td class="dfv" style="white-space:nowrap;" ><asp:TextBox runat="server" id="Description" MaxLength="50" columns="60" cssclass="field_input" rows="5" textmode="MultiLine">
									</asp:TextBox>&nbsp;
									<BaseClasses:TextBoxMaxLengthValidator runat="server" id="DescriptionTextBoxMaxLengthValidator" ControlToValidate="Description" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;FileUploadDownload&quot;).Replace(&quot;{FieldName}&quot;, &quot;Description&quot;) %>">									</BaseClasses:TextBoxMaxLengthValidator></td>
																		</tr>
																	</table>
																</asp:panel>
															</td>
														</tr>	
<!-- #EndRegion DataViewArea -->
													</table>
												</td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
				</asp:panel>
			</td>
		</tr>
	</table>
 <%= SystemUtils.GenerateEnterKeyCaptureEndTag(FindControl("SaveButton$_Button")) %>
 <%= SystemUtils.GenerateEnterKeyCaptureEndTag(FindControl("SaveAndNewButton$_Button")) %>
 <%= SystemUtils.GenerateEnterKeyCaptureEndTag(FindControl("OKButton$_Button")) %>
 <%= SystemUtils.GenerateEnterKeyCaptureEndTag(FindControl("EditButton$_Button")) %>
 <%= SystemUtils.GenerateEnterKeyCaptureEndTag(FindControl("CancelButton$_Button")) %>
 

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

<!-- #Region PageButtons -->
                                    
                                    <table cellpadding="0" cellspacing="0" border="0" id="Table1">
                                        <tr>
                                        <td class="recordPanelButtonsAlignment">
                                        <table cellpadding="0" cellspacing="0" border="0">
										<tr>
																		<td ><FileUploadDownload:ThemeButton runat="server" id="SaveButton" button-causesvalidation="true" button-commandname="UpdateData" button-redirecturl="Back" button-text="&lt;%# GetResourceValue(&quot;Btn:Save&quot;, &quot;FileUploadDownload&quot;) %>" postback="True">
					</FileUploadDownload:ThemeButton></td>
																		<td ><FileUploadDownload:ThemeButton runat="server" id="SaveAndNewButton" button-causesvalidation="true" button-commandname="UpdateData" button-text="&lt;%# GetResourceValue(&quot;Btn:SaveNNew&quot;, &quot;FileUploadDownload&quot;) %>" postback="True">
					</FileUploadDownload:ThemeButton></td>
																		<td ></td>
																		<td ></td>
																		<td ><FileUploadDownload:ThemeButton runat="server" id="CancelButton" button-causesvalidation="false" button-commandname="Redirect" button-redirecturl="Back" button-text="&lt;%# GetResourceValue(&quot;Btn:Cancel&quot;, &quot;FileUploadDownload&quot;) %>">
					</FileUploadDownload:ThemeButton></td>
										</tr></table>
                                        </td>
                                        </tr>
                                    </table>
                                    
<!-- #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>
