<!--<?php
print <<<EOT
-->
<script type="text/javascript">
var moveC = {
	doChange : function(optionid,targetid){
		ajax.send('{$_viewer->baseUrl}&action=linkchild&categoryid='+optionid,'',function(){
			var request = ajax.request.responseText;
			if(!request) return false;
			getObj(targetid).outerHTML = '<select name="'+targetid+'" id="'+targetid+'">'+request+'</select>';
		});
	}
};
</script>
<form action="{$_viewer->baseUrl}" method="post" onsubmit="closep();return true;">
<input type="hidden" name="step" value="2" />
<div style="width:500px;">
<div class="h1">分类店铺转移</div>
<div class="admin_table">
<table width="100%">
	<tr class="tr1 vt">
		<td class="td1">原始分类</td>
		<td class="td2">
			<select class="mr5" name="source" onchange="moveC.doChange(this.options[this.options.selectedIndex].value,'sourcechild');">{$_viewer->sourceOption}</select>
			<select name="sourcechild" id="sourcechild">{$_viewer->sorcechildOption}</select>
		</td>
	</tr>
	<tr class="tr1 vt">
		<td class="td1">目标分类</td>
		<td class="td2">
			<select class="mr5" name="target" onchange="moveC.doChange(this.options[this.options.selectedIndex].value,'targetchild');">{$_viewer->targetOption}</select>
			<select name="targetchild" id="targetchild">{$_viewer->targetchildOption}</select>
		</td>
	</tr>
</table>
</div>
<div class="tac p10"><span class="btn2"><span><button type="submit">确定</button></span></span><span class="bt2"><span><button type="button" onclick="closep();">取消</button></span></span></div>
</div>
</form>
<!--
EOT;
?>
