<%@ Page language="c#" Codebehind="ListSecurity.aspx.cs" AutoEventWireup="false" Inherits="Mediachase.UI.Web.Lists.ListSecurity" %>
<%@ 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 http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
	<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">
	<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>
  </head>
  <body MS_POSITIONING="FlowLayout">
	
    <form id="Form1" method="post" runat="server">
		<ibn:blockheader id="secHeader" runat="server"></ibn:blockheader>
		<table class="text" height="100%" cellSpacing="0" cellPadding="2" width="100%" border="0">
			<tr height="22">
				<td class="boldtext" width="290" height="22"><%=LocRM.GetString("tAvailable") %> :</td>
				<td class="ibn-navframe boldtext"><%=LocRM.GetString("tSelected") %> :</td>
			</tr>
			<tr style="HEIGHT: 100%">
				<td vAlign="top" width="290" style="padding-left:5px">
					<!-- Groups & Users -->
					<table class="text" style="MARGIN-TOP: 5px" cellSpacing="0" cellPadding="3" width="100%">
						<tr>
							<td width="9%" class="boldtext"><%=LocRM.GetString("tGroup") %>:</td>
							<td width="91%">
								<asp:dropdownlist id="ddGroups" runat="server" Width="190px" CssClass="text" AutoPostBack="True"></asp:dropdownlist>
							</td>
						<tr>
							<td vAlign="top" class="boldtext"><%=LocRM.GetString("tUser") %>:</td>
							<td vAlign="top">
								<asp:ListBox id="lbUsers" runat="server" Width="190px" CssClass="text" Rows="5" SelectionMode="Multiple"></asp:ListBox>
							</td>
						</tr>
						<tr>
							<td vAlign="top" class="boldtext"><%=LocRM.GetString("tRights") %>:</td>
							<td vAlign="top">
								<asp:dropdownlist id="ddRights" runat="server" Width="190px" CssClass="text"></asp:dropdownlist>
							</td>
						</tr>
						<tr>
							<td vAlign="top" height="28"></td>
							<td style="padding-top:15px">
								<Button id="btnSave" runat="server" Text="Button" style="DISPLAY:none" type="button">
								</Button>
								<Button id="btnAddGroup" runat="server" onclick="DisableButtons(this);" Class="text" style="width:120px;" type="button">
								</Button>
							</td>
						</tr>
						<tr>
							<td vAlign="top" height="28"></td>
							<td style="padding-top:2px">
								<Button id="btnAdd" runat="server" onclick="DisableButtons(this);" Class="text" style="width:120px;" 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="100%" 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="ibn-vh2"></HeaderStyle>
						<Columns>
							<asp:BoundColumn DataField="PrincipalId" Visible="False"></asp:BoundColumn>
							<asp:TemplateColumn HeaderText='Name'>
								<ItemTemplate>
									<%# GetLink( (int)DataBinder.Eval(Container.DataItem, "PrincipalId"),(bool)DataBinder.Eval(Container.DataItem, "IsGroup") )%>
								</ItemTemplate>
							</asp:TemplateColumn>
							<asp:TemplateColumn HeaderText='Rights'>
								<ItemTemplate>
									<%# DataBinder.Eval(Container.DataItem, "Rights")%>
								</ItemTemplate>
							</asp:TemplateColumn>
							<asp:templatecolumn itemstyle-width="30" Visible="True">
								<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>
					</div>
					<!-- End Data GRID -->
				</td>
			</tr>
		</table>
     </form>
	
  </body>
</html>
