navsidebar.php 1.2 KB

123456789101112131415161718192021222324252627
  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 = 210;
  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. </div>
  25. </div>
  26. <div class="y_sidebar_bg"></div>
  27. </div>