酒店预订平台
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

index.html 12 KiB

3 anos atrás
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. <style>#cxselect-example textarea{margin:10px 0;}</style>
  2. <div class="panel panel-default panel-intro">
  3. {:build_heading()}
  4. <div class="panel-body">
  5. <div id="myTabContent" class="tab-content">
  6. <div class="tab-pane fade active in" id="one">
  7. <div class="widget-body no-padding" id="cxselect-example">
  8. <form id="cxselectform" action="">
  9. <div class="row">
  10. <div class="col-md-6">
  11. <div class="panel panel-default">
  12. <div class="panel-heading"><b>省市区联动</b>(通过AJAX读取数据)</div>
  13. <div class="panel-body">
  14. <div class="row">
  15. <div class="col-xs-9">
  16. <div class="form-inline" data-toggle="cxselect" data-selects="province,city,area">
  17. <select class="province form-control" name="province" data-url="ajax/area"></select>
  18. <select class="city form-control" name="city" data-url="ajax/area"></select>
  19. <select class="area form-control" name="area" data-url="ajax/area"></select>
  20. </div>
  21. </div>
  22. <div class="col-xs-3 text-right">
  23. <h6><label class="label label-primary"><i class="fa fa-pencil"></i> 增加</label></h6>
  24. </div>
  25. <div class="col-xs-12">
  26. <textarea class="form-control" rows="8">
  27. </textarea>
  28. </div>
  29. </div>
  30. <div class="row">
  31. <div class="col-xs-9">
  32. <div class="form-inline" data-toggle="cxselect" data-selects="province,city,area">
  33. <select class="province form-control" name="province" data-url="ajax/area">
  34. <option value="1964" selected>广东省</option>
  35. </select>
  36. <select class="city form-control" name="city" data-url="ajax/area">
  37. <option value="1988" selected>深圳市</option>
  38. </select>
  39. <select class="area form-control" name="area" data-url="ajax/area">
  40. <option value="1991" selected>南山区</option>
  41. </select>
  42. </div>
  43. </div>
  44. <div class="col-xs-3 text-right">
  45. <h6><label class="label label-success"><i class="fa fa-edit"></i> 修改</label></h6>
  46. </div>
  47. <div class="col-xs-12">
  48. <textarea class="form-control" rows="8">
  49. </textarea>
  50. </div>
  51. </div>
  52. </div>
  53. </div>
  54. </div>
  55. <div class="col-md-6">
  56. <div class="panel panel-default">
  57. <div class="panel-heading"><b>类别联动</b>(Ajax读取数据)</div>
  58. <div class="panel-body">
  59. <div class="row">
  60. <div class="col-xs-9">
  61. <div class="form-inline" data-toggle="cxselect" data-selects="first,second">
  62. <select class="first form-control" name="first" data-url="ajax/category?type=page&pid=5"></select>
  63. <select class="second form-control" name="second" data-url="ajax/category" data-query-name="pid"></select>
  64. </div>
  65. </div>
  66. <div class="col-xs-3 text-right">
  67. <h6><label class="label label-primary"><i class="fa fa-pencil"></i> 增加</label></h6>
  68. </div>
  69. <div class="col-xs-12">
  70. <textarea class="form-control" rows="8">
  71. </textarea>
  72. </div>
  73. </div>
  74. <div class="row">
  75. <div class="col-xs-9">
  76. <div class="form-inline" data-toggle="cxselect" data-selects="first,second">
  77. <select class="first form-control" name="first" data-url="ajax/category?type=page&pid=5">
  78. <option value="6" selected>网站建站</option>
  79. </select>
  80. <select class="second form-control" name="second" data-url="ajax/category" data-query-name="pid">
  81. <option value="9" selected>移动端</option>
  82. </select>
  83. </div>
  84. </div>
  85. <div class="col-xs-3 text-right">
  86. <h6><label class="label label-success"><i class="fa fa-edit"></i> 修改</label></h6>
  87. </div>
  88. <div class="col-xs-12">
  89. <textarea class="form-control" rows="8">
  90. </textarea>
  91. </div>
  92. </div>
  93. </div>
  94. </div>
  95. </div>
  96. <div class="col-md-6">
  97. <div class="panel panel-default">
  98. <div class="panel-heading"><b>省市区联动</b>(通过JSON渲染数据)</div>
  99. <div class="panel-body">
  100. <div class="row">
  101. <div class="col-xs-9">
  102. <!--由于在初始化中修改了默认值,所以这里需要修改-jsonSpace/jsonValue/jsonName的值-->
  103. <div class="form-inline" data-toggle="cxselect" data-url="__CDN__/assets/libs/fastadmin-cxselect/js/cityData.min.json"
  104. data-selects="province,city,area" data-json-space="" data-json-name="n" data-json-value="">
  105. <select class="province form-control" name="province"></select>
  106. <select class="city form-control" name="city"></select>
  107. <select class="area form-control" name="area"></select>
  108. </div>
  109. </div>
  110. <div class="col-xs-3 text-right">
  111. <h6><label class="label label-primary"><i class="fa fa-pencil"></i> 增加</label></h6>
  112. </div>
  113. <div class="col-xs-12">
  114. <textarea class="form-control" rows="8">
  115. </textarea>
  116. </div>
  117. </div>
  118. <div class="row">
  119. <div class="col-xs-9">
  120. <!--由于在初始化中修改了默认值,所以这里需要修改-jsonSpace/jsonValue/jsonName的值-->
  121. <div class="form-inline" data-toggle="cxselect" data-url="__CDN__/assets/libs/fastadmin-cxselect/js/cityData.min.json"
  122. data-selects="province,city,area" data-json-space="" data-json-name="n" data-json-value="">
  123. <select class="province form-control" data-first-title="选择省">
  124. <option value="">请选择</option>
  125. <option value="浙江省" selected>浙江省</option>
  126. </select>
  127. <select class="city form-control" data-first-title="选择市">
  128. <option value="">请选择</option>
  129. <option value="杭州市" selected>杭州市</option>
  130. </select>
  131. <select class="area form-control" data-first-title="选择地区">
  132. <option value="">请选择</option>
  133. <option value="西湖区" selected>西湖区</option>
  134. </select>
  135. </div>
  136. </div>
  137. <div class="col-xs-3 text-right">
  138. <h6><label class="label label-success"><i class="fa fa-edit"></i> 修改</label></h6>
  139. </div>
  140. <div class="col-xs-12">
  141. <textarea class="form-control" rows="8">
  142. </textarea>
  143. </div>
  144. </div>
  145. </div>
  146. </div>
  147. </div>
  148. </div>
  149. </form>
  150. </div>
  151. </div>
  152. </div>
  153. </div>
  154. </div>