暫無描述
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

flag_btn.htm 1.7KB

1234567891011121314151617181920212223242526272829303132333435
  1. <div class="sDiv2">
  2. <select name="flag" class="select" style="margin:0px 5px;">
  3. <option value="">--属性--</option>
  4. {volist name="archives_flags" id="vo"}
  5. <option value="{$vo.flag_fieldname}" {eq name="$Request.param.flag" value="$vo.flag_fieldname"}selected{/eq}>{$vo.flag_name}</option>
  6. {/volist}
  7. </select>
  8. </div>
  9. {notempty name="$global.web_citysite_open"}
  10. <div class="sDiv2">
  11. <select name="province_id" id="province_id" class="select" style="margin:0px 5px;" onchange="set_city_list(0);">
  12. <option value="0">全国</option>
  13. {volist name=':get_site_province_list()' id='vo'}
  14. <option value="{$vo.id}" {eq name="$Request.param.province_id" value="$vo.id" } selected="true" {/eq}>{$vo.name}</option>
  15. {/volist}
  16. </select>
  17. <select name="city_id" id="city_id" class="select" style="margin:0px 5px;display: none;" onchange="set_area_list(0);">
  18. <option value="">--请选择--</option>
  19. </select>
  20. <select name="area_id" id="area_id" class="select" style="margin:0px 5px;display: none;">
  21. <option value="">--请选择--</option>
  22. </select>
  23. </div>
  24. <script type="text/javascript">
  25. try {
  26. set_city_list({$Request.param.city_id|default=0});
  27. set_area_list({$Request.param.area_id|default=0});
  28. }catch(e){}
  29. $(document).ready(function(){
  30. $('#searchForm select[name=province_id],#searchForm select[name=city_id],#searchForm select[name=area_id]').change(function(){
  31. $('#searchForm').submit();
  32. });
  33. });
  34. </script>
  35. {/notempty}