add.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2. <!--<div class="form-group">-->
  3. <!-- <label class="control-label col-xs-12 col-sm-2">{:__('Cid')}:</label>-->
  4. <!-- <div class="col-xs-12 col-sm-8">-->
  5. <!-- <input id="c-cid" class="form-control" name="row[cid]" type="number">-->
  6. <!-- </div>-->
  7. <!--</div>-->
  8. {eq name="admin.cid" value="0"}
  9. <div class="form-group">
  10. <label class="control-label col-xs-12 col-sm-2">{:__('Cid')}:</label>
  11. <div class="col-xs-12 col-sm-8">
  12. <input id="c-cid" data-rule="required" data-source="Company" data-field="company_name" class="form-control selectpage" name="row[cid]" type="text" >
  13. </div>
  14. </div>
  15. {else/}
  16. <input id="c-cid" name="row[cid]" type="hidden" value="{$admin.cid}">
  17. {/eq}
  18. <div class="form-group">
  19. <label class="control-label col-xs-12 col-sm-2">{:__('Uid')}:</label>
  20. <div class="col-xs-12 col-sm-8">
  21. <input id="c-uid" class="form-control" name="row[uid]" type="number">
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
  26. <div class="col-xs-12 col-sm-8">
  27. <input id="c-name" class="form-control" name="row[name]" type="text">
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. <label class="control-label col-xs-12 col-sm-2">{:__('Project_id')}:</label>
  32. <div class="col-xs-12 col-sm-8">
  33. <input id="c-project_id" data-rule="required" data-source="project/project_donation" data-field="title" class="form-control selectpage" name="row[project_id]" type="text" value="">
  34. </div>
  35. </div>
  36. <div class="form-group">
  37. <label class="control-label col-xs-12 col-sm-2">{:__('Project_user_id')}:</label>
  38. <div class="col-xs-12 col-sm-8">
  39. <input id="c-project_user_id" data-rule="required" data-source="project/user/index" class="form-control selectpage" name="row[project_user_id]" type="text" value="">
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <label class="control-label col-xs-12 col-sm-2">{:__('Total_num')}:</label>
  44. <div class="col-xs-12 col-sm-8">
  45. <input id="c-total_num" class="form-control" name="row[total_num]" type="number">
  46. </div>
  47. </div>
  48. <div class="form-group">
  49. <label class="control-label col-xs-12 col-sm-2">{:__('Order_sn')}:</label>
  50. <div class="col-xs-12 col-sm-8">
  51. <input id="c-order_sn" class="form-control" name="row[order_sn]" type="text">
  52. </div>
  53. </div>
  54. <div class="form-group">
  55. <label class="control-label col-xs-12 col-sm-2">{:__('Order_status')}:</label>
  56. <div class="col-xs-12 col-sm-8">
  57. <div class="radio">
  58. {foreach name="orderStatusList" item="vo"}
  59. <label for="row[order_status]-{$key}"><input id="row[order_status]-{$key}" name="row[order_status]" type="radio" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label>
  60. {/foreach}
  61. </div>
  62. </div>
  63. </div>
  64. <div class="form-group">
  65. <label class="control-label col-xs-12 col-sm-2">{:__('Add_time')}:</label>
  66. <div class="col-xs-12 col-sm-8">
  67. <input id="c-add_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[add_time]" type="text" value="{:date('Y-m-d H:i:s')}">
  68. </div>
  69. </div>
  70. <div class="form-group">
  71. <label class="control-label col-xs-12 col-sm-2">{:__('Delivery_name')}:</label>
  72. <div class="col-xs-12 col-sm-8">
  73. <input id="c-delivery_name" class="form-control" name="row[delivery_name]" type="text">
  74. </div>
  75. </div>
  76. <div class="form-group">
  77. <label class="control-label col-xs-12 col-sm-2">{:__('Delivery_id')}:</label>
  78. <div class="col-xs-12 col-sm-8">
  79. <input id="c-delivery_id" data-rule="required" data-source="delivery/index" class="form-control selectpage" name="row[delivery_id]" type="text" value="">
  80. </div>
  81. </div>
  82. <div class="form-group">
  83. <label class="control-label col-xs-12 col-sm-2">{:__('Delivery_time')}:</label>
  84. <div class="col-xs-12 col-sm-8">
  85. <input id="c-delivery_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[delivery_time]" type="text" value="{:date('Y-m-d H:i:s')}">
  86. </div>
  87. </div>
  88. <div class="form-group">
  89. <label class="control-label col-xs-12 col-sm-2">{:__('Verify_time')}:</label>
  90. <div class="col-xs-12 col-sm-8">
  91. <input id="c-verify_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[verify_time]" type="text" value="{:date('Y-m-d H:i:s')}">
  92. </div>
  93. </div>
  94. <div class="form-group">
  95. <label class="control-label col-xs-12 col-sm-2">{:__('Verify_admin')}:</label>
  96. <div class="col-xs-12 col-sm-8">
  97. <input id="c-verify_admin" class="form-control" name="row[verify_admin]" type="number" value="0">
  98. </div>
  99. </div>
  100. <div class="form-group">
  101. <label class="control-label col-xs-12 col-sm-2">{:__('Verify_remark')}:</label>
  102. <div class="col-xs-12 col-sm-8">
  103. <input id="c-verify_remark" class="form-control" name="row[verify_remark]" type="text">
  104. </div>
  105. </div>
  106. <div class="form-group">
  107. <label class="control-label col-xs-12 col-sm-2">{:__('Receiving_admin')}:</label>
  108. <div class="col-xs-12 col-sm-8">
  109. <input id="c-receiving_admin" class="form-control" name="row[receiving_admin]" type="number" value="0">
  110. </div>
  111. </div>
  112. <div class="form-group">
  113. <label class="control-label col-xs-12 col-sm-2">{:__('Receiving_time')}:</label>
  114. <div class="col-xs-12 col-sm-8">
  115. <input id="c-receiving_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[receiving_time]" type="text" value="{:date('Y-m-d H:i:s')}">
  116. </div>
  117. </div>
  118. <div class="form-group">
  119. <label class="control-label col-xs-12 col-sm-2">{:__('Receiving_remark')}:</label>
  120. <div class="col-xs-12 col-sm-8">
  121. <input id="c-receiving_remark" class="form-control" name="row[receiving_remark]" type="text">
  122. </div>
  123. </div>
  124. <div class="form-group">
  125. <label class="control-label col-xs-12 col-sm-2">{:__('Matter')}:</label>
  126. <div class="col-xs-12 col-sm-8">
  127. <input id="c-matter" class="form-control" name="row[matter]" type="text">
  128. </div>
  129. </div>
  130. <div class="form-group">
  131. <label class="control-label col-xs-12 col-sm-2">{:__('Matter')}:</label>
  132. <div class="col-xs-12 col-sm-8">
  133. <div class="input-group">
  134. <input id="c-matter" data-rule="required" class="form-control" size="200" name="row[matter]" type="text">
  135. <div class="input-group-addon no-border no-padding">
  136. <span><button type="button" id="faupload-matter" class="btn btn-danger faupload" data-input-id="c-matter" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-matter"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  137. <span><button type="button" id="fachoose-matter" class="btn btn-primary fachoose" data-input-id="c-matter" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  138. </div>
  139. <span class="msg-box n-right" for="c-matter"></span>
  140. </div>
  141. <ul class="row list-inline faupload-preview" id="p-matter"></ul>
  142. </div>
  143. </div>
  144. <div class="form-group">
  145. <label class="control-label col-xs-12 col-sm-2">{:__('Qc')}:</label>
  146. <div class="col-xs-12 col-sm-8">
  147. <input id="c-qc" class="form-control" name="row[qc]" type="text">
  148. </div>
  149. </div>
  150. <div class="form-group">
  151. <label class="control-label col-xs-12 col-sm-2">{:__('Worth')}:</label>
  152. <div class="col-xs-12 col-sm-8">
  153. <input id="c-worth" class="form-control" name="row[worth]" type="text">
  154. </div>
  155. </div>
  156. <div class="form-group">
  157. <label class="control-label col-xs-12 col-sm-2">{:__('Total_amount')}:</label>
  158. <div class="col-xs-12 col-sm-8">
  159. <input id="c-total_amount" class="form-control" step="0.01" name="row[total_amount]" type="number" value="0.00">
  160. </div>
  161. </div>
  162. <div class="form-group">
  163. <label class="control-label col-xs-12 col-sm-2">{:__('Logistics')}:</label>
  164. <div class="col-xs-12 col-sm-8">
  165. <input id="c-logistics" class="form-control" name="row[logistics]" type="text" value="0">
  166. </div>
  167. </div>
  168. <div class="form-group">
  169. <label class="control-label col-xs-12 col-sm-2">{:__('Feedback')}:</label>
  170. <div class="col-xs-12 col-sm-8">
  171. <input id="c-feedback" class="form-control" name="row[feedback]" type="text">
  172. </div>
  173. </div>
  174. <div class="form-group">
  175. <label class="control-label col-xs-12 col-sm-2">{:__('Feedback_admin')}:</label>
  176. <div class="col-xs-12 col-sm-8">
  177. <input id="c-feedback_admin" class="form-control" name="row[feedback_admin]" type="number" value="0">
  178. </div>
  179. </div>
  180. <div class="form-group">
  181. <label class="control-label col-xs-12 col-sm-2">{:__('Feedback_time')}:</label>
  182. <div class="col-xs-12 col-sm-8">
  183. <input id="c-feedback_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[feedback_time]" type="text" value="{:date('Y-m-d H:i:s')}">
  184. </div>
  185. </div>
  186. <div class="form-group">
  187. <label class="control-label col-xs-12 col-sm-2">{:__('Out_delivery_admin')}:</label>
  188. <div class="col-xs-12 col-sm-8">
  189. <input id="c-out_delivery_admin" class="form-control" name="row[out_delivery_admin]" type="number" value="0">
  190. </div>
  191. </div>
  192. <div class="form-group">
  193. <label class="control-label col-xs-12 col-sm-2">{:__('Out_delivery_time')}:</label>
  194. <div class="col-xs-12 col-sm-8">
  195. <input id="c-out_delivery_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[out_delivery_time]" type="text" value="{:date('Y-m-d H:i:s')}">
  196. </div>
  197. </div>
  198. <div class="form-group">
  199. <label class="control-label col-xs-12 col-sm-2">{:__('Out_delivery_remark')}:</label>
  200. <div class="col-xs-12 col-sm-8">
  201. <input id="c-out_delivery_remark" class="form-control" name="row[out_delivery_remark]" type="text">
  202. </div>
  203. </div>
  204. <div class="form-group layer-footer">
  205. <label class="control-label col-xs-12 col-sm-2"></label>
  206. <div class="col-xs-12 col-sm-8">
  207. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  208. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  209. </div>
  210. </div>
  211. </form>