123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- <style>
- .sidebar_box {position:fixed;top:0;right:-100%;width:100%;z-index:10002;padding-bottom:20px; background:#fff;/*box-shadow:1px 4px 15px 1px #efefef;*/}
- .sidebar_img {width:18px;height:15px;margin-right:17px;margin-top:20px;float:right;}
- .sidebar_img img {display:block;width:100%;height:100%;}
- .sidebar_list_box{ height: 320px;overflow-y: auto; width: 100%;}
- .sidebar_list {margin-top:20px;padding:0 25px 20px;}
- .sidebar_list ul li {display:inline-block;text-align:center;width:23.5%;}
- .sidebar_list ul li a div {display:inline-block;width:45px;height:45px;}
- .sidebar_list ul li a div img {display:inline-block;width:100%;height:100%;}
- .sidebar_list ul li a p {font-size:0.8125rem;text-align:center;color:#444;margin-top:10px;width:100%;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;}
- .sidebar_list ul li.on a{color:#F3983D;}
- .sidebar_list ul li a {display:block;padding:10px 0;}
-
- .sidebar_list p.title_m img{ width: 26%; height: auto;}
- .ground {width:100%;background:rgba(0,0,0,0.2);position:fixed;left:0;top:0;z-index:10000;}
- .m_language{position:absolute;top:16px;left:15px;}
- .m_language em{font-size:0.8rem;color:#333;}
- .m_language img{width:6px;height:6px;position:relative;top:2px;left:2px;}
- .m_language_text{display:none;padding:0 10px;position:absolute;top:30px;background:#FFF;border-radius: 5px;box-shadow:0px 0px 11px 0px rgba(198, 198, 198, 0.75);}
- .m_language_text span{border-bottom:1px solid #EEE;font-size:0.8rem;color:#333;padding:10px 0;display:block;width:65px;text-align:center;}
- .m_language_text span:last-child{border-bottom:0;}
- .m_language_text#none{display:none;}
- @media screen and (min-width: 300px) and (max-width: 374px) {
- .sidebar_list {padding:0 15px 15px;}
- /*.sidebar_list ul li {width:68px;}*/
- }
- </style>
- <!--侧边栏-->
- <div class="sidebar_box">
- <div class="sidebar_img"><img src="/image/index/menu_1.png" alt=""></div>
- <div class="m_language">
- <em>
- <?php
- switch (Yii::$app->language)
- {
- case 'ft':
- echo '繁体中文';
- break;
- case 'cn':
- echo '简体中文';
- break;
- }
- ?>
- </em>
- <img src="/image/menu_001.png" alt="">
- <div class="m_language_text">
- <a href="/index/language?language=cn"><span>简体中文</span><a>
- <a href="/index/language?language=ft"><span>繁体中文</span><a>
- </div>
- </div>
- <div class="sidebar_list_box">
- <div class="sidebar_list">
- <ul class="c">
- <?php
- $sysmenu = new \common\models\Frontend();
- $sysmenu->pid = 44;
- $sysmenu = $sysmenu->SonList(15,['name','url','icon','function']);
- ?>
- <?php if(!empty($sysmenu)){ \common\fm\Opencc::ArrayConvert($sysmenu,'name'); foreach ($sysmenu as $val){ ?>
- <li <?php if($_SERVER['REQUEST_URI'] == $val['url']) echo 'class="on"' ?>>
- <a href="<?= $val['url'] ?>">
- <div class=""><img src="<?= Yii::$app->params['httpImg']['host'],Yii::$app->params['httpImg']['city'],$val['icon'] ?>" alt=""></div>
- <p><?= $val['name'] ?></p>
- </a>
- </li>
- <?php } } ?>
- </ul>
- </div>
- <div class="sidebar_list" >
- <p class="title_m"><img src="/image/xqdz3.png" alt=""></p>
- <ul class="c" style="margin-top:20px;">
- <?php
- $sysmenu = new \common\models\Frontend();
- $sysmenu->pid = 82;
- $sysmenu = $sysmenu->SonList(15,['name','url','icon','function']);
- ?>
- <?php if(!empty($sysmenu)){ \common\fm\Opencc::ArrayConvert($sysmenu,'name'); foreach ($sysmenu as $val){ ?>
- <li <?php if($_SERVER['REQUEST_URI'] == $val['url']) echo 'class="on"' ?>>
- <a href="<?= $val['url'] ?>">
- <div class=""><img src="<?= Yii::$app->params['httpImg']['host'],Yii::$app->params['httpImg']['city'],$val['icon'] ?>" alt=""></div>
- <p><?= $val['name'] ?></p>
- </a>
- </li>
- <?php } } ?>
- </ul>
- </div>
- </div>
- </div>
- <div class="ground"></div>
- <input type="hidden" value="<?php echo $_SERVER['SERVER_NAME'];?>">
|