e/data/html/list/alllistinfo.php(全部信息列表)e/data/html/list/listinfo.php(分類信息列表)在文件中搜索 $ignamer=$ftnr['igr'];,其下一行插入:
function dp_editmoreinfotitle($add,$userid,$username){
global $empire,$dbtbpre,$class_r;
$classid=(int)$add['classid'];
$infoid=$add['infoid'];
$n1=$add['title'];
$count=count($infoid);
$tbname=$class_r[$classid]['tbname'];
if(!$classid||!$tbname||!$count) {
printerror("請選擇需要修改的信息",'history.go(-1)',1,0,1);
}
// 權限檢查
$doselfinfo=CheckLevel($userid,$username,$classid,"news");
if(!$doselfinfo['doeditinfo']) {
printerror("沒有足夠的權限",'history.go(-1)',1,0,1);
}
$dopubid=0; $donum=0; $dolog=''; $infotb='';
for($i=0;$i<$count;$i++) {
$doinfoid=(int)$infoid[$i];
if(empty($infotb)) {
$index_r=$empire->fetch1("select classid,checked from {$dbtbpre}ecms_".$tbname."_index where id='$doinfoid' limit 1");
if(!$index_r['classid']) continue;
$infotb=ReturnInfoMainTbname($tbname,$index_r['checked']);
}
$do1=$n1[$i];
$empire->query("update ".$infotb." set title='$do1' where id='$doinfoid'");
}
printerror("修改成功",$_SERVER['HTTP_REFERER'],1,0,1);
}
$enews=$_POST['enews'];
if($enews=="EditMoreInfoTitle"){
hCheckEcmsRHash();
dp_editmoreinfotitle($_POST,$logininid,$loginin);
}
搜索 <?=$r[title]?>,將其及上下行的 <a> 標籤(共 3 行)替換為:
<input type="text" name="title[]" value="<?=$oldtitle?>" style="width:99%">
搜索 <span id="moveclassnav"></span>,在其上方插入:
<input type="submit" name="Submit7" value="批量修改標題" onclick="document.listform.enews.value='EditMoreInfoTitle';document.listform.action='ListAllInfo.php';">
class="form-control")。e/data/html/list/ 目錄,升級前備份。

