<html>
<head>
	<link rel="StyleSheet" href="||nwimg||/skin2.css" type="text/css">
	<script type="text/javascript" src="||nwimg||/script_cmd.js"></script>

	||include||css_blue.tpl||
	||include||color.dat||
</head>

<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" onLoad="list_title('||lang_str||Folder Share||');" >

<br>
<center>

<form name="aclform" action="||action||" method="POST">
	<input type="hidden" name="utoken" value="||utoken||">
	<input type="hidden" name="cmd" value="fld_add_acl_adv">
	<input type="hidden" name="acl_rights" value="lrs">
	<input type="hidden" name="page" value="folders_acl_adv">

<table border="0" cellpadding="2" cellspacing="0" bgcolor="#FFFFFF">
<tr>	<td>
	<table border="0" cellpadding="1" cellspacing="1">
	<tr>	<td align="right"><b>||lang_str||Folder selected to share||:</b></td>
		<td>	<select name="folder" onChange="folder_acl_change()">
			||begin_fld_short||
				||ifndef||fld_no_select||
				<option ||ifequal||fld_name||folder||selected||endif||>||fld_name||</option>
				||endif||
			||end_fld_short||
			</select>
		</td>
	</tr>
||ifdef||myacl_admin||
	<tr>	<td align="right"><b>||lang_str||Share folder with this user||:</b></td>
		<td><input type="Text" name="acl_name" size="15"> <input type="Submit" class="button" name="fld_add_acl" value="||lang_str||Add User||"></td>
	</tr>
||endif||
	</table>			
	</td>
</tr>
<tr>	<td>
	<table border="0" cellpadding="0" cellspacing="0">
	<tr>	<td valign="top" align="center">
		<table border="1" cellpadding="2" cellspacing="0" bgcolor="#FFFFFF">
		<tr>
		<td valign="top">
			<table border="0" cellpadding="2" cellspacing="0" bgcolor="#FFFFFF">
			<tr bgcolor="||color_menu||">
				<td>&nbsp;</td>
				<td width="150">Name:</td>
				<td><img src="||nwimg||/acl_lookup.gif"></td>
				<td><img src="||nwimg||/acl_read.gif"></td>
			<!--	<td><img src="||nwimg||/acl_seen.gif"></td> -->
				<td><img src="||nwimg||/acl_write.gif"></td>
				<td><img src="||nwimg||/acl_add.gif"></td>
			<!--	<td><img src="||nwimg||/acl_post.gif"></td> -->
				<td><img src="||nwimg||/acl_create.gif"></td>
				<td><img src="||nwimg||/acl_delete.gif"></td>
			<!--	<td><img src="||nwimg||/acl_admin.gif"></td> -->
			</tr>

			<tr bgcolor="||color_shade||">
				<td>&nbsp;</td>
				<td><b>Your Access</b></td>
				<td><input class="clear" type="checkbox" disabled ||ifdef||myacl_lookup||checked||endif||></td>
				<td><input class="clear" type="checkbox" disabled ||ifdef||myacl_read||checked||endif||></td>
			<!--	<td><input class="clear" type="checkbox" disabled ||ifdef||myacl_seen||checked||endif||></td> -->
				<td><input class="clear" type="checkbox" disabled ||ifdef||myacl_write||checked||endif||></td>
				<td><input class="clear" type="checkbox" disabled ||ifdef||myacl_add||checked||endif||></td>
			<!--	<td><input class="clear" type="checkbox" disabled ||ifdef||myacl_post||checked||endif||></td> -->
				<td><input class="clear" type="checkbox" disabled ||ifdef||myacl_create||checked||endif||></td>
				<td><input class="clear" type="checkbox" disabled ||ifdef||myacl_delete||checked||endif||></td>
			<!--	<td><input class="clear" type="checkbox" disabled ||ifdef||myacl_admin||checked||endif||></td> -->
			</tr>

||ifndef||myacl_admin||			
			<tr bgcolor="||color_menu||">
				<td colspan="10"><b>Sorry, you do not have permission to share this folder</b></td>
			</tr>			
