edit.html 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2. {eq name="admin.cid" value="0"}
  3. <div class="form-group">
  4. <label class="control-label col-xs-12 col-sm-2">{:__('Cid')}:</label>
  5. <div class="col-xs-12 col-sm-8">
  6. <input id="c-cid" data-rule="required" data-source="Company" data-field="company_name" class="form-control selectpage" name="row[cid]" type="text" value="{$row.cid}">
  7. </div>
  8. </div>
  9. {else/}
  10. <input id="c-cid" name="row[cid]" type="hidden" value="{$admin.cid}">
  11. {/eq}
  12. <div class="form-group">
  13. <label class="control-label col-xs-12 col-sm-2">{:__('Unionid')}:</label>
  14. <div class="col-xs-12 col-sm-8">
  15. <input id="c-unionid" class="form-control" name="row[unionid]" type="text" value="{$row.unionid|htmlentities}">
  16. </div>
  17. </div>
  18. <div class="form-group">
  19. <label class="control-label col-xs-12 col-sm-2">{:__('Openid')}:</label>
  20. <div class="col-xs-12 col-sm-8">
  21. <input id="c-openid" class="form-control" name="row[openid]" type="text" value="{$row.openid|htmlentities}">
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label class="control-label col-xs-12 col-sm-2">{:__('Routine_openid')}:</label>
  26. <div class="col-xs-12 col-sm-8">
  27. <input id="c-routine_openid" class="form-control" name="row[routine_openid]" type="text" value="{$row.routine_openid|htmlentities}">
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. <label class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
  32. <div class="col-xs-12 col-sm-8">
  33. <input id="c-nickname" class="form-control" name="row[nickname]" type="text" value="{$row.nickname|htmlentities}">
  34. </div>
  35. </div>
  36. <div class="form-group">
  37. <label class="control-label col-xs-12 col-sm-2">{:__('Headimgurl')}:</label>
  38. <div class="col-xs-12 col-sm-8">
  39. <input id="c-headimgurl" class="form-control" name="row[headimgurl]" type="text" value="{$row.headimgurl|htmlentities}">
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <label class="control-label col-xs-12 col-sm-2">{:__('Sex')}:</label>
  44. <div class="col-xs-12 col-sm-8">
  45. <select id="c-sex" class="form-control selectpicker" name="row[sex]">
  46. {foreach name="sexList" item="vo"}
  47. <option value="{$key}" {in name="key" value="$row.sex"}selected{/in}>{$vo}</option>
  48. {/foreach}
  49. </select>
  50. </div>
  51. </div>
  52. <div class="form-group">
  53. <label class="control-label col-xs-12 col-sm-2">{:__('City')}:</label>
  54. <div class="col-xs-12 col-sm-8">
  55. <div class='control-relative'><input id="c-city" class="form-control" data-toggle="city-picker" name="row[city]" type="text" value="{$row.city|htmlentities}"></div>
  56. </div>
  57. </div>
  58. <div class="form-group">
  59. <label class="control-label col-xs-12 col-sm-2">{:__('Language')}:</label>
  60. <div class="col-xs-12 col-sm-8">
  61. <input id="c-language" class="form-control" name="row[language]" type="text" value="{$row.language|htmlentities}">
  62. </div>
  63. </div>
  64. <div class="form-group">
  65. <label class="control-label col-xs-12 col-sm-2">{:__('Province')}:</label>
  66. <div class="col-xs-12 col-sm-8">
  67. <input id="c-province" class="form-control" name="row[province]" type="text" value="{$row.province|htmlentities}">
  68. </div>
  69. </div>
  70. <div class="form-group">
  71. <label class="control-label col-xs-12 col-sm-2">{:__('Country')}:</label>
  72. <div class="col-xs-12 col-sm-8">
  73. <input id="c-country" class="form-control" name="row[country]" type="text" value="{$row.country|htmlentities}">
  74. </div>
  75. </div>
  76. <div class="form-group">
  77. <label class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
  78. <div class="col-xs-12 col-sm-8">
  79. <input id="c-remark" class="form-control" name="row[remark]" type="text" value="{$row.remark|htmlentities}">
  80. </div>
  81. </div>
  82. <div class="form-group">
  83. <label class="control-label col-xs-12 col-sm-2">{:__('Groupid')}:</label>
  84. <div class="col-xs-12 col-sm-8">
  85. <input id="c-groupid" class="form-control" name="row[groupid]" type="number" value="{$row.groupid|htmlentities}">
  86. </div>
  87. </div>
  88. <div class="form-group">
  89. <label class="control-label col-xs-12 col-sm-2">{:__('Tagid_list')}:</label>
  90. <div class="col-xs-12 col-sm-8">
  91. <input id="c-tagid_list" class="form-control" name="row[tagid_list]" type="text" value="{$row.tagid_list|htmlentities}">
  92. </div>
  93. </div>
  94. <div class="form-group">
  95. <label class="control-label col-xs-12 col-sm-2">{:__('Subscribe')}:</label>
  96. <div class="col-xs-12 col-sm-8">
  97. <select id="c-subscribe" class="form-control selectpicker" name="row[subscribe]">
  98. {foreach name="subscribeList" item="vo"}
  99. <option value="{$key}" {in name="key" value="$row.subscribe"}selected{/in}>{$vo}</option>
  100. {/foreach}
  101. </select>
  102. </div>
  103. </div>
  104. <div class="form-group">
  105. <label class="control-label col-xs-12 col-sm-2">{:__('Subscribe_time')}:</label>
  106. <div class="col-xs-12 col-sm-8">
  107. <input id="c-subscribe_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[subscribe_time]" type="text" value="{:$row.subscribe_time?datetime($row.subscribe_time):''}">
  108. </div>
  109. </div>
  110. <div class="form-group">
  111. <label class="control-label col-xs-12 col-sm-2">{:__('Stair')}:</label>
  112. <div class="col-xs-12 col-sm-8">
  113. <input id="c-stair" class="form-control" name="row[stair]" type="number" value="{$row.stair|htmlentities}">
  114. </div>
  115. </div>
  116. <div class="form-group">
  117. <label class="control-label col-xs-12 col-sm-2">{:__('Second')}:</label>
  118. <div class="col-xs-12 col-sm-8">
  119. <input id="c-second" class="form-control" name="row[second]" type="number" value="{$row.second|htmlentities}">
  120. </div>
  121. </div>
  122. <div class="form-group">
  123. <label class="control-label col-xs-12 col-sm-2">{:__('Order_stair')}:</label>
  124. <div class="col-xs-12 col-sm-8">
  125. <input id="c-order_stair" class="form-control" name="row[order_stair]" type="number" value="{$row.order_stair|htmlentities}">
  126. </div>
  127. </div>
  128. <div class="form-group">
  129. <label class="control-label col-xs-12 col-sm-2">{:__('Order_second')}:</label>
  130. <div class="col-xs-12 col-sm-8">
  131. <input id="c-order_second" class="form-control" name="row[order_second]" type="number" value="{$row.order_second|htmlentities}">
  132. </div>
  133. </div>
  134. <div class="form-group">
  135. <label class="control-label col-xs-12 col-sm-2">{:__('Brokerage_price')}:</label>
  136. <div class="col-xs-12 col-sm-8">
  137. <input id="c-brokerage_price" class="form-control" step="0.01" name="row[brokerage_price]" type="number" value="{$row.brokerage_price|htmlentities}">
  138. </div>
  139. </div>
  140. <div class="form-group">
  141. <label class="control-label col-xs-12 col-sm-2">{:__('Session_key')}:</label>
  142. <div class="col-xs-12 col-sm-8">
  143. <input id="c-session_key" class="form-control" name="row[session_key]" type="text" value="{$row.session_key|htmlentities}">
  144. </div>
  145. </div>
  146. <div class="form-group">
  147. <label class="control-label col-xs-12 col-sm-2">{:__('User_type')}:</label>
  148. <div class="col-xs-12 col-sm-8">
  149. <select id="c-user_type" class="form-control selectpicker" name="row[user_type]">
  150. {foreach name="userTypeList" item="vo"}
  151. <option value="{$key}" {in name="key" value="$row.user_type"}selected{/in}>{$vo}</option>
  152. {/foreach}
  153. </select>
  154. </div>
  155. </div>
  156. <div class="form-group layer-footer">
  157. <label class="control-label col-xs-12 col-sm-2"></label>
  158. <div class="col-xs-12 col-sm-8">
  159. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  160. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  161. </div>
  162. </div>
  163. </form>