copy.html 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <style>
  2. .width100 li {
  3. width: 100% !important;
  4. }
  5. </style>
  6. <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  7. <div class="form-group">
  8. <label class="control-label col-xs-12 col-sm-2">{:__('Category_id')}:</label>
  9. <div class="col-xs-12 col-sm-8">
  10. {$categoryList}
  11. </div>
  12. </div>
  13. <div class="form-group">
  14. <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
  15. <div class="col-xs-12 col-sm-8">
  16. <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text" value="{$row.title}">
  17. </div>
  18. </div>
  19. <div class="form-group">
  20. <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
  21. <div class="col-xs-12 col-sm-8">
  22. <div class="input-group">
  23. <input id="c-image" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="{$row.image}">
  24. <div class="input-group-addon no-border no-padding">
  25. <span><button type="button" id="plupload-image" class="btn btn-danger plupload"
  26. data-input-id="c-image"
  27. data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp"
  28. data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  29. <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose"
  30. data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i
  31. class="fa fa-list"></i> {:__('Choose')}</button></span>
  32. </div>
  33. <span class="msg-box n-right" for="c-image"></span>
  34. </div>
  35. <ul class="row list-inline plupload-preview" id="p-image"></ul>
  36. </div>
  37. </div>
  38. <div class="form-group">
  39. <label class="control-label col-xs-12 col-sm-2">{:__('Images')}:</label>
  40. <div class="col-xs-12 col-sm-8">
  41. <div class="input-group">
  42. <input id="c-images" data-rule="required" class="form-control" size="50" name="row[images]" type="text" value="{$row.images}">
  43. <div class="input-group-addon no-border no-padding">
  44. <span><button type="button" id="plupload-images" class="btn btn-danger plupload"
  45. data-input-id="c-images"
  46. data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp"
  47. data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  48. <span><button type="button" id="fachoose-images" class="btn btn-primary fachoose"
  49. data-input-id="c-images" data-mimetype="image/*" data-multiple="true"><i
  50. class="fa fa-list"></i> {:__('Choose')}</button></span>
  51. </div>
  52. <span class="msg-box n-right" for="c-images"></span>
  53. </div>
  54. <ul class="row list-inline plupload-preview" id="p-images"></ul>
  55. </div>
  56. </div>
  57. <style>
  58. table tr td, table tr th {
  59. border-right: 1px solid #f1f1f1;
  60. }
  61. </style>
  62. <script>
  63. _market_price = {$row.market_price ? $row.market_price : 0.00};
  64. _sales_price = {$row.sales_price ? $row.sales_price : 0.00};
  65. _stock = {$row.stock ? $row.stock : 0};
  66. _sales = {$row.sales ? $row.sales : 0};
  67. _specList = {$row.specList ? $row.specList : "''"};
  68. _specTableList = {$row.specTableList ? $row.specTableList : "''"};
  69. _use_spec = {$row.use_spec ? $row.use_spec : 0}; //是否使用
  70. </script>
  71. <div id="spec">
  72. </div>
  73. <div class="form-group">
  74. <label class="control-label col-xs-12 col-sm-2">{:__('Desc')}:</label>
  75. <div class="col-xs-12 col-sm-8">
  76. <textarea id="c-desc" class="form-control editor" rows="5" name="row[desc]"
  77. cols="50">{$row.desc}</textarea>
  78. </div>
  79. </div>
  80. <div class="form-group">
  81. <label class="control-label col-xs-12 col-sm-2">{:__('Look')}:</label>
  82. <div class="col-xs-12 col-sm-8">
  83. <input id="c-look" data-rule="required" class="form-control" name="row[look]" type="number" value="{$row.look}">
  84. </div>
  85. </div>
  86. <div class="form-group">
  87. <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
  88. <div class="col-xs-12 col-sm-8">
  89. <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="{$row.weigh}">
  90. </div>
  91. </div>
  92. <!-- <div class="form-group">-->
  93. <!-- <label class="control-label col-xs-12 col-sm-2">{:__('Assign delivery')}:</label>-->
  94. <!-- <div class="col-xs-12 col-sm-8">-->
  95. <!-- <input id="c-delivery_id" data-rule="" data-source="unishop/delivery/index" class="form-control selectpage"-->
  96. <!-- name="row[delivery_id]" type="text" value="{$row.delivery_id}">-->
  97. <!-- </div>-->
  98. <!-- </div>-->
  99. <div class="form-group">
  100. <label class="control-label col-xs-12 col-sm-2">{:__('Server')}:</label>
  101. <div class="col-xs-12 col-sm-8">
  102. {:build_checkboxs('row[server][]', $servers, $row.server, ['class'=>'form-control', 'required'=>''])}
  103. </div>
  104. </div>
  105. <div class="form-group">
  106. <label class="control-label col-xs-12 col-sm-2">{:__('Switch')}:</label>
  107. <div class="col-xs-12 col-sm-8">
  108. {:build_radios('row[switch]', ['1'=>__('Yes'), '0'=>__('No')], 0)}
  109. </div>
  110. </div>
  111. <div class="form-group layer-footer">
  112. <label class="control-label col-xs-12 col-sm-2"></label>
  113. <div class="col-xs-12 col-sm-8">
  114. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  115. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  116. </div>
  117. </div>
  118. </form>