<tmpl_include name="inc.head.tmpl">
<tmpl_include name="inc.titleBar.tmpl">
<script src="js/functions.js" type="text/javascript"></script>
<script src="js/userSettings.js" type="text/javascript"></script>
<div id="content">
	<tmpl_if name="showIndex">
		<div id="upload">
			<div id="uploadLast"></div>
			<div id="uploadFirst">
				<span class="upload">
					Basic Settings
				</span>
			</div>
		</div>
		<div id="fileUpload" class="uploadClass">
			<form name="theForm" action="index.php?iid=profile&op=updateProfile" method="post" onsubmit="return validateProfile(0, '<tmpl_var name="_USERIDREQUIRED">', '<tmpl_var name="_PASSWORDLENGTH">', '<tmpl_var name="_PASSWORDNOTMATCH">', '<tmpl_var name="_PLEASECHECKFOLLOWING">')">
				<table id="settings">
					<tr>
						<td class="settingsTitle">
							<label for="user"><tmpl_var name="_USER"></label>
						</td>
						<td class="settingsSetting">
							<input readonly="true" id="user" type="Text" value="<tmpl_var name="user">" size="15">
						</td>
					</tr>
					<tr>
						<td class="settingsTitle">
							<label for="pass1"><tmpl_var name="_NEWPASSWORD"></label>
						</td>
						<td class="settingsSetting">
							<input name="pass1" id="pass1" type="Password" value="" size="15">
						</td>
					</tr>
					<tr>
						<td class="settingsTitle">
							<label for="pass2"><tmpl_var name="_CONFIRMPASSWORD"></label>
						</td>
						<td class="settingsSetting">
							<input name="pass2" id="pass2" type="Password" value="" size="15">
						</td>
					</tr>
					<tr>
						<td class="settingsTitle">
							<label for="theme"><tmpl_var name="_THEME"></label>
						</td>
						<td class="settingsSetting">
							<select name="theme" id="theme">
								<tmpl_loop name="theme_list">
									<option value="<tmpl_var name="arThemes2">" <tmpl_var name="selected">><tmpl_var name="arThemes"></option>
								</tmpl_loop>
								<optgroup label="Standard TF Themes" style="background-color: #00EC00">
									<tmpl_loop name="tfstandard_theme_list">
										<option value="<tmpl_var name="arThemes2">" <tmpl_var name="selected"> style="background-color: #FFFFFF"><tmpl_var name="arThemes"></option>
									</tmpl_loop>
								</optgroup>
							</select>
						</td>
					</tr>
					<tr>
						<td class="settingsTitle">
							<label for="language"><tmpl_var name="_LANGUAGE"></label>
						</td>
						<td class="settingsSetting">
							<select name="language" id="language">
								<tmpl_loop name="language_list">
									<option value="<tmpl_var name="arLanguage">" <tmpl_var name="selected">><tmpl_var name="language_file"></option>
								</tmpl_loop>
							</select>
						</td>
					</tr>
					<tr>
						<td class="settingsTitle">
							<label for="hideOffline"><tmpl_var name="_HIDEOFFLINEUSERS"></label>
						</td>
						<td class="settingsSetting">
							<input name="hideOffline" id="hideOffline" type="Checkbox" value="1" <tmpl_var name="hideChecked">>
						</td>
					</tr>
					<tr>
						<td class="settingsTitle">
						</td>
						<td class="settingsSetting">
							<input type="Submit" value="<tmpl_var name="_UPDATE">">
						</td>
					</tr>
				</table>
			</form>
		</div>
		<div id="uploadBottom"></div>
		<div id="uploadBottomEnd"></div>
		<tmpl_if name="enable_personal_settings" value="1">
			<div id="upload">
				<div id="uploadLast"></div>
				<div id="uploadFirst">
					<span class="upload">
						Personal Settings
					</span>
				</div>
			</div>
			<div id="fileUpload" class="uploadClass">
				<tmpl_include name="inc.personalSettingsForm.tmpl">
			</div>
			<div id="uploadBottom"></div>
			<div id="uploadBottomEnd"></div>
		</tmpl_if>
	</tmpl_if>
	<tmpl_if name="updateProfile">
		<div id="errorTitle"><tmpl_var name="_PROFILEUPDATEDFOR"> <tmpl_var name="user"></div>
		<div id="close">
			[<a id="closeLink" href="index.php?iid=profile">Return to Profile</a>]
		</div>
	</tmpl_if>
	<tmpl_if name="ShowCookies">
		<script LANGUAGE="JavaScript">
		<!-- Begin
		function popUp(name_file)
		{
			window.open (name_file,'help','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=800,height=600')
		}
		// End -->
		</script>
		<form action="index.php?iid=profile&op=<tmpl_var name="op">" method="post">
			<input type="hidden" name="cid" value="<tmpl_var name="cid">" />
			<div id="upload">
				<div id="uploadLast"></div>
				<div id="uploadFirst">
					<span class="upload">
						Cookie Management
					</span>
				</div>
			</div>
			<div id="fileUpload" class="uploadClass">
				<table id="settings">
					<tr>
						<td class="settingsTitle">
							<label for="host">Host</label>
						</td>
						<td class="settingsSetting" rowspan="2">
							<input type="Text" size="30" maxlength="255" name="host" id="host"<tmpl_var name="hostvalue">>
						</td>
					</tr>
					<tr>
						<td class="settingsText">
							www.host.com
						</td>
					</tr>
					<tr>
						<td class="settingsTitle">
							<label for="data">Data</label>
						</td>
						<td class="settingsSetting" rowspan="2">
							<input type="Text" size="30" maxlength="255" name="data" id="data"<tmpl_var name="datavalue">>
						</td>
					</tr>
					<tr>
						<td class="settingsText">
							uid=123456;pass=a1b2c3d4e5f6g7h8i9j1
						</td>
					</tr>
					<tr>
						<td class="settingsTitle">
						</td>
						<td class="settingsSetting">
							<input type="Submit" value="<tmpl_var name="add1">">
						</td>
					</tr>
				</table>
			</div>
			<div id="uploadBottom"></div>
			<div id="uploadBottomEnd"></div>
			<tmpl_if name="empty_cid">
				<div id="close">
					[<a id="closeLink" href="index.php?iid=profile&op=editCookies">back</a>]
				</div>
			<tmpl_else>
				<div id="upload">
					<div id="uploadLast"></div>
					<div id="uploadFirst">
						<span class="upload">
							Cookie Management
						</span>
					</div>
				</div>
				<div id="fileUpload" class="uploadClass">
					<table id="statusInfos">
						<tr>
							<td class="buttonLinks">
								<span id="newUser">Action</span>
							</td>
							<td class="buttonLinks">
								<span id="newUser">Host</span>
							</td>
							<td class="buttonLinks">
								<span id="newUser">Data</span>
							</td>
						</tr>
						<tmpl_if name="empty_dat">
							<tr>
								<td colspan="3">No cookie entries exist.</td>
							</tr>
						<tmpl_else>
							<tmpl_loop name="cookie_data">
								<tr>
									<td>
										<a href="index.php?iid=profile&op=deleteCookie&cid=<tmpl_var name="cid">"><img src="themes/default/images/delete_on.gif" title="<tmpl_var name="_DELETE"> <tmpl_var name="host">"></a>
										<a href="index.php?iid=profile&op=editCookies&cid=<tmpl_var name="cid">"><img src="themes/default/images/properties.png" title="<tmpl_var name="_EDIT"> " . <tmpl_var name="host">"></a>
									</td>
									<td><tmpl_var name="host"></td>
									<td><tmpl_var name="data"></td>
								</tr>
							</tmpl_loop>
						</tmpl_if>
					</table>
				</div>
				<div id="uploadBottom"></div>
				<div id="uploadBottomEnd"></div>
			</tmpl_if>
		</form>
		<div id="close">
			[<a id="closeLink" href="javascript:popUp('index.php?iid=cookiehelp')">How to get cookie information....</a>]
		</div>
		<div id="close">
			[<a id="closeLink" href="index.php?iid=profile">Return to Profile</a>]
		</div>
	</tmpl_if>
	<tmpl_if name="ShowProfiles">
		<script src="js/profile.js" type="text/javascript"></script>
			<form name="theForm" action="index.php?iid=profile&op=<tmpl_var name="op">" method="post" onsubmit="return validateProfileSettings()">
			<input type="hidden" name="pid" value="<tmpl_var name="pid">" />
			<div id="upload">
				<div id="uploadLast"></div>
				<div id="uploadFirst">
					<span class="upload">
						Transfer Profiles Management
					</span>
				</div>
			</div>
			<div id="fileUpload" class="uploadClass">
				<table id="settings">
					<tr>
						<td class="settingsTitle">
							<label for="name">Name</label>
						</td>
						<td class="settingsSetting">
							<input type="Text" size="30" maxlength="255" name="name" id="name" <tmpl_var name="name">>
						</td>
					</tr>
					<tmpl_if name="isAdmin">
						<tr>
							<td class="settingsTitle">
								<label for="public">Public Profile</label>
							</td>
							<td class="settingsSetting">
								<input name="public" id="public" type="Checkbox" value="1" <tmpl_var name="public">>
							</td>
						</tr>
					</tmpl_if>
					<tr>
						<td class="settingsTitle">
							<label for="rate">Max Upload Rate</label>
						</td>
						<td class="settingsSetting" rowspan="2">
							<input type="Text" size="5" maxlength="5" name="rate" id="rate" <tmpl_var name="rate">> kB/second
						</td>
					</tr>
					<tr>
						<td class="settingsText">
							(default: <tmpl_var name="default_rate">)
						</td>
					</tr>
					<tr>
						<td class="settingsTitle">
							<label for="drate">Max Download Rate</label>
						</td>
						<td class="settingsSetting" rowspan="2">
							<input type="Text" size="5" maxlength="5" name="drate" id="drate" <tmpl_var name="drate">> kB/second
						</td>
					</tr>
					<tr>
						<td class="settingsText">
							(default: <tmpl_var name="default_drate">)
						</td>
					</tr>
					<tr>
						<td class="settingsTitle">
							<label for="maxuploads">Max Upload Connections</label>
						</td>
						<td class="settingsSetting" rowspan="2">
							<input type="Text" size="5" maxlength="5" name="maxuploads" id="maxuploads" <tmpl_var name="maxuploads">>
						</td>
					</tr>
					<tr>
						<td class="settingsText">
							(default: <tmpl_var name="default_maxuploads">)
						</td>
					</tr>
					<tr>
						<td class="settingsTitle">
							<label for="maxcons">Max Cons</label>
						</td>
						<td class="settingsSetting" rowspan="2">
							<input type="Text" size="5" maxlength="5" name="maxcons" id="maxcons" <tmpl_var name="maxcons">>
						</td>
					</tr>
					<tr>
						<td class="settingsText">
							(default: <tmpl_var name="default_maxcons">)
						</td>
					</tr>
					<tr>
						<td class="settingsTitle">
							<label for="runtime">Completion Activity</label>
						</td>
						<td class="settingsSetting" rowspan="2">
							<select name="runtime" id="runtime">
								<option value="True">Die When Done</option>
								<option value="False"
								<tmpl_if name="runtime" value="False">
									 selected
								</tmpl_if>
								>Keep Seeding</option>
							</select>
						</td>
					</tr>
					<tr>
						<td class="settingsText">
							(default: <tmpl_if name="default_runtime" value="False">Keep Seeding<tmpl_else>Die When Done</tmpl_if>)
						</td>
					</tr>
					<tr>
						<td class="settingsTitle">
							<label for="sharekill">Percentage When Seeding should Stop</label>
						</td>
						<td class="settingsSetting" rowspan="2">
							<input type="Text" size="4" maxlength="4" name="sharekill" id="sharekill" <tmpl_var name="sharekill">>%
						</td>
					</tr>
					<tr>
						<td class="settingsText">
							(default: <tmpl_var name="default_sharekill">)
						</td>
					</tr>
					<tr>
						<td class="settingsTitle">
							<label for="rerequest">Rerequest Interval</label>
						</td>
						<td class="settingsSetting" rowspan="2">
							<input type="Text" size="5" maxlength="5" name="rerequest" id="rerequest" <tmpl_var name="rerequest">>
						</td>
					</tr>
					<tr>
						<td class="settingsText">
							(default: <tmpl_var name="default_rerequest">)
						</td>
					</tr>
					<tr>
						<td class="settingsTitle">
							<label for="superseeder">Superseeder</label>
						</td>
						<td class="settingsSetting" rowspan="2">
							<select name="superseeder" id="superseeder">
								<option value="1">true</option>
								<option value="0"
								<tmpl_if name="superseeder" value="0">
									selected
								</tmpl_if>
								>false</option>
							</select>
						</td>
					</tr>
					<tr>
						<td class="settingsText">
							(default: <tmpl_if name="default_superseeder" value="0">false<tmpl_else>true</tmpl_if>)
						</td>
					</tr>
					<tr>
						<td class="settingsTitle">
							<label for="minport">Min Port</label>
						</td>
						<td class="settingsSetting" rowspan="2">
							<input type="Text" size="5" maxlength="5" name="minport" id="minport" <tmpl_var name="minport">>
						</td>
					</tr>
					<tr>
						<td class="settingsText">
							(default: <tmpl_var name="default_minport">)
						</td>
					</tr>
					<tr>
						<td class="settingsTitle">
							<label for="maxport">Max Port</label>
						</td>
						<td class="settingsSetting" rowspan="2">
							<input type="Text" size="5" maxlength="5" name="maxport" id="maxport" <tmpl_var name="maxport">>
						</td>
					</tr>
					<tr>
						<td class="settingsText">
							(default: <tmpl_var name="default_maxport">)
						</td>
					</tr>
					<tr>
						<td class="settingsTitle">
						</td>
						<td class="settingsSetting">
							<input type="Submit" value="<tmpl_var name="add1">">
						</td>
					</tr>
				</table>
			</div>
			<div id="uploadBottom"></div>
			<div id="uploadBottomEnd"></div>
			<tmpl_if name="empty_pid">
				<div id="close">
					[<a id="closeLink" href="index.php?iid=profile&op=editCookies">back</a>]
				</div>
			<tmpl_else>
				<div id="upload">
					<div id="uploadLast"></div>
					<div id="uploadFirst">
						<span class="upload">
							 Transfer Profiles Management
						</span>
					</div>
				</div>
				<div id="fileUpload" class="uploadClass">
					<table id="statusInfos">
						<tr>
							<td class="buttonLinks">
								<span id="newUser">Action</span>
							</td>
							<td class="buttonLinks">
								<span id="newUser">Title</span>
							</td>
						</tr>
						<tmpl_if name="empty_dat">
							<tr>
								<td colspan="2">No profile entries exist.</td>
							</tr>
						<tmpl_else>
							<tmpl_loop name="profile_data">
								<tr>
									<td>
										<a href="index.php?iid=profile&op=deleteProfile&pid=<tmpl_var name="pid">"><img src="themes/default/images/delete_on.gif" width=16 height=16 border=0 title="<tmpl_var name="_DELETE"> <tmpl_var name="name">" align="absmiddle"></a>
										<a href="index.php?iid=profile&op=editProfiles&pid=<tmpl_var name="pid">"><img src="themes/default/images/properties.png" border=0 title="<tmpl_var name="_EDIT"> <tmpl_var name="name">" align="absmiddle"></a>
									</td>
									<td><tmpl_var name="name"></td>
								</tr>
							</tmpl_loop>
						</tmpl_if>
					</table>
				</div>
				<div id="uploadBottom"></div>
				<div id="uploadBottomEnd"></div>
			</tmpl_if>
		</form>
		<div id="close">
			[<a id="closeLink" href="index.php?iid=profile">Return to Profile</a>]
		</div>
	</tmpl_if>
	<tmpl_include name="inc.subfoot.tmpl">
