edit.html 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  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">{:__('Gh_id')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-gh_id" data-rule="required" data-source="gonghui/index" class="form-control selectpage" name="row[gh_id]" type="text" value="{$row.gh_id|htmlentities}">
  6. </div>
  7. </div>-->
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Username')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-username" disabled class="form-control" name="row[username]" type="text" value="{$row.username|htmlentities}">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <input id="c-nickname" class="form-control" name="row[nickname]" type="text" value="{$row.nickname|htmlentities}">
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="control-label col-xs-12 col-sm-2">{:__('Password')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <input id="c-password" class="form-control" name="row[password]" type="text" placeholder="{:__('Leave password blank if dont want to change')}" value="">
  24. </div>
  25. </div>
  26. <!--<div class="form-group">
  27. <label class="control-label col-xs-12 col-sm-2">{:__('Salt')}:</label>
  28. <div class="col-xs-12 col-sm-8">
  29. <input id="c-salt" class="form-control" name="row[salt]" type="text" value="{$row.salt|htmlentities}">
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <label class="control-label col-xs-12 col-sm-2">{:__('Email')}:</label>
  34. <div class="col-xs-12 col-sm-8">
  35. <input id="c-email" class="form-control" name="row[email]" type="text" value="{$row.email|htmlentities}">
  36. </div>
  37. </div>-->
  38. <div class="form-group">
  39. <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
  40. <div class="col-xs-12 col-sm-8">
  41. <input id="c-mobile" class="form-control" name="row[mobile]" type="text" maxlength="11" value="{$row.mobile|htmlentities}">
  42. </div>
  43. </div>
  44. <div class="form-group">
  45. <label class="control-label col-xs-12 col-sm-2">{:__('Avatar')}:</label>
  46. <div class="col-xs-12 col-sm-8">
  47. <div class="input-group">
  48. <input id="c-avatar" class="form-control" size="50" name="row[avatar]" type="text" value="{$row.avatar|htmlentities}">
  49. <div class="input-group-addon no-border no-padding">
  50. <span><button type="button" id="faupload-avatar" class="btn btn-danger faupload" data-input-id="c-avatar" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  51. <span><button type="button" id="fachoose-avatar" class="btn btn-primary fachoose" data-input-id="c-avatar" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  52. </div>
  53. <span class="msg-box n-right" for="c-avatar"></span>
  54. </div>
  55. <ul class="row list-inline faupload-preview" id="p-avatar"></ul>
  56. </div>
  57. </div>
  58. <!--<div class="form-group">
  59. <label class="control-label col-xs-12 col-sm-2">{:__('Real_status')}:</label>
  60. <div class="col-xs-12 col-sm-8">
  61. <div class="radio">
  62. {foreach name="realStatusList" item="vo"}
  63. <label for="row[real_status]-{$key}"><input id="row[real_status]-{$key}" name="row[real_status]" type="radio" value="{$key}" {in name="key" value="$row.real_status"}checked{/in} /> {$vo}</label>
  64. {/foreach}
  65. </div>
  66. </div>
  67. </div>-->
  68. <div class="form-group">
  69. <label class="control-label col-xs-12 col-sm-2">{:__('Gender')}:</label>
  70. <div class="col-xs-12 col-sm-8">
  71. <select id="c-gender" data-rule="required" min="0" class="form-control selectpicker" name="row[gender]">
  72. {foreach name="genderList" item="vo"}
  73. <option value="{$key}" {in name="key" value="$row.gender"}selected{/in}>{$vo}</option>
  74. {/foreach}
  75. </select>
  76. </div>
  77. </div>
  78. <!--<div class="form-group">
  79. <label class="control-label col-xs-12 col-sm-2">{:__('Height')}:</label>
  80. <div class="col-xs-12 col-sm-8">
  81. <input id="c-height" class="form-control" name="row[height]" type="text" value="{$row.height|htmlentities}">
  82. </div>
  83. </div>
  84. <div class="form-group">
  85. <label class="control-label col-xs-12 col-sm-2">{:__('Weight')}:</label>
  86. <div class="col-xs-12 col-sm-8">
  87. <input id="c-weight" class="form-control" name="row[weight]" type="text" value="{$row.weight|htmlentities}">
  88. </div>
  89. </div>
  90. <div class="form-group">
  91. <label class="control-label col-xs-12 col-sm-2">{:__('Birthday')}:</label>
  92. <div class="col-xs-12 col-sm-8">
  93. <input id="c-birthday" data-rule="" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[birthday]" type="text" value="{$row.birthday}">
  94. </div>
  95. </div>
  96. <div class="form-group">
  97. <label class="control-label col-xs-12 col-sm-2">{:__('Bio')}:</label>
  98. <div class="col-xs-12 col-sm-8">
  99. <input id="c-bio" class="form-control" name="row[bio]" type="text" value="{$row.bio|htmlentities}">
  100. </div>
  101. </div>
  102. <div class="form-group">
  103. <label class="control-label col-xs-12 col-sm-2">{:__('Audio_bio')}:</label>
  104. <div class="col-xs-12 col-sm-8">
  105. <input id="c-audio_bio" class="form-control" name="row[audio_bio]" type="text" value="{$row.audio_bio|htmlentities}">
  106. </div>
  107. </div>
  108. <div class="form-group">
  109. <label class="control-label col-xs-12 col-sm-2">{:__('Idcard_status')}:</label>
  110. <div class="col-xs-12 col-sm-8">
  111. <div class="radio">
  112. {foreach name="idcardStatusList" item="vo"}
  113. <label for="row[idcard_status]-{$key}"><input id="row[idcard_status]-{$key}" name="row[idcard_status]" type="radio" value="{$key}" {in name="key" value="$row.idcard_status"}checked{/in} /> {$vo}</label>
  114. {/foreach}
  115. </div>
  116. </div>
  117. </div>-->
  118. <!--<div class="form-group">
  119. <label class="control-label col-xs-12 col-sm-2">{:__('Successions')}:</label>
  120. <div class="col-xs-12 col-sm-8">
  121. <input id="c-successions" min="0" class="form-control" name="row[successions]" type="number" value="{$row.successions|htmlentities}">
  122. </div>
  123. </div>
  124. <div class="form-group">
  125. <label class="control-label col-xs-12 col-sm-2">{:__('Maxsuccessions')}:</label>
  126. <div class="col-xs-12 col-sm-8">
  127. <input id="c-maxsuccessions" min="0" class="form-control" name="row[maxsuccessions]" type="number" value="{$row.maxsuccessions|htmlentities}">
  128. </div>
  129. </div>
  130. <div class="form-group">
  131. <label class="control-label col-xs-12 col-sm-2">{:__('Prevtime')}:</label>
  132. <div class="col-xs-12 col-sm-8">
  133. <input id="c-prevtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[prevtime]" type="text" value="{:$row.prevtime?datetime($row.prevtime):''}">
  134. </div>
  135. </div>
  136. <div class="form-group">
  137. <label class="control-label col-xs-12 col-sm-2">{:__('Logintime')}:</label>
  138. <div class="col-xs-12 col-sm-8">
  139. <input id="c-logintime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[logintime]" type="text" value="{:$row.logintime?datetime($row.logintime):''}">
  140. </div>
  141. </div>
  142. <div class="form-group">
  143. <label class="control-label col-xs-12 col-sm-2">{:__('Loginip')}:</label>
  144. <div class="col-xs-12 col-sm-8">
  145. <input id="c-loginip" class="form-control" name="row[loginip]" type="text" value="{$row.loginip|htmlentities}">
  146. </div>
  147. </div>
  148. <div class="form-group">
  149. <label class="control-label col-xs-12 col-sm-2">{:__('Loginfailure')}:</label>
  150. <div class="col-xs-12 col-sm-8">
  151. <input id="c-loginfailure" min="0" class="form-control" name="row[loginfailure]" type="number" value="{$row.loginfailure|htmlentities}">
  152. </div>
  153. </div>
  154. <div class="form-group">
  155. <label class="control-label col-xs-12 col-sm-2">{:__('Joinip')}:</label>
  156. <div class="col-xs-12 col-sm-8">
  157. <input id="c-joinip" class="form-control" name="row[joinip]" type="text" value="{$row.joinip|htmlentities}">
  158. </div>
  159. </div>
  160. <div class="form-group">
  161. <label class="control-label col-xs-12 col-sm-2">{:__('Jointime')}:</label>
  162. <div class="col-xs-12 col-sm-8">
  163. <input id="c-jointime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[jointime]" type="text" value="{:$row.jointime?datetime($row.jointime):''}">
  164. </div>
  165. </div>
  166. <div class="form-group">
  167. <label class="control-label col-xs-12 col-sm-2">{:__('Token')}:</label>
  168. <div class="col-xs-12 col-sm-8">
  169. <input id="c-token" class="form-control" name="row[token]" type="text" value="{$row.token|htmlentities}">
  170. </div>
  171. </div>-->
  172. <div class="form-group">
  173. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  174. <div class="col-xs-12 col-sm-8">
  175. <div class="radio">
  176. {foreach name="statusList" item="vo"}
  177. <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>
  178. {/foreach}
  179. </div>
  180. </div>
  181. </div>
  182. <div class="form-group">
  183. <label class="control-label col-xs-12 col-sm-2">{:__('Frozentime')}:</label>
  184. <div class="col-xs-12 col-sm-8">
  185. <input id="c-frozentime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[frozentime]" type="text" value="{:$row.frozentime?datetime($row.frozentime):''}">
  186. </div>
  187. </div>
  188. <div class="form-group">
  189. <label class="control-label col-xs-12 col-sm-2">{:__('是否客服')}:</label>
  190. <div class="col-xs-12 col-sm-8">
  191. <div class="radio">
  192. {foreach name="isKefuList" item="vo"}
  193. <label for="row[is_kefu]-{$key}"><input id="row[is_kefu]-{$key}" name="row[is_kefu]" type="radio" value="{$key}" {in name="key" value="$row.is_kefu"}checked{/in} /> {$vo}</label>
  194. {/foreach}
  195. </div>
  196. </div>
  197. </div>
  198. <!--<div class="form-group">
  199. <label class="control-label col-xs-12 col-sm-2">{:__('Verification')}:</label>
  200. <div class="col-xs-12 col-sm-8">
  201. <input id="c-verification" class="form-control" name="row[verification]" type="text" value="{$row.verification|htmlentities}">
  202. </div>
  203. </div>
  204. <div class="form-group">
  205. <label class="control-label col-xs-12 col-sm-2">{:__('Longitude')}:</label>
  206. <div class="col-xs-12 col-sm-8">
  207. <input id="c-longitude" class="form-control" name="row[longitude]" type="text" value="{$row.longitude|htmlentities}">
  208. </div>
  209. </div>
  210. <div class="form-group">
  211. <label class="control-label col-xs-12 col-sm-2">{:__('Latitude')}:</label>
  212. <div class="col-xs-12 col-sm-8">
  213. <input id="c-latitude" class="form-control" name="row[latitude]" type="text" value="{$row.latitude|htmlentities}">
  214. </div>
  215. </div>
  216. <div class="form-group">
  217. <label class="control-label col-xs-12 col-sm-2">{:__('Cityname')}:</label>
  218. <div class="col-xs-12 col-sm-8">
  219. <input id="c-cityname" class="form-control" name="row[cityname]" type="text" value="{$row.cityname|htmlentities}">
  220. </div>
  221. </div>-->
  222. <div class="form-group">
  223. <label class="control-label col-xs-12 col-sm-2">{:__('Photo_images')}:</label>
  224. <div class="col-xs-12 col-sm-8">
  225. <div class="input-group">
  226. <input id="c-photo_images" class="form-control" size="50" name="row[photo_images]" type="text" value="{$row.photo_images|htmlentities}">
  227. <div class="input-group-addon no-border no-padding">
  228. <span><button type="button" id="faupload-photo_images" class="btn btn-danger faupload" data-input-id="c-photo_images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-photo_images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  229. <span><button type="button" id="fachoose-photo_images" class="btn btn-primary fachoose" data-input-id="c-photo_images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  230. </div>
  231. <span class="msg-box n-right" for="c-photo_images"></span>
  232. </div>
  233. <ul class="row list-inline faupload-preview" id="p-photo_images"></ul>
  234. </div>
  235. </div>
  236. <!--<div class="form-group">
  237. <label class="control-label col-xs-12 col-sm-2">{:__('Education_id')}:</label>
  238. <div class="col-xs-12 col-sm-8">
  239. <input id="c-education_id" data-rule="required" data-source="education/index" class="form-control selectpage" name="row[education_id]" type="text" value="{$row.education_id|htmlentities}">
  240. </div>
  241. </div>
  242. <div class="form-group">
  243. <label class="control-label col-xs-12 col-sm-2">{:__('Hobby_ids')}:</label>
  244. <div class="col-xs-12 col-sm-8">
  245. <input id="c-hobby_ids" data-rule="required" data-source="hobby/index" data-multiple="true" class="form-control selectpage" name="row[hobby_ids]" type="text" value="{$row.hobby_ids|htmlentities}">
  246. </div>
  247. </div>
  248. <div class="form-group">
  249. <label class="control-label col-xs-12 col-sm-2">{:__('Job_id')}:</label>
  250. <div class="col-xs-12 col-sm-8">
  251. <input id="c-job_id" data-rule="required" data-source="job/index" class="form-control selectpage" name="row[job_id]" type="text" value="{$row.job_id|htmlentities}">
  252. </div>
  253. </div>
  254. <div class="form-group">
  255. <label class="control-label col-xs-12 col-sm-2">{:__('Marital_id')}:</label>
  256. <div class="col-xs-12 col-sm-8">
  257. <input id="c-marital_id" data-rule="required" data-source="marital/index" class="form-control selectpage" name="row[marital_id]" type="text" value="{$row.marital_id|htmlentities}">
  258. </div>
  259. </div>
  260. <div class="form-group">
  261. <label class="control-label col-xs-12 col-sm-2">{:__('Tag_ids')}:</label>
  262. <div class="col-xs-12 col-sm-8">
  263. <input id="c-tag_ids" data-rule="required" data-source="tag/index" data-multiple="true" class="form-control selectpage" name="row[tag_ids]" type="text" value="{$row.tag_ids|htmlentities}">
  264. </div>
  265. </div>
  266. <div class="form-group">
  267. <label class="control-label col-xs-12 col-sm-2">{:__('Wages_id')}:</label>
  268. <div class="col-xs-12 col-sm-8">
  269. <input id="c-wages_id" data-rule="required" data-source="wages/index" class="form-control selectpage" name="row[wages_id]" type="text" value="{$row.wages_id|htmlentities}">
  270. </div>
  271. </div>
  272. <div class="form-group">
  273. <label class="control-label col-xs-12 col-sm-2">{:__('Hometown_cityid')}:</label>
  274. <div class="col-xs-12 col-sm-8">
  275. <input id="c-hometown_cityid" class="form-control" name="row[hometown_cityid]" type="number" value="{$row.hometown_cityid|htmlentities}">
  276. </div>
  277. </div>
  278. <div class="form-group">
  279. <label class="control-label col-xs-12 col-sm-2">{:__('Open_match_video')}:</label>
  280. <div class="col-xs-12 col-sm-8">
  281. <select id="c-open_match_video" data-rule="required" class="form-control selectpicker" name="row[open_match_video]">
  282. {foreach name="openMatchVideoList" item="vo"}
  283. <option value="{$key}" {in name="key" value="$row.open_match_video"}selected{/in}>{$vo}</option>
  284. {/foreach}
  285. </select>
  286. </div>
  287. </div>
  288. <div class="form-group">
  289. <label class="control-label col-xs-12 col-sm-2">{:__('Open_match_audio')}:</label>
  290. <div class="col-xs-12 col-sm-8">
  291. <select id="c-open_match_audio" data-rule="required" class="form-control selectpicker" name="row[open_match_audio]">
  292. {foreach name="openMatchAudioList" item="vo"}
  293. <option value="{$key}" {in name="key" value="$row.open_match_audio"}selected{/in}>{$vo}</option>
  294. {/foreach}
  295. </select>
  296. </div>
  297. </div>
  298. <div class="form-group">
  299. <label class="control-label col-xs-12 col-sm-2">{:__('Open_match_typing')}:</label>
  300. <div class="col-xs-12 col-sm-8">
  301. <select id="c-open_match_typing" data-rule="required" class="form-control selectpicker" name="row[open_match_typing]">
  302. {foreach name="openMatchTypingList" item="vo"}
  303. <option value="{$key}" {in name="key" value="$row.open_match_typing"}selected{/in}>{$vo}</option>
  304. {/foreach}
  305. </select>
  306. </div>
  307. </div>
  308. <div class="form-group">
  309. <label class="control-label col-xs-12 col-sm-2">{:__('Free_video')}:</label>
  310. <div class="col-xs-12 col-sm-8">
  311. <select id="c-free_video" data-rule="required" class="form-control selectpicker" name="row[free_video]">
  312. {foreach name="freeVideoList" item="vo"}
  313. <option value="{$key}" {in name="key" value="$row.free_video"}selected{/in}>{$vo}</option>
  314. {/foreach}
  315. </select>
  316. </div>
  317. </div>
  318. <div class="form-group">
  319. <label class="control-label col-xs-12 col-sm-2">{:__('Free_audio')}:</label>
  320. <div class="col-xs-12 col-sm-8">
  321. <select id="c-free_audio" data-rule="required" class="form-control selectpicker" name="row[free_audio]">
  322. {foreach name="freeAudioList" item="vo"}
  323. <option value="{$key}" {in name="key" value="$row.free_audio"}selected{/in}>{$vo}</option>
  324. {/foreach}
  325. </select>
  326. </div>
  327. </div>
  328. <div class="form-group">
  329. <label class="control-label col-xs-12 col-sm-2">{:__('Free_typing')}:</label>
  330. <div class="col-xs-12 col-sm-8">
  331. <select id="c-free_typing" data-rule="required" class="form-control selectpicker" name="row[free_typing]">
  332. {foreach name="freeTypingList" item="vo"}
  333. <option value="{$key}" {in name="key" value="$row.free_typing"}selected{/in}>{$vo}</option>
  334. {/foreach}
  335. </select>
  336. </div>
  337. </div>-->
  338. <div class="form-group layer-footer">
  339. <label class="control-label col-xs-12 col-sm-2"></label>
  340. <div class="col-xs-12 col-sm-8">
  341. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  342. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  343. </div>
  344. </div>
  345. </form>