<%@ Control Language="C#" AutoEventWireup="false" CodeFile="AdminFileField.ascx.cs" Inherits="bitrix_ui_AdminFileField" %>

<% 
if (Editable)
{
	%><div runat="server" ID="Lbl" visible="false"><%= GetMessage("QuestionText.AboutNewImageUploading") %></div>
	<asp:FileUpload ID="Up" runat="server" EnableViewState="False" />
	<span id="S" runat="server" enableviewstate="false">
		<br /><%= GetMessage("LegendText.Description") %>
		<br /><asp:TextBox ID="Desc" runat="server" />
	</span><%
}
%>
<div id="D" runat="server" visible="false" enableviewstate="false">

<% 
if (Editable)
{
	%><asp:Literal ID="FileParameters" runat="server" /><%
} 
%>

    <div id="ImgContainer">
	    <a id="Img" runat="server" title="<%$ Loc:AnchorTitle.Img %>" target="_blank"><asp:Image ID="ImageDisplay" runat="server" AlternateText="<%$ Loc:ImageAlternateText.ImageDisplay %>" /><br /></a>
	</div>
	<div ID="SwfContainer" runat="server"></div>
	
<% 
if (Editable)
{
	%><asp:CheckBox ID="Del" runat="server" Text="<%$ Loc:CheckBoxText.Del %>" /><%
}
%>
</div>