system.html 4.64 KB
<!DOCTYPE html>
<html lang="zh-CN"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>后台管理系统</title>
<meta name="keywords" content="">
<meta name="description" content="">

<link rel="stylesheet" type="text/css" href="__PUB__style/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="__PUB__style/bootstrap-responsive.min.css">
<link rel="stylesheet" type="text/css" href="__PUB__style/pp.css">
<style type="text/css">
.input-xxlarge{ margin-bottom: 0px;}
.long{ width: 530px;}
.input-xxlarge1 {margin-bottom: 0px;}
</style>
<script type="text/javascript" src="__PUB__js/bootstrap.min.js"></script>
<script type="text/javascript" src="__PUB__js/jquery.min.js"></script>
<script type="text/javascript">
$(function(){
	$('#configadd').hide();
	$('.configadd').click(function(){
		if($("#configadd").attr('isshow') == 1)
		{
			$("#configadd").attr('isshow',0);
			$('#configadd').hide();
		}
		else if(!$("#configadd").attr('issow'))
		{
			$("#configadd").attr('isshow',1);
			$('#configadd').show();
		}
	});
});
</script>
</head>
<body style="margin: 10px 0px;">
<div style="margin:0 auto; width:98%;">
	<table class="table table-condensed table-bordered table-hover">
	<tbody>
		<tr>
			<th colspan="4" class="pp_1">更改系统基本设置
			<eq name="Think.cookie.ADMIN_KEY" value="1"><span><a href="javascript:void(0);" class="configadd">添加系统基本设置
</a></span></eq>
			</th>
		</tr>
		
		<tr id="configadd" isshow=0>
			<td colspan="4" align="center" style="padding:15px; background-color:#f0f0f0;">
				<form action="__URL__/do_config" name="configadd" method="post">
				<table cellspacing="0" cellpadding="0" class="pp_2">
					<tr>
						<td ><span class='red'>*</span>变量名</td>
						<td><input type="text" name="cfg" style='width:80%' /></td>    
						<td>参数值</td>
						<td><input type="text" name="content" style='width:80%' /></td>
					</tr>
					<tr>
						<td><span class='red'>*</span>参数说明</td>
						<td><input type="text" name="name" style='width:80%' /></td>
						<td>参数类型</td>
						<td>
							<input type="radio" name="type" value='string' id='string' checked/>&nbsp;<label for="string">文本</label> 
							<input type="radio" name="type" value='bstring'id='bstring'/>&nbsp;<label for="bstring">多行文本</label> 
							<input type="radio" name="type" value='bool' id='bool'/>&nbsp;<label for="bool">布尔(Y/N) </label> 
							<input type="radio" name="type" value='number' id='number'/>&nbsp;<label for="number">数字</label>
						</td>
					</tr>
					<tr>
						<td>排序</td>
						<td><input type="text" name="sort" style='width:30%' /></td>
						<td colspan='2' align='center'>
						<input type="submit" name="submit" value=" 保存变量 " class="coolbg np" /></td>  
					</tr>
				</table>
				</form>
			</td>
		</tr>
<form action="" method="post" name="form1">
		<tr>
			<td width="14%" style="text-align:center;">参数说明</td>
			<td width="47%" style="text-align:center;">参数值</td>
			<td width="29%" style="text-align:center;">变量名</td>
			<td width="10%" style="text-align:center;">排序</td>
		</tr>
		<volist name="lists" id="datalist">
		<tr>
			<td style="text-align:right;"><{$datalist.name}>:</td>
			<td>
				<if condition="$datalist['type'] eq 'string'">
					<input name="cfg[][cfg_<{$datalist['id']}>]" type="text" id="cfg_<{$datalist['id']}>"  value="<{$datalist['content']}>" class="input-xxlarge" />
				<elseif condition="$datalist['type'] eq 'number'"/>
					<input name="cfg[][cfg_<{$datalist['id']}>]" type="text" id="cfg_<{$datalist['id']}>"  value="<{$datalist['content']}>" class="input-xxlarge" style="width:30%" />
				<elseif condition="$datalist['type'] eq 'bstring'"/>
					<textarea class="long" rows="2" name="cfg[][cfg_<{$datalist['id']}>]" id="cfg_<{$datalist['id']}>"><{$datalist['content']}></textarea>
				<elseif condition="$datalist['type'] eq bool"/>
					<input type='radio' class='np' name="cfg[][cfg_<{$datalist['id']}>]" value='Y'  
					<if condition="$datalist['content'] eq 'Y'"> checked  </if>>是&nbsp;
					<input type='radio' class='np' name="cfg[][cfg_<{$datalist['id']}>]" value='N'  
					<if condition="$datalist['content'] eq 'N'">  checked </if>>否&nbsp;
				</if>
			</td>
			<td><{$datalist.cfg}></td>
			<td><input type="text" name="sort_<{$datalist['id']}>" value="<{$datalist['sort']}>" style="width:100px" /></td>
		</tr>
		</volist>    

		<tr>
			<td></td>
			<td colspan="3"><button class="btn btn-large btn-info" type="submit">提交</button></td>
		</tr>
</form>
	</tbody>
	</table>
</div>

</body>
</html>