📄 changedata.php
字号:
<?php
require("../../class/connect.php");
include("../../class/db_sql.php");
include("../../class/config.php");
include("../../class/functions.php");
$link=db_connect();
$empire=new mysqlquery();
$logininid=getcvar('loginuserid');
$loginin=getcvar('loginusername');
$loginrnd=getcvar('loginrnd');
$loginlevel=getcvar('loginlevel');
$editor=1;
is_login($logininid,$loginin,$loginrnd);
//验证权限
CheckLevel($logininid,$loginin,$classid,"changedata");
//栏目
$fcfile="../../data/fc/ListEnews.php";
$class="<script src=../../data/fc/cmsclass.js></script>";
if(!file_exists($fcfile))
{$class=ShowClass_AddClass("",0,0,"|-",0,0);}
//刷新表
$retable="";
$selecttable="";
$i=0;
$tsql=$empire->query("select tid,tbname,tname from {$dbtbpre}enewstable order by tid");
while($tr=$empire->fetch($tsql))
{
$i++;
if($i%4==0)
{
$br="<br>";
}
else
{
$br="";
}
$retable.="<input type=checkbox name=tbname[] value='$tr[tbname]' checked>$tr[tname] ".$br;
$selecttable.="<option value='".$tr[tbname]."'>".$tr[tbname]."</option>";
}
//专题
$ztclass="";
$ztsql=$empire->query("select ztid,ztname from {$dbtbpre}enewszt order by ztid desc");
while($ztr=$empire->fetch($ztsql))
{
$ztclass.="<option value='".$ztr['ztid']."'>".$ztr['ztname']."</option>";
}
//选择日期
$todaydate=date("Y-m-d");
$todaytime=time();
$changeday="<select name=selectday onchange=\"document.reform.startday.value=this.value;document.reform.endday.value='".$todaydate."'\">
<option value='".$todaydate."'>--选择--</option>
<option value='".$todaydate."'>今天</option>
<option value='".ToChangeTime($todaytime,7)."'>一周</option>
<option value='".ToChangeTime($todaytime,30)."'>一月</option>
<option value='".ToChangeTime($todaytime,90)."'>三月</option>
<option value='".ToChangeTime($todaytime,180)."'>半年</option>
<option value='".ToChangeTime($todaytime,365)."'>一年</option>
</select>";
//风格
$loginadminstyleid=(int)getcvar('loginadminstyleid');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>更新数据</title>
<link href="../adminstyle/<?=$loginadminstyleid?>/adminstyle.css" rel="stylesheet" type="text/css">
<script src=../editor/setday.js></script>
</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%"><table width="420" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td> <div align="center">[<a href="#ReAllHtml">总体生成</a>]</div></td>
<td> <div align="center">[<a href="#ReMoreListHtml">多栏目生成</a>]</div></td>
<td> <div align="center">[<a href="#ReIfInfoHtml">按条件生成内容页</a>]</div></td>
<td> <div align="center">[<a href="#IfOtherInfo">批量更新相关链接</a>]</div></td>
</tr>
</table></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="6">
<tr id=ReAllHtml>
<td width="69%" valign="top"> <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
<tr class="header">
<td height="25" colspan="2"> <div align="center">页面生成管理</div></td>
</tr>
<tr>
<td width="50%" height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
<tr>
<td height="37">
<div align="center">
<input type="button" name="Submit2" value="刷新首页" onclick="self.location.href='../enews.php?enews=ReIndex'">
</div></td>
</tr>
<tr>
<td height="50"> <div align="center">
<input type="button" name="Submit22" value="刷新所有信息栏目页" onclick="window.open('../ecmschtml.php?enews=ReListHtml_all&from=ReHtml/ChangeData.php','','');">
<br>
<font color="#666666">(包括栏目,专题列表)</font></div></td>
</tr>
<tr>
<td height="50"> <div align="center">
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<form action="enews.php" method="post" name="dorehtml" id="dorehtml">
<tr>
<td><div align="center">
<input type="button" name="Submit3" value="刷新所有信息内容页面" onclick="var toredohtml=0;if(document.dorehtml.havehtml.checked==true){toredohtml=1;}window.open('DoRehtml.php?enews=ReNewsHtml&start=0&havehtml='+toredohtml+'&from=ReHtml/ChangeData.php','','');">
</div></td>
</tr>
<tr>
<td height="25"> <div align="center">重复生成
<input name="havehtml" type="checkbox" id="havehtml" value="1">
</div></td>
</tr>
</form>
</table>
</div></td>
</tr>
<tr>
<td height="37">
<div align="center">
<input type="button" name="Submit4" value="刷新所有信息JS调用" onclick="window.open('../ecmschtml.php?enews=ReAllNewsJs&from=ReHtml/ChangeData.php','','');">
</div></td>
</tr>
</table></td>
<td width="50%" valign="top" bgcolor="#FFFFFF"> <table width="100%" border="0" cellpadding="3" cellspacing="1">
<tr>
<td height="37"> <div align="center">
<input type="button" name="Submit422" value="批量刷新投票JS" onclick="window.open('../tool/ListVote.php?enews=ReVoteJs_all&from=../ReHtml/ChangeData.php','','');">
</div></td>
</tr>
<tr>
<td height="37"> <div align="center">
<input type="button" name="Submit4222" value="批量刷新广告JS" onclick="window.open('../tool/ListAd.php?enews=ReAdJs_all&from=../ReHtml/ChangeData.php','','');">
</div></td>
</tr>
<tr>
<td height="37"> <div align="center">
<input type="button" name="Submit422232" value="批量更新动态页面" onclick="self.location.href='../enews.php?enews=ReDtPage';">
</div></td>
</tr>
<tr>
<td height="37"><div align="center">
<input type="button" name="Submit4222322" value="批量更新反馈表单" onclick="self.location.href='../tool/FeedbackClass.php?enews=ReMoreFeedbackClassFile';">
</div></td>
</tr>
<tr>
<td height="37"><div align="center">
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<form action="../enews.php" method="GET" name="dochangemodform" id="dochangemodform">
<input type=hidden name=enews value="ChangeAllModForm">
<tr>
<td><div align="center">
<input type="submit" name="Submit3" value="批量更新模型表单">
</div></td>
</tr>
<tr>
<td height="25"> <div align="center">更新栏目导航<input name="ChangeClass" type="checkbox" id="ChangeClass" value="1">
</div></td>
</tr>
</form>
</table>
</div></td>
</tr>
</table></td>
</tr>
</table></td>
<td width="31%" valign="top"> <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="25" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#EFEFEF'" onMouseOut="this.style.backgroundColor='#FFFFFF'"> <div align="center"><a href="../enews.php?enews=ChangeEnewsData">更新数据库缓存</a></div></td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#EFEFEF'" onMouseOut="this.style.backgroundColor='#FFFFFF'"><div align="center"><a href="../enews.php?enews=ReClassPath">恢复栏目目录</a></div></td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#EFEFEF'" onMouseOut="this.style.backgroundColor='#FFFFFF'"><div align="center"><a href="../enews.php?enews=DelFcListClass">删除栏目缓存文件</a></div></td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#EFEFEF'" onMouseOut="this.style.backgroundColor='#FFFFFF'"><div align="center"><a href="../enews.php?enews=ChangeSonclass">更新栏目关系</a></div></td>
</tr>
</table>
<br>
<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="25" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#EFEFEF'" onMouseOut="this.style.backgroundColor='#FFFFFF'"> <div align="center"><a href="../enews.php?enews=ReUserpageAll&from=ReHtml/ChangeData.php" target="_blank">刷新所有自定义页面</a></div></td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#EFEFEF'" onMouseOut="this.style.backgroundColor='#FFFFFF'"><div align="center"><a href="../enews.php?enews=ReUserlistAll&from=ReHtml/ChangeData.php" target="_blank">批量刷新自定义列表</a></div></td>
</tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -