<!-- #include file="../admin/check_master.asp" -->
<!-- #include file="../inc/conn.asp" -->
<%
if request("act")="y" then
   boardid1=request("boardid1")
   boardid2=request("boardid2")
   boardid3=request("boardid3")
   boardid4=request("boardid4")
   if InStr(boardid2,boardid1)<=0 or InStr(boardid4,boardid3)<=0 then
      response.write "错误:一级类别与二级类别不对应"
	  response.end
   end if
   strsql="update bbstitle set BoardID_1='"&boardid3&"',BoardID_2='"&boardid4&"',deleted=8 where BoardID_1='"&boardid1&"' and BoardID_2='"&boardid2&"'"
   conn.execute(strsql)
   strsql="update bbsmenu set BoardID_1='"&boardid3&"',BoardID_2='"&boardid4&"' where BoardID_1='"&boardid1&"' and BoardID_2='"&boardid2&"'"
   conn.execute(strsql)
   conn.close
   msg="类别转换成功,但你必须重新生成静态页.点击这重新生成刚才转换的贴子"
end if
%>
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../css/xmwuye.css" type=text/css rel=stylesheet>
<TITLE>静态生成</TITLE>
<base target="right">
<style type="text/css">
<!--
body {
	background-color: #d6dff7;
}
.STYLE1 {color: #FF0000}
-->
</style>
</HEAD>
<BODY topmargin="0">
<table width="98%">
<tr><td height="35" valign="bottom"><div align="center"><strong>贴子类别转换</strong>(不能转换投票贴)</div></td>
</tr></table>

<table width="98%" align="center">
<tr><td width=90% >
<form action="" method="post" target="main">
  <p><b>请在下面输入需要转换的条件 (此操作主要是实现贴子的合并或转换功能)</b><br>
    <br>
      <br>
    (<span class="STYLE1">输入说明: 一级类别是指论坛类别中的主论坛如A_1,A_2等二级类别则是指相应的分论坛如:A_1_1,A_1_2</span>)<br>
    将
    <input name=boardid1 type=text id="boardid1" value="一级类别" size=12>
    的
    <input name=boardid2 type=text id="boardid2" value="二级类别" size=12>
    <label></label>
    转换到
    <input name=boardid3 type=text id="boardid3" value="转到的一级类别" size=16>
    的
    <input name=boardid4 type=text id="boardid4" value="转到的二级类别" size=16>
    <input name="act" type="hidden" id="act" value="y">
    <input type=submit value="开始转换">
	<br>
  </p>
  </form>
</td>
</tr>
<tr><td>

</td></tr>
</table>
<table width="95%" height="60" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><div align="center"><a href="btob.asp" target="main"><font color=red><%=msg%></font></a></div></td>
  </tr>
</table>
