DiverseYouthNightSchool/runtime/temp/6f2b712e2c161b29cec3ce6b277...

237 lines
22 KiB
PHP

<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:102:"/www/wwwroot/testy.hschool.com.cn/public/../application/admin/view/xilufitness/brand/index/config.html";i:1730687332;s:76:"/www/wwwroot/testy.hschool.com.cn/application/admin/view/layout/default.html";i:1725591948;s:73:"/www/wwwroot/testy.hschool.com.cn/application/admin/view/common/meta.html";i:1725591948;s:75:"/www/wwwroot/testy.hschool.com.cn/application/admin/view/common/script.html";i:1725591948;}*/ ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><?php echo (isset($title) && ($title !== '')?$title:''); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">
<meta name="referrer" content="never">
<meta name="robots" content="noindex, nofollow">
<link rel="shortcut icon" href="/assets/img/favicon.ico" />
<!-- Loading Bootstrap -->
<link href="/assets/css/backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">
<?php if(\think\Config::get('fastadmin.adminskin')): ?>
<link href="/assets/css/skins/<?php echo \think\Config::get('fastadmin.adminskin'); ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">
<?php endif; ?>
<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
<script src="/assets/js/html5shiv.js"></script>
<script src="/assets/js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
var require = {
config: <?php echo json_encode($config ?? ''); ?>
};
</script>
</head>
<body class="inside-header inside-aside <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
<div id="main" role="main">
<div class="tab-content tab-addtabs">
<div id="content">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<section class="content-header hide">
<h1>
<?php echo __('Dashboard'); ?>
<small><?php echo __('Control panel'); ?></small>
</h1>
</section>
<?php if(!IS_DIALOG && !\think\Config::get('fastadmin.multiplenav') && \think\Config::get('fastadmin.breadcrumb')): ?>
<!-- RIBBON -->
<div id="ribbon">
<ol class="breadcrumb pull-left">
<?php if($auth->check('dashboard')): ?>
<li><a href="dashboard" class="addtabsit"><i class="fa fa-dashboard"></i> <?php echo __('Dashboard'); ?></a></li>
<?php endif; ?>
</ol>
<ol class="breadcrumb pull-right">
<?php foreach($breadcrumb as $vo): ?>
<li><a href="javascript:;" data-url="<?php echo $vo['url']; ?>"><?php echo $vo['title']; ?></a></li>
<?php endforeach; ?>
</ol>
</div>
<!-- END RIBBON -->
<?php endif; ?>
<div class="content">
<style type="text/css">
@media (max-width: 375px) {
.edit-form tr td input {
width: 100%;
}
.edit-form tr th:first-child, .edit-form tr td:first-child {
width: 20%;
}
.edit-form tr th:nth-last-of-type(-n+2), .edit-form tr td:nth-last-of-type(-n+2) {
display: none;
}
}
.edit-form table > tbody > tr td a.btn-delcfg {
visibility: hidden;
}
.edit-form table > tbody > tr:hover td a.btn-delcfg {
visibility: visible;
}
</style>
<div class="panel panel-default panel-intro">
<div class="panel-heading">
<?php echo build_heading(null, false); ?>
<ul class="nav nav-tabs">
<?php foreach($navBar as $index=>$vo): ?>
<li class="<?php echo $index=='mini'?'active':''; ?>"><a href="#tab-<?php echo $vo['name']; ?>" data-toggle="tab"><?php echo __($vo['title']); ?></a></li>
<?php endforeach; ?>
</ul>
</div>
<div class="panel-body">
<div id="myTabContent" class="tab-content">
<!--@formatter:off-->
<?php foreach($navBar as $index=>$vo): ?>
<div class="tab-pane fade <?php echo !empty($vo['active'])?'active in' : ''; ?>" id="tab-<?php echo $vo['name']; ?>">
<div class="widget-body no-padding">
<form id="<?php echo $vo['name']; ?>-form" class="edit-form form-horizontal" role="form" data-toggle="validator" method="POST" action="">
<?php echo token(); ?>
<table class="table table-striped">
<thead>
<tr>
<th width="15%"><?php echo __('Title'); ?></th>
<th width="68%"><?php echo __('Value'); ?></th>
</tr>
</thead>
<tbody>
<?php foreach($vo['list'] as $item): ?>
<tr data-favisible="<?php echo htmlentities((isset($item['visible']) && ($item['visible'] !== '')?$item['visible']:'') ?? ''); ?>" data-name="<?php echo $item['name']; ?>" class="<?php if($item['visible']??''): ?>hidden<?php endif; ?>">
<td><?php echo $item['title']; ?></td>
<input type="hidden" name="row[group]" value="<?php echo htmlentities((isset($index) && ($index !== '')?$index:'') ?? ''); ?>" />
<input type="hidden" name="row[tip][]" value="<?php echo htmlentities((isset($item['tip']) && ($item['tip'] !== '')?$item['tip']:'') ?? ''); ?>" />
<input type="hidden" name="row[rule][]" value="<?php echo htmlentities((isset($item['rule']) && ($item['rule'] !== '')?$item['rule']:'') ?? ''); ?>" />
<input type="hidden" name="row[title][]" value="<?php echo htmlentities((isset($item['title']) && ($item['title'] !== '')?$item['title']:'') ?? ''); ?>" />
<input type="hidden" name="row[type][]" value="<?php echo htmlentities((isset($item['type']) && ($item['type'] !== '')?$item['type']:'') ?? ''); ?>" />
<input type="hidden" name="row[name][]" value="<?php echo htmlentities((isset($item['name']) && ($item['name'] !== '')?$item['name']:'') ?? ''); ?>" />
<td>
<div class="row">
<div class="col-sm-8 col-xs-12">
<?php switch($item['type']): case "string": ?>
<input type="text" name="row[<?php echo $item['name']; ?>][]" placeholder="<?php echo htmlentities((isset($item['placeholder']) && ($item['placeholder'] !== '')?$item['placeholder']:'') ?? ''); ?>" value="<?php echo htmlentities($item['value'] ?? ''); ?>" class="form-control" data-rule="<?php echo $item['rule']; ?>" data-tip="<?php echo $item['tip']; ?>"/>
<?php break; case "password": ?>
<input type="password" name="row[<?php echo $item['name']; ?>][]" placeholder="<?php echo htmlentities((isset($item['placeholder']) && ($item['placeholder'] !== '')?$item['placeholder']:'') ?? ''); ?>" value="<?php echo htmlentities($item['value'] ?? ''); ?>" class="form-control" data-rule="<?php echo $item['rule']; ?>" data-tip="<?php echo $item['tip']; ?>"/>
<?php break; case "text": ?>
<textarea name="row[<?php echo $item['name']; ?>][]" placeholder="<?php echo htmlentities((isset($item['placeholder']) && ($item['placeholder'] !== '')?$item['placeholder']:'') ?? ''); ?>" class="form-control" data-rule="<?php echo $item['rule']; ?>" rows="5" data-tip="<?php echo $item['tip']; ?>"><?php echo htmlentities($item['value'] ?? ''); ?></textarea>
<?php break; case "editor": ?>
<textarea name="row[<?php echo $item['name']; ?>][]" placeholder="<?php echo htmlentities((isset($item['placeholder']) && ($item['placeholder'] !== '')?$item['placeholder']:'') ?? ''); ?>" id="editor-<?php echo $item['name']; ?>" class="form-control editor" data-rule="<?php echo $item['rule']; ?>" rows="5" data-tip="<?php echo $item['tip']; ?>"><?php echo htmlentities($item['value'] ?? ''); ?></textarea>
<?php break; case "array": ?>
<dl class="fieldlist" data-name="row[<?php echo $item['name']; ?>]">
<dd>
<ins><?php echo isset($item["setting"]["key"])&&$item["setting"]["key"]?$item["setting"]["key"]:__('Array key'); ?></ins>
<ins><?php echo isset($item["setting"]["value"])&&$item["setting"]["value"]?$item["setting"]["value"]:__('Array value'); ?></ins>
</dd>
<dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> <?php echo __('Append'); ?></a></dd>
<textarea name="row[<?php echo $item['name']; ?>][]" class="form-control hide" cols="30" rows="5"><?php echo htmlentities($item['value'] ?? ''); ?></textarea>
</dl>
<?php break; case "date": ?>
<input type="text" name="row[<?php echo $item['name']; ?>][]" placeholder="<?php echo htmlentities((isset($item['placeholder']) && ($item['placeholder'] !== '')?$item['placeholder']:'') ?? ''); ?>" value="<?php echo htmlentities($item['value'] ?? ''); ?>" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-tip="<?php echo $item['tip']; ?>" data-rule="<?php echo $item['rule']; ?>"/>
<?php break; case "time": ?>
<input type="text" name="row[<?php echo $item['name']; ?>][]" placeholder="<?php echo htmlentities((isset($item['placeholder']) && ($item['placeholder'] !== '')?$item['placeholder']:'') ?? ''); ?>" value="<?php echo htmlentities($item['value'] ?? ''); ?>" class="form-control datetimepicker" data-date-format="HH:mm:ss" data-tip="<?php echo $item['tip']; ?>" data-rule="<?php echo $item['rule']; ?>"/>
<?php break; case "datetime": ?>
<input type="text" name="row[<?php echo $item['name']; ?>][]" placeholder="<?php echo htmlentities((isset($item['placeholder']) && ($item['placeholder'] !== '')?$item['placeholder']:'') ?? ''); ?>" value="<?php echo htmlentities($item['value'] ?? ''); ?>" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-tip="<?php echo $item['tip']; ?>" data-rule="<?php echo $item['rule']; ?>"/>
<?php break; case "datetimerange": ?>
<input type="text" name="row[<?php echo $item['name']; ?>][]" placeholder="<?php echo htmlentities((isset($item['placeholder']) && ($item['placeholder'] !== '')?$item['placeholder']:'') ?? ''); ?>" value="<?php echo htmlentities($item['value'] ?? ''); ?>" class="form-control datetimerange" data-tip="<?php echo $item['tip']; ?>" data-rule="<?php echo $item['rule']; ?>"/>
<?php break; case "number": ?>
<input type="number" name="row[<?php echo $item['name']; ?>][]" placeholder="<?php echo htmlentities((isset($item['placeholder']) && ($item['placeholder'] !== '')?$item['placeholder']:'') ?? ''); ?>" value="<?php echo htmlentities($item['value'] ?? ''); ?>" class="form-control" data-tip="<?php echo $item['tip']; ?>" data-rule="<?php echo $item['rule']; ?>"/>
<?php break; case "checkbox": ?>
<div class="checkbox">
<?php if(is_array($item['content']) || $item['content'] instanceof \think\Collection || $item['content'] instanceof \think\Paginator): if( count($item['content'])==0 ) : echo "" ;else: foreach($item['content'] as $key=>$vo): ?>
<label for="row[<?php echo $item['name']; ?>][]-<?php echo $key; ?>"><input id="row[<?php echo $item['name']; ?>][]-<?php echo $key; ?>" name="row[<?php echo $item['name']; ?>][]" type="checkbox" value="<?php echo $key; ?>" data-tip="<?php echo $item['tip']; ?>" <?php if(in_array(($key), is_array($item['value'])?$item['value']:explode(',',$item['value']))): ?>checked<?php endif; ?> /> <?php echo $vo; ?></label>
<?php endforeach; endif; else: echo "" ;endif; ?>
</div>
<?php break; case "radio": ?>
<div class="radio">
<?php if(is_array($item['content']) || $item['content'] instanceof \think\Collection || $item['content'] instanceof \think\Paginator): if( count($item['content'])==0 ) : echo "" ;else: foreach($item['content'] as $key=>$vo): ?>
<label for="row[<?php echo $item['name']; ?>]-<?php echo $key; ?>"><input id="row[<?php echo $item['name']; ?>]-<?php echo $key; ?>" name="row[<?php echo $item['name']; ?>][] type="radio" value="<?php echo $key; ?>" data-tip="<?php echo $item['tip']; ?>" <?php if(in_array(($key), is_array($item['value'])?$item['value']:explode(',',$item['value']))): ?>checked<?php endif; ?> /> <?php echo $vo; ?></label>
<?php endforeach; endif; else: echo "" ;endif; ?>
</div>
<?php break; case "select": case "selects": ?>
<select name="row[<?php echo $item['name']; ?>]<?php echo $item['type']=='selects'?'[]':''; ?>" class="form-control selectpicker" data-tip="<?php echo $item['tip']; ?>" <?php echo $item['type']=='selects'?'multiple':''; ?>>
<?php if(is_array($item['content']) || $item['content'] instanceof \think\Collection || $item['content'] instanceof \think\Paginator): if( count($item['content'])==0 ) : echo "" ;else: foreach($item['content'] as $key=>$vo): ?>
<option value="<?php echo $key; ?>" <?php if(in_array(($key), is_array($item['value'])?$item['value']:explode(',',$item['value']))): ?>selected<?php endif; ?>><?php echo $vo; ?></option>
<?php endforeach; endif; else: echo "" ;endif; ?>
</select>
<?php break; case "image": case "images": ?>
<div class="form-inline">
<input id="c-<?php echo $item['name']; ?>" placeholder="<?php echo htmlentities((isset($item['placeholder']) && ($item['placeholder'] !== '')?$item['placeholder']:'') ?? ''); ?>" class="form-control" size="50" name="row[<?php echo $item['name']; ?>][]" type="text" value="<?php echo htmlentities($item['value'] ?? ''); ?>" data-tip="<?php echo $item['tip']; ?>">
<span><button type="button" id="faupload-<?php echo $item['name']; ?>" class="btn btn-danger faupload" data-input-id="c-<?php echo $item['name']; ?>" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="<?php echo $item['type']=='image'?'false':'true'; ?>" data-preview-id="p-<?php echo $item['name']; ?>"><i class="fa fa-upload"></i> <?php echo __('Upload'); ?></button></span>
<span class="msg-box n-right" for="c-<?php echo $item['name']; ?>"></span>
<ul class="row list-inline faupload-preview" id="p-<?php echo $item['name']; ?>"></ul>
</div>
<?php break; case "file": case "files": ?>
<div class="form-inline">
<input id="c-<?php echo $item['name']; ?>" placeholder="<?php echo htmlentities((isset($item['placeholder']) && ($item['placeholder'] !== '')?$item['placeholder']:'') ?? ''); ?>" class="form-control" size="50" name="row[<?php echo $item['name']; ?>][]" type="text" value="<?php echo htmlentities($item['value'] ?? ''); ?>" data-tip="<?php echo $item['tip']; ?>" data-rule="<?php echo htmlentities((isset($item['rule']) && ($item['rule'] !== '')?$item['rule']:'') ?? ''); ?>">
<span><button type="button" id="faupload-<?php echo $item['name']; ?>" class="btn btn-danger faupload" data-input-id="c-<?php echo $item['name']; ?>" data-mimetype="*" data-url="ajax/upload" data-multiple="<?php echo $item['type']=='file'?'false':'true'; ?>"><i class="fa fa-upload"></i> <?php echo __('Upload'); ?></button></span>
<span class="msg-box n-right" for="c-<?php echo $item['name']; ?>"></span>
</div>
<?php break; case "switch": ?>
<input id="c-<?php echo $item['name']; ?>" name="row[<?php echo $item['name']; ?>][]" type="hidden" value="<?php echo $item['value']?1:0; ?>">
<a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-<?php echo $item['name']; ?>" data-yes="1" data-no="0">
<i class="fa fa-toggle-on text-success <?php if(!$item['value']): ?>fa-flip-horizontal text-gray<?php endif; ?> fa-2x"></i>
</a>
<?php break; case "bool": ?>
<label for="row[<?php echo $item['name']; ?>]-yes"><input id="row[<?php echo $item['name']; ?>]-yes" name="row[<?php echo $item['name']; ?>][]" type="radio" value="1" <?php echo !empty($item['value'])?'checked':''; ?> data-tip="<?php echo $item['tip']; ?>" /> <?php echo __('Yes'); ?></label>
<label for="row[<?php echo $item['name']; ?>]-no"><input id="row[<?php echo $item['name']; ?>]-no" name="row[<?php echo $item['name']; ?>][]" type="radio" value="0" <?php echo !empty($item['value'])?'':'checked'; ?> data-tip="<?php echo $item['tip']; ?>" /> <?php echo __('No'); ?></label>
<?php break; case "city": ?>
<div style="position:relative">
<input type="text" name="row[<?php echo $item['name']; ?>][]" id="c-<?php echo $item['name']; ?>" value="<?php echo htmlentities($item['value'] ?? ''); ?>" class="form-control" data-toggle="city-picker" data-tip="<?php echo $item['tip']; ?>" data-rule="<?php echo $item['rule']; ?>" />
</div>
<?php break; case "selectpage": case "selectpages": ?>
<input type="text" name="row[<?php echo $item['name']; ?>][]" id="c-<?php echo $item['name']; ?>" value="<?php echo htmlentities($item['value'] ?? ''); ?>" class="form-control selectpage" data-source="<?php echo url('general.config/selectpage'); ?>?id=<?php echo $item['id']; ?>" data-primary-key="<?php echo $item['setting']['primarykey']; ?>" data-field="<?php echo $item['setting']['field']; ?>" data-multiple="<?php echo $item['type']=='selectpage'?'false':'true'; ?>" data-tip="<?php echo $item['tip']; ?>" data-rule="<?php echo $item['rule']; ?>" />
<?php break; case "custom": break; endswitch; ?>
</div>
<div class="col-sm-4"></div>
</div>
</td>
</tr>
<?php endforeach; ?>
</tbody>
<tfoot>
<tr>
<td></td>
<td>
<div class="layer-footer">
<button style="margin-left: 5%;" type="submit" class="btn btn-primary btn-embossed disabled"><?php echo __('OK'); ?></button>
<button type="reset" class="btn btn-default btn-embossed"><?php echo __('Reset'); ?></button>
</div>
</td>
</tr>
</tfoot>
</table>
</form>
</div>
</div>
<?php endforeach; ?>
<!--@formatter:on-->
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="/assets/js/require<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js" data-main="/assets/js/require-backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo htmlentities($site['version'] ?? ''); ?>"></script>
</body>
</html>