You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

162 lines
9.2 KiB

  1. <?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:88:"/usr/share/nginx/vietnam/shop/public/../application/admin/view/unishop/category/add.html";i:1618728441;s:72:"/usr/share/nginx/vietnam/shop/application/admin/view/layout/default.html";i:1618728441;s:69:"/usr/share/nginx/vietnam/shop/application/admin/view/common/meta.html";i:1618728441;s:71:"/usr/share/nginx/vietnam/shop/application/admin/view/common/script.html";i:1618728441;}*/ ?>
  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. <link rel="shortcut icon" href="/assets/img/favicon.ico" />
  10. <!-- Loading Bootstrap -->
  11. <link href="/assets/css/backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">
  12. <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
  13. <!--[if lt IE 9]>
  14. <script src="/assets/js/html5shiv.js"></script>
  15. <script src="/assets/js/respond.min.js"></script>
  16. <![endif]-->
  17. <script type="text/javascript">
  18. var require = {
  19. config: <?php echo json_encode($config); ?>
  20. };
  21. </script>
  22. </head>
  23. <body class="inside-header inside-aside <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
  24. <div id="main" role="main">
  25. <div class="tab-content tab-addtabs">
  26. <div id="content">
  27. <div class="row">
  28. <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
  29. <section class="content-header hide">
  30. <h1>
  31. <?php echo __('Dashboard'); ?>
  32. <small><?php echo __('Control panel'); ?></small>
  33. </h1>
  34. </section>
  35. <?php if(!IS_DIALOG && !\think\Config::get('fastadmin.multiplenav')): ?>
  36. <!-- RIBBON -->
  37. <div id="ribbon">
  38. <ol class="breadcrumb pull-left">
  39. <li><a href="dashboard" class="addtabsit"><i class="fa fa-dashboard"></i> <?php echo __('Dashboard'); ?></a></li>
  40. </ol>
  41. <ol class="breadcrumb pull-right">
  42. <?php foreach($breadcrumb as $vo): ?>
  43. <li><a href="javascript:;" data-url="<?php echo $vo['url']; ?>"><?php echo $vo['title']; ?></a></li>
  44. <?php endforeach; ?>
  45. </ol>
  46. </div>
  47. <!-- END RIBBON -->
  48. <?php endif; ?>
  49. <div class="content">
  50. <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  51. <div class="alert alert-warning-light">
  52. <?php echo __('Category warmtips'); ?>
  53. </div>
  54. <div class="form-group">
  55. <label for="c-type" class="control-label col-xs-12 col-sm-2"><?php echo __('Type'); ?>:</label>
  56. <div class="col-xs-12 col-sm-8">
  57. <select id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]">
  58. <?php if(is_array($typeList) || $typeList instanceof \think\Collection || $typeList instanceof \think\Paginator): if( count($typeList)==0 ) : echo "" ;else: foreach($typeList as $key=>$vo): ?>
  59. <option value="<?php echo $key; ?>" <?php if(in_array(($key), explode(',',""))): ?>selected<?php endif; ?>><?php echo $vo; ?></option>
  60. <?php endforeach; endif; else: echo "" ;endif; ?>
  61. </select>
  62. </div>
  63. </div>
  64. <div class="form-group">
  65. <label for="c-pid" class="control-label col-xs-12 col-sm-2"><?php echo __('Pid'); ?>:</label>
  66. <div class="col-xs-12 col-sm-8">
  67. <select id="c-pid" data-rule="required" class="form-control selectpicker" name="row[pid]">
  68. <?php if(is_array($parentList) || $parentList instanceof \think\Collection || $parentList instanceof \think\Paginator): if( count($parentList)==0 ) : echo "" ;else: foreach($parentList as $key=>$vo): ?>
  69. <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>
  70. <?php endforeach; endif; else: echo "" ;endif; ?>
  71. </select>
  72. </div>
  73. </div>
  74. <div class="form-group">
  75. <label for="c-name" class="control-label col-xs-12 col-sm-2"><?php echo __('Name'); ?>:</label>
  76. <div class="col-xs-12 col-sm-8">
  77. <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="">
  78. </div>
  79. </div>
  80. <div class="form-group">
  81. <label for="c-nickname" class="control-label col-xs-12 col-sm-2"><?php echo __('Nickname'); ?>:</label>
  82. <div class="col-xs-12 col-sm-8">
  83. <input id="c-nickname" data-rule="required" class="form-control" name="row[nickname]" type="text" value="">
  84. </div>
  85. </div>
  86. <div class="form-group">
  87. <label for="c-flag" class="control-label col-xs-12 col-sm-2"><?php echo __('Flag'); ?>:</label>
  88. <div class="col-xs-12 col-sm-8">
  89. <select id="c-flag" class="form-control selectpicker" multiple="" name="row[flag][]">
  90. <?php if(is_array($flagList) || $flagList instanceof \think\Collection || $flagList instanceof \think\Paginator): if( count($flagList)==0 ) : echo "" ;else: foreach($flagList as $key=>$vo): ?>
  91. <option value="<?php echo $key; ?>" <?php if(in_array(($key), explode(',',""))): ?>selected<?php endif; ?>><?php echo $vo; ?></option>
  92. <?php endforeach; endif; else: echo "" ;endif; ?>
  93. </select>
  94. </div>
  95. </div>
  96. <div class="form-group">
  97. <label for="c-image" class="control-label col-xs-12 col-sm-2"><?php echo __('Image'); ?>:</label>
  98. <div class="col-xs-12 col-sm-8">
  99. <div class="input-group">
  100. <input id="c-image" class="form-control" size="50" name="row[image]" type="text" value="">
  101. <div class="input-group-addon no-border no-padding">
  102. <span><button type="button" id="plupload-image" class="btn btn-danger plupload" 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>
  103. <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>
  104. </div>
  105. <span class="msg-box n-right"></span>
  106. </div>
  107. <ul class="row list-inline plupload-preview" id="p-image"></ul>
  108. </div>
  109. </div>
  110. <div class="form-group">
  111. <label for="c-keywords" class="control-label col-xs-12 col-sm-2"><?php echo __('Keywords'); ?>:</label>
  112. <div class="col-xs-12 col-sm-8">
  113. <input id="c-keywords" class="form-control" name="row[keywords]" type="text" value="">
  114. </div>
  115. </div>
  116. <div class="form-group">
  117. <label for="c-description" class="control-label col-xs-12 col-sm-2"><?php echo __('Description'); ?>:</label>
  118. <div class="col-xs-12 col-sm-8">
  119. <textarea id="c-description" class="form-control" name="row[description]"></textarea>
  120. </div>
  121. </div>
  122. <div class="form-group">
  123. <label for="c-weigh" class="control-label col-xs-12 col-sm-2"><?php echo __('Weigh'); ?>:</label>
  124. <div class="col-xs-12 col-sm-8">
  125. <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="0">
  126. </div>
  127. </div>
  128. <div class="form-group">
  129. <label class="control-label col-xs-12 col-sm-2"><?php echo __('Status'); ?>:</label>
  130. <div class="col-xs-12 col-sm-8">
  131. <?php echo build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')]); ?>
  132. </div>
  133. </div>
  134. <div class="form-group layer-footer">
  135. <label class="control-label col-xs-12 col-sm-2"></label>
  136. <div class="col-xs-12 col-sm-8">
  137. <button type="submit" class="btn btn-success btn-embossed disabled"><?php echo __('OK'); ?></button>
  138. <button type="reset" class="btn btn-default btn-embossed"><?php echo __('Reset'); ?></button>
  139. </div>
  140. </div>
  141. </form>
  142. </div>
  143. </div>
  144. </div>
  145. </div>
  146. </div>
  147. </div>
  148. <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>
  149. </body>
  150. </html>