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.
 
 
 
 
 
 

191 lines
9.5 KiB

  1. <?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:87:"/usr/share/nginx/vietnam/shop/public/../application/admin/view/unishop/product/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. <style>
  51. .width100 li {
  52. width: 100% !important;
  53. }
  54. </style>
  55. <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  56. <div class="form-group">
  57. <label class="control-label col-xs-12 col-sm-2"><?php echo __('Category_id'); ?>:</label>
  58. <div class="col-xs-12 col-sm-8">
  59. <input id="c-category_id" data-rule="required" data-source="unishop/category/index"
  60. data-params='{"custom[type]":"product"}' class="form-control selectpage" name="row[category_id]"
  61. type="text" value="">
  62. </div>
  63. </div>
  64. <div class="form-group">
  65. <label class="control-label col-xs-12 col-sm-2"><?php echo __('Title'); ?>:</label>
  66. <div class="col-xs-12 col-sm-8">
  67. <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text">
  68. </div>
  69. </div>
  70. <div class="form-group">
  71. <label class="control-label col-xs-12 col-sm-2"><?php echo __('Image'); ?>:</label>
  72. <div class="col-xs-12 col-sm-8">
  73. <div class="input-group">
  74. <input id="c-image" data-rule="required" class="form-control" size="50" name="row[image]" type="text">
  75. <div class="input-group-addon no-border no-padding">
  76. <span><button type="button" id="plupload-image" class="btn btn-danger plupload"
  77. data-input-id="c-image"
  78. data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp"
  79. data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> <?php echo __('Upload'); ?></button></span>
  80. <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose"
  81. data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i
  82. class="fa fa-list"></i> <?php echo __('Choose'); ?></button></span>
  83. </div>
  84. <span class="msg-box n-right" for="c-image"></span>
  85. </div>
  86. <ul class="row list-inline plupload-preview" id="p-image"></ul>
  87. </div>
  88. </div>
  89. <div class="form-group">
  90. <label class="control-label col-xs-12 col-sm-2"><?php echo __('Images'); ?>:</label>
  91. <div class="col-xs-12 col-sm-8">
  92. <div class="input-group">
  93. <input id="c-images" data-rule="required" class="form-control" size="50" name="row[images]" type="text">
  94. <div class="input-group-addon no-border no-padding">
  95. <span><button type="button" id="plupload-images" class="btn btn-danger plupload"
  96. data-input-id="c-images"
  97. data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp"
  98. data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> <?php echo __('Upload'); ?></button></span>
  99. <span><button type="button" id="fachoose-images" class="btn btn-primary fachoose"
  100. data-input-id="c-images" data-mimetype="image/*" data-multiple="true"><i
  101. class="fa fa-list"></i> <?php echo __('Choose'); ?></button></span>
  102. </div>
  103. <span class="msg-box n-right" for="c-images"></span>
  104. </div>
  105. <ul class="row list-inline plupload-preview" id="p-images"></ul>
  106. </div>
  107. </div>
  108. <style>
  109. table tr td, table tr th {
  110. border-right: 1px solid #f1f1f1;
  111. }
  112. </style>
  113. <script>
  114. _market_price = 0.00;
  115. _sales_price = 0.00;
  116. _stock = 0;
  117. _sales = 0;
  118. _specList = '';
  119. _specTableList = '';
  120. _use_spec = 0;
  121. </script>
  122. <div id="spec">
  123. </div>
  124. <div class="form-group">
  125. <label class="control-label col-xs-12 col-sm-2"><?php echo __('Desc'); ?>:</label>
  126. <div class="col-xs-12 col-sm-8">
  127. <textarea id="c-desc" class="form-control editor" rows="5" name="row[desc]"
  128. cols="50"></textarea>
  129. </div>
  130. </div>
  131. <div class="form-group">
  132. <label class="control-label col-xs-12 col-sm-2"><?php echo __('Look'); ?>:</label>
  133. <div class="col-xs-12 col-sm-8">
  134. <input id="c-look" data-rule="required" min="0" class="form-control" name="row[look]" type="number" value="0">
  135. </div>
  136. </div>
  137. <div class="form-group">
  138. <label 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" data-rule="required" class="form-control" name="row[weigh]" type="number" value="0">
  141. </div>
  142. </div>
  143. <!-- <div class="form-group">-->
  144. <!-- <label class="control-label col-xs-12 col-sm-2"><?php echo __('Assign delivery'); ?>:</label>-->
  145. <!-- <div class="col-xs-12 col-sm-8">-->
  146. <!-- <input id="c-delivery_id" data-rule="" data-source="unishop/delivery/index" class="form-control selectpage"-->
  147. <!-- name="row[delivery_id]" type="text" value="">-->
  148. <!-- </div>-->
  149. <!-- </div>-->
  150. <div class="form-group">
  151. <label class="control-label col-xs-12 col-sm-2"><?php echo __('Server'); ?>:</label>
  152. <div class="col-xs-12 col-sm-8">
  153. <?php echo build_checkboxs('row[server][]', $servers, [], ['class'=>'form-control', 'required'=>'']); ?>
  154. </div>
  155. </div>
  156. <div class="form-group">
  157. <label class="control-label col-xs-12 col-sm-2"><?php echo __('Switch'); ?>:</label>
  158. <div class="col-xs-12 col-sm-8">
  159. <?php echo build_radios('row[switch]', ['1'=>__('Yes'), '0'=>__('No')], 1); ?>
  160. </div>
  161. </div>
  162. <div class="form-group layer-footer">
  163. <label class="control-label col-xs-12 col-sm-2"></label>
  164. <div class="col-xs-12 col-sm-8">
  165. <button type="submit" class="btn btn-success btn-embossed disabled"><?php echo __('OK'); ?></button>
  166. <button type="reset" class="btn btn-default btn-embossed"><?php echo __('Reset'); ?></button>
  167. </div>
  168. </div>
  169. </form>
  170. </div>
  171. </div>
  172. </div>
  173. </div>
  174. </div>
  175. </div>
  176. <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>
  177. </body>
  178. </html>