⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 changedata.php

📁 相关软件: ·帝国网站管理系统(Ecms) v3.5 繁体版 ·搜索更多与"帝国网站管理系统(Ecms) "相关的软件 注意事项: ·注意:本站软件一律只用鼠标左键打开
💻 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=$_COOKIE['enewsloginuserid'];
$loginin=$_COOKIE['enewsloginusername'];
$loginrnd=$_COOKIE['enewsloginrnd'];
$loginlevel=$_COOKIE['enewsloginlevel'];
$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="";
$i=0;
$tsql=$empire->query("select tid,tbname,tname from phome_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]&nbsp;&nbsp;".$br;
}
?>
<!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="../../data/images/css.css" rel="stylesheet" type="text/css">
<script src=../editor/setday.js></script>
</head>

<body>
<table width="98%%" border="0" align="center" cellpadding="3" cellspacing="1">
  <tr>
    <td height="25">位置:系统设置 -&gt; 数据更新</td>
  </tr>
</table>

<br>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  <tr> 
    <td height="25" class="header">
<div align="center"><strong><font color="#FFFFFF">更新数据库缓存</font></strong></div></td>
  </tr>
  <tr> 
    <td height="25" bgcolor="#FFFFFF"> 
      <div align="center"> 
        <input type="button" name="Submit" value="更新数据库缓存" onclick="self.location.href='../enews.php?enews=ChangeEnewsData';">
      </div></td>
  </tr>
</table>
<br>
<br>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  <tr class="header">
    <td height="25"><div align="center"><strong><font color="#FFFFFF">页面刷新管理</font></strong></div></td>
  </tr>
  <tr>
    <td height="25" bgcolor="#FFFFFF"><table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
        <tr> 
          <td height="42"> 
            <div align="center">
              <input type="button" name="Submit2" value="刷新首页" onclick="self.location.href='../enews.php?enews=ReIndex'">
              <br>
              <br>
              (<a href="../../../" target="_blank">网站首页</a>)</div></td>
        </tr>
        <tr> 
          <td height="42"> 
            <div align="center">
              <input type="button" name="Submit22" value="刷新所有信息分类页" onclick="window.open('../enews.php?enews=ReListHtml_all&from=ReHtml/ChangeData.php','','');">
              <br>
              <br>
              ( 包括类别,专题列表)</div></td>
        </tr>
        <tr> 
          <td height="42"> 
            <div align="center">
              <input type="button" name="Submit3" value="刷新所有信息内容页面" onclick="window.open('DoRehtml.php?enews=ReNewsHtml&start=0&from=ChangeData.php','','');">
              <br>
              <br>
              (所有新闻内容页面)</div></td>
        </tr>
        <tr> 
          <td height="42"> 
            <div align="center">
              <input type="button" name="Submit4" value="刷新所有JS调用" onclick="window.open('../enews.php?enews=ReAllNewsJs&from=ReHtml/ChangeData.php','','');">
              <br>
              <br>
              (包括类别js,专题,排行js调用)</div></td>
        </tr>
      </table></td>
  </tr>
</table>
<br>
<form action="DoRehtml.php" method="get" name="form1" target="_blank" onsubmit="return confirm('确认要刷新?');">
  <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
<input name="from" type="hidden" id="from" value="ChangeData.php">
    <tr class="header"> 
      <td height="25"> <div align="center"><strong><font color="#FFFFFF">按条件刷新信息内容页面</font></strong></div></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">刷新数据表:</td>
              <td height="25"><?=$retable?></td>
            </tr>
            <tr> 
              <td height="25">刷新类别</td>
              <td height="25"><select name="classid" id="classid">
                  <option value="0">所有栏目</option>
                  <?=$class?>
                </select>
                (如选择大类别,将刷新所有子类别)</td>
            </tr>
            <tr> 
              <td width="23%" height="25"> <input name="retype" type="radio" value="0" checked>
                按时间刷新:</td>
              <td width="77%" height="25">从 
                <input name="startday" type="text" size="12" onclick="setday(this)">
                <input name="endday" type="text" size="12" onclick="setday(this)">
                之间的数据(不填将刷新所有页面)</td>
            </tr>
            <tr> 
              <td height="25"> <input name="retype" type="radio" value="1">
                按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">
                之间的数据(如两个值为0将刷新所有页面)</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>
<br>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  <tr class="header"> 
    <td height="25"> <div align="center"><strong><font color="#FFFFFF">恢复类别目录</font></strong></div></td>
  </tr>
  <tr> 
    <td height="25" bgcolor="#FFFFFF"> <div align="center"> 
        <input type="button" name="Submit5" value="恢复类别目录" onclick="self.location.href='../enews.php?enews=ReClassPath';">
      </div></td>
  </tr>
</table>
<br>
<br>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  <tr class="header"> 
    <td height="25"> <div align="center"><strong>更新类别关系</strong></div></td>
  </tr>
  <tr> 
    <td height="25" bgcolor="#FFFFFF"> <div align="center"> 
        <input type="button" name="Submit52" value="更新类别关系" onclick="self.location.href='../enews.php?enews=ChangeSonclass';">
      </div></td>
  </tr>
</table>
<br>
<br>
</body>
</html>
<?
db_close();
$empire=null;
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -