search.php 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <?php
  2. use common\fm\Opencc;
  3. ?>
  4. <!doctype html>
  5. <html lang="en">
  6. <head>
  7. <meta charset="UTF-8">
  8. <meta name="viewport"
  9. content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  10. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  11. <title><?= Opencc::ConvertHn('搜索') ?></title>
  12. <script src="/overseas/js/search_ajax.js"></script>
  13. </head>
  14. <body>
  15. <!-- 搜索弹窗 -->
  16. <div class="y_puic_search">
  17. <div class="y_search_main">
  18. <div class="y_search_cen">
  19. <div class="y_search_top">
  20. <div class="y_search_inp c">
  21. <div class="y_search_inpmain c">
  22. <img src="/overseas/img/m_sstb1.png" alt="">
  23. <input class="y_search_text" type="text" placeholder="<?= Opencc::ConvertHn('请输入楼盘名称/支持拼音') ?>">
  24. <input class="y_search_subm" type="submit" value="<?= Opencc::ConvertHn('搜索') ?>">
  25. </div>
  26. <div class="y_search_show" id="y_search_show">
  27. <div class="m_jt"><img src="/overseas/img/m_ssa10.png" alt=""></div>
  28. <div class="y_search_showl">
  29. </div>
  30. <div class="y_search_showr">
  31. <p class="y_h"><?= Opencc::ConvertHn('热门推荐') ?></p>
  32. <ul class="y_tuijian c">
  33. <?php if (!empty($hot)) {
  34. foreach ($hot as $val) { ?>
  35. <li>
  36. <div class="y_tuijian_tu">
  37. <a href="/house/<?= $val['id'] ?>">
  38. <img src="<?php echo Yii::$app->params['httpImg']['hosts'], Yii::$app->params['httpImg']['houses'], $val['thumb'], '/same' ?>"
  39. alt="">
  40. </a>
  41. </div>
  42. <div class="y_tuijian_text">
  43. <p class="y_title"><a
  44. href="/house/<?= $val['id'] ?>"><?= Opencc::ConvertHn($val['name']) ?></a>
  45. </p>
  46. </div>
  47. </li>
  48. <?php }
  49. } ?>
  50. </ul>
  51. </div>
  52. </div>
  53. <div class="y_scrmaak"></div>
  54. </div>
  55. <!-- <ul class="m_region c">-->
  56. <!-- <div class="m_region_title"><span>热门区域</span></div>-->
  57. <!-- <li><a href="/house/search?city=27" target="_blank"><img src="/overseas/img/m_sous1.png" alt=""><i>广西</i></a>-->
  58. <!-- </li>-->
  59. <!-- <li><a href="/house/search?city=26" target="_blank"><img src="/overseas/img/m_sous2.png" alt=""><i>云南</i></a>-->
  60. <!-- </li>-->
  61. <!-- <li><a href="/house/search?city=34" target="_blank"><img src="/overseas/img/m_sous3.png" alt=""><i>东南亚</i></a>-->
  62. <!-- </li>-->
  63. <!-- <li><a href="/house/search?city=52" target="_blank"><img src="/overseas/img/m_sous4.png" alt=""><i>广东</i></a>-->
  64. <!-- </li>-->
  65. <!-- </ul>-->
  66. </div>
  67. <!-- 搜索条件 start -->
  68. <div class="y_search_bottom">
  69. <div class="y_searchb_mok c">
  70. <div class="y_searchb_l">
  71. <p><?= Opencc::ConvertHn('价格') ?></p>
  72. </div>
  73. <div class="y_searchb_r fl c">
  74. <a href="javascript:void(0)" name="city" value="0" class="on"><?= Opencc::ConvertHn('不限') ?></a>
  75. <?php foreach ($price as $val) { ?>
  76. <a href="/house/search?price=<?php echo $val['id'] ?>"><?php echo Opencc::ConvertHn($val['price']) ?></a>
  77. <?php } ?>
  78. </div>
  79. </div>
  80. <div class="y_searchb_mok c">
  81. <div class="y_searchb_l fl">
  82. <p><?= Opencc::ConvertHn('户型') ?></p>
  83. </div>
  84. <div class="y_searchb_r fl c">
  85. <a href="javascript:void(0)" name="city" value="0" class="on"><?= Opencc::ConvertHn('不限') ?></a>
  86. <?php foreach ($type as $val) { ?>
  87. <a href="/house/search?type=<?php echo $val['id'] ?>"><?php echo Opencc::ConvertHn($val['huxing_name']) ?></a>
  88. <?php } ?>
  89. </div>
  90. </div>
  91. <div class="y_searchb_mok c">
  92. <div class="y_searchb_l fl">
  93. <p><?= Opencc::ConvertHn('类型') ?></p>
  94. </div>
  95. <div class="y_searchb_r fl c">
  96. <a href="javascript:void(0)" name="city" value="0" class="on"><?= Opencc::ConvertHn('不限') ?></a>
  97. <?php foreach ($sub as $val) { ?>
  98. <a href="/house/search?zhuti=<?php echo $val['id'] ?>"> <?php echo Opencc::ConvertHn($val['name']) ?></a>
  99. <?php } ?>
  100. </div>
  101. </div>
  102. </div>
  103. </div>
  104. </div>
  105. </div>
  106. </body>
  107. </html>