</div>
<div id="stats">
	<tmpl_if name="showIndex">
		<div id="bandwidthTitle">
			<a class="mainMenu" href="javascript:slider('statsBandwidth','toggle')">Bandwidth</a>
		</div>
		<div id="statsBandwidth">
			<div id="statsBandwidthBars">
				<div id="statsUploadBar">
					<img src="themes/<tmpl_var name="theme">/pics/uploadBar.jpg" style="position: absolute; clip: rect(0px <tmpl_var name="user_percent">px 30px 0px);">
				</div>
			</div>
			<div class="serverStatsBottom">
				<span id="diskspace"><tmpl_var name="user_activity"> Uploads (<tmpl_var name="user_percent">%)</span>
			</div>
		</div>
		<div id="drivespaceTitle">
			<a class="mainMenu" href="javascript:slider('statsDrivespace','toggle')">Stats</a>
		</div>
		<div id="statsDrivespace">
			<div id="statsBandwidthBars">
				<span id="diskspace">
					<tmpl_var name="_JOINED">: <tmpl_var name="time_created1">
				</span>
				<span id="diskspace">
					<tmpl_var name="_TOTALPAGEVIEWS">: <tmpl_var name="hits">
				</span>
			</div>
			<div class="serverStatsBottom">
				<span id="diskspace"><tmpl_var name="_USERTYPE">: <tmpl_var name="user_type"></span>
			</div>
		</div>
		<div id="drivespaceTitle">
			<a class="mainMenu" href="dispatcher.php?action=cookieFlush&riid=profile" onclick="return confirm('Delete Auto-Login-Cookie ?')">Delete "Login" Cookie</a>
		</div>
		<tmpl_if name="enable_personal_settings" value="1">
			<div id="drivespaceTitle">
				<a class="mainMenu" href="index.php?iid=profile&op=resetSettingsUser" onclick="return confirm('Reset Personal Settings ?')">Reset Personal Sets</a>
			</div>
		</tmpl_if>
	</tmpl_if>
</div>
</body>
</html>