| 
				
				
					
				
				
				 | 
			
			 | 
			@@ -50,6 +50,7 @@ | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			  <link rel="stylesheet" href="../static/font-awesome/css/font-awesome.min.css"> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			  <link rel="stylesheet" href="css/base.css"> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			<style> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			.table{margin-bottom:0} | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			.btn+.btn{margin-left:10px} | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			</style> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			</head> | 
		
		
	
	
		
			
				| 
				
				
				
					
				
				 | 
			
			 | 
			@@ -57,7 +58,7 @@ | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			  <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"> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			      <tr> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			        <td height="30" background="images/tbg.gif" style="padding-left:10px"><b>系统配置参数:</b></td> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			        <td height="30" background="images/tbg.gif" style="padding-left:10px"><b>系统配置参数</b></td> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			      </tr> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			      <tr> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			        <td height="30" bgcolor="#ffffff" align="left"> | 
		
		
	
	
		
			
				| 
				
					
				
				
					
				
				
				 | 
			
			 | 
			@@ -84,39 +85,39 @@ | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			        <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'];?>" /> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			            <input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>"> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			            <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="12%" align="center">变量值:</td> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                <td width="38%" align="left"><input name="nvarvalue" type="text" id="nvarvalue" class="npvar" style="width:80%" /></td> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                <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="12%" align="center">变量值</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 width="10%" height="26">变量类型</td> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                <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' /> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                  <input name="vartype" type="radio" value="number" class='np'> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                  数字 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                  <input type="radio" name="vartype" value="bool" class='np' /> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                  <input type="radio" name="vartype" value="bool" class='np'> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                  布尔(Y/N) | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                  <input type="radio" name="vartype" value="bstring" class='np' /> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                  <input type="radio" name="vartype" value="bstring" class='np'> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                  多行文本 </td> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			              </tr> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			              <tr> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                <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 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 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                echo "<select name='vargroup' class='npvar'>\r\n"; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                echo "<select name='vargroup' class='npvar'>"; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                foreach($ds as $dl){ | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                  $dl = trim($dl); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                  if(empty($dl)) continue; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                  $dls = explode(',',$dl); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                  echo "<option value='{$dls[0]}'>{$dls[1]}</option>\r\n"; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                  echo "<option value='{$dls[0]}'>{$dls[1]}</option>"; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                } | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                echo "</select>\r\n"; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                echo "</select>"; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                ?> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                <button type="submit" class="btn btn-success btn-sm">保存变量</button> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                </td> | 
		
		
	
	
		
			
				| 
				
				
				
					
				
				 | 
			
			 | 
			@@ -129,16 +130,15 @@ | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    <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" /> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			          配置搜索:<input type="text" name="keywds" id="keywds"> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			          <button type="button" onclick="getSearch()" class="btn btn-success btn-sm">搜索</button> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			           <span id="_searchback"></span> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			          <span id="_searchback"></span> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			        </td> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			      </tr> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			      <tr> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			        <td bgcolor="#FFFFFF" width="100%"> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			          <form action="sys_info.php" method="post" name="form1"> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			            <input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>" /> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			            <input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>"> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			            <input type="hidden" name="dopost" value="save"> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			            <div id="_search"></div> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			            <div id="_mainsearch"> | 
		
		
	
	
		
			
				| 
				
					
				
				
					
				
				
				 | 
			
			 | 
			@@ -173,7 +173,7 @@ | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                $i++; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			              ?> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			              <tr align="center" bgcolor="<?php echo $bgcolor?>"> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                <td width="300"><?php echo $row['info']; ?>:</td> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                <td width="300"><?php echo $row['info']; ?></td> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                <td align="left"> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                <?php | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                if($row['type']=='bool') | 
		
		
	
	
		
			
				| 
				
				
				
					
				
				 | 
			
			 | 
			@@ -181,10 +181,10 @@ | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                  $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> "; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                  echo "<label><input type='radio' name='edit___{$row['varname']}' class='np' value='Y'$c1> 是 </label> "; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                  echo "<label><input type='radio' name='edit___{$row['varname']}' class='np' 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>"; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                  echo "<textarea name='edit___{$row['varname']}' row='4' id='edit___{$row['varname']}' class='textarea_info' style='width:100%;height:40px'>".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 { | 
		
		
	
	
		
			
				| 
				
				
				
					
				
				 | 
			
			 | 
			@@ -196,7 +196,7 @@ | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                } | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                ?> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                </td> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                <td><?php echo $row['varname']?></td> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                <td>{dede:field.<?php echo $row['varname']?>/}</td> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			              </tr> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			              <?php | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			              } | 
		
		
	
	
		
			
				| 
				
				
				
					
				
				 | 
			
			 | 
			@@ -207,7 +207,7 @@ | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			            ?> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			            </div> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			            <table width="100%" border="0" cellspacing="1" cellpadding="1" style="border:1px solid #cfcfcf;border-top:none" class="table table-borderless"> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			              <tr bgcolor="#F9FCEF"> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			              <tr bgcolor="#f2f2f2"> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                <td width="4%"></td> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                <td width="96%"> | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                  <button type="submit" class="btn btn-success">确定</button>  | 
		
		
	
	
		
			
				| 
				
					
				
				
				
				 | 
			
			 | 
			
  |