<html>
<head>{theme_css}<title>{catname}</title></head>
<body>
<form method="POST">
<input type="hidden" name="inputcatid" value="{cat_id}">
<input type="hidden" name="inputparentold" value="{old_parent}">
<table align="center" border ="0" width="80%" cellpadding="5" cellspacing="0">
	<tr>
		<td align="center" colspan="2"><u><b>{add_edit}</b></u></td>
	</tr>
	<tr>
		<td align="center" colspan="2"><font size="2" color="#FF0000"><b>&nbsp;{message}</b></font></td>
	</tr>
	<tr>
		<td colspan="2"><b><u>{lang_basic}:</u></b></td>
	</tr>
	<tr>
		<td>{lang_catname}:</td>
		<td><input type="text" name="inputcatname" value="{catname}"></td>
	</tr>
	<tr>
		<td>{lang_catsort}:</td>
		<td><input type="text" name="inputsortorder" value="{sort_order}"></td>
	</tr>
	<tr>
		<td>{lang_catparent}:</td>
		<td>{parent_dropdown}</td>
	</tr>
	<tr>
		<td>{lang_catdesc}:</td>
		<td><textarea ROWS="3" COLS="50" name="inputcatdesc">{catdesc}</textarea></td>
	</tr>	
	<tr>
		<td>{lang_state}:</td>
		<td><select name="inputstate">{stateselect}</select></td>
	</tr>
	<tr>
		<td colspan="2"><input name="inputgetparentpermissions" type="checkbox">{lang_getparentpermissions}</td>
	</tr>
	<tr>
		<td colspan="2"><input name="inputapplypermissionstosubs" type="checkbox">{lang_applypermissionstosubs}</td>
	</tr>
	<tr>
		<td colspan="2"><b><u>{lang_groupaccess}</u></b></td>
	</tr>
	<tr>
		<td colspan="2">
			<table align="center" border="0" width="80%" cellpadding="2" cellspacing="2">
				<tr>
					<td align="center" width="33%"><u>{lang_groupname}</u></td>
					<td align="center" width="33%"><u>{lang_readperm}</u></td>
					<td align="center" width="33%"><u>{lang_writeperm}</u><br>({lang_implies})</td>
				</tr>
				<!-- BEGIN GroupBlock -->
				<tr>
					<td align="center" bgcolor="dddddd" width="33%">{groupname}</td>
 					<td align="center" bgcolor="dddddd" width="33%"><input type="checkbox" {checkedgroupread} name="inputgroupaccessread[i{group_id}][read]" value="checked"></td>
					<td align="center" bgcolor="dddddd" width="33%"><input type="checkbox" {checkedgroupwrite} name="inputgroupaccesswrite[i{group_id}][write]" value="checked"></td>
				</tr>
				<!-- END GroupBlock -->
			</table>
		</td>
	</tr>
	<tr>
		<td colspan="2"><b><u>{lang_useraccess}</u></b></td>
	</tr>
		<td colspan="2">
			<table align="center" border="0" width="80%" cellpadding="2" cellspacing="2">
				<tr>
					<td align="center" width="33%"><u>{lang_username}</u></td>
					<td align="center" width="33%"><u>{lang_readperm}</u></td>
					<td align="center" width="33%"><u>{lang_writeperm}</u><br>({lang_implies})</td>
				</tr>
				<!-- BEGIN UserBlock -->
				<tr>
					<td bgcolor="dddddd" align="center">{username}</td>
					<td bgcolor="dddddd" align="center"><input type="checkbox" {checkeduserread} name="inputindividualaccessread[i{user_id}][read]" value="checked"></td>
					<td bgcolor="dddddd" align="center"><input type="checkbox" {checkeduserwrite} name="inputindividualaccesswrite[i{user_id}][write]" value="checked"></td>
				</tr>
				<!-- END UserBlock -->
			</table>
		</td>
	</tr>
	<tr>
		<td colspan="2" align="center">
			<input type="reset" name="reset" value="{lang_reset}">
 			<input type="submit" name="btnSave" value="{lang_save}"> {savelang}
			<input type="reset" onclick="opener.location.reload();self.close()" value="{lang_done}"  />
		</td>
	</tr>
</table>
</form>
</body>
</html>