<?php
define('EmpireCMSAdmin','1');
require("../../class/connect.php");
require("../../class/db_sql.php");
require("../../class/functions.php");
$link=db_connect();
$empire=new mysqlquery();
$editor=1;
//验证用户
$lur=is_login();
$logininid=$lur['userid'];
$loginin=$lur['username'];
$loginrnd=$lur['rnd'];
$loginlevel=$lur['groupid'];
$loginadminstyleid=$lur['adminstyleid'];
//验证权限
CheckLevel($logininid,$loginin,$classid,"changedata");

$navclass0='';
$ccsql=$empire->query("select classname,classid from {$dbtbpre}enewsclass where is_zt=0 order by myorder,classid");
while($ccr=$empire->fetch($ccsql)){
	$navclass0.='<option value="'.$ccr[classid].'">'.$ccr[classname].'</option>';
}

$navclass1='';
$ccsql=$empire->query("select classname,classid from {$dbtbpre}enewsclass where is_zt=1 order by myorder,classid");
while($ccr=$empire->fetch($ccsql)){
	$navclass1.='<option value="'.$ccr[classid].'">'.$ccr[classname].'</option>';
}

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>更新数据</title>
<link href="../adminstyle/<?=$loginadminstyleid?>/adminstyle.css" rel="stylesheet" type="text/css">
</head>

<body>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
  <tr> 
    <td width="34%" height="25">位置：<a href="ChangeData.php">数据更新</a></td>
    <td width="66%"></td>
  </tr>
