<!-- start module contents -->
<{if $mod_config.show_breadcrumbs}>
<div class="d3f_breadcrumbs">
	<a href="<{$mod_url}>/index.php"><{$smarty.const._MD_D3FORUM_TOP}></a>
	&nbsp;&gt;&nbsp;
	<a href="<{$mod_url}>/index.php?cat_id=<{$category.id}>"><{$category.title}></a> &nbsp;&gt;&nbsp;
	<a href="<{$mod_url}>/index.php?forum_id=<{$forum.id}>"><{$forum.title}></a>&nbsp;&gt;&nbsp;
	<{if $topic.id}><a href="<{$mod_url}>/index.php?topic_id=<{$topic.id}>"><{$topic.title}></a>&nbsp;&gt;&nbsp;<{/if}>
	<{$smarty.const._MD_D3FORUM_TOPICMANAGER}>
</div>
<{/if}>

<h1 class="d3f_title"><{$smarty.const._MD_D3FORUM_TOPICMANAGER}></h1>

<p class="targettopic"><{$category.title}> - <{$forum.title}> - <{$topic.title}></p>

<form name="topicmanager_update" id="topicmanager_update" action="<{$mod_url}>/index.php?page=topicmanager&amp;topic_id=<{$topic.id}>" method="post">

	<table class="outer d3f_form_table">
	<tr style="display:none;">
		<td><{$gticket_hidden}></td>
	</tr>
	<tr>
		<td class="head"><label for="topic_title"><{$smarty.const._MD_D3FORUM_TOPICTITLE}></label></td>
		<td class="odd"><input type="text" name="topic_title" id="topic_title" size="50" value="<{$topic.title4edit}>" /></td>
	</tr>
	<tr>
		<td class="head"><label for="forum_id"><{$smarty.const._MD_D3FORUM_FORUM}></label></td>
		<td class="odd"><select name="forum_id" id="forum_id"><{$forum_jumpbox_options}></select></td>
	</tr>

	<{if $forum.external_link_format}>
	<tr>
		<td class="head"><label for="topic_external_link_id"><{$smarty.const._MD_D3FORUM_TOPICEXTERNALLINKID}></label></td>
		<td class="odd"><input type="text" name="topic_external_link_id" id="topic_external_link_id" size="20" value="<{$topic.external_link_id}>" /></td>
	</tr>
	<{/if}>

	<tr>
		<td class="head"><{$smarty.const._MD_D3FORUM_REPLIES}></td>
		<td class="odd"><{$topic.replies}></td>
	</tr>
	<tr>
		<td class="head"><{$smarty.const._MD_D3FORUM_VIEWS}></td>
		<td class="odd"><{$topic.views}></td>
	</tr>
	<tr>
		<td class="head"><{$smarty.const._MD_D3FORUM_FIRSTPOST}></td>
		<td class="odd"><{$topic.first_post_time_formatted}></td>
	</tr>
	<tr>
		<td class="head"><{$smarty.const._MD_D3FORUM_LASTPOST}></td>
		<td class="odd"><{$topic.last_post_time_formatted}></td>
	</tr>
	<tr>
		<td class="head"><label for="topic_sticky"><{$smarty.const._MD_D3FORUM_TH_STICKY}></label></td>
		<td class="odd"><input type="text" name="topic_sticky" id="topic_sticky" size="2" value="<{$topic.sticky}>" /></td>
	</tr>
	<tr>
		<td class="head"><label for="topic_locked"><{$smarty.const._MD_D3FORUM_TH_LOCK}></label></td>
		<td class="odd"><input type="checkbox" name="topic_locked" id="topic_locked" value="1" <{if $topic.locked}>checked="checked"<{/if}> /></td>
	</tr>
	<tr>
		<td class="head"><label for="topic_invisible"><{$smarty.const._MD_D3FORUM_TH_INVISIBLE}></label></td>
		<td class="odd"><input type="checkbox" name="topic_invisible" id="topic_invisible" value="1" <{if $topic.invisible}>checked="checked"<{/if}> /></td>
	</tr>
	<tr>
		<td class="head"><label for="topic_solved"><{$smarty.const._MD_D3FORUM_TH_SOLVED}></label></td>
		<td class="odd"><input type="checkbox" name="topic_solved" id="topic_solved" value="1" <{if $topic.solved}>checked="checked"<{/if}> /></td>
	</tr>

</table>

<p class="d3f_submit">
	<input type="submit" name="topicman_post" value="<{$smarty.const._MD_D3FORUM_BTN_UPDATE}>" />
	<input type="submit" name="topicman_sync" value="<{$smarty.const._MD_D3FORUM_BTN_SYNCTHISTOPIC}>" />
</p>

</form>


<br />

<form name="topicmanager_export" id="topicmanager_export" action="<{$mod_url}>/index.php?page=topicmanager&amp;topic_id=<{$topic.id}>" class="outer head" method="post">

	<select name="export_mid" id="export_mid" onchange="d3forum_showhide_forum_select(this);"><{html_options options=$export_to_module_options}></select>

	<select name="export_forum_id[0]" id="export_forum_id_0">
		<option value="0">----</option>
	</select>
	<{foreach from=$export_to_forum_options key="ex_forum_id" item="ex_options"}>
		<select name="export_forum_id[<{$ex_forum_id}>]" id="export_forum_id_<{$ex_forum_id}>">
			<option value="0">----</option>
			<{$ex_options}>
		</select>
	<{/foreach}>

	<br />
	<input type="submit" name="topicman_export_move" value="<{$smarty.const._MD_D3FORUM_BTN_MOVETOPICTOOTHERFORUM}>" onclick="return confirm('<{$smarty.const._MD_D3FORUM_MSG_CONFIRMOK}>')" />
	<input type="submit" name="topicman_export_copy" value="<{$smarty.const._MD_D3FORUM_BTN_COPYTOPICTOOTHERFORUM}>" onclick="return confirm('<{$smarty.const._MD_D3FORUM_MSG_CONFIRMOK}>')" />
	<{$gticket_hidden}>

</form>

<script type="text/javascript">
<!--//
d3forum_showhide_forum_select( xoopsGetElementById("export_forum_id_0") ) ;

function d3forum_showhide_forum_select(select)
{
	selected_val = select.options[select.selectedIndex].value ;
	form = select.form ;
	for( i = 0 ; i < form.elements.length ; i ++ ) {
		if( form.elements[i].name.match(/export_forum_id/) ) {
			if( form.elements[i].id == "export_forum_id_" + selected_val ) {
				form.elements[i].style.display = "inline" ;
			} else {
				form.elements[i].style.display = "none" ;
			}
		}
	}
}
//-->
</script>

<!-- end module contents -->