add.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  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">{:__('Group_id')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-group_id" data-rule="required" min="0" data-source="group/index" class="form-control selectpage" name="row[group_id]" type="text" value="">
  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" class="form-control" name="row[username]" type="text" value="">
  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="">
  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" 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="">
  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="">
  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" value="">
  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="">
  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,image/webp" 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">{:__('Money')}:</label>
  60. <div class="col-xs-12 col-sm-8">
  61. <input id="c-money" data-rule="required" class="form-control" name="row[money]" type="text" value="0.00">
  62. </div>
  63. </div>
  64. <div class="form-group">
  65. <label class="control-label col-xs-12 col-sm-2">{:__('Successions')}:</label>
  66. <div class="col-xs-12 col-sm-8">
  67. <input id="c-successions" data-rule="required" min="0" class="form-control" name="row[successions]" type="number" value="1">
  68. </div>
  69. </div>
  70. <div class="form-group">
  71. <label class="control-label col-xs-12 col-sm-2">{:__('Maxsuccessions')}:</label>
  72. <div class="col-xs-12 col-sm-8">
  73. <input id="c-maxsuccessions" data-rule="required" min="0" class="form-control" name="row[maxsuccessions]" type="number" value="1">
  74. </div>
  75. </div>
  76. <div class="form-group">
  77. <label class="control-label col-xs-12 col-sm-2">{:__('Prevtime')}:</label>
  78. <div class="col-xs-12 col-sm-8">
  79. <input id="c-prevtime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[prevtime]" type="text" value="{:date('Y-m-d H:i:s')}">
  80. </div>
  81. </div>
  82. <div class="form-group">
  83. <label class="control-label col-xs-12 col-sm-2">{:__('Logintime')}:</label>
  84. <div class="col-xs-12 col-sm-8">
  85. <input id="c-logintime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[logintime]" 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">{:__('Loginip')}:</label>
  90. <div class="col-xs-12 col-sm-8">
  91. <input id="c-loginip" class="form-control" name="row[loginip]" type="text" value="">
  92. </div>
  93. </div>
  94. <div class="form-group">
  95. <label class="control-label col-xs-12 col-sm-2">{:__('Loginfailure')}:</label>
  96. <div class="col-xs-12 col-sm-8">
  97. <input id="c-loginfailure" data-rule="required" min="0" class="form-control" name="row[loginfailure]" type="number" value="0">
  98. </div>
  99. </div>
  100. <div class="form-group">
  101. <label class="control-label col-xs-12 col-sm-2">{:__('Joinip')}:</label>
  102. <div class="col-xs-12 col-sm-8">
  103. <input id="c-joinip" class="form-control" name="row[joinip]" type="text" value="">
  104. </div>
  105. </div>
  106. <div class="form-group">
  107. <label class="control-label col-xs-12 col-sm-2">{:__('Jointime')}:</label>
  108. <div class="col-xs-12 col-sm-8">
  109. <input id="c-jointime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[jointime]" type="text" value="{:date('Y-m-d H:i:s')}">
  110. </div>
  111. </div>
  112. <div class="form-group">
  113. <label class="control-label col-xs-12 col-sm-2">{:__('Token')}:</label>
  114. <div class="col-xs-12 col-sm-8">
  115. <input id="c-token" class="form-control" name="row[token]" type="text" value="">
  116. </div>
  117. </div>
  118. <div class="form-group">
  119. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  120. <div class="col-xs-12 col-sm-8">
  121. <div class="radio">
  122. {foreach name="statusList" item="vo"}
  123. <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>
  124. {/foreach}
  125. </div>
  126. </div>
  127. </div>
  128. <div class="form-group">
  129. <label class="control-label col-xs-12 col-sm-2">{:__('Verification')}:</label>
  130. <div class="col-xs-12 col-sm-8">
  131. <input id="c-verification" class="form-control" name="row[verification]" type="text" value="">
  132. </div>
  133. </div>
  134. <div class="form-group">
  135. <label class="control-label col-xs-12 col-sm-2">{:__('Realname')}:</label>
  136. <div class="col-xs-12 col-sm-8">
  137. <input id="c-realname" data-rule="required" class="form-control" name="row[realname]" type="text" value="">
  138. </div>
  139. </div>
  140. <div class="form-group">
  141. <label class="control-label col-xs-12 col-sm-2">{:__('Gender')}:</label>
  142. <div class="col-xs-12 col-sm-8">
  143. <select id="c-gender" data-rule="required" min="0" class="form-control selectpicker" name="row[gender]">
  144. {foreach name="genderList" item="vo"}
  145. <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
  146. {/foreach}
  147. </select>
  148. </div>
  149. </div>
  150. <div class="form-group">
  151. <label class="control-label col-xs-12 col-sm-2">{:__('Birthday')}:</label>
  152. <div class="col-xs-12 col-sm-8">
  153. <input id="c-birthday" data-rule="required" class="form-control" name="row[birthday]" type="number" value="0">
  154. </div>
  155. </div>
  156. <div class="form-group">
  157. <label class="control-label col-xs-12 col-sm-2">{:__('Idcard')}:</label>
  158. <div class="col-xs-12 col-sm-8">
  159. <input id="c-idcard" data-rule="required" class="form-control" name="row[idcard]" type="text" value="">
  160. </div>
  161. </div>
  162. <div class="form-group">
  163. <label class="control-label col-xs-12 col-sm-2">{:__('Passport')}:</label>
  164. <div class="col-xs-12 col-sm-8">
  165. <input id="c-passport" data-rule="required" class="form-control" name="row[passport]" type="text" value="">
  166. </div>
  167. </div>
  168. <div class="form-group">
  169. <label class="control-label col-xs-12 col-sm-2">{:__('Emergencycontact')}:</label>
  170. <div class="col-xs-12 col-sm-8">
  171. <input id="c-emergencycontact" data-rule="required" class="form-control" name="row[emergencycontact]" type="text" value="">
  172. </div>
  173. </div>
  174. <div class="form-group">
  175. <label class="control-label col-xs-12 col-sm-2">{:__('Contactmobile')}:</label>
  176. <div class="col-xs-12 col-sm-8">
  177. <input id="c-contactmobile" data-rule="required" class="form-control" name="row[contactmobile]" type="text" value="">
  178. </div>
  179. </div>
  180. <div class="form-group">
  181. <label class="control-label col-xs-12 col-sm-2">{:__('Outdoorduration')}:</label>
  182. <div class="col-xs-12 col-sm-8">
  183. <input id="c-outdoorduration" data-rule="required" class="form-control" name="row[outdoorduration]" type="text" value="">
  184. </div>
  185. </div>
  186. <div class="form-group">
  187. <label class="control-label col-xs-12 col-sm-2">{:__('Openid')}:</label>
  188. <div class="col-xs-12 col-sm-8">
  189. <input id="c-openid" data-rule="required" class="form-control" name="row[openid]" type="text" value="">
  190. </div>
  191. </div>
  192. <div class="form-group">
  193. <label class="control-label col-xs-12 col-sm-2">{:__('Invite_no')}:</label>
  194. <div class="col-xs-12 col-sm-8">
  195. <input id="c-invite_no" data-rule="required" class="form-control" name="row[invite_no]" type="text" value="">
  196. </div>
  197. </div>
  198. <div class="form-group">
  199. <label class="control-label col-xs-12 col-sm-2">{:__('Inviteimage')}:</label>
  200. <div class="col-xs-12 col-sm-8">
  201. <div class="input-group">
  202. <input id="c-inviteimage" data-rule="required" class="form-control" size="50" name="row[inviteimage]" type="text" value="">
  203. <div class="input-group-addon no-border no-padding">
  204. <span><button type="button" id="faupload-inviteimage" class="btn btn-danger faupload" data-input-id="c-inviteimage" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-inviteimage"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  205. <span><button type="button" id="fachoose-inviteimage" class="btn btn-primary fachoose" data-input-id="c-inviteimage" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  206. </div>
  207. <span class="msg-box n-right" for="c-inviteimage"></span>
  208. </div>
  209. <ul class="row list-inline faupload-preview" id="p-inviteimage"></ul>
  210. </div>
  211. </div>
  212. <div class="form-group">
  213. <label class="control-label col-xs-12 col-sm-2">{:__('Pre_user_id')}:</label>
  214. <div class="col-xs-12 col-sm-8">
  215. <input id="c-pre_user_id" data-rule="required" data-source="pre/user/index" class="form-control selectpage" name="row[pre_user_id]" type="text" value="">
  216. </div>
  217. </div>
  218. <div class="form-group">
  219. <label class="control-label col-xs-12 col-sm-2">{:__('Invite_time')}:</label>
  220. <div class="col-xs-12 col-sm-8">
  221. <input id="c-invite_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[invite_time]" type="text" value="{:date('Y-m-d H:i:s')}">
  222. </div>
  223. </div>
  224. <div class="form-group">
  225. <label class="control-label col-xs-12 col-sm-2">{:__('Growthvalue')}:</label>
  226. <div class="col-xs-12 col-sm-8">
  227. <input id="c-growthvalue" data-rule="required" class="form-control" name="row[growthvalue]" type="number" value="0">
  228. </div>
  229. </div>
  230. <div class="form-group">
  231. <label class="control-label col-xs-12 col-sm-2">{:__('Growthlevel')}:</label>
  232. <div class="col-xs-12 col-sm-8">
  233. <input id="c-growthlevel" data-rule="required" class="form-control" name="row[growthlevel]" type="number" value="1">
  234. </div>
  235. </div>
  236. <div class="form-group">
  237. <label class="control-label col-xs-12 col-sm-2">{:__('Experiencelevel')}:</label>
  238. <div class="col-xs-12 col-sm-8">
  239. <input id="c-experiencelevel" data-rule="required" class="form-control" name="row[experiencelevel]" type="number" value="0">
  240. </div>
  241. </div>
  242. <div class="form-group">
  243. <label class="control-label col-xs-12 col-sm-2">{:__('Experiencetime')}:</label>
  244. <div class="col-xs-12 col-sm-8">
  245. <input id="c-experiencetime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[experiencetime]" type="text" value="{:date('Y-m-d H:i:s')}">
  246. </div>
  247. </div>
  248. <div class="form-group">
  249. <label class="control-label col-xs-12 col-sm-2">{:__('Maxlevel')}:</label>
  250. <div class="col-xs-12 col-sm-8">
  251. <input id="c-maxlevel" data-rule="required" class="form-control" name="row[maxlevel]" type="number" value="1">
  252. </div>
  253. </div>
  254. <div class="form-group">
  255. <label class="control-label col-xs-12 col-sm-2">{:__('Freenumber')}:</label>
  256. <div class="col-xs-12 col-sm-8">
  257. <input id="c-freenumber" data-rule="required" class="form-control" name="row[freenumber]" type="number" value="0">
  258. </div>
  259. </div>
  260. <div class="form-group">
  261. <label class="control-label col-xs-12 col-sm-2">{:__('Freenumbertime')}:</label>
  262. <div class="col-xs-12 col-sm-8">
  263. <input id="c-freenumbertime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[freenumbertime]" type="text" value="{:date('Y-m-d H:i:s')}">
  264. </div>
  265. </div>
  266. <div class="form-group layer-footer">
  267. <label class="control-label col-xs-12 col-sm-2"></label>
  268. <div class="col-xs-12 col-sm-8">
  269. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  270. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  271. </div>
  272. </div>
  273. </form>