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

📄 repnewstext.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,"repnewstext");
$url="&nbsp;批量替换信息内容";
//类别
$fcfile="../../data/fc/ListEnews.php";
$class="<script src=../../data/fc/cmsclass.js></script>";
if(!file_exists($fcfile))
{$class=ShowClass_AddClass("",0,0,"|-",0,0);}
//数据表
$tbname=RepPostVar($_GET['tbname']);
$first=1;
$tsql=$empire->query("select tid,tbname,tname from phome_enewstable order by tid");
while($tr=$empire->fetch($tsql))
{
if($first==1)
{$firsttable=$tr[tbname];
$firsttid=$tr[tid];
$first=0;
}
else
{$first=0;}
if($tbname==$tr[tbname])
{$select=" selected";
$thistid=$tr[tid];
}
else
{$select="";}
$table.="<option value='".$tr[tbname]."'".$select.">".$tr[tname]."</option>";
}
if(!$table)
{printerror("NotRepNewstextTb","history.go(-1)");}
$table="<select name='tbname' onchange=self.location='RepNewstext.php?tbname='+this.options[this.selectedIndex].value>".$table."</select>";
//字段
if(empty($tbname))
{
$showtable=$firsttable;
$showtid=$firsttid;
}
else
{
$showtable=$tbname;
$showtid=$thistid;
}
$s=$empire->query("SHOW FIELDS FROM phome_ecms_".$showtable);
$noshowfield=",id,onclick,newspath,keyboard,keyid,userid,username,ztid,istop,truetime,ismember,dokey,isgood,titlecolor,titlefont,titleurl,filename,fh,plnum,firsttitle,opentime,starttime,endtime,checkuser,docheckuser,viewcheckuser,returncheck,notdocheckuser,totaldown,filenameqz,";
while($r=$empire->fetch($s))
{
//不显示字段
if(strstr($noshowfield,",".$r[Field].","))
{continue;}
$field.="<option value='".$r[Field]."'>".$r[Field]."</option>";
}
db_close();
$empire=null;
?>
<!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">
</head>

<body>
<table width="98%%" border="0" align="center" cellpadding="3" cellspacing="1">
  <tr>
    <td height="25">位置:<?=$url?></td>
  </tr>
</table>

<form action="../enews.php" method="GET" name="form1" target="_blank" onsubmit="return confirm('确认要替换?');">
  <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
    <tr class="header"> 
      <td height="25" colspan="2"><strong><font color="#FFFFFF">批量替换信息内容</font></strong><font color="#FFFFFF">(<font color="#FF9900">无特殊情况.请谨用</font>)</font> 
        <input name="enews" type="hidden" id="enews" value="DoRepNewstext"> <input name="tid" type="hidden" id="tid" value="<?=$showtid?>"></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td height="25">选择替换表:</td>
      <td height="25">
        <?=$table?>
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="15%" height="25">操作类别:</td>
      <td width="85%" height="25"><select name="classid" id="classid">
          <option value=0>所有类别</option>
          <?=$class?>
        </select>
        (如选择大类别,将应用于所有子类别) </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td height="25">操作字段:</td>
      <td height="25"><select name="field" size="12" id="field">
          <?=$field?>
        </select></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td height="26">替换内容:</td>
      <td height="26">把所有包含 
        <input name="oldword" type="text" id="oldword">
        字符替换成 
        <input name="newword" type="text" id="newword">
        字符</td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td height="26">&nbsp;</td>
      <td height="26">完全替换
        <input name="over" type="checkbox" id="over" value="1">
        (完全替换:将针对字段值=旧字符的情况下才替换.而不是模糊替换.)</td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td height="25">&nbsp;</td>
      <td height="25"><input type="submit" name="Submit" value="提交"> <input type="reset" name="Submit2" value="重置"></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td height="25" colspan="2">备注:一般是在下载模型,音乐模型中批量替换,防盗链.</td>
    </tr>
  </table>
</form>
</body>
</html>

⌨️ 快捷键说明

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