navsidebar.php 1.3 KB

12345678910111213141516171819202122232425262728
  1. <!-- 侧边栏 -->
  2. <div class="y_sidebar">
  3. <div class="y_sidebarcent">
  4. <div class="y_sidebarcent_ul">
  5. <ul>
  6. <?php
  7. $sysmenu = new \common\models\Frontend();
  8. $sysmenu->pid = 31;
  9. $SysRows = $sysmenu->SonList(10, ['name', 'url', 'icon', 'function']);
  10. ?>
  11. <?php if (!empty($SysRows)) {
  12. foreach ($SysRows as $val) { ?>
  13. <li><a href="<?= $val['url'] ?>" <?php if (!empty($val['function'])) {
  14. echo $val['function'];
  15. } ?>><i><img src="<?= Yii::$app->params['httpImg']['host'], Yii::$app->params['httpImg']['city'], $val['icon'] ?>"
  16. alt=""></i><span><?= \common\fm\Opencc::ConvertHn($val['name']) ?></span></a>
  17. </li>
  18. <?php }
  19. } ?>
  20. </ul>
  21. </div>
  22. <div class="y_sidscend y_input">
  23. <!-- <a class="y_lplist_inp" href="javascript:;">--><?//= \common\fm\Opencc::ConvertHn('输入楼盘名称') ?><!--...</a>-->
  24. <a class="y_lplist_inp js_y_lplist_inp" href="javascript:;"><?= \common\fm\Opencc::ConvertHn('输入楼盘名称') ?>...</a>
  25. </div>
  26. </div>
  27. <div class="y_sidebar_bg"></div>
  28. </div>