edit.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  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">{:__('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="{$row.logo_image|htmlentities}">
  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="{$row.title|htmlentities}">
  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="{$row.number|htmlentities}">
  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="{$row.version|htmlentities}">
  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="{$row.bianzhiren|htmlentities}">
  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="{$row.pizhunren|htmlentities}">
  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="{$row.shenheren|htmlentities}">
  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="{$row.kongzhiren|htmlentities}">
  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="{$row.department|htmlentities}">
  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="{$row.wenjianstatus|htmlentities}">
  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="{$row.name|htmlentities}">
  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="{$row.cate_id|htmlentities}">
  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="{$row.level_id|htmlentities}">
  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="{$row.fangshi|htmlentities}">
  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="{:$row.starttime?datetime($row.starttime):''}">
  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="{:$row.endtime?datetime($row.endtime):''}">
  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="{$row.address|htmlentities}">
  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="{$row.zhuchiren|htmlentities}">
  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="{$row.zhujiangren|htmlentities}">
  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="{$row.type_id|htmlentities}">
  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="{$row.info|htmlentities}">
  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" value="{$row.files|htmlentities}">
  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">{$row.pingjia|htmlentities}</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="{$row.pingjia_image|htmlentities}">
  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="{:$row.pingjia_time?datetime($row.pingjia_time):''}">
  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="{$row.pingjia_uid|htmlentities}">
  180. </div>
  181. </div>
  182. <div class="form-group">
  183. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  184. <div class="col-xs-12 col-sm-8">
  185. <div class="radio">
  186. {foreach name="statusList" item="vo"}
  187. <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>
  188. {/foreach}
  189. </div>
  190. </div>
  191. </div>
  192. <div class="form-group">
  193. <label class="control-label col-xs-12 col-sm-2">{:__('Sign_starttime')}:</label>
  194. <div class="col-xs-12 col-sm-8">
  195. <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="{:$row.sign_starttime?datetime($row.sign_starttime):''}">
  196. </div>
  197. </div>
  198. <div class="form-group">
  199. <label class="control-label col-xs-12 col-sm-2">{:__('Sign_endtime')}:</label>
  200. <div class="col-xs-12 col-sm-8">
  201. <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="{:$row.sign_endtime?datetime($row.sign_endtime):''}">
  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="{$row.usercount|htmlentities}">
  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="{$row.user_ids|htmlentities}">
  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="$row.userauth_status"}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>