99f333cdaa6532a094bede03cf960d05.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. <?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;}*/ ?>
  2. <!DOCTYPE html>
  3. <html lang="<?php echo $config['language']; ?>">
  4. <head>
  5. <meta charset="utf-8">
  6. <title><?php echo (isset($title) && ($title !== '')?$title:''); ?></title>
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
  8. <meta name="renderer" content="webkit">
  9. <meta name="referrer" content="never">
  10. <meta name="robots" content="noindex, nofollow">
  11. <link rel="shortcut icon" href="/assets/img/favicon.ico" />
  12. <!-- Loading Bootstrap -->
  13. <link href="/assets/css/backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">
  14. <?php if(\think\Config::get('fastadmin.adminskin')): ?>
  15. <link href="/assets/css/skins/<?php echo \think\Config::get('fastadmin.adminskin'); ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">
  16. <?php endif; ?>
  17. <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
  18. <!--[if lt IE 9]>
  19. <script src="/assets/js/html5shiv.js"></script>
  20. <script src="/assets/js/respond.min.js"></script>
  21. <![endif]-->
  22. <script type="text/javascript">
  23. var require = {
  24. config: <?php echo json_encode($config); ?>
  25. };
  26. </script>
  27. </head>
  28. <body class="inside-header inside-aside <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
  29. <div id="main" role="main">
  30. <div class="tab-content tab-addtabs">
  31. <div id="content">
  32. <div class="row">
  33. <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
  34. <section class="content-header hide">
  35. <h1>
  36. <?php echo __('Dashboard'); ?>
  37. <small><?php echo __('Control panel'); ?></small>
  38. </h1>
  39. </section>
  40. <?php if(!IS_DIALOG && !\think\Config::get('fastadmin.multiplenav') && \think\Config::get('fastadmin.breadcrumb')): ?>
  41. <!-- RIBBON -->
  42. <div id="ribbon">
  43. <ol class="breadcrumb pull-left">
  44. <?php if($auth->check('dashboard')): ?>
  45. <li><a href="dashboard" class="addtabsit"><i class="fa fa-dashboard"></i> <?php echo __('Dashboard'); ?></a></li>
  46. <?php endif; ?>
  47. </ol>
  48. <ol class="breadcrumb pull-right">
  49. <?php foreach($breadcrumb as $vo): ?>
  50. <li><a href="javascript:;" data-url="<?php echo $vo['url']; ?>"><?php echo $vo['title']; ?></a></li>
  51. <?php endforeach; ?>
  52. </ol>
  53. </div>
  54. <!-- END RIBBON -->
  55. <?php endif; ?>
  56. <div class="content">
  57. <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  58. <?php echo token(); ?>
  59. <div class="form-group">
  60. <label for="c-type" class="control-label col-xs-12 col-sm-2"><?php echo __('Type'); ?>:</label>
  61. <div class="col-xs-12 col-sm-8">
  62. <select id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]">
  63. <?php if(is_array($typeList) || $typeList instanceof \think\Collection || $typeList instanceof \think\Paginator): if( count($typeList)==0 ) : echo "" ;else: foreach($typeList as $key=>$vo): ?>
  64. <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>
  65. <?php endforeach; endif; else: echo "" ;endif; ?>
  66. </select>
  67. </div>
  68. </div>
  69. <div class="form-group">
  70. <label for="c-pid" class="control-label col-xs-12 col-sm-2"><?php echo __('Pid'); ?>:</label>
  71. <div class="col-xs-12 col-sm-8">
  72. <select id="c-pid" data-rule="required" class="form-control selectpicker" name="row[pid]">
  73. <?php if(is_array($parentList) || $parentList instanceof \think\Collection || $parentList instanceof \think\Paginator): if( count($parentList)==0 ) : echo "" ;else: foreach($parentList as $key=>$vo): ?>
  74. <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>
  75. <?php endforeach; endif; else: echo "" ;endif; ?>
  76. </select>
  77. </div>
  78. </div>
  79. <div class="form-group">
  80. <label for="c-name" class="control-label col-xs-12 col-sm-2"><?php echo __('Name'); ?>:</label>
  81. <div class="col-xs-12 col-sm-8">
  82. <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="<?php echo htmlentities($row['name']); ?>">
  83. </div>
  84. </div>
  85. <div class="form-group">
  86. <label for="c-nickname" class="control-label col-xs-12 col-sm-2">标签:</label>
  87. <div class="col-xs-12 col-sm-8">
  88. <input id="c-nickname" data-rule="required" class="form-control" name="row[nickname]" type="text" value="<?php echo htmlentities($row['nickname']); ?>">
  89. </div>
  90. </div>
  91. <div class="form-group">
  92. <dl class="fieldlist" data-name="row[content]" data-template="fieldtpl" style="margin-left: 100px">
  93. <dd>
  94. <ins>名称</ins>
  95. <ins>内容</ins>
  96. </dd>
  97. <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> <?php echo __('Append'); ?></a></dd>
  98. <textarea name="row[content]" class="form-control hide" cols="30" rows="5"><?php echo $row['content']; ?></textarea>
  99. </dl>
  100. </div>
  101. <!-- <div class="form-group">-->
  102. <!-- <label for="c-flag" class="control-label col-xs-12 col-sm-2"><?php echo __('Flag'); ?>:</label>-->
  103. <!-- <div class="col-xs-12 col-sm-8">-->
  104. <!-- <select id="c-flag" class="form-control selectpicker" multiple="" name="row[flag][]">-->
  105. <!-- <?php if(is_array($flagList) || $flagList instanceof \think\Collection || $flagList instanceof \think\Paginator): if( count($flagList)==0 ) : echo "" ;else: foreach($flagList as $key=>$vo): ?>-->
  106. <!-- <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>-->
  107. <!-- <?php endforeach; endif; else: echo "" ;endif; ?>-->
  108. <!-- </select>-->
  109. <!-- </div>-->
  110. <!-- </div>-->
  111. <!-- <div class="form-group">-->
  112. <!-- <label for="c-image" class="control-label col-xs-12 col-sm-2"><?php echo __('Image'); ?>:</label>-->
  113. <!-- <div class="col-xs-12 col-sm-8">-->
  114. <!-- <div class="input-group">-->
  115. <!-- <input id="c-image" class="form-control" size="35" name="row[image]" type="text" value="<?php echo $row['image']; ?>">-->
  116. <!-- <div class="input-group-addon no-border no-padding">-->
  117. <!-- <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>-->
  118. <!-- <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>-->
  119. <!-- </div>-->
  120. <!-- <span class="msg-box n-right"></span>-->
  121. <!-- </div>-->
  122. <!-- <ul class="row list-inline faupload-preview" id="p-image"></ul>-->
  123. <!-- </div>-->
  124. <!-- </div>-->
  125. <!-- <div class="form-group">-->
  126. <!-- <label for="c-keywords" class="control-label col-xs-12 col-sm-2"><?php echo __('Keywords'); ?>:</label>-->
  127. <!-- <div class="col-xs-12 col-sm-8">-->
  128. <!-- <input id="c-keywords" class="form-control" name="row[keywords]" type="text" value="<?php echo htmlentities($row['keywords']); ?>">-->
  129. <!-- </div>-->
  130. <!-- </div>-->
  131. <!-- <div class="form-group">-->
  132. <!-- <label for="c-description" class="control-label col-xs-12 col-sm-2"><?php echo __('Description'); ?>:</label>-->
  133. <!-- <div class="col-xs-12 col-sm-8">-->
  134. <!-- <textarea id="c-description" class="form-control" name="row[description]"><?php echo htmlentities($row['description']); ?></textarea>-->
  135. <!-- </div>-->
  136. <!-- </div>-->
  137. <!-- <div class="form-group">-->
  138. <!-- <label for="c-weigh" class="control-label col-xs-12 col-sm-2"><?php echo __('Weigh'); ?>:</label>-->
  139. <!-- <div class="col-xs-12 col-sm-8">-->
  140. <!-- <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="<?php echo $row['weigh']; ?>">-->
  141. <!-- </div>-->
  142. <!-- </div>-->
  143. <div class="form-group">
  144. <label class="control-label col-xs-12 col-sm-2"><?php echo __('Status'); ?>:</label>
  145. <div class="col-xs-12 col-sm-8">
  146. <?php echo build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')], $row['status']); ?>
  147. </div>
  148. </div>
  149. <div class="form-group layer-footer">
  150. <label class="control-label col-xs-12 col-sm-2"></label>
  151. <div class="col-xs-12 col-sm-8">
  152. <button type="submit" class="btn btn-success btn-embossed disabled"><?php echo __('OK'); ?></button>
  153. <button type="reset" class="btn btn-default btn-embossed"><?php echo __('Reset'); ?></button>
  154. </div>
  155. </div>
  156. </form>
  157. <!--以下是自定义模板的内容-->
  158. <script id="fieldtpl">
  159. <dd class="form-inline">
  160. <input type="text" name="<%=name%>[<%=index%>][key]" class="form-control" value="<%=row.key%>" size="10" />
  161. <input type="text" name="<%=name%>[<%=index%>][name]" class="form-control" value="<%=row.name%>" size="30" />
  162. <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
  163. <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
  164. </dd>
  165. </script>
  166. </div>
  167. </div>
  168. </div>
  169. </div>
  170. </div>
  171. </div>
  172. <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>
  173. </body>
  174. </html>