<%@ Page language="c#" Codebehind="PasteHandler.aspx.cs" AutoEventWireup="false" Inherits="Mediachase.UI.Web.FileStorage.PasteHandler" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > 

<html>
  <head>
    <title>IBN</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta name=vs_defaultClientScript content="JavaScript">
    <meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5">
    <script src="../Scripts/browser.js"></script>
		<script src="../Scripts/buttons.js"></script>
		<LINK href="../layouts/styles/windows.css" type="text/css" rel="stylesheet">
		<link href="../Themes/<%=Mediachase.UI.Web.Util.CommonHelper.GetTheme()%>/theme.css" rel="stylesheet">
		<link href="../Themes/<%=Mediachase.UI.Web.Util.CommonHelper.GetTheme()%>/color1.css" rel="stylesheet">
		<LINK href='<%=Mediachase.UI.Web.Util.CommonHelper.GetAbsolutePath("/layouts/styles/mcCalendClient.css")%>' rel="stylesheet">
		<script><!--
		if ((browseris.mac) && !browseris.ie5up)
		{
			var macstyle = "../layouts/styles/mac.css";
			document.write("<link rel='stylesheet' Type='text/css' href='" + macstyle + "'>");
		}
	
		//--></script>		
		<script language="javascript">
			function CopyFile(FileId)
			{
				document.forms[0].<%=hdnFileId.ClientID %>.value = FileId;
				<%=Page.GetPostBackClientEvent(lbCopyFile,"") %>
			}
		</script>
  </head>
	<body class="UserBackground" id="pT_body" leftMargin="0" topMargin="0" marginwidth="0" marginheight="0">
	
    <form id="pasteForm" method="post" runat="server" enctype="multipart/form-data">
			<div style="OVERFLOW:auto;HEIGHT:170px">
				<asp:DataGrid Runat="server" ID="dgFiles" ShowHeader=False AutoGenerateColumns="False" AllowPaging="False" AllowSorting="False" cellpadding="3" gridlines="None" CellSpacing="0" borderwidth="0px" Width="100%">
					<Columns>
						<asp:BoundColumn DataField="FileId" Visible=False></asp:BoundColumn>
						<asp:TemplateColumn>
							<ItemStyle CssClass="ibn-vb2"></ItemStyle>		
							<ItemTemplate>
								<a title='<%=LocRM.GetString("tPaste")%>' href='<%# "javascript:CopyFile(" + DataBinder.Eval(Container.DataItem, "FileId").ToString() + ")" %>'>
								<%# DataBinder.Eval(Container.DataItem, "Name")%></a>
							</ItemTemplate>
						</asp:TemplateColumn>
					</Columns>
				</asp:DataGrid>
				<asp:Label ID="lblAlert" CssClass="ibn-alerttext" Runat=server></asp:Label>
			</div>
			<INPUT id="hdnFileId" type="hidden" runat="server" />
			<asp:linkbutton id="lbCopyFile" runat="server" Visible="False"></asp:linkbutton>
    </form>
	
  </body>
</html>
