area.html 1.7 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php $i = 1; $areas = $areas; foreach ($areas['region'] as $region => $provinceIds) { ?>
  2. <li<?php if ($i % 2 == 0) echo ' class="even"'; ?>>
  3. <dl class="dssc-region">
  4. <dt class="dssc-region-title">
  5. <span>
  6. <input type="checkbox" id="J_Group_{$i}" class="J_Group" value=""/>
  7. <label for="J_Group_{$i}">{$region}</label>
  8. </span>
  9. </dt>
  10. <dd class="dssc-province-list">
  11. {foreach name="provinceIds" item="provinceId" }
  12. <div class="dssc-province"><span class="dssc-province-tab">
  13. <input type="checkbox" class="J_Province" id="J_Province_{$provinceId}" value="{$provinceId}"/>
  14. <label for="J_Province_{$provinceId}"><?php echo $areas['name'][$provinceId]; ?></label>
  15. <span class="check_num"/> </span><i class="iconfont trigger">&#xe689;</i>
  16. <div class="dssc-citys-sub">
  17. <?php if(isset($areas['children'][$provinceId])){ ?>
  18. <?php foreach ($areas['children'][$provinceId] as $cityId) { ?>
  19. <span class="areas">
  20. <input type="checkbox" class="J_City" id="J_City_{$cityId}" value="{$cityId}"/>
  21. <label for="J_City_{$cityId}"><?php echo $areas['name'][$cityId]; ?></label>
  22. </span>
  23. <?php } ?>
  24. <?php } ?>
  25. <p class="tr hr8"><a href="javascript:void(0);" class="dssc-btn-mini dssc-btn-orange close_button">{$Think.lang.ds_close}</a></p>
  26. </div>
  27. </span>
  28. </div>
  29. {/foreach}
  30. </dd>
  31. </dl>
  32. </li>
  33. <?php $i++; } ?>