add.html 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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">{:__('Username')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-username" class="form-control" name="row[username]" type="text" value="">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-nickname" class="form-control" name="row[nickname]" type="text" value="">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Contactname')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <input id="c-contactname" class="form-control" name="row[contactname]" type="text">
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <input id="c-mobile" class="form-control" name="row[mobile]" type="text" value="">
  24. </div>
  25. </div>
  26. <div class="form-group">
  27. <label class="control-label col-xs-12 col-sm-2">{:__('Avatar')}:</label>
  28. <div class="col-xs-12 col-sm-8">
  29. <div class="input-group">
  30. <input id="c-avatar" class="form-control" size="50" name="row[avatar]" type="text" value="">
  31. <div class="input-group-addon no-border no-padding">
  32. <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>
  33. <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>
  34. </div>
  35. <span class="msg-box n-right" for="c-avatar"></span>
  36. </div>
  37. <ul class="row list-inline faupload-preview" id="p-avatar"></ul>
  38. </div>
  39. </div>
  40. <div class="form-group">
  41. <label class="control-label col-xs-12 col-sm-2">{:__('Prevtime')}:</label>
  42. <div class="col-xs-12 col-sm-8">
  43. <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="{:date('Y-m-d H:i:s')}">
  44. </div>
  45. </div>
  46. <div class="form-group">
  47. <label class="control-label col-xs-12 col-sm-2">{:__('Logintime')}:</label>
  48. <div class="col-xs-12 col-sm-8">
  49. <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="{:date('Y-m-d H:i:s')}">
  50. </div>
  51. </div>
  52. <div class="form-group">
  53. <label class="control-label col-xs-12 col-sm-2">{:__('Loginip')}:</label>
  54. <div class="col-xs-12 col-sm-8">
  55. <input id="c-loginip" class="form-control" name="row[loginip]" type="text" value="">
  56. </div>
  57. </div>
  58. <div class="form-group">
  59. <label class="control-label col-xs-12 col-sm-2">{:__('Joinip')}:</label>
  60. <div class="col-xs-12 col-sm-8">
  61. <input id="c-joinip" class="form-control" name="row[joinip]" type="text" value="">
  62. </div>
  63. </div>
  64. <div class="form-group">
  65. <label class="control-label col-xs-12 col-sm-2">{:__('Jointime')}:</label>
  66. <div class="col-xs-12 col-sm-8">
  67. <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="{:date('Y-m-d H:i:s')}">
  68. </div>
  69. </div>
  70. <div class="form-group">
  71. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  72. <div class="col-xs-12 col-sm-8">
  73. <div class="radio">
  74. {foreach name="statusList" item="vo"}
  75. <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>
  76. {/foreach}
  77. </div>
  78. </div>
  79. </div>
  80. <div class="form-group">
  81. <label class="control-label col-xs-12 col-sm-2">{:__('Mini_openid')}:</label>
  82. <div class="col-xs-12 col-sm-8">
  83. <input id="c-mini_openid" class="form-control" name="row[mini_openid]" type="text" value="">
  84. </div>
  85. </div>
  86. <div class="form-group">
  87. <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
  88. <div class="col-xs-12 col-sm-8">
  89. <input id="c-address" class="form-control" name="row[address]" type="text">
  90. </div>
  91. </div>
  92. <div class="form-group">
  93. <label class="control-label col-xs-12 col-sm-2">{:__('Company_id')}:</label>
  94. <div class="col-xs-12 col-sm-8">
  95. <input id="c-company_id" data-rule="required" data-source="company/index" data-field="companyname" class="form-control selectpage" name="row[company_id]" type="text" value="">
  96. </div>
  97. </div>
  98. <div class="form-group layer-footer">
  99. <label class="control-label col-xs-12 col-sm-2"></label>
  100. <div class="col-xs-12 col-sm-8">
  101. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  102. </div>
  103. </div>
  104. </form>