<%@ Page language="c#" Codebehind="AddRelFromClip.aspx.cs" AutoEventWireup="false" Inherits="Mediachase.UI.Web.Incidents.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 AddIssue(IssueId)
	{
		document.forms[0].<%=hdnIssueId.ClientID %>.value = IssueId;
		<%=Page.GetPostBackClientEvent(lbAddIssue,"") %>
	}
</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="dgIssues" ShowHeader=False AutoGenerateColumns="False" AllowPaging="False" AllowSorting="False" cellpadding="3" gridlines="None" CellSpacing="0" borderwidth="0px" Width="100%">
				<Columns>
					<asp:BoundColumn DataField="IncidentId" Visible=False></asp:BoundColumn>
					<asp:TemplateColumn>
						<ItemStyle CssClass="ibn-vb2"></ItemStyle>		
						<ItemTemplate>
							<a title='<%=LocRM2.GetString("tPasteFromClipboard")%>' href='<%# "javascript:AddIssue(" + DataBinder.Eval(Container.DataItem, "IncidentId").ToString() + ")" %>'>
							<%# Mediachase.UI.Web.Util.CommonHelper.GetIncidentTitleWL((int)DataBinder.Eval(Container.DataItem, "IncidentId"))%></a>
						</ItemTemplate>
					</asp:TemplateColumn>
				</Columns>
			</asp:DataGrid>
			<asp:Label ID="lblAlert" CssClass="ibn-alerttext" Runat=server></asp:Label>
		</div>
		<script language=javascript>
			function FuncClose(IncidentId)
			{
				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='IncidentView.aspx?IncidentId='+IncidentId;
			}
		</script>
		<INPUT id="hdnIssueId" type="hidden" runat="server" NAME="hdnIssueId">
		<asp:linkbutton id="lbAddIssue" runat="server" Visible="False"></asp:linkbutton>
     </form>
	
  </body>
</html>
