123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189 |
- <?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:72:"/www/wwwroot/baoxian/public/../application/admin/view/category/edit.html";i:1627698986;s:63:"/www/wwwroot/baoxian/application/admin/view/layout/default.html";i:1627698986;s:60:"/www/wwwroot/baoxian/application/admin/view/common/meta.html";i:1627698986;s:62:"/www/wwwroot/baoxian/application/admin/view/common/script.html";i:1627698986;}*/ ?>
- <!DOCTYPE html>
- <html lang="<?php echo $config['language']; ?>">
- <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">
- <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
- <?php echo token(); ?>
- <div class="form-group">
- <label for="c-type" class="control-label col-xs-12 col-sm-2"><?php echo __('Type'); ?>:</label>
- <div class="col-xs-12 col-sm-8">
- <select id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]">
- <?php if(is_array($typeList) || $typeList instanceof \think\Collection || $typeList instanceof \think\Paginator): if( count($typeList)==0 ) : echo "" ;else: foreach($typeList as $key=>$vo): ?>
- <option value="<?php echo $key; ?>" <?php if(in_array(($key), is_array($row['type'])?$row['type']:explode(',',$row['type']))): ?>selected<?php endif; ?>><?php echo $vo; ?></option>
- <?php endforeach; endif; else: echo "" ;endif; ?>
- </select>
- </div>
- </div>
- <div class="form-group">
- <label for="c-pid" class="control-label col-xs-12 col-sm-2"><?php echo __('Pid'); ?>:</label>
- <div class="col-xs-12 col-sm-8">
- <select id="c-pid" data-rule="required" class="form-control selectpicker" name="row[pid]">
- <?php if(is_array($parentList) || $parentList instanceof \think\Collection || $parentList instanceof \think\Paginator): if( count($parentList)==0 ) : echo "" ;else: foreach($parentList as $key=>$vo): ?>
- <option data-type="<?php echo $vo['type']; ?>" class="<?php echo $vo['type']==$row['type']||$vo['type']=='all'?'':'hide'; ?>" value="<?php echo $key; ?>" <?php if(in_array(($key), is_array($row['pid'])?$row['pid']:explode(',',$row['pid']))): ?>selected<?php endif; ?>><?php echo $vo['name']; ?></option>
- <?php endforeach; endif; else: echo "" ;endif; ?>
- </select>
- </div>
- </div>
- <div class="form-group">
- <label for="c-name" class="control-label col-xs-12 col-sm-2"><?php echo __('Name'); ?>:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="<?php echo htmlentities($row['name']); ?>">
- </div>
- </div>
- <div class="form-group">
- <label for="c-nickname" class="control-label col-xs-12 col-sm-2">标签:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-nickname" data-rule="required" class="form-control" name="row[nickname]" type="text" value="<?php echo htmlentities($row['nickname']); ?>">
- </div>
- </div>
- <div class="form-group">
- <dl class="fieldlist" data-name="row[content]" data-template="fieldtpl" style="margin-left: 100px">
- <dd>
- <ins>名称</ins>
- <ins>内容</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[content]" class="form-control hide" cols="30" rows="5"><?php echo $row['content']; ?></textarea>
- </dl>
- </div>
- <!-- <div class="form-group">-->
- <!-- <label for="c-flag" class="control-label col-xs-12 col-sm-2"><?php echo __('Flag'); ?>:</label>-->
- <!-- <div class="col-xs-12 col-sm-8">-->
- <!-- <select id="c-flag" class="form-control selectpicker" multiple="" name="row[flag][]">-->
- <!-- <?php if(is_array($flagList) || $flagList instanceof \think\Collection || $flagList instanceof \think\Paginator): if( count($flagList)==0 ) : echo "" ;else: foreach($flagList as $key=>$vo): ?>-->
- <!-- <option value="<?php echo $key; ?>" <?php if(in_array(($key), is_array($row['flag'])?$row['flag']:explode(',',$row['flag']))): ?>selected<?php endif; ?>><?php echo $vo; ?></option>-->
- <!-- <?php endforeach; endif; else: echo "" ;endif; ?>-->
- <!-- </select>-->
- <!-- </div>-->
- <!-- </div>-->
- <!-- <div class="form-group">-->
- <!-- <label for="c-image" class="control-label col-xs-12 col-sm-2"><?php echo __('Image'); ?>:</label>-->
- <!-- <div class="col-xs-12 col-sm-8">-->
- <!-- <div class="input-group">-->
- <!-- <input id="c-image" class="form-control" size="35" name="row[image]" type="text" value="<?php echo $row['image']; ?>">-->
- <!-- <div class="input-group-addon no-border no-padding">-->
- <!-- <span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> <?php echo __('Upload'); ?></button></span>-->
- <!-- <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> <?php echo __('Choose'); ?></button></span>-->
- <!-- </div>-->
- <!-- <span class="msg-box n-right"></span>-->
- <!-- </div>-->
- <!-- <ul class="row list-inline faupload-preview" id="p-image"></ul>-->
- <!-- </div>-->
- <!-- </div>-->
- <!-- <div class="form-group">-->
- <!-- <label for="c-keywords" class="control-label col-xs-12 col-sm-2"><?php echo __('Keywords'); ?>:</label>-->
- <!-- <div class="col-xs-12 col-sm-8">-->
- <!-- <input id="c-keywords" class="form-control" name="row[keywords]" type="text" value="<?php echo htmlentities($row['keywords']); ?>">-->
- <!-- </div>-->
- <!-- </div>-->
- <!-- <div class="form-group">-->
- <!-- <label for="c-description" class="control-label col-xs-12 col-sm-2"><?php echo __('Description'); ?>:</label>-->
- <!-- <div class="col-xs-12 col-sm-8">-->
- <!-- <textarea id="c-description" class="form-control" name="row[description]"><?php echo htmlentities($row['description']); ?></textarea>-->
- <!-- </div>-->
- <!-- </div>-->
- <!-- <div class="form-group">-->
- <!-- <label for="c-weigh" class="control-label col-xs-12 col-sm-2"><?php echo __('Weigh'); ?>:</label>-->
- <!-- <div class="col-xs-12 col-sm-8">-->
- <!-- <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="<?php echo $row['weigh']; ?>">-->
- <!-- </div>-->
- <!-- </div>-->
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2"><?php echo __('Status'); ?>:</label>
- <div class="col-xs-12 col-sm-8">
- <?php echo build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')], $row['status']); ?>
- </div>
- </div>
- <div class="form-group layer-footer">
- <label class="control-label col-xs-12 col-sm-2"></label>
- <div class="col-xs-12 col-sm-8">
- <button type="submit" class="btn btn-success btn-embossed disabled"><?php echo __('OK'); ?></button>
- <button type="reset" class="btn btn-default btn-embossed"><?php echo __('Reset'); ?></button>
- </div>
- </div>
- </form>
- <!--以下是自定义模板的内容-->
- <script id="fieldtpl">
- <dd class="form-inline">
- <input type="text" name="<%=name%>[<%=index%>][key]" class="form-control" value="<%=row.key%>" size="10" />
- <input type="text" name="<%=name%>[<%=index%>][name]" class="form-control" value="<%=row.name%>" size="30" />
- <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
- <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
- </dd>
- </script>
- </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>
|