edit.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. <form id="edit-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">{:__('Orderno')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-orderno" data-rule="required" class="form-control" name="row[orderno]" type="text" value="{$row.orderno|htmlentities}">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Ordertype')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <select id="c-ordertype" data-rule="required" class="form-control selectpicker" name="row[ordertype]">
  12. {foreach name="ordertypeList" item="vo"}
  13. <option value="{$key}" {in name="key" value="$row.ordertype"}selected{/in}>{$vo}</option>
  14. {/foreach}
  15. </select>
  16. </div>
  17. </div>
  18. <div class="form-group">
  19. <label class="control-label col-xs-12 col-sm-2">{:__('Company_id')}:</label>
  20. <div class="col-xs-12 col-sm-8">
  21. <input id="c-company_id" data-rule="required" data-source="company/index" class="form-control selectpage" name="row[company_id]" type="text" value="{$row.company_id|htmlentities}">
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label class="control-label col-xs-12 col-sm-2">{:__('Staff_id')}:</label>
  26. <div class="col-xs-12 col-sm-8">
  27. <input id="c-staff_id" data-rule="required" data-source="staff/index" class="form-control selectpage" name="row[staff_id]" type="text" value="{$row.staff_id|htmlentities}">
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
  32. <div class="col-xs-12 col-sm-8">
  33. <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
  34. </div>
  35. </div>
  36. <div class="form-group">
  37. <label class="control-label col-xs-12 col-sm-2">{:__('User_name')}:</label>
  38. <div class="col-xs-12 col-sm-8">
  39. <input id="c-user_name" class="form-control" name="row[user_name]" type="text" value="{$row.user_name|htmlentities}">
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <label class="control-label col-xs-12 col-sm-2">{:__('User_car_id')}:</label>
  44. <div class="col-xs-12 col-sm-8">
  45. <input id="c-user_car_id" data-rule="required" data-source="user/car/index" class="form-control selectpage" name="row[user_car_id]" type="text" value="{$row.user_car_id|htmlentities}">
  46. </div>
  47. </div>
  48. <div class="form-group">
  49. <label class="control-label col-xs-12 col-sm-2">{:__('User_car_number')}:</label>
  50. <div class="col-xs-12 col-sm-8">
  51. <input id="c-user_car_number" class="form-control" name="row[user_car_number]" type="text" value="{$row.user_car_number|htmlentities}">
  52. </div>
  53. </div>
  54. <div class="form-group">
  55. <label class="control-label col-xs-12 col-sm-2">{:__('User_mobile')}:</label>
  56. <div class="col-xs-12 col-sm-8">
  57. <input id="c-user_mobile" class="form-control" name="row[user_mobile]" type="text" value="{$row.user_mobile|htmlentities}">
  58. </div>
  59. </div>
  60. <div class="form-group">
  61. <label class="control-label col-xs-12 col-sm-2">{:__('User_address')}:</label>
  62. <div class="col-xs-12 col-sm-8">
  63. <input id="c-user_address" class="form-control" name="row[user_address]" type="text" value="{$row.user_address|htmlentities}">
  64. </div>
  65. </div>
  66. <div class="form-group">
  67. <label class="control-label col-xs-12 col-sm-2">{:__('Servicetype_id')}:</label>
  68. <div class="col-xs-12 col-sm-8">
  69. <input id="c-servicetype_id" data-rule="required" data-source="servicetype/index" class="form-control selectpage" name="row[servicetype_id]" type="text" value="{$row.servicetype_id|htmlentities}">
  70. </div>
  71. </div>
  72. <div class="form-group">
  73. <label class="control-label col-xs-12 col-sm-2">{:__('Server_time')}:</label>
  74. <div class="col-xs-12 col-sm-8">
  75. <input id="c-server_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[server_time]" type="text" value="{:$row.server_time?datetime($row.server_time):''}">
  76. </div>
  77. </div>
  78. <div class="form-group">
  79. <label class="control-label col-xs-12 col-sm-2">{:__('Server_info')}:</label>
  80. <div class="col-xs-12 col-sm-8">
  81. <input id="c-server_info" class="form-control" name="row[server_info]" type="text" value="{$row.server_info|htmlentities}">
  82. </div>
  83. </div>
  84. <div class="form-group">
  85. <label class="control-label col-xs-12 col-sm-2">{:__('Server_images')}:</label>
  86. <div class="col-xs-12 col-sm-8">
  87. <div class="input-group">
  88. <input id="c-server_images" class="form-control" size="50" name="row[server_images]" type="text" value="{$row.server_images|htmlentities}">
  89. <div class="input-group-addon no-border no-padding">
  90. <span><button type="button" id="faupload-server_images" class="btn btn-danger faupload" data-input-id="c-server_images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-server_images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  91. <span><button type="button" id="fachoose-server_images" class="btn btn-primary fachoose" data-input-id="c-server_images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  92. </div>
  93. <span class="msg-box n-right" for="c-server_images"></span>
  94. </div>
  95. <ul class="row list-inline faupload-preview" id="p-server_images"></ul>
  96. </div>
  97. </div>
  98. <div class="form-group">
  99. <label class="control-label col-xs-12 col-sm-2">{:__('Package_id')}:</label>
  100. <div class="col-xs-12 col-sm-8">
  101. <input id="c-package_id" data-rule="required" data-source="package/index" class="form-control selectpage" name="row[package_id]" type="text" value="{$row.package_id|htmlentities}">
  102. </div>
  103. </div>
  104. <div class="form-group">
  105. <label class="control-label col-xs-12 col-sm-2">{:__('Package_endtime')}:</label>
  106. <div class="col-xs-12 col-sm-8">
  107. <input id="c-package_endtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[package_endtime]" type="text" value="{:$row.package_endtime?datetime($row.package_endtime):''}">
  108. </div>
  109. </div>
  110. <div class="form-group">
  111. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  112. <div class="col-xs-12 col-sm-8">
  113. <div class="radio">
  114. {foreach name="statusList" item="vo"}
  115. <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label>
  116. {/foreach}
  117. </div>
  118. </div>
  119. </div>
  120. <div class="form-group">
  121. <label class="control-label col-xs-12 col-sm-2">{:__('Pay_time')}:</label>
  122. <div class="col-xs-12 col-sm-8">
  123. <input id="c-pay_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[pay_time]" type="text" value="{:$row.pay_time?datetime($row.pay_time):''}">
  124. </div>
  125. </div>
  126. <div class="form-group">
  127. <label class="control-label col-xs-12 col-sm-2">{:__('Paytype')}:</label>
  128. <div class="col-xs-12 col-sm-8">
  129. <select id="c-paytype" class="form-control selectpicker" name="row[paytype]">
  130. {foreach name="paytypeList" item="vo"}
  131. <option value="{$key}" {in name="key" value="$row.paytype"}selected{/in}>{$vo}</option>
  132. {/foreach}
  133. </select>
  134. </div>
  135. </div>
  136. <div class="form-group">
  137. <label class="control-label col-xs-12 col-sm-2">{:__('Pay_fee')}:</label>
  138. <div class="col-xs-12 col-sm-8">
  139. <input id="c-pay_fee" class="form-control" step="0.01" name="row[pay_fee]" type="number" value="{$row.pay_fee|htmlentities}">
  140. </div>
  141. </div>
  142. <div class="form-group">
  143. <label class="control-label col-xs-12 col-sm-2">{:__('Appen_fee')}:</label>
  144. <div class="col-xs-12 col-sm-8">
  145. <input id="c-appen_fee" class="form-control" step="0.01" name="row[appen_fee]" type="number" value="{$row.appen_fee|htmlentities}">
  146. </div>
  147. </div>
  148. <div class="form-group">
  149. <label class="control-label col-xs-12 col-sm-2">{:__('Total_fee')}:</label>
  150. <div class="col-xs-12 col-sm-8">
  151. <input id="c-total_fee" class="form-control" step="0.01" name="row[total_fee]" type="number" value="{$row.total_fee|htmlentities}">
  152. </div>
  153. </div>
  154. <div class="form-group">
  155. <label class="control-label col-xs-12 col-sm-2">{:__('Hexiao_time')}:</label>
  156. <div class="col-xs-12 col-sm-8">
  157. <input id="c-hexiao_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[hexiao_time]" type="text" value="{:$row.hexiao_time?datetime($row.hexiao_time):''}">
  158. </div>
  159. </div>
  160. <div class="form-group">
  161. <label class="control-label col-xs-12 col-sm-2">{:__('Cancel_time')}:</label>
  162. <div class="col-xs-12 col-sm-8">
  163. <input id="c-cancel_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[cancel_time]" type="text" value="{:$row.cancel_time?datetime($row.cancel_time):''}">
  164. </div>
  165. </div>
  166. <div class="form-group">
  167. <label class="control-label col-xs-12 col-sm-2">{:__('Cancel_reason')}:</label>
  168. <div class="col-xs-12 col-sm-8">
  169. <input id="c-cancel_reason" class="form-control" name="row[cancel_reason]" type="text" value="{$row.cancel_reason|htmlentities}">
  170. </div>
  171. </div>
  172. <div class="form-group">
  173. <label class="control-label col-xs-12 col-sm-2">{:__('Finish_time')}:</label>
  174. <div class="col-xs-12 col-sm-8">
  175. <input id="c-finish_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[finish_time]" type="text" value="{:$row.finish_time?datetime($row.finish_time):''}">
  176. </div>
  177. </div>
  178. <div class="form-group">
  179. <label class="control-label col-xs-12 col-sm-2">{:__('Next_date')}:</label>
  180. <div class="col-xs-12 col-sm-8">
  181. <input id="c-next_date" class="form-control" name="row[next_date]" type="text" value="{$row.next_date|htmlentities}">
  182. </div>
  183. </div>
  184. <div class="form-group">
  185. <label class="control-label col-xs-12 col-sm-2">{:__('Next_carlicheng')}:</label>
  186. <div class="col-xs-12 col-sm-8">
  187. <input id="c-next_carlicheng" class="form-control" name="row[next_carlicheng]" type="text" value="{$row.next_carlicheng|htmlentities}">
  188. </div>
  189. </div>
  190. <div class="form-group">
  191. <label class="control-label col-xs-12 col-sm-2">{:__('Pay_order_id')}:</label>
  192. <div class="col-xs-12 col-sm-8">
  193. <input id="c-pay_order_id" data-rule="required" data-source="pay/order/index" class="form-control selectpage" name="row[pay_order_id]" type="text" value="{$row.pay_order_id|htmlentities}">
  194. </div>
  195. </div>
  196. <div class="form-group layer-footer">
  197. <label class="control-label col-xs-12 col-sm-2"></label>
  198. <div class="col-xs-12 col-sm-8">
  199. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  200. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  201. </div>
  202. </div>
  203. </form>