<%@ Page language="c#" Codebehind="AddRelFromClip.aspx.cs" AutoEventWireup="false" Inherits="Mediachase.UI.Web.Projects.AddRelFromClip" %>
<%@ Register TagPrefix="ibn" TagName="BlockHeader" src="..\Modules\BlockHeader.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > 
<html>
  <head>
    <title><%=LocRM.GetString("Clipboard")%></title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
    <meta name="CODE_LANGUAGE" Content="C#">
    <meta name=vs_defaultClientScript content="JavaScript">
    <meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5">
    <script src="../Scripts/browser.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">
	<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 AddProject(ProjectId)
	{
		document.forms[0].<%=hdnProjectId.ClientID %>.value = ProjectId;
		<%=Page.GetPostBackClientEvent(lbAddProject,"") %>
	}
</script>
  </head>
  <body MS_POSITIONING="FlowLayout">
	
    <form id="Form1" method="post" runat="server">
		<ibn:blockheader id="secHeader" runat="server"/>
		<div style="OVERFLOW:auto;HEIGHT:170px">
			<asp:DataGrid Runat="server" ID="dgPrjs" ShowHeader=False AutoGenerateColumns="False" AllowPaging="False" AllowSorting="False" cellpadding="3" gridlines="None" CellSpacing="0" borderwidth="0px" Width="100%">
				<Columns>
					<asp:BoundColumn DataField="ProjectId" Visible=False></asp:BoundColumn>
					<asp:TemplateColumn>
						<ItemStyle CssClass="ibn-vb2"></ItemStyle>		
						<ItemTemplate>
							<a title='<%=LocRM.GetString("tAddFromClip")%>' href='<%# "javascript:AddProject(" + DataBinder.Eval(Container.DataItem, "ProjectId").ToString() + ")" %>'>
							<%# Mediachase.UI.Web.Util.CommonHelper.GetProjectStatusWL((int)DataBinder.Eval(Container.DataItem, "ProjectId"))%></a>
						</ItemTemplate>
					</asp:TemplateColumn>
				</Columns>
			</asp:DataGrid>
			<asp:Label ID="lblAlert" CssClass="ibn-alerttext" Runat=server></asp:Label>
		</div>
		<script language=javascript>
			function FuncClose(ProjectId)
			{
				var obj = window.parent.document.getElementById('<%=BtnID%>');
				if(obj!=null)
					obj.style.display = "none";
				else if(parent == window)
					window.close();
				else
					window.top.frames['right'].location.href='ProjectView.aspx?ProjectId='+ProjectId;
			}
		</script>
		<INPUT id="hdnProjectId" type="hidden" runat="server">
		<asp:linkbutton id="lbAddProject" runat="server" Visible="False"></asp:linkbutton>
     </form>
	
  </body>
</html>
