<!--#include file="../conn.asp"-->
<!-- #include file="check_master.asp" -->
<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: #f7f7f7;
}
.STYLE1 {color: #FF0000}
.STYLE2 {color: #000000}
-->
</style></HEAD>
<BODY topmargin="0">
<table width="96%" align="center">
  <tr><td height="35" valign="bottom"><div align="center"><strong>静态贴子重新生成</strong></div></td>
</tr></table>

<table width="96%" align="center">
  <tr><td width=90% >
<form action=ftbbshtm.asp method="post" target="main">
  <p><b>请输入需要生成帖子的条件 (注意: 如果你用的是虚拟主机，以下大批量操作建议在本地进行，操作完成后上传)</b><br>
      <br>
      <strong>按主题贴ID号重新生成静态页</strong>:<br>
      <br>
    (输入说明: ID号为主题贴的ID数字)<br>
    请输入主题贴的<span class="STYLE1">ID</span>号
    <input name=id type=text id="id" size=15>
    <label>
    <!--<input name="poll" type="radio" value="N" checked>
    普通主题贴
    <input type="radio" name="poll" value="Y">
    投票主题贴-->
    </label>
    <input type=submit value="重新生成" <%if instr(session("admin_qs"),1)<=0 then%>disabled<%end if%>>
	<br>
  </p>
  </form>
<br>
<form action=pagetohtm.asp method="post" target="main">
        <strong>按贴子文件名重新生成静态页:</strong><br>
<br>
        (输入格式为:<span class="STYLE2">贴子的文件名</span>如:342.htm,342_2.htm)<br>
请输入需要生成帖子的<strong>文件名</strong> 
<input name=fname type=text id="fname" size=15>
<!--<input name="poll" type="radio" value="N" checked>
普通主题贴
<input type="radio" name="poll" value="Y">
投票主题贴-->
<input type=submit value="重新生成" id=submit1 name=submit1 <%if instr(session("admin_qs"),1)<=0 then%>disabled<%end if%>>
</form>
<br>
<%
sql="select BBS_ID,BBS_Cate_ID,BBS_Cate_PID,BBS_Cate_Name from BBS_Cate where BBS_Cate_PID='0' order by bbs_id asc"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,3,1
%>
<form action=catetohtm.asp method="post" target="main">
<strong>按论坛版块重新生成静态页(慎用):</strong><br>
<br>
        (这里是按论坛的<font color="#FF0000">一级类别</font>重新生成的贴子)
<select name="boardid" id="boardid">
<%
do while not rs.eof
%>
          <option value="<%=rs("BBS_Cate_ID")%>"><%=rs("BBS_Cate_Name")%></option>
<%
rs.movenext
loop
rs.close
closedb
%>
        </select>
        <input type=submit value="重新生成" id=submit1 name=submit1 <%if instr(session("admin_qs"),1)<=0 then%>disabled<%end if%>>
</form>
<br>
<form action=between.asp method="post" target="main">
        <strong>按论坛ID范围重新生成静态页:</strong><br><br>
        (输入内容说明:这里输入的是<font color="#FF0000">论坛ID范围</font>如:1-100)<br>
        请输入需要生成帖子的<font color="#FF0000">ID范围</font>:生成 
        <input name=a type=text id="a" size=10>
        -
        <input name="b" type="text" id="b" size="10">
        <input type=submit value="重新生成" id=submit1 name=submit1 <%if instr(session("admin_qs"),1)<=0 then%>disabled<%end if%>>
</form>
<br>
<form action="datetohtm.asp" method="post" target="main">
        <strong>按论坛时间范围重新生成静态页:</strong><br>
        <br>
        (输入内容说明:这里输入的是<font color="#FF0000">论坛时间范围</font>如:2007-1-1到2007-1-10)<br>
        按 
        <select name="bbstype" id="bbstype">
          <option value="dateh" selected>发贴</option>
          <option value="redate">回贴</option>
        </select>
        时间在
<input name ="Today" type=text id="Today" size=10 onclick="showcalendar(this,this)" style="cursor:hand" readonly>
        -
        <input name ="Nextday" type="text" id="Nextday" size="10" onclick="showcalendar(this,this)" style="cursor:hand" readonly>
        范围的贴子 
        <input type=submit value="重新生成" id=submit1 name=submit1 <%if instr(session("admin_qs"),1)<=0 then%>disabled<%end if%>>
</form>
</td>
</tr>
<tr>
<td>
</td>
</tr>
</table>
<script>
function showcalendar(obj)
{
  dv=window.showModalDialog("ftcalendar.htm","44","center:1;help:no;status:no;dialogHeight:246px;dialogWidth:216px;scroll:no")
  if (dv) {if (dv=="null") obj.value='';else obj.value=dv;}
}
</script>
</body>
</html>