<%@ Import Namespace="HTCOMNET.Main" %>
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="viewmembers.aspx.vb" Inherits="HTCOMNET.viewmemebrs"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>Members</title>
		<META content="NOINDEX,NOFOLLOW" name="ROBOTS">
		<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
	</HEAD>
	<body bgcolor="#5a7dde" text="#ffffff">
		<strong><a href="adminpanel.aspx"><font color="#ffffff" size="3" face="Verdana, Arial, Helvetica, sans-serif">
					back to the Admin panel</font></a></strong><BR>
		<div id="NEtFrameworkNotInstalled" runat="server"><font size="3" face="Arial" color="#ffffff"><b>If 
					you see this label then you need to install .NET Framework 1.1 on the server 
					for correct running .ASPX pages. See ReadMe.htm</b></font></div>
		<form id="Form1" runat="server">
			<a href="groupsaccounts.aspx"><img src="images/usgr.gif" width="21" height="26" border="0"></a>&nbsp;<a href="groupsaccounts.aspx"><STRONG><FONT face="Verdana, Arial, Helvetica, sans-serif" color="#33ff99" size="4">back 
						to Groups list</FONT></STRONG></a>
			<div id="INPUT" runat="server">
				<asp:label id="lblinfo" Font-Bold="True" ForeColor="#ffcc00" Font-Size="18px" Runat="server"
					Text=""></asp:label><BR>
				<BR>
				<asp:panel id="Panel1" Runat="server" BorderWidth="1px" BorderStyle="Ridge" Width="600px" Height="100">
					<STRONG><FONT face="Verdana, Arial, Helvetica, sans-serif" color="#ffffff" size="3">&nbsp;&nbsp;
							<asp:Label id="Addlabel" runat="server"></asp:Label></FONT></STRONG><BR>
					<BR>
					<DIV align="center">
						<asp:table id="Table1" runat="server" BorderStyle="Solid" BorderWidth="0px" width="600px" cellPadding="5"
							GridLines="Both">
							<asp:TableRow Runat="server" ID="Tablerow1">
								<asp:TableCell Width="70" ID="UsernameCell" Runat="server">
									<asp:Label id="SelectLabel" runat="server">Select user:</asp:Label>
								</asp:TableCell>
								<asp:TableCell Runat="server" ID="Tablecell1" NAME="Tablecell1">
									<asp:DropDownList ID="userslst" Runat="server"></asp:DropDownList>
								</asp:TableCell>
							</asp:TableRow>
						</asp:table><BR>
					</DIV>
					<TABLE width="600" border="0">
						<TR>
							<TD width="15" height="50"></TD>
							<TD>
								<asp:Button id="addnewuserbutton" onclick="AddNewUser" Text="Add user" Runat="server" NAME="Button1"></asp:Button></TD>
						</TR>
					</TABLE>
				</asp:panel><BR>
				<STRONG><FONT face="Verdana, Arial, Helvetica, sans-serif" color="#ffffff" size="3">&nbsp;&nbsp;Members:</FONT></STRONG>
				<asp:datagrid id="grid" runat="server" BorderWidth="1px" Width="600px" PagerStyle-ForeColor="#000000"
					PagerStyle-Mode="NumericPages" PagerStyle-Font-Size="18px" PagerStyle-Font-Bold="True" OnDeleteCommand="gridusers_DeleteCommand"
					OnPageIndexChanged="gridusers_PageIndexChanged" AllowPaging="True" AutoGenerateColumns="False"
					AllowSorting="True" PageSize="20" BorderColor="Gainsboro" CellPadding="10">
					<Columns>
						<asp:BoundColumn Visible="False" DataField="id" ReadOnly="True"></asp:BoundColumn>
						<asp:TemplateColumn SortExpression="name" HeaderText="User name">
							<ItemStyle Font-Size="18px"></ItemStyle>
							<ItemTemplate>
								<%# Container.DataItem("name") %>
							</ItemTemplate>
						</asp:TemplateColumn>
						<asp:TemplateColumn>
							<ItemTemplate>
								<asp:Button CommandName="Delete" Runat="server" id="butDelete" Text="Delete this member from group!" />
							</ItemTemplate>
						</asp:TemplateColumn>
					</Columns>
					<PagerStyle Font-Size="18px" Font-Bold="True" ForeColor="Black" Mode="NumericPages"></PagerStyle>
				</asp:datagrid><br>
				<BR>
				Comment: Database stored in
				<asp:label id="shownUSERSANDGROUPSINFOFILE" Runat="server"></asp:label>
				file.<BR>
				<a href="mailto:sprunsky@http-com.com"><font color="#ffffff">Developer</font></a>
				can modify code for correct work with your own users and folders database!
			</div>
			<div id="ADMININPUT" runat="server">
				<font color="#ff9933"><b>
						<asp:Literal id="WRONGCOMBINATION" runat="server"></asp:Literal></b></font>
				<BR>
				Enter Administrator's name and password<br>
				<br>
				<table width="500" border="0">
					<tr>
						<td width="112">Name:</td>
						<td width="378"><input id="inputadminname" name="name" type="text" runat="server"></td>
					</tr>
					<tr>
						<td>Password:</td>
						<td><input id="inputadminpass" name="password" type="password" runat="server"></td>
					</tr>
				</table>
				<br>
				<asp:Button id="sendnamepass" onclick="CheckAdminNamepass" text="submit" runat="server"></asp:Button>
				<br>
				<br>
				<br>
			</div>
			<asp:literal id="output" Runat="server"></asp:literal></form>
	</body>
</HTML>
