You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
3.3 KiB
63 lines
3.3 KiB
<!DOCTYPE html>
|
|
<html lang="zh-cn">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>店铺设置</title>
|
|
<link href="{__PUBLIC__}bootstrap/css/bootstrap.min.css" rel="stylesheet">
|
|
<script src="{__PUBLIC__}script/jquery.min.js" type="text/javascript"></script>
|
|
<script src="{__PUBLIC__}bootstrap/js/bootstrap.min.js"></script>
|
|
<!--[if lt IE 9]>
|
|
<script src="{__PUBLIC__}bootstrap/js/html5shiv.min.js"></script>
|
|
<script src="{__PUBLIC__}bootstrap/js/respond.min.js"></script>
|
|
<![endif]-->
|
|
<style type="text/css">
|
|
body {padding:5px; font-size:12px; margin-bottom:0px; font-family:'微软雅黑'}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container-fluid" style="padding:0">
|
|
<div class="row" style="margin:0">
|
|
<div class="col-md-12 col-sm-12 col-lg-12" style="padding:0;">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">店铺设置</div>
|
|
<table border="0" cellpadding="0" cellspacing="0" class="table table-hover table-bordered table-striped">
|
|
<form method="post" action="{U('config')}" class="form-horizontal" role="form">
|
|
{foreach $list as $config}
|
|
<tr>
|
|
<td>{$config.name}</td>
|
|
<td><div class="col-sm-4">
|
|
{if $config.type == 'text'}
|
|
<input type="text" name="data[{$config.code}]" class="form-control" value="{$config.value}">
|
|
{elseif $config.type == 'textarea'}
|
|
<textarea name="data[{$config.code}]" class="form-control" rows="5">{$config.value}</textarea>
|
|
{elseif $config.type == 'radio'}
|
|
<div class="btn-group" data-toggle="buttons">
|
|
<label class="btn btn-primary {if $config.value == 1}active{/if}">
|
|
<input type="radio" name="data[{$config.code}]" value="1" {if $config.value == 1}checked{/if}> 启用
|
|
</label>
|
|
<label class="btn btn-primary {if $config.value == 0}active{/if}">
|
|
<input type="radio" name="data[{$config.code}]" value="0" {if $config.value == 0}checked{/if}> 禁用
|
|
</label>
|
|
</div>
|
|
{/if}
|
|
</div>
|
|
<p class="help-block">{$config.warning}</p>
|
|
</td>
|
|
</tr>
|
|
{/foreach}
|
|
<tr>
|
|
<td></td>
|
|
<td><div class="col-sm-4">
|
|
<input type="submit" name="submit" value="确定" class="btn btn-primary" />
|
|
</div></td>
|
|
</tr>
|
|
</form>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
|