欧美大屁股bbbbxxxx,狼人大香伊蕉国产www亚洲,男ji大巴进入女人的视频小说,男人把ji大巴放进女人免费视频,免费情侣作爱视频

歡迎來到入門教程網(wǎng)!

帝國cms

當前位置:主頁 > CMS教程 > 帝國cms >

帝國cms后臺實現(xiàn)刷新多欄目內容頁的方法詳解

來源:本站原創(chuàng)|時間:2020-01-11|欄目:帝國cms|點擊: 次

以下代碼適用于帝國CMS6.6版,7.0版不同處在代碼注釋處已標明。

找到e/admin/ChangeData.php文件

原先的欄目是單選菜單

<select name="classid" id="classid">
<option value="0">所有欄目</option>
<?=$class?>
</select>

改為:

<select name="classid[]" size="12" multiple id="classid[]" style="width:310px">
<option value="0">所有欄目</option>
<?=$class?>
</select>

并且改進了e/admin/DoRehtml.php的代碼如下:

復制代碼
代碼如下:

<?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'];
$add = $_GET;
$havehtml = (int)$add['havehtml'];
$tbname = $add['tbname'];
$count = count($tbname);</p> <p>// 附加程序開始
if (!is_array($add['classid'])) { //傳遞非數(shù)組值時,在欄目里點擊"信息"操作時使用
$add['classid'] = array( $add['classid'] );
}
if ($add['classid'][0] == 0) {
$add['classid'] = array(0);
}
$count1 = count($add['classid']);
for ($m = 0; $m < $count1; $m++) {
$classid = $add[classid][$m];
// 附加程序結束

//刷新所有表
if (!$count) {
$j = 0;
$tsql = $empire->query("select tbname from {$dbtbpre}enewstable order by tid"); // 帝國cms7.0版 這里有個條件為:where intb=0
while ($tr = $empire->fetch($tsql)) {
$tbname[$j] = $tr[tbname];
$j++;
}
$count = count($tbname);
}
esetcookie("retablenum", $count, 0, 1);
esetcookie("rechecktablenum", 0, 0, 1);
$url = "../ecmschtml.php?enews=ReNewsHtml&classid=$classid&from=$add[from]&retype=$add[retype]&startday=$add[startday]&endday=$add[endday]&startid=$add[startid]&endid=$add[endid]&havehtml=$havehtml&reallinfotime=" . time();
echo "<link href='../adminstyle/" . $loginadminstyleid . "/adminstyle.css' rel='stylesheet' type='text/css'>
<center>欄目id=$classid 要刷新的表的總個數(shù)為:<font color=red>$count</font>個</center>
";
for ($i = 0; $i < $count; $i++) {
$trueurl = $url . "&tbname=" . $tbname[$i];
echo "<table width='100%' border=0 align=center cellpadding=3 cellspacing=1 class=tableborder><tr class=header><td>刷新數(shù)據(jù)表:" . $tbname[$i] . "</td></tr><tr><td bgcolor='#ffffff'><iframe frameborder=0 height=35 id='" . $tbname[$i] . "' scrolling=no src=\"" . $trueurl . "\" width=\"100%\"></iframe></td></tr></table>";
}
}
db_close();
$empire = null;
?></p> <p><iframe frameborder=0 height=35 id="checkrehtml" scrolling=no src="CheckRehtml.php?first=1&from=<?php echo $add[from] ?>" width="100%"></iframe>

網(wǎng)頁制作CMS教程網(wǎng)絡編程軟件編程腳本語言數(shù)據(jù)庫服務器

如果侵犯了您的權利,請與我們聯(lián)系,我們將在24小時內進行處理、任何非本站因素導致的法律后果,本站均不負任何責任。

聯(lián)系QQ:835971066 | 郵箱:835971066#qq.com(#換成@)

Copyright © 2002-2020 腳本教程網(wǎng) 版權所有