(资料图片仅供参考)

织梦dedecms后台新建 sys_check.php 。

GetOne("SELECT * FROM `dede_sysconfig` WHERE aid="$id"");$info=$row["info"];if( $action == "del" ){ $id = explode("`", $id); foreach ($id as $var) { $query = "delete from `dede_sysconfig` WHERE `aid` = "$var""; $dsql->ExecuteNoneQuery($query); } ShowMsg("已删除变量 $info ","sys_info.php"); exit();}?>

dede/templets/sys_info.htm 替换为一下内容 ,53行至111行, 202行, 224行, 226行, 259行至265行 为新增内容

系统配置参数<script language="javascript" src="../include/js/dedeajax2.js"></script><script language="javascript">var searchconfig = false;function Nav(){ if(window.navigator.userAgent.indexOf("MSIE")>=1) return "IE"; else if(window.navigator.userAgent.indexOf("Firefox")>=1) return "FF"; else return "OT";}function $Obj(objname){ return document.getElementById(objname);}function ShowConfig(em,allgr){ if(searchconfig) location.reload(); for(var i=1;i<=allgr;i++) { if(i==em) $Obj("td"+i).style.display = (Nav()=="IE" ? "block" : "table"); else $Obj("td"+i).style.display = "none"; } $Obj("addvar").style.display = "none";}function ShowHide(objname){ var obj = $Obj(objname); if(obj.style.display != "none") obj.style.display = "none"; else obj.style.display = (Nav()=="IE" ? "block" : "table-row");}function backSearch(){ location.reload();}function getSearch(){ var searchKeywords = $Obj("keywds").value; var myajax = new DedeAjax($Obj("_search")); myajax.SendGet("sys_info.php?dopost=search&keywords="+searchKeywords) $Obj("_searchback").innerHTML = "" $Obj("_mainsearch").innerHTML = ""; searchconfig = true;}</script><script type="text/javascript">function getOneItem(){ var allSel=""; if(document.form1.id.value) return document.form1.id.value; for(i=0;i

DedeCMS系统配置参数:
1) echo " | {$dls[1]} "; else{ echo " {$dls[1]} "; }}?> | 添加新变量
配置搜索:
" id="td" border="0" cellspacing="1" cellpadding="1" bgcolor="#cfcfcf"> SetQuery("Select * From `dede_sysconfig` where groupid="{$dls[0]}" order by aid asc");$dsql->Execute();$i = 1;while($row = $dsql->GetArray()){ if($i%2==0) { $bgcolor = "#F9FCEF"; } else { $bgcolor = "#ffffff"; } $i++;?>
aid 参数说明 参数值 变量名
";}?> 是 "; echo "否 ";}else if($row["type"]=="bstring"){ echo "";}else if($row["type"]=="number"){ echo "";}else{ echo "";}?>
全选 取消 删除

推荐内容