<tmpl_include name="inc.head.tmpl">
<tmpl_include name="inc.titleBar.tmpl">
<script src="js/functions.js" type="text/javascript"></script>
<script src="js/adminSettings.js" type="text/javascript"></script>
<div id="content">
	<div id="upload">
		<div id="uploadLast"></div>
		<div id="uploadFirst">
			<span class="upload">

			</span>
		</div>
	</div>
	<div class="uploadClass">
		<form name="theForm" action="admin.php?op=updateControlSettings" method="post" onsubmit="return validateSettings('control')">
			<table id="settings">
				<tr>
					<td class="settingsTitle">
						<label for="transfer_customize_settings">Customize Transfer Settings</label>
					</td>
					<td class="settingsSetting" rowspan="2">
						<select name="transfer_customize_settings" id="transfer_customize_settings">
							<option value="2">All Users</option>
							<option value="1"
							<tmpl_if name="transfer_customize_settings" value="1">
								 selected
							</tmpl_if>
							>Only Admins</option>
							<option value="0"
							<tmpl_if name="transfer_customize_settings" value="0">
								 selected
							</tmpl_if>
							>Disabled</option>
						</select>
					</td>
				</tr>
				<tr>
					<td class="settingsText">
						Define who can customize transfer settings.
					</td>
				</tr>
				<tr>
					<td class="settingsTitle">
						<label for="transfer_profiles">Transfer Profiles</label>
					</td>
					<td class="settingsSetting" rowspan="2">
						<select name="transfer_profiles" id="transfer_profiles">
							<option value="3">All Users</option>
							<option value="2"
							<tmpl_if name="transfer_profiles" value="2">
								 selected
							</tmpl_if>
							>Only Predefined</option>
							<option value="1"
							<tmpl_if name="transfer_profiles" value="1">
								 selected
							</tmpl_if>
							>Only Admins</option>
							<option value="0"
							<tmpl_if name="transfer_profiles" value="0">
								 selected
							</tmpl_if>
							>Disabled</option>
						</select>
					</td>
				</tr>
				<tr>
					<td class="settingsText">
						Define who can use transfer profiles.
					</td>
				</tr>
				<tr>
					<td class="settingsTitle">
						<label for="enable_btclient_chooser">Enable Client Chooser</label>
					</td>
					<td class="settingsSetting" rowspan="2">
						<select name="enable_btclient_chooser" id="enable_btclient_chooser">
							<option value="1">True</option>
							<option value="0"
							<tmpl_if name="enable_btclient_chooser" value="0">
								 selected
							</tmpl_if>
							>False</option>
						</select>
					</td>
				</tr>
				<tr>
					<td class="settingsText">
						When enabled, allow users to choose which transfer client to use.
					</td>
				</tr>
				<tr>
					<td class="settingsTitle">
						<label for="showdirtree">Enable Save Path Chooser</label>
					</td>
					<td class="settingsSetting" rowspan="2">
						<select name="showdirtree" id="showdirtree">
							<option value="1">True</option>
							<option value="0"
							<tmpl_if name="showdirtree" value="0">
								 selected
							</tmpl_if>
							>False</option>
						</select>
					</td>
				</tr>
				<tr>
					<td class="settingsText">
						When enabled, displays a directory tree to allow users to save downloaded transfers to any existing folder under their home directory.
					</td>
				</tr>
				<tr>
					<td class="settingsTitle">
						<label for="maxdepth">Save Path Chooser Max Depth</label>
					</td>
					<td class="settingsSetting" rowspan="2">
					<input name="maxdepth" id="maxdepth" type="Text" maxlength="1" value="<tmpl_var name="maxdepth">" size="1">
					</td>
				</tr>
				<tr>
					<td class="settingsText">
						Set the maximum depth of subfolders to display in the save path chooser directory tree (set to '0' to display all subfolders).
					</td>
				</tr>
				<tr>
					<td class="settingsTitle">

					</td>
					<td class="settingsSetting">
					<input type="Submit" value="Update Settings">
					</td>
				</tr>
			</table>
		</form>
	</div>
	<div id="uploadBottom"></div>
	<div id="uploadBottomEnd"></div>
	<tmpl_include name="inc.subfoot.tmpl">
</div>
</body>
</html>