3736cb56fd517e674e88db7036f83110.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. <?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:71:"/www/wwwroot/baoxian/public/../application/admin/view/category/add.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="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  58. <?php echo token(); ?>
  59. <div class="alert alert-warning-light">
  60. <?php echo __('Category warmtips'); ?>
  61. </div>
  62. <div class="form-group">
  63. <label for="c-type" class="control-label col-xs-12 col-sm-2"><?php echo __('Type'); ?>:</label>
  64. <div class="col-xs-12 col-sm-8">
  65. <select id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]">
  66. <?php if(is_array($typeList) || $typeList instanceof \think\Collection || $typeList instanceof \think\Paginator): if( count($typeList)==0 ) : echo "" ;else: foreach($typeList as $key=>$vo): ?>
  67. <option value="<?php echo $key; ?>" <?php if(in_array(($key), explode(',',""))): ?>selected<?php endif; ?>><?php echo $vo; ?></option>
  68. <?php endforeach; endif; else: echo "" ;endif; ?>
  69. </select>
  70. </div>
  71. </div>
  72. <div class="form-group">
  73. <label for="c-pid" class="control-label col-xs-12 col-sm-2"><?php echo __('Pid'); ?>:</label>
  74. <div class="col-xs-12 col-sm-8">
  75. <select id="c-pid" data-rule="required" class="form-control selectpicker" name="row[pid]">
  76. <?php if(is_array($parentList) || $parentList instanceof \think\Collection || $parentList instanceof \think\Paginator): if( count($parentList)==0 ) : echo "" ;else: foreach($parentList as $key=>$vo): ?>
  77. <option data-type="<?php echo $vo['type']; ?>" value="<?php echo $key; ?>" <?php if(in_array(($key), explode(',',""))): ?>selected<?php endif; ?>><?php echo $vo['name']; ?></option>
  78. <?php endforeach; endif; else: echo "" ;endif; ?>
  79. </select>
  80. </div>
  81. </div>
  82. <div class="form-group">
  83. <label for="c-name" class="control-label col-xs-12 col-sm-2"><?php echo __('Name'); ?>:</label>
  84. <div class="col-xs-12 col-sm-8">
  85. <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="">
  86. </div>
  87. </div>
  88. <div class="form-group">
  89. <label for="c-nickname" class="control-label col-xs-12 col-sm-2">标签:</label>
  90. <div class="col-xs-12 col-sm-8">
  91. <input id="c-nickname" data-rule="required" class="form-control" name="row[nickname]" type="text" value="">
  92. </div>
  93. </div>
  94. <div class="form-group">
  95. <dl class="fieldlist" data-name="row[content]" data-template="fieldtpl" style="margin-left: 100px">
  96. <dd>
  97. <ins>名称</ins>
  98. <ins>内容</ins>
  99. </dd>
  100. <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> <?php echo __('Append'); ?></a></dd>
  101. <textarea name="row[content]" class="form-control hide" cols="30" rows="5"></textarea>
  102. </dl>
  103. </div>
  104. <!-- <div class="form-group">-->
  105. <!-- <label for="c-flag" class="control-label col-xs-12 col-sm-2"><?php echo __('Flag'); ?>:</label>-->
  106. <!-- <div class="col-xs-12 col-sm-8">-->
  107. <!-- <select id="c-flag" class="form-control selectpicker" multiple="" name="row[flag][]">-->
  108. <!-- <?php if(is_array($flagList) || $flagList instanceof \think\Collection || $flagList instanceof \think\Paginator): if( count($flagList)==0 ) : echo "" ;else: foreach($flagList as $key=>$vo): ?>-->
  109. <!-- <option value="<?php echo $key; ?>" <?php if(in_array(($key), explode(',',""))): ?>selected<?php endif; ?>><?php echo $vo; ?></option>-->
  110. <!-- <?php endforeach; endif; else: echo "" ;endif; ?>-->
  111. <!-- </select>-->
  112. <!-- </div>-->
  113. <!-- </div>-->
  114. <!-- <div class="form-group">-->
  115. <!-- <label for="c-image" class="control-label col-xs-12 col-sm-2"><?php echo __('Image'); ?>:</label>-->
  116. <!-- <div class="col-xs-12 col-sm-8">-->
  117. <!-- <div class="input-group">-->
  118. <!-- <input id="c-image" class="form-control" size="35" name="row[image]" type="text" value="">-->
  119. <!-- <div class="input-group-addon no-border no-padding">-->
  120. <!-- <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>-->
  121. <!-- <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>-->
  122. <!-- </div>-->
  123. <!-- <span class="msg-box n-right"></span>-->
  124. <!-- </div>-->
  125. <!-- <ul class="row list-inline faupload-preview" id="p-image"></ul>-->
  126. <!-- </div>-->
  127. <!-- </div>-->
  128. <!-- <div class="form-group">-->
  129. <!-- <label for="c-keywords" class="control-label col-xs-12 col-sm-2"><?php echo __('Keywords'); ?>:</label>-->
  130. <!-- <div class="col-xs-12 col-sm-8">-->
  131. <!-- <input id="c-keywords" class="form-control" name="row[keywords]" type="text" value="">-->
  132. <!-- </div>-->
  133. <!-- </div>-->
  134. <!-- <div class="form-group">-->
  135. <!-- <label for="c-description" class="control-label col-xs-12 col-sm-2"><?php echo __('Description'); ?>:</label>-->
  136. <!-- <div class="col-xs-12 col-sm-8">-->
  137. <!-- <textarea id="c-description" class="form-control" name="row[description]"></textarea>-->
  138. <!-- </div>-->
  139. <!-- </div>-->
  140. <!-- <div class="form-group">-->
  141. <!-- <label for="c-weigh" class="control-label col-xs-12 col-sm-2"><?php echo __('Weigh'); ?>:</label>-->
  142. <!-- <div class="col-xs-12 col-sm-8">-->
  143. <!-- <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="0">-->
  144. <!-- </div>-->
  145. <!-- </div>-->
  146. <div class="form-group">
  147. <label class="control-label col-xs-12 col-sm-2"><?php echo __('Status'); ?>:</label>
  148. <div class="col-xs-12 col-sm-8">
  149. <?php echo build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')]); ?>
  150. </div>
  151. </div>
  152. <div class="form-group layer-footer">
  153. <label class="control-label col-xs-12 col-sm-2"></label>
  154. <div class="col-xs-12 col-sm-8">
  155. <button type="submit" class="btn btn-success btn-embossed disabled"><?php echo __('OK'); ?></button>
  156. <button type="reset" class="btn btn-default btn-embossed"><?php echo __('Reset'); ?></button>
  157. </div>
  158. </div>
  159. </form>
  160. <!--以下是自定义模板的内容-->
  161. <script id="fieldtpl">
  162. <dd class="form-inline">
  163. <input type="text" name="<%=name%>[<%=index%>][key]" class="form-control" value="" size="10" />
  164. <input type="text" name="<%=name%>[<%=index%>][name]" class="form-control" value="" size="30" />
  165. <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
  166. <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
  167. </dd>
  168. </script>
  169. </div>
  170. </div>
  171. </div>
  172. </div>
  173. </div>
  174. </div>
  175. <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>
  176. </body>
  177. </html>