<%@ Page language="c#" Codebehind="ReportSecurity.aspx.cs" AutoEventWireup="false" Inherits="Mediachase.UI.Web.Admin.ReportSecurity" %>
<%@ Register TagPrefix="ibn" TagName="BlockHeader" src="..\Modules\BlockHeader.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > 

<html>
 <head>
    <title>
			<%=LocRM.GetString("tSecurity") %>
    </title>
    <meta name=vs_defaultClientScript content="JavaScript">
    <meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <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 disableEnterKey() 
			{ 
				try {
					if (window.event.keyCode == 13 && window.event.srcElement.type != "textarea")
						window.event.keyCode = 0;
				}
				catch (e) {}
			} 
		</script>	
		<script language=javascript>
			function FuncSave()
			{
				<%=Page.GetPostBackClientEvent(btnSave,"") %>
			}
		</script>
  </head>
  <body class="UserBackground" id="pT_body" leftMargin="0" topMargin="0" marginwidth="0" marginheight="0">
    <form id="frmMain" method="post" runat="server" enctype="multipart/form-data">
			<ibn:BlockHeader id="secHeader" runat="server" />
			<table id="mainTable" class="ibn-stylebox-light text" style="HEIGHT: 100%;" height="100%" cellSpacing="0" cellPadding="2" width="100%" border="0">
				<tr height="22">
					<td class="boldtext" width="290" height="22"><%=LocRM.GetString("Available") %> :</td>
					<td class="ibn-navframe boldtext"><%=LocRM.GetString("Selected") %> :</td>
				</tr>
				<tr style="HEIGHT: 100%">
					<td vAlign="top" width="290">
						<!-- Groups & Users -->
						<table class="text" style="MARGIN-TOP: 5px" cellSpacing="0" cellPadding="2" width="100%">
							<tr>
								<td width="9%"><%=LocRM.GetString("Group") %>:</td>
								<td width="91%"><asp:dropdownlist id="ddGroups" runat="server" Width="190px" CssClass="text" AutoPostBack="True"></asp:dropdownlist></td>
							<tr>
								<td vAlign="top"><%=LocRM.GetString("User") %>:</td>
								<td vAlign="top"><asp:DropDownList id="ddUsers" runat="server" Width="190px" CssClass="text"></asp:DropDownList></td>
							</tr>
							<tr>
								<td vAlign="top"></td>
								<td vAlign="top">
									<asp:radiobuttonlist id="rbList" runat="server" Width="190px" CssClass="text" RepeatColumns="2"></asp:radiobuttonlist>
								</td>
							</tr>
							<tr>
								<td vAlign="top" height="28">&nbsp;</td>
								<td>
									<Button id="btnAdd" runat="server" onclick="DisableButtons(this);" Class="text" style="width:90px;" type="button">
									</Button>
								</td>
							</tr>
						</table>
						<!-- End Groups & Users -->
					</td>
					<td vAlign="top" height="100%" class="ibn-navframe">
						<!-- Data GRID -->
						<div style="OVERFLOW-Y: auto; HEIGHT: 262px">
							<asp:datagrid Width="95%" id="dgMembers" Runat="server" AutoGenerateColumns="False" AllowPaging="False" AllowSorting="False" cellpadding="3" gridlines="None" CellSpacing="3" borderwidth="0px">
								<ItemStyle CssClass="ibn-propertysheet"></ItemStyle>
								<HeaderStyle CssClass="text"></HeaderStyle>
								<Columns>
									<asp:BoundColumn DataField="ID" Visible="False"></asp:BoundColumn>
									<asp:TemplateColumn>
										<ItemTemplate>
											<%# GetLink((int)DataBinder.Eval(Container.DataItem, "Weight"), DataBinder.Eval(Container.DataItem, "Name").ToString())%>
										</ItemTemplate>
									</asp:TemplateColumn>
									<asp:templatecolumn itemstyle-width="45" HeaderStyle-HorizontalAlign=Center ItemStyle-HorizontalAlign=Center>
										<itemtemplate>
											<asp:Label ID="lblAllow" Runat=server Visible='<%# (bool)DataBinder.Eval(Container.DataItem, "Allow") %>'><img src='../layouts/Images/accept.gif' border='0' width=16 height=16 align='absmiddle' ></asp:Label>
										</itemtemplate>
									</asp:templatecolumn>
									<asp:templatecolumn itemstyle-width="45" HeaderStyle-HorizontalAlign=Center ItemStyle-HorizontalAlign=Center>
										<itemtemplate>
											<asp:Label ID="lblDeny" Runat=server Visible='<%# !(bool)DataBinder.Eval(Container.DataItem, "Allow") %>'><img src='../layouts/Images/accept.gif' border='0' width=16 height=16 align='absmiddle' ></asp:Label>
										</itemtemplate>
									</asp:templatecolumn>
									<asp:templatecolumn itemstyle-width="30" Visible="True" ItemStyle-HorizontalAlign=Right>
										<itemtemplate>
											<asp:imagebutton id="ibDelete" runat="server" borderwidth="0" width="16" height="16" commandname="Delete" causesvalidation="False" imageurl="../layouts/images/DELETE.GIF">
											</asp:imagebutton>
										</itemtemplate>
									</asp:templatecolumn>
								</Columns>
							</asp:datagrid>
							<!-- End Data GRID --></div>
					</td>
				</tr>
			</table>
			<asp:LinkButton id="btnSave" runat="server" Visible=False></asp:LinkButton>
     </form>
  </body>
</html>
