add.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  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">{:__('Logo_image')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <div class="input-group">
  6. <input id="c-logo_image" class="form-control" size="50" name="row[logo_image]" type="text" value="">
  7. <div class="input-group-addon no-border no-padding">
  8. <span><button type="button" id="faupload-logo_image" class="btn btn-danger faupload" data-input-id="c-logo_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-logo_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  9. <span><button type="button" id="fachoose-logo_image" class="btn btn-primary fachoose" data-input-id="c-logo_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  10. </div>
  11. <span class="msg-box n-right" for="c-logo_image"></span>
  12. </div>
  13. <ul class="row list-inline faupload-preview" id="p-logo_image"></ul>
  14. </div>
  15. </div>
  16. <div class="form-group">
  17. <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
  18. <div class="col-xs-12 col-sm-8">
  19. <input id="c-title" class="form-control" name="row[title]" type="text" value="">
  20. </div>
  21. </div>
  22. <div class="form-group">
  23. <label class="control-label col-xs-12 col-sm-2">{:__('Number')}:</label>
  24. <div class="col-xs-12 col-sm-8">
  25. <input id="c-number" class="form-control" name="row[number]" type="text" value="">
  26. </div>
  27. </div>
  28. <div class="form-group">
  29. <label class="control-label col-xs-12 col-sm-2">{:__('Version')}:</label>
  30. <div class="col-xs-12 col-sm-8">
  31. <input id="c-version" class="form-control" name="row[version]" type="text" value="">
  32. </div>
  33. </div>
  34. <div class="form-group">
  35. <label class="control-label col-xs-12 col-sm-2">{:__('Bianzhiren')}:</label>
  36. <div class="col-xs-12 col-sm-8">
  37. <input id="c-bianzhiren" class="form-control" name="row[bianzhiren]" type="text" value="">
  38. </div>
  39. </div>
  40. <div class="form-group">
  41. <label class="control-label col-xs-12 col-sm-2">{:__('Pizhunren')}:</label>
  42. <div class="col-xs-12 col-sm-8">
  43. <input id="c-pizhunren" class="form-control" name="row[pizhunren]" type="text" value="">
  44. </div>
  45. </div>
  46. <div class="form-group">
  47. <label class="control-label col-xs-12 col-sm-2">{:__('Shenheren')}:</label>
  48. <div class="col-xs-12 col-sm-8">
  49. <input id="c-shenheren" class="form-control" name="row[shenheren]" type="text" value="">
  50. </div>
  51. </div>
  52. <div class="form-group">
  53. <label class="control-label col-xs-12 col-sm-2">{:__('Kongzhiren')}:</label>
  54. <div class="col-xs-12 col-sm-8">
  55. <input id="c-kongzhiren" class="form-control" name="row[kongzhiren]" type="text" value="">
  56. </div>
  57. </div>
  58. <div class="form-group">
  59. <label class="control-label col-xs-12 col-sm-2">{:__('Department')}:</label>
  60. <div class="col-xs-12 col-sm-8">
  61. <input id="c-department" class="form-control" name="row[department]" type="text" value="">
  62. </div>
  63. </div>
  64. <div class="form-group">
  65. <label class="control-label col-xs-12 col-sm-2">{:__('Wenjianstatus')}:</label>
  66. <div class="col-xs-12 col-sm-8">
  67. <input id="c-wenjianstatus" class="form-control" name="row[wenjianstatus]" type="text" value="">
  68. </div>
  69. </div>
  70. <div class="form-group">
  71. <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
  72. <div class="col-xs-12 col-sm-8">
  73. <input id="c-name" class="form-control" name="row[name]" type="text" value="">
  74. </div>
  75. </div>
  76. <div class="form-group">
  77. <label class="control-label col-xs-12 col-sm-2">{:__('Cate_id')}:</label>
  78. <div class="col-xs-12 col-sm-8">
  79. <input id="c-cate_id" data-source="traincate/index" class="form-control selectpage" name="row[cate_id]" type="text" value="">
  80. </div>
  81. </div>
  82. <div class="form-group">
  83. <label class="control-label col-xs-12 col-sm-2">{:__('Level_id')}:</label>
  84. <div class="col-xs-12 col-sm-8">
  85. <input id="c-level_id" data-source="trainlevel/index" class="form-control selectpage" name="row[level_id]" type="text" value="">
  86. </div>
  87. </div>
  88. <div class="form-group">
  89. <label class="control-label col-xs-12 col-sm-2">{:__('Fangshi')}:</label>
  90. <div class="col-xs-12 col-sm-8">
  91. <input id="c-fangshi" class="form-control" name="row[fangshi]" type="text" value="">
  92. </div>
  93. </div>
  94. <div class="form-group">
  95. <label class="control-label col-xs-12 col-sm-2">{:__('Starttime')}:</label>
  96. <div class="col-xs-12 col-sm-8">
  97. <input id="c-starttime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[starttime]" type="text" value="{:date('Y-m-d H:i:s')}">
  98. </div>
  99. </div>
  100. <div class="form-group">
  101. <label class="control-label col-xs-12 col-sm-2">{:__('Endtime')}:</label>
  102. <div class="col-xs-12 col-sm-8">
  103. <input id="c-endtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[endtime]" type="text" value="{:date('Y-m-d H:i:s')}">
  104. </div>
  105. </div>
  106. <div class="form-group">
  107. <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
  108. <div class="col-xs-12 col-sm-8">
  109. <input id="c-address" class="form-control" name="row[address]" type="text" value="">
  110. </div>
  111. </div>
  112. <div class="form-group">
  113. <label class="control-label col-xs-12 col-sm-2">{:__('Zhuchiren')}:</label>
  114. <div class="col-xs-12 col-sm-8">
  115. <input id="c-zhuchiren" class="form-control" name="row[zhuchiren]" type="text" value="">
  116. </div>
  117. </div>
  118. <div class="form-group">
  119. <label class="control-label col-xs-12 col-sm-2">{:__('Zhujiangren')}:</label>
  120. <div class="col-xs-12 col-sm-8">
  121. <input id="c-zhujiangren" class="form-control" name="row[zhujiangren]" type="text" value="">
  122. </div>
  123. </div>
  124. <div class="form-group">
  125. <label class="control-label col-xs-12 col-sm-2">{:__('Type_id')}:</label>
  126. <div class="col-xs-12 col-sm-8">
  127. <input id="c-type_id" data-source="traintype/index" class="form-control selectpage" name="row[type_id]" type="text" value="">
  128. </div>
  129. </div>
  130. <div class="form-group">
  131. <label class="control-label col-xs-12 col-sm-2">{:__('Info')}:</label>
  132. <div class="col-xs-12 col-sm-8">
  133. <input id="c-info" class="form-control" name="row[info]" type="text" value="">
  134. </div>
  135. </div>
  136. <div class="form-group">
  137. <label class="control-label col-xs-12 col-sm-2">{:__('Files')}:</label>
  138. <div class="col-xs-12 col-sm-8">
  139. <div class="input-group">
  140. <input id="c-files" class="form-control" size="50" name="row[files]" type="text">
  141. <div class="input-group-addon no-border no-padding">
  142. <span><button type="button" id="faupload-files" class="btn btn-danger faupload" data-input-id="c-files" data-multiple="true" data-preview-id="p-files"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  143. <span><button type="button" id="fachoose-files" class="btn btn-primary fachoose" data-input-id="c-files" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  144. </div>
  145. <span class="msg-box n-right" for="c-files"></span>
  146. </div>
  147. <ul class="row list-inline faupload-preview" id="p-files"></ul>
  148. </div>
  149. </div>
  150. <!--<div class="form-group">
  151. <label class="control-label col-xs-12 col-sm-2">{:__('Pingjia')}:</label>
  152. <div class="col-xs-12 col-sm-8">
  153. <textarea id="c-pingjia" class="form-control " rows="5" name="row[pingjia]" cols="50"></textarea>
  154. </div>
  155. </div>
  156. <div class="form-group">
  157. <label class="control-label col-xs-12 col-sm-2">{:__('Pingjia_image')}:</label>
  158. <div class="col-xs-12 col-sm-8">
  159. <div class="input-group">
  160. <input id="c-pingjia_image" class="form-control" size="50" name="row[pingjia_image]" type="text" value="">
  161. <div class="input-group-addon no-border no-padding">
  162. <span><button type="button" id="faupload-pingjia_image" class="btn btn-danger faupload" data-input-id="c-pingjia_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-pingjia_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  163. <span><button type="button" id="fachoose-pingjia_image" class="btn btn-primary fachoose" data-input-id="c-pingjia_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  164. </div>
  165. <span class="msg-box n-right" for="c-pingjia_image"></span>
  166. </div>
  167. <ul class="row list-inline faupload-preview" id="p-pingjia_image"></ul>
  168. </div>
  169. </div>
  170. <div class="form-group">
  171. <label class="control-label col-xs-12 col-sm-2">{:__('Pingjia_time')}:</label>
  172. <div class="col-xs-12 col-sm-8">
  173. <input id="c-pingjia_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[pingjia_time]" type="text" value="{:date('Y-m-d H:i:s')}">
  174. </div>
  175. </div>-->
  176. <div class="form-group">
  177. <label class="control-label col-xs-12 col-sm-2">{:__('Pingjia_uid')}:</label>
  178. <div class="col-xs-12 col-sm-8">
  179. <input id="c-pingjia_uid" data-source="user/user/index" data-params='{"custom[idcard_status]":"1"}' data-field="nickname" class="form-control selectpage" name="row[pingjia_uid]" type="text" value="0">
  180. </div>
  181. </div>
  182. <div class="form-group">
  183. <label class="control-label col-xs-12 col-sm-2">{:__('Sign_starttime')}:</label>
  184. <div class="col-xs-12 col-sm-8">
  185. <input id="c-sign_starttime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[sign_starttime]" type="text" value="{:date('Y-m-d H:i:s')}">
  186. </div>
  187. </div>
  188. <div class="form-group">
  189. <label class="control-label col-xs-12 col-sm-2">{:__('Sign_endtime')}:</label>
  190. <div class="col-xs-12 col-sm-8">
  191. <input id="c-sign_endtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[sign_endtime]" type="text" value="{:date('Y-m-d H:i:s')}">
  192. </div>
  193. </div>
  194. <!--<div class="form-group">
  195. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  196. <div class="col-xs-12 col-sm-8">
  197. <div class="radio">
  198. {foreach name="statusList" item="vo"}
  199. <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label>
  200. {/foreach}
  201. </div>
  202. </div>
  203. </div>-->
  204. <!--<div class="form-group">
  205. <label class="control-label col-xs-12 col-sm-2">{:__('Usercount')}:</label>
  206. <div class="col-xs-12 col-sm-8">
  207. <input id="c-usercount" class="form-control" name="row[usercount]" type="number" value="0">
  208. </div>
  209. </div>-->
  210. <!--<div class="form-group">
  211. <label class="control-label col-xs-12 col-sm-2">{:__('User_ids')}:</label>
  212. <div class="col-xs-12 col-sm-8">
  213. <input id="c-user_ids" data-source="user/user/index" data-params='{"custom[idcard_status]":"1"}' data-field="nickname" data-multiple="true" class="form-control selectpage" name="row[user_ids]" type="text" value="">
  214. </div>
  215. </div>-->
  216. <!--<div class="form-group">
  217. <label class="control-label col-xs-12 col-sm-2">{:__('Userauth_status')}:</label>
  218. <div class="col-xs-12 col-sm-8">
  219. <div class="radio">
  220. {foreach name="userauthStatusList" item="vo"}
  221. <label for="row[userauth_status]-{$key}"><input id="row[userauth_status]-{$key}" name="row[userauth_status]" type="radio" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label>
  222. {/foreach}
  223. </div>
  224. </div>
  225. </div>-->
  226. <div class="form-group layer-footer">
  227. <label class="control-label col-xs-12 col-sm-2"></label>
  228. <div class="col-xs-12 col-sm-8">
  229. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  230. </div>
  231. </div>
  232. </form>