<%@ Page EnableViewState="true" CodeBehind="usermanager.aspx.vb" Language="vb" AutoEventWireup="false" Inherits="HTCOMNET.usermanager" %>
<%@ Import Namespace="HTCOMNET.Main" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
	<HEAD>
		<title>Set folders for user or group</title>
		<META content="NOINDEX,NOFOLLOW" name="ROBOTS">
		<META http-equiv="PRAGMA" content="NO-CACHE">
		<STYLE type="text/css">.HELP { CURSOR: hand }
	</STYLE>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	</HEAD>
	<body text="#ffffff" bgColor="#5a7dde">
		<div id="NEtFrameworkNotInstalled" runat="server"><font face="Arial" color="#ffffff" size="3"><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>
		<strong><A href="adminpanel.aspx"><font face="Verdana, Arial, Helvetica, sans-serif" color="#ffffff" size="3">
					back to the Admin panel</font></A></strong><BR>
		<form id="Form1" runat="server">
			<div id="INPUT" runat="server"><asp:label id="lblinfo" Text="" Runat="server" Font-Size="18px" ForeColor="#ffcc00" Font-Bold="True"></asp:label><BR>
				<BR>
				&nbsp;&nbsp;<FONT face="Arial" size="3"><B>See examples how to set folders for users 
						and groups <A href="Records.htm" target="_blank">Here</A> also click <IMG height="16" alt="Help" src="images/hlp.gif" width="16" border="0">
						icons to get context help.</B></FONT><BR>
				<BR>
				<asp:panel id="Panel1" Runat="server" Height="250" Width="800" BorderStyle="Ridge" BorderWidth="1px">
					<BR>
					<P align="center">
						<asp:table id="Table1" runat="server" BorderWidth="0px" BorderStyle="None" width="750" cellPadding="5"
							GridLines="Both">
							<asp:TableRow Runat="server" ID="TablerowType">
								<asp:TableCell Runat="server" ID="Tablecell2" NAME="Tablecell2">Type:</asp:TableCell>
								<asp:TableCell Runat="server" ID="Tablecell3" NAME="Tablecell1">
									<asp:DropDownList AutoPostBack="True" ID="inputtype" Runat="server">
										<asp:ListItem Selected="True" Value="Group">Group</asp:ListItem>
										<asp:ListItem Value="User">User</asp:ListItem>
										<asp:ListItem Value="GROUPSUNION">Everyone in Groups Union</asp:ListItem>
									</asp:DropDownList>
									&nbsp;&nbsp;<img class="HELP" onclick="javascript: var newwindow=window.open('usermanagerhelp.htm?#type', 'newwin','menubar=yes, status=yes, resizable=yes, scrollbars=yes, toolbar=yes, location=yes, fullscreen=no, width=600 , height=400, left=50, top=50');	newwindow.focus();"
										runat="server" border="0" alt="Help" width="16" height="16" src="images/hlp.gif" id="hlp_type" />
										
								</asp:TableCell>
							</asp:TableRow>
							<asp:TableRow Runat="server">
								<asp:TableCell Width="90" ID="UsernameCell" Runat="server">Group name:</asp:TableCell>
								<asp:TableCell Runat="server" ID="Tablecell1" NAME="Tablecell1">
									<asp:DropDownList Visible="False" ID="NameList" Runat="server"></asp:DropDownList>
									<asp:TextBox Visible="False" ID="inputname" Runat="server" MaxLength="255" width="150"></asp:TextBox>
									<asp:Button id="Getlist" Text="Get list of Groups" Visible="False" Runat="server" />
									&nbsp;&nbsp;<img class="HELP" onclick="javascript: var newwindow=window.open('usermanagerhelp.htm?#name', 'newwin','menubar=yes, status=yes, resizable=yes, scrollbars=yes, toolbar=yes, location=yes, fullscreen=no, width=600 , height=400, left=50, top=50');	newwindow.focus();"
										runat="server" border="0" alt="Help" width="16" height="16" src="images/hlp.gif" id="Img1" />
								</asp:TableCell>
							</asp:TableRow>
						</asp:table><BR>
					</P>
					<P align="center">
						<TABLE border="0">
							<TR>
								<TD width="38">&nbsp;</TD>
								<TD>
									<asp:table id="Table2" runat="server" BorderWidth="1px" BorderStyle="Dotted" width="700" cellPadding="5"
										GridLines="Horizontal">
										<asp:TableRow Runat="server" ID="Tablerow2" name="Tablerow2">
											<asp:TableCell Width="100px" Runat="server" ID="PathsCell" name="Tablecell4">Folder location:</asp:TableCell>
											<asp:TableCell Runat="server" ID="Tablecell5" name="Tablecell1">
										<div runat="server" id="ShowHomePath">
													<asp:CheckBox ID="inputHomeDirectory" AutoPostBack="True" Checked="False" Runat="server" />Home 
													Folder
													<asp:Label ForeColor="#ffcc33" ID="lblDetectedHomeDirectory" Runat="server" /><BR>
													or</div> Enter path here (you can use %USERNAME% and %GROUPS_UNION_#% patterns):<BR> 
												<asp:TextBox Runat="server" MaxLength="1000" Width="420" ID="inputlocation" NAME="Textbox2"></asp:TextBox>
												&nbsp;&nbsp;<img class="HELP" onclick="javascript: var newwindow=window.open('usermanagerhelp.htm?#folderlocation', 'newwin','menubar=yes, status=yes, resizable=yes, scrollbars=yes, toolbar=yes, location=yes, fullscreen=no, width=600 , height=400, left=50, top=50');	newwindow.focus();"
													runat="server" border="0" alt="Help" width="16" height="16" src="images/hlp.gif" id="Img2" />
											</asp:TableCell>
										</asp:TableRow>
										<asp:TableRow Runat="server" ID="Tablerow3" NAME="Tablerow3">
											<asp:TableCell Runat="server" ID="Tablecell6" NAME="Tablecell6">Folder name:</asp:TableCell>
											<asp:TableCell Runat="server" ID="Tablecell7" NAME="Tablecell1">
												<asp:TextBox Runat="server" MaxLength="30" Width="100" ID="inputfoldername" NAME="Textbox3"></asp:TextBox>
												&nbsp;&nbsp;<img class="HELP" onclick="javascript: var newwindow=window.open('usermanagerhelp.htm?#foldername', 'newwin','menubar=yes, status=yes, resizable=yes, scrollbars=yes, toolbar=yes, location=yes, fullscreen=no, width=600 , height=400, left=50, top=50');	newwindow.focus();"
													runat="server" border="0" alt="Help" width="16" height="16" src="images/hlp.gif" id="Img3" />
											</asp:TableCell>
										</asp:TableRow>
										<asp:TableRow Runat="server" ID="Tablerow1" NAME="Tablerow3">
											<asp:TableCell Runat="server" ID="Tablecell23" NAME="Tablecell6">Folder desciption:</asp:TableCell>
											<asp:TableCell Runat="server" ID="Tablecell24" NAME="Tablecell1">
												<asp:TextBox Runat="server" MaxLength="2000" Width="420" ID="inputdescription" NAME="Textbox3"></asp:TextBox>
												&nbsp;&nbsp;<img class="HELP" onclick="javascript: var newwindow=window.open('usermanagerhelp.htm?#description', 'newwin','menubar=yes, status=yes, resizable=yes, scrollbars=yes, toolbar=yes, location=yes, fullscreen=no, width=600 , height=400, left=50, top=50');	newwindow.focus();"
													runat="server" border="0" alt="Help" width="16" height="16" src="images/hlp.gif" id="Img13" />
											</asp:TableCell>
										</asp:TableRow>
										<asp:TableRow Runat="server" ID="TablerowQuota" NAME="Tablerow3">
											<asp:TableCell Runat="server" ID="Tablecell10" NAME="Tablecell6">Disk quota:</asp:TableCell>
											<asp:TableCell Runat="server" ID="Tablecell11" NAME="Tablecell1">
												<asp:TextBox Visible="False" Runat="server" MaxLength="30" Width="150" ID="inputQuotaInteger"></asp:TextBox>
												<asp:DropDownList AutoPostBack="True" ID="inputquota" Runat="server">
													<asp:ListItem Selected="True" Value="NO">None</asp:ListItem>
													<asp:ListItem Value="MB">MBytes</asp:ListItem>
													<asp:ListItem Value="KB">KBytes</asp:ListItem>
													<asp:ListItem Value="BY">Bytes</asp:ListItem>
												</asp:DropDownList>
												&nbsp;&nbsp;<img class="HELP" onclick="javascript: var newwindow=window.open('usermanagerhelp.htm?#diskquota', 'newwin','menubar=yes, status=yes, resizable=yes, scrollbars=yes, toolbar=yes, location=yes, fullscreen=no, width=600 , height=400, left=50, top=50');	newwindow.focus();"
													runat="server" border="0" alt="Help" width="16" height="16" src="images/hlp.gif" id="Img4" />&nbsp;&nbsp;Don't use quota for big or medium folders! This makes application VERY VERY slow (application gets size of folder each time before action)! 
											</asp:TableCell>
										</asp:TableRow>
										<asp:TableRow Runat="server" ID="Tablerowmodify" NAME="Tablerow3">
											<asp:TableCell Runat="server" ID="Tablecell8" NAME="Tablecell6">Can modify:</asp:TableCell>
											<asp:TableCell Runat="server" ID="Tablecell9" NAME="Tablecell1">
												<asp:DropDownList ID="inputmodify" Runat="server">
													<asp:ListItem Selected="True" Value="YES">YES</asp:ListItem>
													<asp:ListItem Value="NO">NO</asp:ListItem>
												</asp:DropDownList>
												&nbsp;&nbsp;<img class="HELP" onclick="javascript: var newwindow=window.open('usermanagerhelp.htm?#canmodify', 'newwin','menubar=yes, status=yes, resizable=yes, scrollbars=yes, toolbar=yes, location=yes, fullscreen=no, width=600 , height=400, left=50, top=50');	newwindow.focus();"
													runat="server" border="0" alt="Help" width="16" height="16" src="images/hlp.gif" id="Img5" />
											</asp:TableCell>
										</asp:TableRow>
										<asp:TableRow Runat="server" ID="Tablerowupload" NAME="Tablerow3">
											<asp:TableCell Runat="server" ID="Tablecell13" NAME="Tablecell6">Can upload:</asp:TableCell>
											<asp:TableCell Runat="server" ID="Tablecell14" NAME="Tablecell1">
												<asp:DropDownList ID="inputupload" Runat="server">
													<asp:ListItem Selected="True" Value="YES">YES</asp:ListItem>
													<asp:ListItem Value="NO">NO</asp:ListItem>
												</asp:DropDownList>
												&nbsp;&nbsp;<img class="HELP" onclick="javascript: var newwindow=window.open('usermanagerhelp.htm?#canupload', 'newwin','menubar=yes, status=yes, resizable=yes, scrollbars=yes, toolbar=yes, location=yes, fullscreen=no, width=600 , height=400, left=50, top=50');	newwindow.focus();"
													runat="server" border="0" alt="Help" width="16" height="16" src="images/hlp.gif" id="Img6" />
											</asp:TableCell>
										</asp:TableRow>
										<asp:TableRow Runat="server" ID="Tablerowzip" NAME="Tablerow3">
											<asp:TableCell Runat="server" ID="Tablecell15" NAME="Tablecell6">Can zip:</asp:TableCell>
											<asp:TableCell Runat="server" ID="Tablecell16" NAME="Tablecell1">
												<asp:DropDownList ID="inputzip" Runat="server">
													<asp:ListItem Selected="True" Value="YES">YES</asp:ListItem>
													<asp:ListItem Value="NO">NO</asp:ListItem>
												</asp:DropDownList>
												&nbsp;&nbsp;<img class="HELP" onclick="javascript: var newwindow=window.open('usermanagerhelp.htm?#canzip', 'newwin','menubar=yes, status=yes, resizable=yes, scrollbars=yes, toolbar=yes, location=yes, fullscreen=no, width=600 , height=400, left=50, top=50');	newwindow.focus();"
													runat="server" border="0" alt="Help" width="16" height="16" src="images/hlp.gif" id="Img7" />
											</asp:TableCell>
										</asp:TableRow>
										<asp:TableRow Runat="server" ID="Tablerowunzip" NAME="Tablerow3">
											<asp:TableCell Runat="server" ID="Tablecell17" NAME="Tablecell6">Can unzip:</asp:TableCell>
											<asp:TableCell Runat="server" ID="Tablecell18" NAME="Tablecell1">
												<asp:DropDownList ID="inputunzip" Runat="server">
													<asp:ListItem Selected="True" Value="YES">YES</asp:ListItem>
													<asp:ListItem Value="NO">NO</asp:ListItem>
												</asp:DropDownList>
												&nbsp;&nbsp;<img class="HELP" onclick="javascript: var newwindow=window.open('usermanagerhelp.htm?#canunzip', 'newwin','menubar=yes, status=yes, resizable=yes, scrollbars=yes, toolbar=yes, location=yes, fullscreen=no, width=600 , height=400, left=50, top=50');	newwindow.focus();"
													runat="server" border="0" alt="Help" width="16" height="16" src="images/hlp.gif" id="Img8" />
											</asp:TableCell>
										</asp:TableRow>
										<asp:TableRow Runat="server" ID="TablerowSetAttrib" NAME="Tablerow3">
											<asp:TableCell Runat="server" ID="Tablecell4" NAME="Tablecell6">Can set attributes:</asp:TableCell>
											<asp:TableCell Runat="server" ID="Tablecell12" NAME="Tablecell1">
												<asp:DropDownList ID="inputsetattrib" Runat="server">
													<asp:ListItem Selected="True" Value="YES">YES</asp:ListItem>
													<asp:ListItem Value="NO">NO</asp:ListItem>
												</asp:DropDownList>
												&nbsp;&nbsp;<img class="HELP" onclick="javascript: var newwindow=window.open('usermanagerhelp.htm?#cansetattrib', 'newwin','menubar=yes, status=yes, resizable=yes, scrollbars=yes, toolbar=yes, location=yes, fullscreen=no, width=600 , height=400, left=50, top=50');	newwindow.focus();"
													runat="server" border="0" alt="Help" width="16" height="16" src="images/hlp.gif" id="Img12" />
											</asp:TableCell>
										</asp:TableRow>
										<asp:TableRow Runat="server" ID="Tablerowmaxfilesize" NAME="Tablerow3">
											<asp:TableCell Runat="server" ID="Tablecell19" NAME="Tablecell6">Max size of uploading file:</asp:TableCell>
											<asp:TableCell Runat="server" ID="Tablecell20" NAME="Tablecell1">
												<asp:TextBox Visible="False" Runat="server" MaxLength="30" Width="150" ID="inputmaxfilesizeinteger"></asp:TextBox>
												<asp:DropDownList AutoPostBack="True" ID="inputmaxfilesize" Runat="server">
													<asp:ListItem Selected="True" Value="NO">None</asp:ListItem>
													<asp:ListItem Value="MB">MBytes</asp:ListItem>
													<asp:ListItem Value="KB">KBytes</asp:ListItem>
													<asp:ListItem Value="BY">Bytes</asp:ListItem>
												</asp:DropDownList>
												&nbsp;&nbsp;<img class="HELP" onclick="javascript: var newwindow=window.open('usermanagerhelp.htm?#maxfilesize', 'newwin','menubar=yes, status=yes, resizable=yes, scrollbars=yes, toolbar=yes, location=yes, fullscreen=no, width=600 , height=400, left=50, top=50');	newwindow.focus();"
													runat="server" border="0" alt="Help" width="16" height="16" src="images/hlp.gif" id="Img9" />
											</asp:TableCell>
										</asp:TableRow>
										<asp:TableRow Runat="server" ID="Tablerowunuploaded" NAME="Tablerow3">
											<asp:TableCell Runat="server" ID="Tablecell21" NAME="Tablecell6">Prohibit extensions:<BR>(Separated by ';')</asp:TableCell>
											<asp:TableCell Runat="server" ID="Tablecell22" NAME="Tablecell1">
												<asp:TextBox Runat="server" MaxLength="255" Width="150" ID="inputunuploaded" NAME="Textbox3"></asp:TextBox>
											&nbsp;&nbsp;<img class="HELP" onclick="javascript: var newwindow=window.open('usermanagerhelp.htm?#unuploaded', 'newwin','menubar=yes, status=yes, resizable=yes, scrollbars=yes, toolbar=yes, location=yes, fullscreen=no, width=600 , height=400, left=50, top=50');	newwindow.focus();"
													runat="server" border="0" alt="Help" width="16" height="16" src="images/hlp.gif" id="Img10" />
											</asp:TableCell>
										</asp:TableRow>
										<asp:TableRow Runat="server" ID="Tablerowunuploadedproperties" NAME="Tablerow3">
											<asp:TableCell Runat="server" ID="Tablecell25" name="Tablecell6">Available properties:</asp:TableCell>
											<asp:TableCell Runat="server" ID="Tablecell26" name="Tablecell1">
												<asp:DropDownList ID="lstProperties" Runat="server"></asp:DropDownList>
												<asp:CheckBox ID="chkPropertyCanRead" Checked="true" Runat="server" />&nbsp;Can read
												<asp:CheckBox ID="chkPropertyCanWrite" Checked="true" Runat="server" />&nbsp;Can write
												<asp:Button id="btnAddProperty" Runat="server" Text="Add" name="Button1"></asp:Button>
											&nbsp;&nbsp;<img class="HELP" onclick="javascript: var newwindow=window.open('usermanagerhelp.htm?#properties', 'newwin','menubar=yes, status=yes, resizable=yes, scrollbars=yes, toolbar=yes, location=yes, fullscreen=no, width=600 , height=400, left=50, top=50');	newwindow.focus();"
													runat="server" border="0" alt="Help" width="16" height="16" src="images/hlp.gif" id="Img15" />
													<br>
<asp:Label ForeColor="#ffcc33" ID="lblProperties" Runat="server" />
											</asp:TableCell>
										</asp:TableRow>
									</asp:table><BR>
									<asp:Button id="Button3" onclick="AddPath" Runat="server" Text="Add folder" name="Button1"></asp:Button><BR>
									<BR>
									<asp:Literal id="PathsTable" Runat="server"></asp:Literal></TD>
							</TR>
						</TABLE>
					</P>
					<TABLE width="800" border="0">
						<TR>
							<TD width="15" height="50"></TD>
							<TD>
								<asp:Button id="addnewuserbutton" onclick="AddNewUser" Font-Bold="True" Font-Size="12" Runat="server"
									Text="Set folders" name="Button1"></asp:Button>&nbsp;
								<asp:Button id="Button4" onclick="ResetUser" Font-Bold="True" Font-Size="12" Runat="server"
									Text="Reset" name="Button1"></asp:Button></TD>
						</TR>
					</TABLE>
				</asp:panel><BR>
				<FONT size="4"><B>Folders in database:</B></FONT>&nbsp;&nbsp;<IMG class="HELP" id="Img14" onclick="javascript: var newwindow=window.open('usermanagerhelp.htm?#folderstable', 'newwin','menubar=yes, status=yes, resizable=yes, scrollbars=yes, toolbar=yes, location=yes, fullscreen=no, width=600 , height=400, left=50, top=50');&#9;newwindow.focus();"
					height="16" alt="Help" src="images/hlp.gif" width="16" border="0" runat="server">
				<asp:datagrid id="grid" runat="server" Width="1000px" BorderWidth="1px" CellPadding="10" BorderColor="Gainsboro"
					PageSize="10" AllowSorting="True" AutoGenerateColumns="False" AllowPaging="True" OnSortCommand="gridusers_SortCommand"
					OnPageIndexChanged="gridusers_PageIndexChanged" OnEditCommand="gridusers_EditCommand" OnCancelCommand="gridusers_CancelCommand"
					OnUpdateCommand="gridusers_UpdateCommand" OnDeleteCommand="gridusers_DeleteCommand" PagerStyle-Font-Bold="True"
					PagerStyle-Font-Size="18px" PagerStyle-Mode="NumericPages" PagerStyle-ForeColor="#000000">
					<Columns>
						<asp:BoundColumn DataField="name" SortExpression="name" ReadOnly="True" HeaderText="Name">
							<ItemStyle Width="50px" Font-Size="18px" Font-Bold="True" ForeColor="#FFCC00"></ItemStyle>
						</asp:BoundColumn>
						<asp:TemplateColumn SortExpression="type" HeaderText="Type">
							<ItemStyle Width="50px" Font-Size="18px"></ItemStyle>
							<ItemTemplate>
								<%# Container.DataItem("type") %>
							</ItemTemplate>
						</asp:TemplateColumn>
						<asp:TemplateColumn SortExpression="folderlocation" HeaderText="Folder location">
							<ItemStyle Font-Size="18px"></ItemStyle>
							<ItemTemplate>
								<%# Container.DataItem("folderlocation") %>
							</ItemTemplate>
							<EditItemTemplate>
								<asp:TextBox Width="100px" Text='<%# Container.DataItem("folderlocation") %>' id="txtpath" runat=server /><br>
							</EditItemTemplate>
						</asp:TemplateColumn>
						<asp:TemplateColumn SortExpression="foldername" HeaderText="Folder name">
							<ItemStyle Font-Size="18px"></ItemStyle>
							<ItemTemplate>
								<%# Container.DataItem("foldername") %>
							</ItemTemplate>
							<EditItemTemplate>
								<asp:TextBox Width="60px" Text='<%# Container.DataItem("foldername") %>' id="txtpathnames" runat=server /><br>
							</EditItemTemplate>
						</asp:TemplateColumn>
						<asp:TemplateColumn SortExpression="description" HeaderText="Description">
							<ItemStyle Font-Size="18px"></ItemStyle>
							<ItemTemplate>
								<%# Container.DataItem("description") %>
							</ItemTemplate>
							<EditItemTemplate>
								<asp:TextBox Width="60px" Text='<%# Container.DataItem("description") %>' id="txtdescription" runat=server /><br>
							</EditItemTemplate>
						</asp:TemplateColumn>
						<asp:TemplateColumn SortExpression="quota" HeaderText="Disk quota">
							<ItemStyle Font-Size="18px"></ItemStyle>
							<ItemTemplate>
								<%# Container.DataItem("quota") %>
							</ItemTemplate>
							<EditItemTemplate>
								<asp:TextBox Width="60px" Text='<%# Container.DataItem("quota") %>' id="txtquota" runat=server /><br>
							</EditItemTemplate>
						</asp:TemplateColumn>
						<asp:TemplateColumn SortExpression="modify" HeaderText="Can Modify">
							<ItemStyle Font-Size="18px"></ItemStyle>
							<ItemTemplate>
								<%# Container.DataItem("modify") %>
							</ItemTemplate>
							<EditItemTemplate>
								<asp:TextBox Width="40px" Text='<%# Container.DataItem("modify") %>' id="txtmodify" runat=server /><br>
							</EditItemTemplate>
						</asp:TemplateColumn>
						<asp:TemplateColumn SortExpression="upload" HeaderText="Can Upload">
							<ItemStyle Font-Size="18px"></ItemStyle>
							<ItemTemplate>
								<%# Container.DataItem("upload") %>
							</ItemTemplate>
							<EditItemTemplate>
								<asp:TextBox Width="40px" Text='<%# Container.DataItem("upload") %>' id="txtupload" runat=server /><br>
							</EditItemTemplate>
						</asp:TemplateColumn>
						<asp:TemplateColumn SortExpression="zip" HeaderText="Can Zip">
							<ItemStyle Font-Size="18px"></ItemStyle>
							<ItemTemplate>
								<%# Container.DataItem("zip") %>
							</ItemTemplate>
							<EditItemTemplate>
								<asp:TextBox Width="40px" Text='<%# Container.DataItem("zip") %>' id="txtzip" runat=server /><br>
							</EditItemTemplate>
						</asp:TemplateColumn>
						<asp:TemplateColumn SortExpression="unzip" HeaderText="Can Unzip">
							<ItemStyle Font-Size="18px"></ItemStyle>
							<ItemTemplate>
								<%# Container.DataItem("unzip") %>
							</ItemTemplate>
							<EditItemTemplate>
								<asp:TextBox Width="40px" Text='<%# Container.DataItem("unzip") %>' id="txtunzip" runat=server /><br>
							</EditItemTemplate>
						</asp:TemplateColumn>
						<asp:TemplateColumn SortExpression="setattrib" HeaderText="Can Set attributes">
							<ItemStyle Font-Size="18px"></ItemStyle>
							<ItemTemplate>
								<%# Container.DataItem("setattrib") %>
							</ItemTemplate>
							<EditItemTemplate>
								<asp:TextBox Width="40px" Text='<%# Container.DataItem("setattrib") %>' id="txtsetattrib" runat=server /><br>
							</EditItemTemplate>
						</asp:TemplateColumn>
						<asp:TemplateColumn SortExpression="maxfilesize" HeaderText="Max&nbsp;size&nbsp;of uploading&nbsp;file">
							<ItemStyle Font-Size="18px"></ItemStyle>
							<ItemTemplate>
								<%# Container.DataItem("maxfilesize") %>
							</ItemTemplate>
							<EditItemTemplate>
								<asp:TextBox Width="60px" Text='<%# Container.DataItem("maxfilesize") %>' id="txtmaxfilesize" runat=server /><br>
							</EditItemTemplate>
						</asp:TemplateColumn>
						<asp:TemplateColumn SortExpression="unuploaded" HeaderText="Prohibit extensions">
							<ItemStyle Font-Size="18px"></ItemStyle>
							<ItemTemplate>
								<%# Container.DataItem("unuploaded") %>
							</ItemTemplate>
							<EditItemTemplate>
								<asp:TextBox Width="40px" Text='<%# Container.DataItem("unuploaded") %>' id="txtunuploaded" runat=server /><br>
							</EditItemTemplate>
						</asp:TemplateColumn>
						<asp:TemplateColumn SortExpression="properties" HeaderText="Properties">
							<ItemStyle Font-Size="18px"></ItemStyle>
							<ItemTemplate>
								<%# Container.DataItem("properties") %>
							</ItemTemplate>
							<EditItemTemplate>
								<asp:TextBox Width="100px" Text='<%# Container.DataItem("properties") %>' id="txtproperties" runat=server /><br>
							</EditItemTemplate>
						</asp:TemplateColumn>
						<asp:EditCommandColumn ButtonType="PushButton" UpdateText="Update" CancelText="Cancel" EditText="Edit"></asp:EditCommandColumn>
						<asp:TemplateColumn>
							<ItemTemplate>
								<asp:Button CommandName="Delete" Runat="server" id="butDelete" Text="Delete record!" />
							</ItemTemplate>
						</asp:TemplateColumn>
					</Columns>
					<PagerStyle Font-Size="18px" Font-Bold="True" ForeColor="Black" Mode="NumericPages"></PagerStyle>
				</asp:datagrid><br>
				<div id="ShowPaths" runat="server">
					<script language="JavaScript">
					function show_folders()
					{
						var mywidth=400
						var myheight=150	
						var newwindow=window.open('Default.aspx?ShowFolders=yes&user='+document.getElementById('InputUserName').value, 'newwin','menubar=no, status=no, resizable=no, scrollbars=yes, toolbar=no, location=no, fullscreen=no, width=' + mywidth + ' , height=' + myheight + ', left=' + (screen.width-mywidth)/2 + ', top=' + (screen.height-myheight)/2);
						newwindow.focus();	
					}
					</script>
					<FONT size="4"><B>TEST:</B></FONT> Show folders for user: <input id="InputUserName" onfocus="javascript: this.value=''" type="text" value="enter user name here"
						width="150">&nbsp;<input id="btnShowPaths" onclick="javascript: show_folders()" type="button" value="Show">&nbsp;&nbsp;<IMG class="HELP" id="Img11" onclick="javascript: var newwindow=window.open('usermanagerhelp.htm?#showfolders', 'newwin','menubar=yes, status=yes, resizable=yes, scrollbars=yes, toolbar=yes, location=yes, fullscreen=no, width=600 , height=400, left=50, top=50');&#9;newwindow.focus();"
						height="16" alt="Help" src="images/hlp.gif" width="16" border="0" runat="server">
				</div>
				<BR>
				Comment: Database stored in
				<asp:label id="shownFOLDERSINFOFILE" 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" type="text" name="name" runat="server"></td>
					</tr>
					<tr>
						<td>Password:</td>
						<td><input id="inputadminpass" type="password" name="password" runat="server"></td>
					</tr>
				</table>
				<br>
				<asp:button id="sendnamepass" onclick="CheckAdminNamepass" runat="server" text="submit"></asp:button><br>
				<br>
				<br>
			</div>
		</form>
	</body>
</HTML>
