<%@ page contentType="text/html;charset=UTF-8" errorPage="../error.jsp"%>
<%@ page import="com.hongshee.ejforum.util.PageUtils"%>
<%@ page import="com.hongshee.ejforum.data.UserDAO.UserInfo"%>
<%
	UserInfo userinfo = PageUtils.getAdminUser(request, response);
	if (userinfo == null) return;
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../style/admin.css" type=text/css rel=stylesheet>
<SCRIPT src="../../js/common.js" type=text/javascript></SCRIPT>
<SCRIPT src="../js/admin.js" type=text/javascript></SCRIPT>
</HEAD>
<BODY topMargin=10>
<TABLE cellSpacing=6 cellPadding=2 width="100%" border=0>
  <TBODY>
  <TR>
    <TD>
      <TABLE class=guide cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD><A 
            onclick="parent.location='../index.htm'; return false;" 
            href="#">后台管理首页</A>&nbsp;&raquo;&nbsp;数据维护</TD></TR></TBODY></TABLE><BR>
	  <TABLE class=info_tb cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR class=header>
          <TD>
            <DIV style="FLOAT: left; MARGIN-LEFT: 0px; PADDING-TOP: 8px"><A 
            onclick="collapse_change('tip','../images')" href="#">技巧提示</A></DIV>
            <DIV style="FLOAT: right; PADDING-BOTTOM: 9px; MARGIN-RIGHT: 4px"><A 
            onclick="collapse_change('tip','../images')" href="#">
			<IMG id=menuimg_tip src="../images/menu_reduce.gif" border=0></A></DIV></TD></TR>
        <TBODY id=menu_tip>
        <TR>
          <TD>
            <UL>
              <LI><%= PageUtils.getString("manage_data_tip_1") %></LI>
              <LI><%= PageUtils.getString("manage_data_tip_2") %></LI>
              <LI><%= PageUtils.getString("manage_data_tip_3") %></LI>
			  </UL></TD></TR>
	  </TBODY></TABLE><BR>
      <FORM id="frm1" name="frm1" onSubmit="checkfields(this); return false;" action="../perform.jsp" method=post>
	  <INPUT type=hidden name="act" value="tools_manage_data">
	  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="info_tb">
	<tr class="header"><td colspan=2>内容替换 -&nbsp; 在所有帖子内容中执行字符串替换</td></tr>
	<tbody>
		<tr>
			<td class="altbg1" width="40%">待替换的旧字符串:</td><td class="altbg2">
			<input type="text" name="fromStr" size="50" value=""></td></tr>
		<tr>
			<td class="altbg1" width="40%">新的字符串:</td><td class="altbg2">
			<input type="text" name="toStr" size="50" value=""></td></tr>
	</tbody></table><br/>
	<center><input class="button" type="submit" value="执行替换"></center></FORM><BR>
      <FORM id="frm2" name="frm2" onSubmit="checkfields(this); return false;" action="../perform.jsp" method=post>
	  <INPUT type=hidden name="act" value="tools_manage_pubtime">
	  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="info_tb">
	<tr class="header"><td colspan=2>修改主题发布时间 -&nbsp; 用于改变主题在以“发布时间”排序的列表中的位置</td></tr>
	<tbody>
		<tr>
			<td class="altbg1" width="40%">待修改主题的&nbsp;ID:</td><td class="altbg2">
			<input type="text" name="topicID" size="50" value=""></td></tr>
		<tr>
			<td class="altbg1" width="40%">修改后的发布时间(yyyy-mm-dd hh:mm:ss):</td><td class="altbg2">
			<input type="text" name="toCreateTime" size="50" value=""></td></tr>
	</tbody></table><br/>
	<center><input class="button" type="submit" value="执行修改"></center></FORM>
	</TD></TR></TBODY></TABLE><BR><BR>
<script language="javascript">
function checkfields(theform) {
	if (theform.action.indexOf('/perform.jsp') >= 0)
	{
		if (theform.name=='frm1' && trim(theform.fromStr.value) == '') {
			alert('待替换的旧字符串不可以为空  ');
      		theform.fromStr.focus();
			return;
		}
		if (theform.name=='frm2' && trim(theform.topicID.value) == '') {
			alert('待修改主题的 ID 不可以为空  ');
      		theform.topicID.focus();
			return;
		}
	}
	theform.submit();
}
</script>	  
<%= PageUtils.getAdminFooter(request) %>
</BODY></HTML>
