|
|
@@ -1,13 +1,11 @@ |
|
|
|
<!DOCTYPE html |
|
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml"> |
|
|
|
|
|
|
|
<!DOCTYPE html> |
|
|
|
<html> |
|
|
|
<head> |
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> |
|
|
|
<meta charset="<?php echo $cfg_soft_lang; ?>"> |
|
|
|
<title>系统配置参数</title> |
|
|
|
<script language="javascript" src="../static/js/dedeajax2.js"></script> |
|
|
|
<script language="javascript" src="../static/js/jquery.js"></script> |
|
|
|
<script language="javascript"> |
|
|
|
<script src="../static/js/dedeajax2.js"></script> |
|
|
|
<script src="../static/js/jquery.js"></script> |
|
|
|
<script> |
|
|
|
var searchconfig = false; |
|
|
|
function Nav() { |
|
|
|
if (window.navigator.userAgent.indexOf("MSIE") >= 1) return 'IE'; |
|
|
@@ -25,13 +23,11 @@ |
|
|
|
} |
|
|
|
$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(); |
|
|
|
} |
|
|
@@ -51,54 +47,54 @@ |
|
|
|
} |
|
|
|
</script> |
|
|
|
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> |
|
|
|
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> |
|
|
|
<link href="css/base.css" rel="stylesheet" type="text/css"> |
|
|
|
<link rel="stylesheet" href="../static/font-awesome/css/font-awesome.min.css"> |
|
|
|
<link rel="stylesheet" href="css/base.css"> |
|
|
|
<style> |
|
|
|
.btn+.btn{margin-left:10px} |
|
|
|
</style> |
|
|
|
</head> |
|
|
|
|
|
|
|
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> |
|
|
|
<body background="images/allbg.gif" leftmargin="8" topmargin="8"> |
|
|
|
<div style="min-width:780px"> |
|
|
|
<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D6D6D6" align="center" |
|
|
|
class="table maintable table-bordered mt-3"> |
|
|
|
<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D6D6D6" align="center" class="table maintable table-bordered mt-3"> |
|
|
|
<tr> |
|
|
|
<td height="28" background="images/tbg.gif" style="padding-left:10px;"><b>DedeBIZV6系统配置参数:</b></td> |
|
|
|
<td height="30" background="images/tbg.gif" style="padding-left:10px;"><b>系统配置参数:</b></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td height="24" bgcolor="#ffffff" align="center"><?php |
|
|
|
$ds = file(DEDEADMIN.'/inc/configgroup.txt'); |
|
|
|
$totalGroup = count($ds); |
|
|
|
$i = 0; |
|
|
|
foreach($ds as $dl) |
|
|
|
{ |
|
|
|
$dl = trim($dl); |
|
|
|
if(empty($dl)) continue; |
|
|
|
$dls = explode(',',$dl); |
|
|
|
$i++; |
|
|
|
if($i>1) echo " | <a href='javascript:ShowConfig($i,$totalGroup)'>{$dls[1]}</a> "; |
|
|
|
else{ |
|
|
|
echo " <a href='javascript:ShowConfig($i,$totalGroup)'>{$dls[1]}</a> "; |
|
|
|
} |
|
|
|
} |
|
|
|
?> |
|
|
|
| <a href="javascript:;" onClick="ShowHide('addvar')">添加新变量</a></td> |
|
|
|
<td height="30" bgcolor="#ffffff" align="left"> |
|
|
|
<?php |
|
|
|
$ds = file(DEDEADMIN.'/inc/configgroup.txt'); |
|
|
|
$totalGroup = count($ds); |
|
|
|
$i = 0; |
|
|
|
foreach($ds as $dl) |
|
|
|
{ |
|
|
|
$dl = trim($dl); |
|
|
|
if(empty($dl)) continue; |
|
|
|
$dls = explode(',',$dl); |
|
|
|
$i++; |
|
|
|
if($i>1) echo "<a href='javascript:ShowConfig($i,$totalGroup)' class='btn btn-success btn-sm'>{$dls[1]}</a>"; |
|
|
|
else { |
|
|
|
echo "<a href='javascript:ShowConfig($i,$totalGroup)' class='btn btn-success btn-sm'>{$dls[1]}</a>"; |
|
|
|
} |
|
|
|
} |
|
|
|
?> |
|
|
|
<a href="javascript:;" onClick="ShowHide('addvar')" class="btn btn-success btn-sm">添加新变量</a> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr id="addvar" style="display:none"> |
|
|
|
<td height="24" bgcolor="#ffffff" align="center"> |
|
|
|
<td height="26" bgcolor="#ffffff" align="center"> |
|
|
|
<form name="fadd" action="sys_info.php" method="post"> |
|
|
|
<input type='hidden' name='dopost' value='add'> |
|
|
|
<input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>" /> |
|
|
|
<table width="98%" border="0" cellspacing="0" cellpadding="0"> |
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="0"> |
|
|
|
<tr> |
|
|
|
<td width="12%" height="26">变量名称:</td> |
|
|
|
<td width="38%" align="left"><input name="nvarname" type="text" id="nvarname" class="npvar" |
|
|
|
style="width:80%" /></td> |
|
|
|
<td width="38%" align="left"><input name="nvarname" type="text" id="nvarname" class="npvar" style="width:80%" /></td> |
|
|
|
<td width="12%" align="center">变量值:</td> |
|
|
|
<td width="38%" align="left"><input name="nvarvalue" type="text" id="nvarvalue" class="npvar" |
|
|
|
style="width:80%" /></td> |
|
|
|
<td width="38%" align="left"><input name="nvarvalue" type="text" id="nvarvalue" class="npvar" style="width:80%" /></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td width="10%" height="26">变量类型:</td> |
|
|
|
<td colspan='3' align="left"><input name="vartype" type="radio" value="string" class='np' |
|
|
|
checked='checked' /> |
|
|
|
<td colspan='3' align="left"><input name="vartype" type="radio" value="string" class='np' checked='checked' /> |
|
|
|
文本 |
|
|
|
<input name="vartype" type="radio" value="number" class='np' /> |
|
|
|
数字 |
|
|
@@ -111,17 +107,18 @@ foreach($ds as $dl) |
|
|
|
<td height="26">参数说明:</td> |
|
|
|
<td align="left"><input type="text" name="varmsg" id="varmsg" class="npvar" style="width:80%" /></td> |
|
|
|
<td align="center">所属组:</td> |
|
|
|
<td align="left"><?php |
|
|
|
<td align="left"> |
|
|
|
<?php |
|
|
|
echo "<select name='vargroup' class='npvar'>\r\n"; |
|
|
|
foreach($ds as $dl){ |
|
|
|
$dl = trim($dl); |
|
|
|
if(empty($dl)) continue; |
|
|
|
$dls = explode(',',$dl); |
|
|
|
echo "<option value='{$dls[0]}'>{$dls[1]}</option>\r\n"; |
|
|
|
$dl = trim($dl); |
|
|
|
if(empty($dl)) continue; |
|
|
|
$dls = explode(',',$dl); |
|
|
|
echo "<option value='{$dls[0]}'>{$dls[1]}</option>\r\n"; |
|
|
|
} |
|
|
|
echo "</select>\r\n"; |
|
|
|
?> |
|
|
|
<button type="submit" class="btn btn-success btn-sm">保存变量</button> |
|
|
|
?> |
|
|
|
<button type="submit" class="btn btn-success btn-sm">保存变量</button> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</table> |
|
|
@@ -129,14 +126,14 @@ foreach($ds as $dl) |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</table> |
|
|
|
<table width="98%" border="0" cellpadding="0" cellspacing="0" style="margin-top:10px" bgcolor="#D6D6D6" |
|
|
|
align="center" class="table maintable table-bordered mt-3"> |
|
|
|
<table width="98%" border="0" cellpadding="0" cellspacing="0" style="margin-top:10px" bgcolor="#D6D6D6" align="center" class="table maintable table-bordered mt-3"> |
|
|
|
<tr> |
|
|
|
<td height="28" align="right" background="images/tbg.gif" style="border:1px solid #cfcfcf;border-bottom:none;"> |
|
|
|
配置搜索: |
|
|
|
配置搜索: |
|
|
|
<input type="text" name="keywds" id="keywds" /> |
|
|
|
<button type="button" onclick="getSearch()" class="btn btn-success btn-sm">搜索</button> |
|
|
|
<span id="_searchback"></span></td> |
|
|
|
<span id="_searchback"></span> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#FFFFFF" width="100%"> |
|
|
@@ -145,89 +142,76 @@ foreach($ds as $dl) |
|
|
|
<input type="hidden" name="dopost" value="save"> |
|
|
|
<div id="_search"></div> |
|
|
|
<div id="_mainsearch"> |
|
|
|
<?php |
|
|
|
$n = 0; |
|
|
|
if(!isset($gp)) $gp = 1; |
|
|
|
foreach($ds as $dl) |
|
|
|
{ |
|
|
|
$dl = trim($dl); |
|
|
|
if(empty($dl)) continue; |
|
|
|
$dls = explode(',',$dl); |
|
|
|
$n++; |
|
|
|
?> |
|
|
|
<table width="100%" style="<?php if($n!=$gp) echo 'display:none'; ?>" id="td<?php echo $n?>" border="0" cellspacing="1" cellpadding="1" bgcolor="#cfcfcf"> |
|
|
|
<tr align="center" bgcolor="#FBFCE2"> |
|
|
|
<td width="300">参数说明</td> |
|
|
|
<td>参数值</td> |
|
|
|
<td width="220">变量名</td> |
|
|
|
</tr> |
|
|
|
<?php |
|
|
|
$n = 0; |
|
|
|
if(!isset($gp)) $gp = 1; |
|
|
|
foreach($ds as $dl) |
|
|
|
{ |
|
|
|
$dl = trim($dl); |
|
|
|
if(empty($dl)) continue; |
|
|
|
$dls = explode(',',$dl); |
|
|
|
$n++; |
|
|
|
?> |
|
|
|
<table width="100%" style='<?php if($n!=$gp) echo "display:none"; ?>' id="td<?php echo $n?>" border="0" |
|
|
|
cellspacing="1" cellpadding="1" bgcolor="#cfcfcf"> |
|
|
|
<tr align="center" bgcolor="#FBFCE2"> |
|
|
|
<td width="300">参数说明</td> |
|
|
|
<td>参数值</td> |
|
|
|
<td width="220">变量名</td> |
|
|
|
</tr> |
|
|
|
<?php |
|
|
|
$dsql->SetQuery("Select * From `#@__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++; |
|
|
|
?> |
|
|
|
<tr align="center" bgcolor="<?php echo $bgcolor?>"> |
|
|
|
<td width="300"><?php echo $row['info']; ?>: </td> |
|
|
|
<td align="left" style="padding:8px;"><?php |
|
|
|
if($row['type']=='bool') |
|
|
|
{ |
|
|
|
$c1=''; |
|
|
|
$c2 = ''; |
|
|
|
$row['value']=='Y' ? $c1=" checked" : $c2=" checked"; |
|
|
|
echo "<label><input type='radio' class='np' name='edit___{$row['varname']}' value='Y'$c1> 是 </label> "; |
|
|
|
echo "<label><input type='radio' class='np' name='edit___{$row['varname']}' value='N'$c2> 否 </label> "; |
|
|
|
}else if($row['type']=='bstring') |
|
|
|
{ |
|
|
|
echo "<textarea name='edit___{$row['varname']}' row='4' id='edit___{$row['varname']}' class='textarea_info' style='width:98%;height:50px'>".dede_htmlspecialchars($row['value'])."</textarea>"; |
|
|
|
}else if($row['type']=='number') |
|
|
|
{ |
|
|
|
echo "<input type='text' name='edit___{$row['varname']}' id='edit___{$row['varname']}' value='{$row['value']}' style='width:30%'>"; |
|
|
|
}else |
|
|
|
{ |
|
|
|
$addstr=''; |
|
|
|
if ($row['varname']=='cfg_cookie_encode') { |
|
|
|
$addstr=' <a href="javascript:resetCookieEncode();" class="btn btn-success btn-sm">重新生成</a>'; |
|
|
|
} |
|
|
|
echo "<input type='text' name='edit___{$row['varname']}' id='edit___{$row['varname']}' value=\"".dede_htmlspecialchars($row['value'])."\" style='width:80%'>{$addstr}"; |
|
|
|
} |
|
|
|
?></td> |
|
|
|
<td><?php echo $row['varname']?></td> |
|
|
|
</tr> |
|
|
|
$dsql->SetQuery("Select * From `#@__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++; |
|
|
|
?> |
|
|
|
<tr align="center" bgcolor="<?php echo $bgcolor?>"> |
|
|
|
<td width="300"><?php echo $row['info']; ?>:</td> |
|
|
|
<td align="left"> |
|
|
|
<?php |
|
|
|
} |
|
|
|
|
|
|
|
?> |
|
|
|
</table> |
|
|
|
if($row['type']=='bool') |
|
|
|
{ |
|
|
|
$c1=''; |
|
|
|
$c2 = ''; |
|
|
|
$row['value']=='Y' ? $c1=" checked" : $c2=" checked"; |
|
|
|
echo "<label><input type='radio' class='np' name='edit___{$row['varname']}' value='Y'$c1> 是 </label> "; |
|
|
|
echo "<label><input type='radio' class='np' name='edit___{$row['varname']}' value='N'$c2> 否 </label> "; |
|
|
|
} else if($row['type']=='bstring') { |
|
|
|
echo "<textarea name='edit___{$row['varname']}' row='4' id='edit___{$row['varname']}' class='textarea_info' style='width:98%;height:50px'>".dede_htmlspecialchars($row['value'])."</textarea>"; |
|
|
|
} else if($row['type']=='number') { |
|
|
|
echo "<input type='text' name='edit___{$row['varname']}' id='edit___{$row['varname']}' value='{$row['value']}' style='width:30%'>"; |
|
|
|
} else { |
|
|
|
$addstr=''; |
|
|
|
if ($row['varname']=='cfg_cookie_encode') { |
|
|
|
$addstr=' <a href="javascript:resetCookieEncode();" class="btn btn-success btn-sm">重新生成</a>'; |
|
|
|
} |
|
|
|
echo "<input type='text' name='edit___{$row['varname']}' id='edit___{$row['varname']}' value=\"".dede_htmlspecialchars($row['value'])."\" style='width:80%'>{$addstr}"; |
|
|
|
} |
|
|
|
?> |
|
|
|
</td> |
|
|
|
<td><?php echo $row['varname']?></td> |
|
|
|
</tr> |
|
|
|
<?php |
|
|
|
} |
|
|
|
?> |
|
|
|
} |
|
|
|
?> |
|
|
|
</table> |
|
|
|
<?php |
|
|
|
} |
|
|
|
?> |
|
|
|
</div> |
|
|
|
<table width="100%" border="0" cellspacing="1" cellpadding="1" |
|
|
|
style="border:1px solid #cfcfcf;border-top:none;" class="table table-borderless"> |
|
|
|
<table width="100%" border="0" cellspacing="1" cellpadding="1" style="border:1px solid #cfcfcf;border-top:none" class="table table-borderless"> |
|
|
|
<tr bgcolor="#F9FCEF"> |
|
|
|
<td height="50" colspan="3"> |
|
|
|
<table width="98%" border="0" cellspacing="1" cellpadding="1"> |
|
|
|
<tr> |
|
|
|
<td width="11%"> </td> |
|
|
|
<td width="11%"> |
|
|
|
<button type="submit" class="btn btn-success">确定</button> |
|
|
|
</td> |
|
|
|
<td width="78%"><button type="button" onClick="document.form1.reset()" |
|
|
|
class="btn btn-success">重置</button></td> |
|
|
|
</tr> |
|
|
|
</table> |
|
|
|
<td width="4%"></td> |
|
|
|
<td width="96%"> |
|
|
|
<button type="submit" class="btn btn-success">确定</button> |
|
|
|
<button type="button" onClick="document.form1.reset()" class="btn btn-success">重置</button> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</table> |
|
|
@@ -237,5 +221,4 @@ if($row['type']=='bool') |
|
|
|
</table> |
|
|
|
</div> |
|
|
|
</body> |
|
|
|
|
|
|
|
</html> |