edit.html 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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">{:__('Company_id')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <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="{$row.company_id|htmlentities}">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Avatar')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <div class="input-group">
  12. <input id="c-avatar" class="form-control" size="50" name="row[avatar]" type="text" value="{$row.avatar|htmlentities}">
  13. <div class="input-group-addon no-border no-padding">
  14. <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>
  15. <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>
  16. </div>
  17. <span class="msg-box n-right" for="c-avatar"></span>
  18. </div>
  19. <ul class="row list-inline faupload-preview" id="p-avatar"></ul>
  20. </div>
  21. </div>
  22. <div class="form-group">
  23. <label class="control-label col-xs-12 col-sm-2">{:__('Level')}:</label>
  24. <div class="col-xs-12 col-sm-8">
  25. <input id="c-level" class="form-control" name="row[level]" type="text" value="{$row.level|htmlentities}">
  26. </div>
  27. </div>
  28. <div class="form-group">
  29. <label class="control-label col-xs-12 col-sm-2">{:__('Truename')}:</label>
  30. <div class="col-xs-12 col-sm-8">
  31. <input id="c-truename" class="form-control" name="row[truename]" type="text" value="{$row.truename|htmlentities}">
  32. </div>
  33. </div>
  34. <div class="form-group">
  35. <label class="control-label col-xs-12 col-sm-2">{:__('Gonghao')}:</label>
  36. <div class="col-xs-12 col-sm-8">
  37. <input id="c-gonghao" class="form-control" name="row[gonghao]" type="text" value="{$row.gonghao|htmlentities}">
  38. </div>
  39. </div>
  40. <div class="form-group">
  41. <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
  42. <div class="col-xs-12 col-sm-8">
  43. <input id="c-mobile" class="form-control" name="row[mobile]" type="text" value="{$row.mobile|htmlentities}">
  44. </div>
  45. </div>
  46. <div class="form-group">
  47. <label class="control-label col-xs-12 col-sm-2">{:__('Password')}:</label>
  48. <div class="col-xs-12 col-sm-8">
  49. <input id="c-password" class="form-control" name="row[password]" type="text" value="{$row.password|htmlentities}">
  50. </div>
  51. </div>
  52. <div class="form-group">
  53. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  54. <div class="col-xs-12 col-sm-8">
  55. <div class="radio">
  56. {foreach name="statusList" item="vo"}
  57. <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>
  58. {/foreach}
  59. </div>
  60. </div>
  61. </div>
  62. <!--<div class="form-group">
  63. <label class="control-label col-xs-12 col-sm-2">{:__('Prevtime')}:</label>
  64. <div class="col-xs-12 col-sm-8">
  65. <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):''}">
  66. </div>
  67. </div>
  68. <div class="form-group">
  69. <label class="control-label col-xs-12 col-sm-2">{:__('Logintime')}:</label>
  70. <div class="col-xs-12 col-sm-8">
  71. <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):''}">
  72. </div>
  73. </div>
  74. <div class="form-group">
  75. <label class="control-label col-xs-12 col-sm-2">{:__('Loginip')}:</label>
  76. <div class="col-xs-12 col-sm-8">
  77. <input id="c-loginip" class="form-control" name="row[loginip]" type="text" value="{$row.loginip|htmlentities}">
  78. </div>
  79. </div>-->
  80. <div class="form-group">
  81. <label class="control-label col-xs-12 col-sm-2">{:__('Idcard_z_image')}:</label>
  82. <div class="col-xs-12 col-sm-8">
  83. <div class="input-group">
  84. <input id="c-idcard_z_image" class="form-control" size="50" name="row[idcard_z_image]" type="text" value="{$row.idcard_z_image|htmlentities}">
  85. <div class="input-group-addon no-border no-padding">
  86. <span><button type="button" id="faupload-idcard_z_image" class="btn btn-danger faupload" data-input-id="c-idcard_z_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-idcard_z_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  87. <span><button type="button" id="fachoose-idcard_z_image" class="btn btn-primary fachoose" data-input-id="c-idcard_z_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  88. </div>
  89. <span class="msg-box n-right" for="c-idcard_z_image"></span>
  90. </div>
  91. <ul class="row list-inline faupload-preview" id="p-idcard_z_image"></ul>
  92. </div>
  93. </div>
  94. <div class="form-group">
  95. <label class="control-label col-xs-12 col-sm-2">{:__('Idcard_f_image')}:</label>
  96. <div class="col-xs-12 col-sm-8">
  97. <div class="input-group">
  98. <input id="c-idcard_f_image" class="form-control" size="50" name="row[idcard_f_image]" type="text" value="{$row.idcard_f_image|htmlentities}">
  99. <div class="input-group-addon no-border no-padding">
  100. <span><button type="button" id="faupload-idcard_f_image" class="btn btn-danger faupload" data-input-id="c-idcard_f_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-idcard_f_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  101. <span><button type="button" id="fachoose-idcard_f_image" class="btn btn-primary fachoose" data-input-id="c-idcard_f_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  102. </div>
  103. <span class="msg-box n-right" for="c-idcard_f_image"></span>
  104. </div>
  105. <ul class="row list-inline faupload-preview" id="p-idcard_f_image"></ul>
  106. </div>
  107. </div>
  108. <div class="form-group">
  109. <label class="control-label col-xs-12 col-sm-2">{:__('Jineng_image')}:</label>
  110. <div class="col-xs-12 col-sm-8">
  111. <div class="input-group">
  112. <input id="c-jineng_image" class="form-control" size="50" name="row[jineng_image]" type="text" value="{$row.jineng_image|htmlentities}">
  113. <div class="input-group-addon no-border no-padding">
  114. <span><button type="button" id="faupload-jineng_image" class="btn btn-danger faupload" data-input-id="c-jineng_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-jineng_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  115. <span><button type="button" id="fachoose-jineng_image" class="btn btn-primary fachoose" data-input-id="c-jineng_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  116. </div>
  117. <span class="msg-box n-right" for="c-jineng_image"></span>
  118. </div>
  119. <ul class="row list-inline faupload-preview" id="p-jineng_image"></ul>
  120. </div>
  121. </div>
  122. <div class="form-group layer-footer">
  123. <label class="control-label col-xs-12 col-sm-2"></label>
  124. <div class="col-xs-12 col-sm-8">
  125. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  126. </div>
  127. </div>
  128. </form>