</table>
<br>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width=23%>
	  <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
        <tr> 
          <td height="25" class="header"> <div align="center">一 更新缓存数据</div></td>
        </tr>
        <tr> 
          <td height="45" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E2E9EA'" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
            <div style="padding-left:10px;">1.1 <a href="../enews.php?enews=ChangeEnewsData" title="更新系统的缓存(一般是网站搬家时使用)">更新数据库缓存</a></div></td>
        </tr>
        <tr> 
          <td height="45" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E2E9EA'" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
            <div style="padding-left:10px;">1.2 <a href="../ecmschtml.php?enews=ReClassPath" title="重新建立栏目目录(一般是网站搬家时使用)">恢复栏目目录</a></div></td>
        </tr>
        <tr> 
          <td height="45" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E2E9EA'" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
            <div style="padding-left:10px;">1.3 <a href="../ecmsclass.php?enews=DelFcListClass" title="重新更新“信息管理”菜单下的栏目列表及“栏目管理”菜单下的管理栏目页面。(一般是网站搬家时使用)">删除栏目缓存文件</a></div></td>
        </tr>
        <tr> 
          <td height="45" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E2E9EA'" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
            <div style="padding-left:10px;">1.4 <a href="../ecmsclass.php?enews=ChangeSonclass" title="一般应用于修改栏目所属父栏目后使用此功能。">更新栏目关系</a></div></td>
        </tr>
        <tr>
          <td height="45" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E2E9EA'" onMouseOut="this.style.backgroundColor='#FFFFFF'"><div style="padding-left:10px;">1.5 <a href="../ecmschtml.php?enews=UpdateClassInfosAll&from=ReHtml/ChangeData.php" title="重新统计栏目下信息数量，一般应用于批量删除信息后使用此功能。" target="_blank">更新栏目信息数</a></div></td>
        </tr>
        <tr> 
          <td height="45" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E2E9EA'" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
            <div style="padding-left:10px;">1.6 <a href="../ecmscom.php?enews=ClearTmpFileData" onclick="return confirm('清除前请确认用户没有正在采集、批量刷新页面与远程发布，确认?');" title="清除临时和缓存文件，可清空产生的临时文件，还有就是更新动态页面模板时使用，用于实时更换模板">清除临时文件</a></div></td>
        </tr>
      </table>

	</td>
	<td width=27% style="padding:0 5px 0 10px;">
	  <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
        <tr> 
          <td height="25" class="header"> <div align="center">二 更新常用页面</div></td>
        </tr>
        <tr> 
          <td height="45" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E2E9EA'" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
            <div style="padding-left:10px;"> 2.1 <a href="../ecmschtml.php?enews=ReIndex" target="_blank" title="生成首页">生成首页</a>
                  </div></td>
        </tr>
        <tr> 
          <td height="45" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E2E9EA'" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
            <div style="padding-left:10px;"> 2.2 <a href="../ecmschtml.php?enews=ReListHtml_all&from=ReHtml/ChangeData.php" target="_blank" title="生成所有栏目页">生成所有栏目页</a>
                  </div></td>
        </tr>
        <tr>
          <td height="45" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E2E9EA'" onMouseOut="this.style.backgroundColor='#FFFFFF'">           
		    <div style="padding-left:10px;"> 2.3 <a href="../ReWriter.php?enews=ReWriterIndex" target="_blank" title="生成作者首页">生成作者首页</a>
		    </div>			
		  </td>
        </tr>
        <tr> 
          <td height="45" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E2E9EA'" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
            <div style="padding-left:10px;"> 2.4 <a href="../ecmschtml.php?enews=ReUserpageAll&from=ReHtml/ChangeData.php" target="_blank" title="生成所有自定义页面">刷新所有自定义页面</a></div></td>
        </tr>
		<tr> 
          <td height="45" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E2E9EA'" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
            <div style="padding-left:10px;"> 2.5 <a href="../ecmschtml.php?enews=ReUserlistAll&from=ReHtml/ChangeData.php" target="_blank" title="生成所有自定义列表">刷新所有自定义列表</a></div></td>
        </tr>
        <tr> 
          <td height="45" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E2E9EA'" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
            <div style="padding-left:10px;"> 2.6 <a href="../ecmschtml.php?enews=ReDtPage" target="_blank" title="生成控制面板模板、登陆状态、登陆JS等动态页面">批量更新动态页面</a></div></td>
        </tr>
      </table>

	</td>
	<td width=27% style="padding:0 10px 0 5px;">
	  <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
        <tr> 
          <td height="25" class="header"> <div align="center">三 更新主要数据</div></td>
        </tr>
        <tr> 
          <td height="45" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E2E9EA'" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
            <div style="padding-left:10px;"> 3.1 <a href="#31">生成书籍页面</a></div></td>
        </tr>
        <tr> 
          <td height="45" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E2E9EA'" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
            <div style="padding-left:10px;"> 3.2 <a href="#32">生成章节页面</a></div></td>
        </tr>
        <tr> 
          <td height="45" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E2E9EA'" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
            <div style="padding-left:10px;"> 3.3 <a href="#33">生成文章页面</a></div></td>
        </tr>
        <tr> 
          <td height="45" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E2E9EA'" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
            <div style="padding-left:10px;"> 3.4 <a href="../tags/ListTags.php?enews=ReAllTag" target="_blank">生成TAGS页</a></div></td>
        </tr>
        <tr>
          <td height="45" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E2E9EA'" onMouseOut="this.style.backgroundColor='#FFFFFF'"><div style="padding-left:10px;"> 3.5 <a href="../ReWriter.php?enews=ReWriter" target="_blank">生成作者页面</a></div></td>
        </tr>
        <tr> 
          <td height="45" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E2E9EA'" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
            <div style="padding-left:10px;"> 3.6 <a href="../ReWriter.php?enews=ReWriterClass" target="_blank">生成作者分类</a></div></td>
        </tr>
      </table>

	</td>
	<td width=23%>
	  <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
        <tr> 
          <td height="25" class="header"> <div align="center">四 其它数据更新</div></td>
        </tr>
        <tr> 
          <td height="45" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E2E9EA'" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
            <div style="padding-left:10px;"> 4.1 <a href="ReInfoUrl.php#41" target="_blank">更新书籍章节数</a></div></td>
        </tr>
        <tr> 
          <td height="45" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E2E9EA'" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
            <div style="padding-left:10px;"> 4.2 <a href="ReInfoUrl.php#42" target="_blank">更新书籍地址</a></div></td>
        </tr>
        <tr> 
          <td height="45" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E2E9EA'" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
            <div style="padding-left:10px;"> 4.3 <a href="ReInfoUrl.php#43" target="_blank">更新章节地址</a></div></td>
        </tr>
        <tr> 
          <td height="45" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E2E9EA'" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
            <div style="padding-left:10px;"> 4.4 <a href="ReInfoUrl.php#44" target="_blank">更新章节字数</a></div></td>
        </tr>
        <tr>
          <td height="45" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E2E9EA'" onMouseOut="this.style.backgroundColor='#FFFFFF'"><div style="padding-left:10px;"> 4.5 <a href="../ecmsmod.php?enews=ChangeAllModForm&ChangeClass=1" target="_blank" title="生成发布跟投稿表单(一般是网站搬家时使用)">更新模型表单</a></div></td>
        </tr>
        <tr> 
          <td height="45" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E2E9EA'" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
            <div style="padding-left:10px;"> 4.6 <a href="../tool/ListAd.php?enews=ReAdJs_all&from=../ReHtml/ChangeData.php" target="_blank" title="生成广告插件的JS文件">批量刷新广告JS</a></div></td>
        </tr>
      </table>

	</td>
  </tr>
</table>



