<tmpl_include name="inc.head.tmpl">
<tmpl_include name="inc.titleBar.tmpl">
<div id="content">
	<div id="upload">
		<div id="uploadLast"></div>
		<div id="uploadFirst">
			<span class="upload">
				Settings
			</span>
		</div>
	</div>
	<div class="uploadClass">
		<form name="theForm" action="admin.php?op=searchSettings" method="post">
			<table id="settings">
				<tr>
					<td class="settingsTitle">
						<label for="searchEngine">Select Search Engine</label>
					</td>
					<td class="settingsSetting">
						<select name="searchEngine" id="searchEngine" <tmpl_if name="autoSubmit">onchange="this.form.submit();"</tmpl_if> STYLE="width: 125px">
							<tmpl_loop name="Engine_List">
								<option <tmpl_if name="selected">selected</tmpl_if>><tmpl_var name="Engine"></option>
							</tmpl_loop>
						</select>
					</td>
				</tr>
			</table>
		</form>
	</div>
	<div id="uploadBottom"></div>
	<div id="uploadBottomEnd"></div>
	<tmpl_if name="is_file">
		<form name="theSearchEngineSettings" action="admin.php?op=updateSearchSettings" method="post">
			<div id="upload">
				<div id="uploadLast"></div>
				<div id="uploadFirst">
					<span class="upload">
						<tmpl_var name="mainTitle"> Search Settings
					</span>
				</div>
			</div>
			<div class="uploadClass">
				<input type="hidden" name="searchEngine" value="<tmpl_var name="searchEngine">">
				<table id="settings">
					<tr>
						<td class="settingsTitle">
							Search Engine URL
						</td>
						<td class="settingsSetting">
							<a id="closeLink" href="http://<tmpl_var name="mainURL">" target="_blank"><tmpl_var name="mainTitle"></a>
						</td>
					</tr>
					<tr>
						<td class="settingsTitle">
							Search Module Author
						</td>
						<td class="settingsSetting">
							<tmpl_var name="author">
						</td>
					</tr>
					<tr>
						<td class="settingsTitle">
							Version
						</td>
						<td class="settingsSetting">
							<tmpl_var name="version">
						</td>
					</tr>
					<tmpl_if name="update_pos">
						<tr>
							<td class="settingsTitle">
								Update Location
							</td>
							<td class="settingsSetting">
								<a id="closeLink" href="<tmpl_var name="updateURL">" target="_blank">Check for Update</a>
							</td>
						</tr>
					</tmpl_if>
					<tmpl_if name="cat_pos">
						<tr>
							<td class="settingsTitle">
								<label for="catsselect">Search Filter</label>
							</td>
							<td class="settingsSetting" rowspan="2">
								<select multiple name="<tmpl_var name="catFilterName">[]" id="catsselect" size="8" STYLE="width: 125px">
									<option value="">[NO FILTER]</option>
									<tmpl_loop name="cats">
										<option value="<tmpl_var name="mainId">"
										<tmpl_if name="in_array">
											 selected
										</tmpl_if>
										><tmpl_var name="mainName"></option>
									</tmpl_loop>
								</select>
							</td>
						</tr>
						<tr>
							<td class="settingsText">
								Select the items that you DO NOT want to show in the torrent search.
							</td>
						</tr>
					</tmpl_if>
					<tr>
						<td class="settingsTitle">
						</td>
						<td class="settingsSetting">
							<input type="Submit" value="Update Settings">
						</td>
					</tr>
				</table>
			</div>
			</form>
			<div id="uploadBottom"></div>
			<div id="uploadBottomEnd"></div>
		</form>
	</tmpl_if>
	<tmpl_include name="inc.subfoot.tmpl">
</div>
</body>
</html>