| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190 |
- <?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:89:"/Users/kaiyu/Documents/wwwroot/yanglao/public/../application/admin/view/addon/config.html";i:1746006159;s:81:"/Users/kaiyu/Documents/wwwroot/yanglao/application/admin/view/layout/default.html";i:1746006159;s:78:"/Users/kaiyu/Documents/wwwroot/yanglao/application/admin/view/common/meta.html";i:1746006159;s:80:"/Users/kaiyu/Documents/wwwroot/yanglao/application/admin/view/common/script.html";i:1746006159;}*/ ?>
- <!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 htmlentities(\think\Config::get('site.version') ?? ''); ?>" rel="stylesheet">
- <?php if(\think\Config::get('fastadmin.adminskin')): ?>
- <link href="/assets/css/skins/<?php echo htmlentities(\think\Config::get('fastadmin.adminskin') ?? ''); ?>.css?v=<?php echo htmlentities(\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 htmlentities($vo['url'] ?? ''); ?>"><?php echo htmlentities($vo['title'] ?? ''); ?></a></li>
- <?php endforeach; ?>
- </ol>
- </div>
- <!-- END RIBBON -->
- <?php endif; ?>
- <div class="content">
- <form id="config-form" class="edit-form form-horizontal" role="form" data-toggle="validator" method="POST" action="">
- <?php if($addon['tips'] && $addon['tips']['value']): ?>
- <div class="alert <?php echo (isset($addon['tips']['extend']) && ($addon['tips']['extend'] !== '')?$addon['tips']['extend']:'alert-info-light'); ?>" style="margin-bottom:10px;">
- <?php if($addon['tips']['title']): ?>
- <b><?php echo htmlentities($addon['tips']['title'] ?? ''); ?></b><br>
- <?php endif; ?>
- <?php echo htmlentities($addon['tips']['value'] ?? ''); ?>
- </div>
- <?php endif; ?>
- <div class="panel panel-default panel-intro">
- <?php if(count($groupList)>1): ?>
- <div class="panel-heading mb-3">
- <ul class="nav nav-tabs nav-group">
- <li class="active"><a href="#all" data-toggle="tab">全部</a></li>
- <?php if(is_array($groupList) || $groupList instanceof \think\Collection || $groupList instanceof \think\Paginator): if( count($groupList)==0 ) : echo "" ;else: foreach($groupList as $key=>$tab): ?>
- <li><a href="#tab-<?php echo htmlentities($key ?? ''); ?>" title="<?php echo htmlentities($tab ?? ''); ?>" data-toggle="tab"><?php echo htmlentities($tab ?? ''); ?></a></li>
- <?php endforeach; endif; else: echo "" ;endif; ?>
- </ul>
- </div>
- <?php endif; ?>
- <div class="panel-body no-padding">
- <div id="myTabContent" class="tab-content">
- <?php if(is_array($groupList) || $groupList instanceof \think\Collection || $groupList instanceof \think\Paginator): if( count($groupList)==0 ) : echo "" ;else: foreach($groupList as $groupName=>$group): ?>
- <div class="tab-pane fade active in" id="tab-<?php echo htmlentities($groupName ?? ''); ?>">
- <table class="table table-striped table-config mb-0">
- <tbody>
- <?php if(is_array($addon['config']) || $addon['config'] instanceof \think\Collection || $addon['config'] instanceof \think\Paginator): if( count($addon['config'])==0 ) : echo "" ;else: foreach($addon['config'] as $key=>$item): if(((!isset($item['group']) || $item['group']=='') && $groupName=='other') || (isset($item['group']) && $item['group']==$group)): ?>
- <tr data-favisible="<?php echo htmlentities((isset($item['visible']) && ($item['visible'] !== '')?$item['visible']:'') ?? ''); ?>" data-name="<?php echo htmlentities($item['name'] ?? ''); ?>" class="<?php if($item['visible']??''): ?>hidden<?php endif; ?>">
- <td width="15%"><?php echo htmlentities($item['title'] ?? ''); ?></td>
- <td>
- <div class="row">
- <div class="col-sm-8 col-xs-12">
- <?php switch($item['type']): case "string": ?>
- <input <?php echo $item['extend']; ?> type="text" name="row[<?php echo htmlentities($item['name'] ?? ''); ?>]" value="<?php echo htmlentities($item['value'] ?? ''); ?>" class="form-control" data-rule="<?php echo htmlentities($item['rule'] ?? ''); ?>" data-tip="<?php echo htmlentities($item['tip'] ?? ''); ?>"/>
- <?php break; case "password": ?>
- <input <?php echo $item['extend']; ?> type="password" name="row[<?php echo htmlentities($item['name'] ?? ''); ?>]" value="<?php echo htmlentities($item['value'] ?? ''); ?>" class="form-control" data-rule="<?php echo htmlentities($item['rule'] ?? ''); ?>" data-tip="<?php echo htmlentities($item['tip'] ?? ''); ?>"/>
- <?php break; case "text": ?>
- <textarea <?php echo $item['extend']; ?> name="row[<?php echo htmlentities($item['name'] ?? ''); ?>]" class="form-control" data-rule="<?php echo htmlentities($item['rule'] ?? ''); ?>" rows="5" data-tip="<?php echo htmlentities($item['tip'] ?? ''); ?>"><?php echo htmlentities($item['value'] ?? ''); ?></textarea>
- <?php break; case "array": ?>
- <dl class="fieldlist" data-name="row[<?php echo htmlentities($item['name'] ?? ''); ?>]">
- <dd>
- <ins><?php echo __('Array key'); ?></ins>
- <ins><?php echo __('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 htmlentities($item['name'] ?? ''); ?>]" cols="30" rows="5" class="hide"><?php echo htmlentities(json_encode($item['value'] ?? '') ?? ''); ?></textarea>
- </dl>
- <?php break; case "date": ?>
- <input <?php echo $item['extend']; ?> type="text" name="row[<?php echo htmlentities($item['name'] ?? ''); ?>]" value="<?php echo htmlentities($item['value'] ?? ''); ?>" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-tip="<?php echo htmlentities($item['tip'] ?? ''); ?>" data-rule="<?php echo htmlentities($item['rule'] ?? ''); ?>"/>
- <?php break; case "time": ?>
- <input <?php echo $item['extend']; ?> type="text" name="row[<?php echo htmlentities($item['name'] ?? ''); ?>]" value="<?php echo htmlentities($item['value'] ?? ''); ?>" class="form-control datetimepicker" data-date-format="HH:mm:ss" data-tip="<?php echo htmlentities($item['tip'] ?? ''); ?>" data-rule="<?php echo htmlentities($item['rule'] ?? ''); ?>"/>
- <?php break; case "datetime": ?>
- <input <?php echo $item['extend']; ?> type="text" name="row[<?php echo htmlentities($item['name'] ?? ''); ?>]" value="<?php echo htmlentities($item['value'] ?? ''); ?>" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-tip="<?php echo htmlentities($item['tip'] ?? ''); ?>" data-rule="<?php echo htmlentities($item['rule'] ?? ''); ?>"/>
- <?php break; case "number": ?>
- <input <?php echo $item['extend']; ?> type="number" name="row[<?php echo htmlentities($item['name'] ?? ''); ?>]" value="<?php echo htmlentities($item['value'] ?? ''); ?>" class="form-control" data-tip="<?php echo htmlentities($item['tip'] ?? ''); ?>" data-rule="<?php echo htmlentities($item['rule'] ?? ''); ?>"/>
- <?php break; case "checkbox": 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 htmlentities($item['name'] ?? ''); ?>][]-<?php echo htmlentities($key ?? ''); ?>"><input id="row[<?php echo htmlentities($item['name'] ?? ''); ?>][]-<?php echo htmlentities($key ?? ''); ?>" name="row[<?php echo htmlentities($item['name'] ?? ''); ?>][]" type="checkbox" value="<?php echo htmlentities($key ?? ''); ?>" data-tip="<?php echo htmlentities($item['tip'] ?? ''); ?>" <?php if(in_array(($key), is_array($item['value'])?$item['value']:explode(',',$item['value']))): ?>checked<?php endif; ?> /> <?php echo htmlentities($vo ?? ''); ?></label>
- <?php endforeach; endif; else: echo "" ;endif; ?>
- <span class="msg-box n-right" for="row[<?php echo htmlentities($item['name'] ?? ''); ?>]"></span>
- <?php break; case "radio": 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 htmlentities($item['name'] ?? ''); ?>]-<?php echo htmlentities($key ?? ''); ?>"><input id="row[<?php echo htmlentities($item['name'] ?? ''); ?>]-<?php echo htmlentities($key ?? ''); ?>" name="row[<?php echo htmlentities($item['name'] ?? ''); ?>]" type="radio" value="<?php echo htmlentities($key ?? ''); ?>" data-tip="<?php echo htmlentities($item['tip'] ?? ''); ?>" <?php if(in_array(($key), is_array($item['value'])?$item['value']:explode(',',$item['value']))): ?>checked<?php endif; ?> /> <?php echo htmlentities($vo ?? ''); ?></label>
- <?php endforeach; endif; else: echo "" ;endif; ?>
- <span class="msg-box n-right" for="row[<?php echo htmlentities($item['name'] ?? ''); ?>]"></span>
- <?php break; case "select": case "selects": ?>
- <select <?php echo $item['extend']; ?> name="row[<?php echo htmlentities($item['name'] ?? ''); ?>]<?php echo $item['type']=='selects'?'[]':''; ?>" class="form-control selectpicker" data-tip="<?php echo htmlentities($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 htmlentities($key ?? ''); ?>" <?php if(in_array(($key), is_array($item['value'])?$item['value']:explode(',',$item['value']))): ?>selected<?php endif; ?>><?php echo htmlentities($vo ?? ''); ?></option>
- <?php endforeach; endif; else: echo "" ;endif; ?>
- </select>
- <?php break; case "image": case "images": ?>
- <div class="form-inline">
- <input id="c-<?php echo htmlentities($item['name'] ?? ''); ?>" class="form-control" size="28" name="row[<?php echo htmlentities($item['name'] ?? ''); ?>]" type="text" value="<?php echo htmlentities($item['value'] ?? ''); ?>" data-tip="<?php echo htmlentities($item['tip'] ?? ''); ?>">
- <span><button type="button" id="plupload-<?php echo htmlentities($item['name'] ?? ''); ?>" class="btn btn-danger plupload" data-input-id="c-<?php echo htmlentities($item['name'] ?? ''); ?>" data-mimetype="image/*" data-multiple="<?php echo $item['type']=='image'?'false':'true'; ?>" data-preview-id="p-<?php echo htmlentities($item['name'] ?? ''); ?>"><i class="fa fa-upload"></i> <?php echo __('Upload'); ?></button></span>
- <span><button type="button" id="fachoose-<?php echo htmlentities($item['name'] ?? ''); ?>" class="btn btn-primary fachoose" data-input-id="c-<?php echo htmlentities($item['name'] ?? ''); ?>" data-mimetype="image/*" data-multiple="<?php echo $item['type']=='image'?'false':'true'; ?>"><i class="fa fa-list"></i> <?php echo __('Choose'); ?></button></span>
- <ul class="row list-inline plupload-preview" id="p-<?php echo htmlentities($item['name'] ?? ''); ?>"></ul>
- <span class="msg-box n-right" for="c-<?php echo htmlentities($item['name'] ?? ''); ?>"></span>
- </div>
- <?php break; case "file": case "files": ?>
- <div class="form-inline">
- <input id="c-<?php echo htmlentities($item['name'] ?? ''); ?>" class="form-control" size="28" name="row[<?php echo htmlentities($item['name'] ?? ''); ?>]" type="text" value="<?php echo htmlentities($item['value'] ?? ''); ?>" data-tip="<?php echo htmlentities($item['tip'] ?? ''); ?>">
- <span><button type="button" id="plupload-<?php echo htmlentities($item['name'] ?? ''); ?>" class="btn btn-danger plupload" data-input-id="c-<?php echo htmlentities($item['name'] ?? ''); ?>" data-multiple="<?php echo $item['type']=='file'?'false':'true'; ?>"><i class="fa fa-upload"></i> <?php echo __('Upload'); ?></button></span>
- <span><button type="button" id="fachoose-<?php echo htmlentities($item['name'] ?? ''); ?>" class="btn btn-primary fachoose" data-input-id="c-<?php echo htmlentities($item['name'] ?? ''); ?>" data-multiple="<?php echo $item['type']=='file'?'false':'true'; ?>"><i class="fa fa-list"></i> <?php echo __('Choose'); ?></button></span>
- <span class="msg-box n-right" for="c-<?php echo htmlentities($item['name'] ?? ''); ?>"></span>
- </div>
- <?php break; case "switch": ?>
- <input id="c-<?php echo htmlentities($item['name'] ?? ''); ?>" name="row[<?php echo htmlentities($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 htmlentities($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 htmlentities($item['name'] ?? ''); ?>]-yes"><input id="row[<?php echo htmlentities($item['name'] ?? ''); ?>]-yes" name="row[<?php echo htmlentities($item['name'] ?? ''); ?>]" type="radio" value="1" <?php echo !empty($item['value'])?'checked':''; ?> data-tip="<?php echo htmlentities($item['tip'] ?? ''); ?>" /> <?php echo __('Yes'); ?></label>
- <label for="row[<?php echo htmlentities($item['name'] ?? ''); ?>]-no"><input id="row[<?php echo htmlentities($item['name'] ?? ''); ?>]-no" name="row[<?php echo htmlentities($item['name'] ?? ''); ?>]" type="radio" value="0" <?php echo !empty($item['value'])?'':'checked'; ?> data-tip="<?php echo htmlentities($item['tip'] ?? ''); ?>" /> <?php echo __('No'); ?></label>
- <?php break; default: ?><?php echo htmlentities($item['value'] ?? ''); endswitch; ?>
- </div>
- <div class="col-sm-4"></div>
- </div>
- </td>
- </tr>
- <?php endif; endforeach; endif; else: echo "" ;endif; ?>
- </tbody>
- </table>
- </div>
- <?php endforeach; endif; else: echo "" ;endif; ?>
- <div class="form-group layer-footer">
- <label class="control-label col-xs-12 col-sm-2" style="width:15%;"></label>
- <div class="col-xs-12 col-sm-8">
- <button 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>
- </div>
- </div>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <script src="/assets/js/require.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>
|