add.html 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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. {$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">
  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">
  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">
  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. <div class="form-group">
  58. <label class="control-label col-xs-12 col-sm-2">{:__('is_dingjin')}:</label>
  59. <div class="col-xs-12 col-sm-8">
  60. {:build_radios('row[is_dingjin]', ['1'=>__('Yes'), '0'=>__('No')], 1)}
  61. </div>
  62. </div>
  63. <div class="form-group">
  64. <label class="control-label col-xs-12 col-sm-2">{:__('Market price')}:</label>
  65. <div class="col-xs-12 col-sm-8">
  66. <input id="c-market_price" name="row[market_price]" min="0" type="number" value="0" class="form-control">
  67. <label><font color="red">定金商品填写</font></label>
  68. </div>
  69. </div>
  70. <div class="form-group">
  71. <label class="control-label col-xs-12 col-sm-2">{:__('Sales price')}:</label>
  72. <div class="col-xs-12 col-sm-8">
  73. <input id="c-sales_price" name="row[sales_price]" min="0" type="number" value="0" class="form-control">
  74. </div>
  75. </div>
  76. <div class="form-group">
  77. <label class="control-label col-xs-12 col-sm-2">{:__('Total stock')}:</label>
  78. <div class="col-xs-12 col-sm-8">
  79. <input id="c-stock" name="row[stock]" min="0" type="number" value="0" class="form-control">
  80. </div>
  81. </div>
  82. <div class="form-group">
  83. <label class="control-label col-xs-12 col-sm-2">{:__('Total sales')}:</label>
  84. <div class="col-xs-12 col-sm-8">
  85. <input id="c-sales" name="row[sales]" min="0" type="number" value="0" class="form-control">
  86. </div>
  87. </div>
  88. <div class="form-group">
  89. <label class="control-label col-xs-12 col-sm-2">{:__('Desc')}:</label>
  90. <div class="col-xs-12 col-sm-8">
  91. <textarea id="c-desc" class="form-control editor" rows="5" name="row[desc]"
  92. cols="50"></textarea>
  93. </div>
  94. </div>
  95. <div class="form-group">
  96. <label class="control-label col-xs-12 col-sm-2">{:__('Look')}:</label>
  97. <div class="col-xs-12 col-sm-8">
  98. <input id="c-look" data-rule="required" min="0" class="form-control" name="row[look]" type="number" value="0">
  99. </div>
  100. </div>
  101. <div class="form-group">
  102. <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
  103. <div class="col-xs-12 col-sm-8">
  104. <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="0">
  105. </div>
  106. </div>
  107. <!-- <div class="form-group">-->
  108. <!-- <label class="control-label col-xs-12 col-sm-2">{:__('Assign delivery')}:</label>-->
  109. <!-- <div class="col-xs-12 col-sm-8">-->
  110. <!-- <input id="c-delivery_id" data-rule="" data-source="unishop/delivery/index" class="form-control selectpage"-->
  111. <!-- name="row[delivery_id]" type="text" value="">-->
  112. <!-- </div>-->
  113. <!-- </div>-->
  114. <div class="form-group">
  115. <label class="control-label col-xs-12 col-sm-2">{:__('Server')}:</label>
  116. <div class="col-xs-12 col-sm-8">
  117. {:build_checkboxs('row[server][]', $servers, [], ['class'=>'form-control', 'required'=>''])}
  118. </div>
  119. </div>
  120. <div class="form-group">
  121. <label class="control-label col-xs-12 col-sm-2">{:__('Switch')}:</label>
  122. <div class="col-xs-12 col-sm-8">
  123. {:build_radios('row[switch]', ['1'=>__('Yes'), '0'=>__('No')], 1)}
  124. </div>
  125. </div>
  126. <div class="form-group layer-footer">
  127. <label class="control-label col-xs-12 col-sm-2"></label>
  128. <div class="col-xs-12 col-sm-8">
  129. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  130. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  131. </div>
  132. </div>
  133. </form>