edit.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  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">{:__('Local_code')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-local_code" class="form-control" name="row[local_code]" type="text" value="{$row.local_code|htmlentities}">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('对应上游编码')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-api_goods_id" class="form-control" name="row[api_goods_id]" type="text" value="{$row.api_goods_id|htmlentities}">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('选号服务类型')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <select id="c-num_select_type" data-rule="" class="form-control selectpicker" name="row[num_select_type]">
  18. {foreach name="numSelectType" item="vo"}
  19. <option value="{$key}" {in name="key" value="$row.num_select_type"}selected{/in}>{$vo}</option>
  20. {/foreach}
  21. </select>
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label class="control-label col-xs-12 col-sm-2">{:__('选择号码归属地')}:</label>
  26. <div class="col-xs-12 col-sm-8">
  27. <select id="c-home_location_type" data-rule="" class="form-control selectpicker" name="row[home_location_type]">
  28. {foreach name="homeLocationType" item="vo"}
  29. <option value="{$key}" {in name="key" value="$row.home_location_type"}selected{/in}>{$vo}</option>
  30. {/foreach}
  31. </select>
  32. </div>
  33. </div>
  34. <div class="form-group">
  35. <label class="control-label col-xs-12 col-sm-2">{:__('号码归属地省份编码')}:</label>
  36. <div class="col-xs-12 col-sm-8">
  37. <input id="c-home_location_province" class="form-control" name="row[home_location_province]" type="text" value="{$row.home_location_province|htmlentities}">
  38. </div>
  39. </div>
  40. <div class="form-group">
  41. <label class="control-label col-xs-12 col-sm-2">{:__('号码归属地城市编码')}:</label>
  42. <div class="col-xs-12 col-sm-8">
  43. <input id="c-home_location_city" class="form-control" name="row[home_location_city]" type="text" value="{$row.home_location_city|htmlentities}">
  44. </div>
  45. </div>
  46. <div class="form-group">
  47. <label class="control-label col-xs-12 col-sm-2">{:__('后缀')}:</label>
  48. <div class="col-xs-12 col-sm-8">
  49. <input id="c-suffix" class="form-control" name="row[suffix]" type="text" value="{$row.suffix|htmlentities}">
  50. </div>
  51. </div>
  52. <div class="form-group">
  53. <label class="control-label col-xs-12 col-sm-2">{:__('Contact_code')}:</label>
  54. <div class="col-xs-12 col-sm-8">
  55. <input id="c-contact_code" class="form-control" name="row[contact_code]" type="text" value="{$row.contact_code|htmlentities}">
  56. </div>
  57. </div>
  58. <div class="form-group">
  59. <label class="control-label col-xs-12 col-sm-2">{:__('发展人编码')}:</label>
  60. <div class="col-xs-12 col-sm-8">
  61. <input id="c-developing_no" class="form-control" name="row[developing_no]" type="text" value="{$row.developing_no|htmlentities}">
  62. </div>
  63. </div>
  64. <div class="form-group">
  65. <label class="control-label col-xs-12 col-sm-2">{:__('合约ID')}:</label>
  66. <div class="col-xs-12 col-sm-8">
  67. <input id="c-contract_id" class="form-control" name="row[contract_id]" type="text" value="{$row.contract_id|htmlentities}">
  68. </div>
  69. </div>
  70. <div class="form-group">
  71. <label class="control-label col-xs-12 col-sm-2">{:__('Link')}:</label>
  72. <div class="col-xs-12 col-sm-8">
  73. <input id="c-link" class="form-control" name="row[link]" type="text" value="{$row.link|htmlentities}">
  74. </div>
  75. </div>
  76. <div class="form-group">
  77. <label class="control-label col-xs-12 col-sm-2">{:__('Images')}:</label>
  78. <div class="col-xs-12 col-sm-8">
  79. <div class="input-group">
  80. <input id="c-images" class="form-control" size="50" name="row[images]" type="text" value="{$row.images|htmlentities}">
  81. <div class="input-group-addon no-border no-padding">
  82. <span><button type="button" id="faupload-images" class="btn btn-danger faupload" data-input-id="c-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  83. <span><button type="button" id="fachoose-images" class="btn btn-primary fachoose" data-input-id="c-images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  84. </div>
  85. <span class="msg-box n-right" for="c-images"></span>
  86. </div>
  87. <ul class="row list-inline faupload-preview" id="p-images"></ul>
  88. </div>
  89. </div>
  90. <div class="form-group">
  91. <label class="control-label col-xs-12 col-sm-2">{:__('资源ID')}:</label>
  92. <div class="col-xs-12 col-sm-8">
  93. <input id="c-resource_id" class="form-control" name="row[resource_id]" type="text" value="{$row.resource_id|htmlentities}">
  94. </div>
  95. </div>
  96. <div class="form-group">
  97. <label class="control-label col-xs-12 col-sm-2">{:__('运营商')}:</label>
  98. <div class="col-xs-12 col-sm-8">
  99. <select id="c-operator" data-rule="" class="form-control selectpicker" name="row[operator]">
  100. {foreach name="operatorData" item="vo"}
  101. <option value="{$key}" {in name="key" value="$row.operator"}selected{/in}>{$vo}</option>
  102. {/foreach}
  103. </select>
  104. </div>
  105. </div>
  106. <!-- <div class="form-group">
  107. <label class="control-label col-xs-12 col-sm-2">{:__('Line_code')}:</label>
  108. <div class="col-xs-12 col-sm-8">
  109. <input id="c-line_code" class="form-control" name="row[line_code]" type="text" value="{$row.line_code|htmlentities}">
  110. </div>
  111. </div> -->
  112. <!-- <div class="form-group">
  113. <label class="control-label col-xs-12 col-sm-2">{:__('Developing_num')}:</label>
  114. <div class="col-xs-12 col-sm-8">
  115. <input id="c-developing_num" class="form-control" name="row[developing_num]" type="text" value="{$row.developing_num|htmlentities}">
  116. </div>
  117. </div>
  118. <div class="form-group">
  119. <label class="control-label col-xs-12 col-sm-2">{:__('Developing_phone')}:</label>
  120. <div class="col-xs-12 col-sm-8">
  121. <input id="c-developing_phone" class="form-control" name="row[developing_phone]" type="text" value="{$row.developing_phone|htmlentities}">
  122. </div>
  123. </div>
  124. <div class="form-group">
  125. <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
  126. <div class="col-xs-12 col-sm-8">
  127. <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
  128. </div>
  129. </div> -->
  130. <!-- <div class="form-group">
  131. <label class="control-label col-xs-12 col-sm-2">{:__('Scene_code')}:</label>
  132. <div class="col-xs-12 col-sm-8">
  133. <input id="c-scene_code" class="form-control" name="row[scene_code]" type="text" value="{$row.scene_code|htmlentities}">
  134. </div>
  135. </div> -->
  136. <!-- <div class="form-group">
  137. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  138. <div class="col-xs-12 col-sm-8">
  139. <input id="c-status" class="form-control" name="row[status]" type="number" value="{$row.status|htmlentities}">
  140. </div>
  141. </div>
  142. <div class="form-group">
  143. <label class="control-label col-xs-12 col-sm-2">{:__('Receiving_method')}:</label>
  144. <div class="col-xs-12 col-sm-8">
  145. <input id="c-receiving_method" class="form-control" name="row[receiving_method]" type="text" value="{$row.receiving_method|htmlentities}">
  146. </div>
  147. </div>
  148. <div class="form-group">
  149. <label class="control-label col-xs-12 col-sm-2">{:__('Images')}:</label>
  150. <div class="col-xs-12 col-sm-8">
  151. <div class="input-group">
  152. <input id="c-images" class="form-control" size="50" name="row[images]" type="text" value="{$row.images|htmlentities}">
  153. <div class="input-group-addon no-border no-padding">
  154. <span><button type="button" id="faupload-images" class="btn btn-danger faupload" data-input-id="c-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  155. <span><button type="button" id="fachoose-images" class="btn btn-primary fachoose" data-input-id="c-images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  156. </div>
  157. <span class="msg-box n-right" for="c-images"></span>
  158. </div>
  159. <ul class="row list-inline faupload-preview" id="p-images"></ul>
  160. </div>
  161. </div>
  162. <div class="form-group">
  163. <label class="control-label col-xs-12 col-sm-2">{:__('Link')}:</label>
  164. <div class="col-xs-12 col-sm-8">
  165. <input id="c-link" class="form-control" name="row[link]" type="text" value="{$row.link|htmlentities}">
  166. </div>
  167. </div> -->
  168. <!-- <div class="form-group">
  169. <label class="control-label col-xs-12 col-sm-2">{:__('Api_goods_id')}:</label>
  170. <div class="col-xs-12 col-sm-8">
  171. <input id="c-api_goods_id" class="form-control" name="row[api_goods_id]" type="text" value="{$row.api_goods_id|htmlentities}">
  172. </div>
  173. </div> -->
  174. <!-- <div class="form-group">
  175. <label class="control-label col-xs-12 col-sm-2">{:__('Contact_code')}:</label>
  176. <div class="col-xs-12 col-sm-8">
  177. <input id="c-contact_code" class="form-control" name="row[contact_code]" type="text" value="{$row.contact_code|htmlentities}">
  178. </div>
  179. </div> -->
  180. <div class="form-group">
  181. <label class="control-label col-xs-12 col-sm-2">{:__('Message_channel_code')}:</label>
  182. <div class="col-xs-12 col-sm-8">
  183. <input id="c-message_channel_code" class="form-control" name="row[message_channel_code]" type="text" value="{$row.message_channel_code|htmlentities}">
  184. </div>
  185. </div>
  186. <div class="form-group layer-footer">
  187. <label class="control-label col-xs-12 col-sm-2"></label>
  188. <div class="col-xs-12 col-sm-8">
  189. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  190. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  191. </div>
  192. </div>
  193. </form>