<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=$charset" />
<title>{lang qihoo_custom_topics} - powered by Discuz!</title>
<!--{if $allowcsscache}--><link rel="stylesheet" type="text/css" href="forumdata/cache/style_$styleid.css" /><!--{else}--><style type="text/css">{template css}</style><!--{/if}-->
</head>

<script type="text/javascript">
function checkall(form, prefix, checkall) {
	var checkall = checkall ? checkall : 'chkall';
	for(var i = 0; i < form.elements.length; i++) {
		var e = form.elements[i];
		if(e.name != checkall && (!prefix || (prefix && e.name.match(prefix)))) {
			e.checked = form.elements(checkall).checked;;
		}
	}
}
</script>

<form method="post" action="misc.php?action=customtopics">
<input type="hidden" name="formhash" value="{FORMHASH}">
<input type="hidden" name="keywordsubmit" value="yes">
<div class="spaceborder" style="width: {TABLEWIDTH}">
<table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="100%" align="center">
<tr align="center" class="header">
<td><input class="checkbox" type="checkbox" name="chkall" class="header" onclick="checkall(this.form, 'delete')">{lang delete_check}</td>
<td>{lang qihoo_custom_topics}</td>
</tr>

<!--{loop $customkwlist $vals}-->
	<tr align="center">
	<td class="altbg1" width="8%"><input class="checkbox" type="checkbox" name="delete[]" value="$vals[keyword]"></td>
	<td class="altbg2" width="16%">$vals[url]</a></td>
	</tr>
<!--{/loop}-->

<tr align="center">
<td class="altbg1" width="8%">{lang add_new}</td>
<td class="altbg2" width="16%"><input type="text" name="newkeyword" value="" size="25"></td>
</tr></table>
</table></div><br>

<div class="option"><div class="submitbutton"><input class="button" type="submit" name="keywordsubmit" value="{lang submit}">&nbsp;&nbsp;<input class="button" type="button" name="close" value="{lang close}" onClick="window.close()"></div></div>
</form>
{eval output();}