add.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  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">{:__('Ruletype')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <select id="c-ruletype" data-rule="required" class="form-control selectpicker" name="row[ruletype]">
  6. {foreach name="ruletypeList" item="vo"}
  7. <option value="{$key}" {in name="key" value="1"}selected{/in}>{$vo}</option>
  8. {/foreach}
  9. </select>
  10. </div>
  11. </div>
  12. <div class="form-group">
  13. <label class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
  14. <div class="col-xs-12 col-sm-8">
  15. <input id="c-nickname" class="form-control" name="row[nickname]" type="text" value="">
  16. </div>
  17. </div>
  18. <div class="form-group">
  19. <label class="control-label col-xs-12 col-sm-2">{:__('Avatar')}:</label>
  20. <div class="col-xs-12 col-sm-8">
  21. <div class="input-group">
  22. <input id="c-avatar" class="form-control" size="50" name="row[avatar]" type="text" value="">
  23. <div class="input-group-addon no-border no-padding">
  24. <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>
  25. <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>
  26. </div>
  27. <span class="msg-box n-right" for="c-avatar"></span>
  28. </div>
  29. <ul class="row list-inline faupload-preview" id="p-avatar"></ul>
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <label class="control-label col-xs-12 col-sm-2">{:__('Gender')}:</label>
  34. <div class="col-xs-12 col-sm-8">
  35. <select id="c-gender" data-rule="required" min="0" class="form-control selectpicker" name="row[gender]">
  36. {foreach name="genderList" item="vo"}
  37. <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
  38. {/foreach}
  39. </select>
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
  44. <div class="col-xs-12 col-sm-8">
  45. <input id="c-mobile" class="form-control" name="row[mobile]" type="text" value="">
  46. </div>
  47. </div>
  48. <div class="form-group">
  49. <label class="control-label col-xs-12 col-sm-2">{:__('Realname')}:</label>
  50. <div class="col-xs-12 col-sm-8">
  51. <input id="c-realname" class="form-control" name="row[realname]" type="text" value="">
  52. </div>
  53. </div>
  54. <div class="form-group">
  55. <label class="control-label col-xs-12 col-sm-2">{:__('Idcard')}:</label>
  56. <div class="col-xs-12 col-sm-8">
  57. <input id="c-idcard" class="form-control" name="row[idcard]" type="text" value="">
  58. </div>
  59. </div>
  60. <div class="form-group">
  61. <label class="control-label col-xs-12 col-sm-2">{:__('Idcard_z_image')}:</label>
  62. <div class="col-xs-12 col-sm-8">
  63. <div class="input-group">
  64. <input id="c-idcard_z_image" class="form-control" size="50" name="row[idcard_z_image]" type="text" value="">
  65. <div class="input-group-addon no-border no-padding">
  66. <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>
  67. <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>
  68. </div>
  69. <span class="msg-box n-right" for="c-idcard_z_image"></span>
  70. </div>
  71. <ul class="row list-inline faupload-preview" id="p-idcard_z_image"></ul>
  72. </div>
  73. </div>
  74. <div class="form-group">
  75. <label class="control-label col-xs-12 col-sm-2">{:__('Idcard_f_image')}:</label>
  76. <div class="col-xs-12 col-sm-8">
  77. <div class="input-group">
  78. <input id="c-idcard_f_image" class="form-control" size="50" name="row[idcard_f_image]" type="text" value="">
  79. <div class="input-group-addon no-border no-padding">
  80. <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>
  81. <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>
  82. </div>
  83. <span class="msg-box n-right" for="c-idcard_f_image"></span>
  84. </div>
  85. <ul class="row list-inline faupload-preview" id="p-idcard_f_image"></ul>
  86. </div>
  87. </div>
  88. <div class="form-group">
  89. <label class="control-label col-xs-12 col-sm-2">{:__('Idcard_status')}:</label>
  90. <div class="col-xs-12 col-sm-8">
  91. <div class="radio">
  92. {foreach name="idcardStatusList" item="vo"}
  93. <label for="row[idcard_status]-{$key}"><input id="row[idcard_status]-{$key}" name="row[idcard_status]" type="radio" value="{$key}" {in name="key" value="-1"}checked{/in} /> {$vo}</label>
  94. {/foreach}
  95. </div>
  96. </div>
  97. </div>
  98. <div class="form-group">
  99. <label class="control-label col-xs-12 col-sm-2">{:__('Doctor_image')}:</label>
  100. <div class="col-xs-12 col-sm-8">
  101. <div class="input-group">
  102. <input id="c-doctor_image" class="form-control" size="50" name="row[doctor_image]" type="text" value="">
  103. <div class="input-group-addon no-border no-padding">
  104. <span><button type="button" id="faupload-doctor_image" class="btn btn-danger faupload" data-input-id="c-doctor_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-doctor_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  105. <span><button type="button" id="fachoose-doctor_image" class="btn btn-primary fachoose" data-input-id="c-doctor_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  106. </div>
  107. <span class="msg-box n-right" for="c-doctor_image"></span>
  108. </div>
  109. <ul class="row list-inline faupload-preview" id="p-doctor_image"></ul>
  110. </div>
  111. </div>
  112. <div class="form-group">
  113. <label class="control-label col-xs-12 col-sm-2">{:__('Doctor_status')}:</label>
  114. <div class="col-xs-12 col-sm-8">
  115. <div class="radio">
  116. {foreach name="doctorStatusList" item="vo"}
  117. <label for="row[doctor_status]-{$key}"><input id="row[doctor_status]-{$key}" name="row[doctor_status]" type="radio" value="{$key}" {in name="key" value="-1"}checked{/in} /> {$vo}</label>
  118. {/foreach}
  119. </div>
  120. </div>
  121. </div>
  122. <div class="form-group">
  123. <label class="control-label col-xs-12 col-sm-2">{:__('English_status')}:</label>
  124. <div class="col-xs-12 col-sm-8">
  125. <div class="radio">
  126. {foreach name="englishStatusList" item="vo"}
  127. <label for="row[english_status]-{$key}"><input id="row[english_status]-{$key}" name="row[english_status]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label>
  128. {/foreach}
  129. </div>
  130. </div>
  131. </div>
  132. <div class="form-group">
  133. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  134. <div class="col-xs-12 col-sm-8">
  135. <div class="radio">
  136. {foreach name="statusList" item="vo"}
  137. <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>
  138. {/foreach}
  139. </div>
  140. </div>
  141. </div>
  142. <div class="form-group">
  143. <label class="control-label col-xs-12 col-sm-2">{:__('Keshi_id')}:</label>
  144. <div class="col-xs-12 col-sm-8">
  145. <input id="c-keshi_id" data-rule="required" data-source="keshi/index" class="form-control selectpage" name="row[keshi_id]" type="text" value="">
  146. </div>
  147. </div>
  148. <div class="form-group">
  149. <label class="control-label col-xs-12 col-sm-2">{:__('Hospital')}:</label>
  150. <div class="col-xs-12 col-sm-8">
  151. <input id="c-hospital" class="form-control" name="row[hospital]" type="text" value="">
  152. </div>
  153. </div>
  154. <div class="form-group">
  155. <label class="control-label col-xs-12 col-sm-2">{:__('Goodat')}:</label>
  156. <div class="col-xs-12 col-sm-8">
  157. <input id="c-goodat" class="form-control" name="row[goodat]" type="text" value="">
  158. </div>
  159. </div>
  160. <div class="form-group">
  161. <label class="control-label col-xs-12 col-sm-2">{:__('Ordernum')}:</label>
  162. <div class="col-xs-12 col-sm-8">
  163. <input id="c-ordernum" class="form-control" name="row[ordernum]" type="number" value="0">
  164. </div>
  165. </div>
  166. <div class="form-group">
  167. <label class="control-label col-xs-12 col-sm-2">{:__('Level_id')}:</label>
  168. <div class="col-xs-12 col-sm-8">
  169. <input id="c-level_id" data-rule="required" data-source="doctorlevel/index" class="form-control selectpage" name="row[level_id]" type="text" value="">
  170. </div>
  171. </div>
  172. <div class="form-group">
  173. <label class="control-label col-xs-12 col-sm-2">{:__('Info')}:</label>
  174. <div class="col-xs-12 col-sm-8">
  175. <textarea id="c-info" class="form-control " rows="5" name="row[info]" cols="50"></textarea>
  176. </div>
  177. </div>
  178. <!--<div class="form-group">
  179. <label class="control-label col-xs-12 col-sm-2">{:__('Wechat_openid')}:</label>
  180. <div class="col-xs-12 col-sm-8">
  181. <input id="c-wechat_openid" class="form-control" name="row[wechat_openid]" type="text">
  182. </div>
  183. </div>-->
  184. <div class="form-group layer-footer">
  185. <label class="control-label col-xs-12 col-sm-2"></label>
  186. <div class="col-xs-12 col-sm-8">
  187. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  188. </div>
  189. </div>
  190. </form>