<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>恒伟阁  <?php echo e($data['title']); ?></title>
    <meta name="Keywords"
          content="恒伟阁，红木家具 <?php echo e($data['keywords']); ?>"/>
    <meta name="Description"
          content="福建省恒伟阁红木文化发展有限公司其前身为始创于1998年的仙游醉仙堂红木古典家具有限公司 <?php echo e($data['description']); ?>"/>

    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/>
    <link href="JsCss/load.css" rel="stylesheet" media="screen" type="text/css"/>
    <!--[if IE 6]>
    <script type="text/javascript" src="JsCss/DD_belatedPNG.js"></script>
    <script>
        DD_belatedPNG.fix('*');
    </script>
    <![endif]-->
    <!--/*技术支持，小庄602842076     验证：建站技术支持*/
    /*技术支持，小庄602842076    验证：建站技术支持*/
    /*技术支持，小庄602842076    验证：建站技术支持*/
    /*技术支持，小庄602842076    验证：建站技术支持*/
    /*技术支持，小庄602842076    验证：建站技术支持*/
    /*https://shop116998991.taobao.com/*/
    /*https://shop116998991.taobao.com/*/
    /*https://shop116998991.taobao.com/*/-->
</head>
<body>
<div id="cz-center">
    <ul class="top-link">
        <li class="title"><a href="#"
                             onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.mycodes.net/');"
                             title='设置本站为浏览器首页(启始页)'>设为首页</a></li>
        <li class="pi"></li>
        <li class="title"><a target=_top href="http://www.mycodes.net/">加入收藏</a></li>
        <li class="pi"></li>
        <li class="title"><a href="contact_us.html">联系我们</a></li>
    </ul>
    <div class="cz-top-right"></div>
    <div id="cz-load-logo">
        <p><img src="images/load-logo.png"/></p>
        <div class="cz-logo-text">
            恒玮品质&nbsp; &nbsp;彰显尊贵&nbsp; &nbsp;<span>Constant junwei reveals noble quality</span>
        </div>
        <div class="cz-logo-botton">
            <a href="index.html"><img src="images/load-button.png"/></a>
        </div>
    </div>
    <?php if($data['open_foot'] == 1): ?>
        <div id="footer-top">
            <div class="footer-text">
                <span style="display: inline !important;">Copyright ©<?php echo e($data['banquan']); ?></span> |
                <span style="display: inline !important;">备案号:<?php echo e($data['beian']); ?></span> |
                <span style="display: inline !important">友情链接:
                    <?php foreach($data['lianjie_name'] as $key => $vo): ?>
                        <a style="display: inline !important;marhin-rignt:10px;"
                           href="<?php echo e(is_or($data['lianjie'],$key)); ?>"><?php echo e($vo); ?></a>
                    <?php endforeach; ?>
                </span>
            </div>
        </div>
    <?php endif; ?>
    <script src="/static/plugins/jquery/jquery.js"></script>
    <?php if($data['open_bd'] == 1): ?>
        <script>
            let bd_image = "<?php echo e($data['bd_image']); ?>",
                bd_link = "<?php echo e($data['bd_link']); ?>";
        </script>
        <script src="/static/js/bd.js"></script>
    <?php endif; ?>
    <style>
        .nico {
            position: fixed;
            top: 10px;
            right: 0;
            bottom: 0;
            z-index: 10000;
            width: 400px;
            height: 500px;
            border: 0;
            background-color: #fff;
            box-shadow: 0 0 0 4px lightseagreen
        }

        .nico * {
            padding: 0;
            margin: 0;
        }

        .news_wrap {
            position: relative;
            height: 500px;
        }

        .news_wrap li {
            position: relative;
            padding-left: 10px;
            list-style-type: none;
            display: block;
            width: 380px;
            height: 40px;
            line-height: 40px;
            border-bottom: 1px solid grey
        }

        .news_wrap li > span {
            display: block;
            width: 300px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            height: 100%;
            line-height: 40px;
        }

        .news_wrap li > i {
            position: absolute;
            width: 80px;
            font-size: .5rem;
            top: 0;
            right: 0;
        }

        .page-btn {
            position: absolute;
            width: 100%;
            height: 70px;
            bottom: 0;
        }

        .page-btn li {
            font-size: .8rem;
            padding: 0 !important;
            margin-left: 2px;
            list-style-type: none;
            display: inline-block;
            width: 15px;
            height: 15px;
            line-height: 15px;
            text-align: center;
            border: 1px solid grey;
            cursor: pointer;
        }

        .clicked {
            background-color: #0c5460;
            color: #fff;
        }
    </style>
    <div class="nico">
        <div class="news_wrap">
            <ul>
                <?php foreach($data['list'][0] as $vo): ?>
                    <li style="border-bottom: 1px solid #ccc;">
                <span><a style="text-decoration: none;color:#000" href="detail/<?php echo e(pathinfo($vo,PATHINFO_BASENAME)); ?>"
                         target="_blank"><?php echo e($data['titles'][rtrim(pathinfo($vo,PATHINFO_BASENAME),'.html')]); ?></a></span>
                        <i><?php echo e(Date('Y/m/d',strtotime($data['times'][rtrim(pathinfo($vo,PATHINFO_BASENAME),'.html')]))); ?></i>
                    </li>
                <?php endforeach; ?>
            </ul>
            <div class="page-btn">
                <ul>
                    <?php foreach($data['list'] as $key => $vo): ?>
                        <li class="pg-li <?php echo e($key ?'':'clicked'); ?>"><?php echo e($key + 1); ?></li>
                    <?php endforeach; ?>
                </ul>
            </div>
        </div>
    </div>
    <script>
        let list = JSON.parse("<?php echo e(json_encode($data['list'])); ?>".replace(/&quot;/g, '"')),
            titles = JSON.parse("<?php echo e(json_encode($data['titles'])); ?>".replace(/&quot;/g, '"')),
            times = JSON.parse("<?php echo e(json_encode($data['times'])); ?>".replace(/&quot;/g, '"'));
        $('.pg-li').click(function () {
            $(this).addClass('clicked').siblings().removeClass('clicked');
            let p = ($(this).text() - 1) | 0,
                data = list[p];
            $('.news_wrap > ul').html(function () {
                let html = '';
                $(data).each(function (x, y) {
                    let id = y.match(/(\d+)\.html/)[1],
                        time = times[id].split(' ')[0].replace('-', '/');
                    html += '<li style="border-bottom: 1px solid #ccc;"><span><a style="text-decoration: none;color:#000" href="detail/' + id + '.html" target="_blank">' + titles[id] + '</a></span> <i>' + time + '</i></li>';
                });
                return html;
            });
        });
    </script>
</div>
<script type="text/javascript">
    function b() {
        //自动获取整体宽度
        var H = document.documentElement.clientHeight;
        var CH = document.getElementById("cz-load-logo").offsetHeight;
        var FH = document.getElementById("footer-top").offsetHeight;
        var MH = H - CH - FH - H * 0.33;
        if (H >= 560) {
            document.getElementById('cz-load-logo').style.paddingTop = H * 0.33 + 'px';
        } else {
            document.getElementById('cz-load-logo').style.paddingTop = 144 + 'px';
        }
        if (H >= 560) {
            document.getElementById('cz-center').style.height = H + 'px';
        } else {
            document.getElementById('cz-center').style.height = 560 + 'px';
        }
        if (MH >= 50) {
            document.getElementById('footer-top').style.marginTop = MH + 'px';
        } else {
            document.getElementById('footer-top').style.marginTop = 50 + 'px';
        }
    }

    window.onload = window.onscroll = window.onresize = function () {
        b();
    }
</script>
</body>
</html>