||else||

		||begin_acl||
			||ifequal||color||1||
				<tr bgcolor="||color_shade||">
				||define||color||0||
			||else||
				<tr>
				||define||color||1||
			||endif||
				<input type="hidden" name="||count||" value="||acl_name||">
				||ifdef||acl_seen||	<input type="hidden" name="acl_seen_||count||" value="true">||endif||
				||ifdef||acl_post||	<input type="hidden" name="acl_post_||count||" value="true">||endif||
				||ifdef||acl_admin||	<input type="hidden" name="acl_admin_||count||" value="true">||endif||
				<td><a href="javascript:folder_acl_delete('||acl_name||')"<img border="0" src="||nwimg||/msg_delete.gif"></a></td>
				<td>||acl_name||</td>
				<td><input class="clear" type="checkbox" name="acl_lookup_||count||" value="true" ||ifdef||acl_lookup||checked||endif|| ||ifdef||acl_lookup_off||disabled||endif||></td>
				<td><input class="clear" type="checkbox" name="acl_read_||count||" value="true" ||ifdef||acl_read||checked||endif|| ||ifdef||acl_read_off||disabled||endif||></td>
			<!--	<td><input class="clear" type="checkbox" name="acl_seen_||count||" value="true" ||ifdef||acl_seen||checked||endif|| ||ifdef||acl_seen_off||disabled||endif||></td> -->
				<td><input class="clear" type="checkbox" name="acl_write_||count||" value="true" ||ifdef||acl_write||checked||endif|| ||ifdef||acl_write_off||disabled||endif||></td>
				<td><input class="clear" type="checkbox" name="acl_add_||count||" value="true" ||ifdef||acl_add||checked||endif|| ||ifdef||acl_add_off||disabled||endif||></td>
			<!--	<td><input class="clear" type="checkbox" name="acl_post_||count||" value="true" ||ifdef||acl_post||checked||endif|| ||ifdef||acl_post_off||disabled||endif||></td> -->
				<td><input class="clear" type="checkbox" name="acl_create_||count||" value="true" ||ifdef||acl_create||checked||endif|| ||ifdef||acl_create_off||disabled||endif||></td>
				<td><input class="clear" type="checkbox" name="acl_delete_||count||" value="true" ||ifdef||acl_delete||checked||endif|| ||ifdef||acl_delete_off||disabled||endif||></td>
			<!--	<td><input class="clear" type="checkbox" name="acl_admin_||count||" value="true" ||ifdef||acl_admin||checked||endif|| ||ifdef||acl_admin_off||disabled||endif||></td> -->
			</tr>
		||end_acl||
			<tr>	<td colspan="10" align="right">
					<input type="button" class="button" onClick="folder_acl_update()" name="fld_update_acl" value="||lang_str||Save||">
				</td>
			</tr>
||endif||
			</table>
		</td></tr>		
		</table>
		<img src="||nwimg||/space.gif" width="1" height="4"><br>
		<input type="button" class="button" onClick="folder_acl_basic()" value="||lang_str||Basic||"></td>

		<td>&nbsp;</td>

		<td valign="top">
		<table border="1" cellpadding="2" cellspacing="0" bgcolor="#FFFFFF">
		<tr>	<td valign="top">
			<table border="0" cellpadding="2" cellspacing="0" bgcolor="#FFFFFF">
			<tr>	<td colspan="2" align="center"><b>Key</b></td></tr>

			<tr>	<td><img src="||nwimg||/acl_lookup.gif"></td>
				<td>Folder is visible</td>
			</tr>
			<tr>	<td><img src="||nwimg||/acl_read.gif"></td>
				<td>Emails can be read</td>
			</tr>
<!--			<tr>	<td><img src="||nwimg||/acl_seen.gif"></td>
				<td>Read/Unread flags used.</td>
			</tr>
-->			<tr>	<td><img src="||nwimg||/acl_write.gif"></td>
				<td>Email Flags can be set</td>
			</tr>
			<tr>	<td><img src="||nwimg||/acl_add.gif"></td>
				<td>Write access to folder</td>
			</tr>
<!--			<tr>	<td><img src="||nwimg||/acl_post.gif"></td>
				<td>Uploaded emails sent to admin</td>
			</tr>
-->
			<tr>	<td><img src="||nwimg||/acl_create.gif"></td>
				<td>Allow to create sub folders</td>
			</tr>
			<tr>	<td><img src="||nwimg||/acl_delete.gif"></td>
				<td>Able to delete emails</td>
			</tr>
<!--			<tr>	<td><img src="||nwimg||/acl_admin.gif"></td>
				<td>Admin</td>
			</tr>
-->
			</table>
			</td>
		</tr>
		</table></td>
	</tr>
	</table></td>
</tr>
</table>

</form>


</center>

||include||message_popup.tpl||
</body>
</html>
