system.html
4.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<!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/> <label for="string">文本</label>
<input type="radio" name="type" value='bstring'id='bstring'/> <label for="bstring">多行文本</label>
<input type="radio" name="type" value='bool' id='bool'/> <label for="bool">布尔(Y/N) </label>
<input type="radio" name="type" value='number' id='number'/> <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>>是
<input type='radio' class='np' name="cfg[][cfg_<{$datalist['id']}>]" value='N'
<if condition="$datalist['content'] eq 'N'"> checked </if>>否
</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>