add.html 6.2 KB

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