<?php
/**
 * Author：晴天 QQ：1186258278
 * Creation：2020/3/27 18:26
 * Filename：article.php
 */
if (!defined('IN_CRONLITE')) die();
$notice_user = notice::user_notice(); #取出通知列表
if ($_QET['act'] == 'notification') {
    notice::user_particulars($_QET['id'],$USERDATA);
}
?>
<head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"/>
    <title><?= $conf['sitename'] ?></title>
    <meta name="keywords" content="<?= $conf['keywords'] ?>">
    <meta name="description" content="<?= $conf['description'] ?>">
    <link rel="stylesheet" type="text/css" href="<?php echo $cdnserver; ?>assets/layui/css/layui.css"/>
    <link rel="stylesheet" type="text/css" href="<?php echo $cdnserver; ?>assets/AppStore/css/style.css"/>
    <link href="<?= $cdnpublic ?>Swiper/4.5.1/css/swiper.min.css" rel="stylesheet">
    <!--[if lt IE 9]>
    <script src="<?php echo $cdnpublic ?>html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="<?php echo $cdnpublic ?>respond.js/1.4.2/respond.min.js"></script>
  <![endif]-->
</head>
<body>
<section class="jq22-flexView">
    <header class="jq22-navBar jq22-navBar-fixed">
        <a href="user/" class="jq22-navBar-item" title="进入后台">
            <?= ($USERDATA == false ? '游客' : '<img src="' . $USERDATA['image'] . '" />'); ?>
        </a>
        <div class="jq22-center">
            <div class="jq22-search-box">
                <input type="text" style="text-indent: 0em;padding-left:1em" id="query"
                       onkeydown="if(event.keyCode==13){location.href='./?name='+$('#query').val()}"
                       placeholder="搜索商品内容">
            </div>
        </div>
        <a href="javascript:location.href='./?name='+$('#query').val()" class="jq22-navBar-item">
            <i class="layui-icon layui-icon-search" style="color: #ff5a7c;font-size: 2em"></i>
        </a>
    </header>
    <section class="jq22-scrollView">
        <div class="layui-card-body" style="padding: 0em">
            <div class="divHeight"></div>
            <div class="layui-row layui-col-space8" style="padding: 1em">
                <?php foreach ($notice_user['data'] as $v) { ?>
                    <div class="layui-col-xs12">
                        <a href="?mod=article&act=notification&id=<?= $v['id'] ?>">
                            <div class="layui-card" style="box-shadow: 3px 3px 16px #eee;border-radius: 0.5em">
                                <div class="layui-card-header">
                                    <?= $v['title'] ?>
                                </div>
                                <div class="layui-card-body">
                                    发表于：<?= $v['date'] ?>
                                </div>
                            </div>
                        </a>
                        <div class="divHeight"></div>
                    </div>
                <?php } ?>
            </div>
        </div>
        <div style="height:55px"></div>
    </section>
    <footer class="jq22-footer jq22-footer-fixed">
        <a href="/" class="jq22-tabBar-item">
                <span class="jq22-tabBar-item-icon">
                    <i class="icon icon-news"></i>
                </span>
            <span class="jq22-tabBar-item-text">首页</span>
        </a>
        <a href="/?mod=query" class="jq22-tabBar-item">
                <span class="jq22-tabBar-item-icon">
                    <i class="icon icon-pic"></i>
                </span>
            <span class="jq22-tabBar-item-text">查单</span>
        </a>
        <a href="?mod=article" class="jq22-tabBar-item ">
                <span class="jq22-tabBar-item-icon">
                    <i class="icon icon-home"></i>
                </span>
            <span class="jq22-tabBar-item-text">文章</span>
        </a>
        <a href="user" class="jq22-tabBar-item ">
                <span class="jq22-tabBar-item-icon">
                    <i class="icon icon-mine"></i>
                </span>
            <span class="jq22-tabBar-item-text">我的</span>
        </a>
    </footer>

</section>
<script src="<?php echo $cdnpublic ?>jquery/1.12.4/jquery.min.js"></script>
<script src="<?php echo $cdnserver; ?>assets/layui/layui.all.js"></script>
<script src="<?= $cdnpublic ?>Swiper/4.5.1/js/swiper.min.js"></script>