<form action="../ecmsbook.php" method="get" name="reform" target="_blank" onsubmit="return confirm('确认要刷新?');">
  <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder" id=31>
    <input name="from" type="hidden" id="from" value="ReHtml/ChangeData.php">
    <tr class="header"> 
      <td height="25"> 3.1 书籍页面生成</td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF"> <div align="center"> 
          <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
            <tr> 
              <td height="25" width=20%>刷新栏目</td>
              <td height="25" width=80%><select name="classid" id="classid">
                  <option value="0">所有栏目</option>
                  <?=$navclass0?>
                </select>
              </td>
            </tr>
            <tr> 
              <td height="25">
                按ID刷新：</td>
              <td height="25">从 
                <input name="startid" type="text" id="startid" value="0" size="6">
                到 
                <input name="endid" type="text" id="endid" value="0" size="6">
                之间的书籍 <font color="#666666">(两个值为0将刷新所有页面)</font></td>
            </tr>
            <tr>
              <td height="25">全部刷新：</td>
              <td height="25"><input name="havehtml" type="checkbox" id="havehtml" value="1">
                是<font color="#666666"> (不选择将不刷新已生成过的信息)</font></td>
            </tr>
			<tr>
              <td height="25">每组生成：</td>
              <td height="25"><b><?=$public_r[renewsnum]?></b>本</td>
            </tr>
            <tr> 
              <td height="25">&nbsp;</td>
              <td height="25"><input type="submit" name="Submit6" value="开始刷新"> 
                <input type="reset" name="Submit7" value="重置"> <input name="enews" type="hidden" id="enews" value="ReBooksHtml"> 
              </td>
            </tr>
          </table>
        </div></td>
    </tr>
  </table>
</form>


<form action="../ecmsbookdata.php" method="get" name="reform" target="_blank" onsubmit="return confirm('确认要刷新?');">
  <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder" id=32>
    <input name="from" type="hidden" id="from" value="ReHtml/ChangeData.php">
    <tr class="header"> 
      <td height="25"> 3.2 章节页面生成</td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF"> <div align="center"> 
          <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
            <tr> 
              <td height="25" width=20%>刷新栏目</td>
              <td height="25" width=80%><select name="classid" id="classid">
                  <option value="0">所有栏目</option>
                  <?=$navclass0?>
                </select>
              </td>
            </tr>
            <tr> 
              <td height="25">
                按BookId刷新：</td>
              <td height="25">从 
                <input name="startbookid" type="text" id="startbookid" value="0" size="6">
                到 
                <input name="endbookid" type="text" id="endbookid" value="0" size="6">
                之间的书籍所属章节 <font color="#666666">(两个值为0将刷新所有书籍的所有章节)</font></td>
            </tr>
            <tr>
              <td height="25">全部刷新：</td>
              <td height="25"><input name="havehtml" type="checkbox" id="havehtml" value="1">
                是<font color="#666666"> (不选择将不刷新已生成过的信息)</font></td>
            </tr>
			<tr>
              <td height="25">每组生成：</td>
              <td height="25"><b><?=$public_r[infolinknum]?></b>章</td>
            </tr>
            <tr> 
              <td height="25">&nbsp;</td>
              <td height="25"><input type="submit" name="Submit6" value="开始刷新"> 
                <input type="reset" name="Submit7" value="重置"> <input name="enews" type="hidden" id="enews" value="ReBookDataHtml"> 
              </td>
            </tr>
          </table>
        </div></td>
    </tr>
  </table>
</form>


<form action="DoRehtml.php" method="get" name="reform" target="_blank" onsubmit="return confirm('确认要刷新?');">
  <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder" id=33>
    <input name="from" type="hidden" id="from" value="ReHtml/ChangeData.php">
    <tr class="header"> 
      <td height="25"> 3.3 文章页面生成</td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF"> <div align="center"> 
          <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
            <tr> 
              <td height="25" width=20%>刷新栏目</td>
              <td height="25" width=80%><select name="classid" id="classid">
                  <option value="0">所有栏目</option>
                  <?=$navclass1?>
                </select>
              </td>
            </tr>
            <tr> 
              <td height="25">
                按ID刷新：</td>
              <td height="25">从 
                <input name="startid" type="text" id="startid" value="0" size="6">
                到 
                <input name="endid" type="text" id="endid" value="0" size="6">
                之间的文章 <font color="#666666">(两个值为0将刷新所有页面)</font></td>
            </tr>
            <tr>
              <td height="25">全部刷新：</td>
              <td height="25"><input name="havehtml" type="checkbox" id="havehtml" value="1">
                是<font color="#666666"> (不选择将不刷新已生成过的信息)</font></td>
            </tr>
			<tr>
              <td height="25">每组生成：</td>
              <td height="25"><b><?=$public_r[reuserjsnum]?></b>篇</td>
            </tr>
            <tr> 
              <td height="25">&nbsp;</td>
              <td height="25"><input type="submit" name="Submit6" value="开始刷新"> 
                <input type="reset" name="Submit7" value="重置"> <input name="enews" type="hidden" id="enews" value="ReNewsHtml"> 
              </td>
            </tr>
          </table>
        </div></td>
    </tr>
  </table>
</form>




<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><br>
</p>
</body>
</html>
<?
db_close();
$empire=null;
?>
