1 Star 0 Fork 14

lbk168/LikeGirl v5.2.0

forked from Ki/LikeGirl v5.2.0 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
list.php 3.25 KB
一键复制 编辑 原始数据 按行查看 历史
Ki. 提交于 2024-11-07 22:12 . LikeGirl v5.2.0
<?php
include_once 'head.php';
$time = gmdate("Y-m-d", time() + 8 * 3600);
$lovelist = "select * from lovelist order by id desc";
$reslist = mysqli_query($connect, $lovelist);
$row_count = mysqli_num_rows($reslist);
$hideElement = ($row_count < 1);
?>
<head>
<meta charset="utf-8" />
<title><?php echo $text['title'] ?> — 恋爱事件</title>
</head>
<body>
<div id="pjax-container">
<div class="central">
<div class="title">
<h1>总有些惊奇的际遇 比方说当我遇见你</h1>
</div>
<div class="row central central-800">
<?php if (!$hideElement): ?>
<div class="card col-lg-12 col-md-12 col-sm-12 col-sm-x-12">
<div
class="list_texts <?php if ($text['Animation'] == "1") { ?>animated fadeInUp delay-03s<?php } ?>">
<div class="lovelist ">
<?php
while ($list = mysqli_fetch_array($reslist)) {
?>
<li class="cike">
<?php if ($list['icon']) { ?><i class="iconfont icon-chenggong2 com"></i> <?php } ?>
<?php if (!$list['icon']) { ?><i class="iconfont icon-chenggong2 air"></i> <?php } ?>
<span><?php echo $list['eventname']; ?></span>
<?php if ($list['imgurl']) { ?>
<svg class="icon" aria-hidden="true">
<use xlink:href="#icon-tupian"></use>
</svg><?php } ?>
</li>
<ul>
<li>
<?php if ($list['imgurl']) { ?>
<img data-funlazy="<?php echo $list['imgurl']; ?>" alt="<?php echo $list['eventname']; ?>">
<?php } ?>
</li>
</ul>
<?php
}
?>
</div>
</div>
</div>
<?php endif; ?>
</div>
</div>
<style>
.icon {
width: 1.5em;
height: 1.5em;
vertical-align: -0.3em;
fill: currentColor;
overflow: hidden;
}
li.cike {
border-bottom: 1px solid #ddd;
}
li {
list-style-type: none;
}
.cike:hover {
cursor: pointer;
cursor: url(../Style/cur/hover.cur), pointer;
}
</style>
<script>
$(function () {
$(".lovelist ul").hide();
$(".lovelist li").bind("click", function () {
$(this).next("ul").slideToggle(500).siblings("ul").slideUp(500);
})
})
</script>
</div>
<?php
include_once 'footer.php';
?>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/lbk168/like-girl-v5.2.0.git
git@gitee.com:lbk168/like-girl-v5.2.0.git
lbk168
like-girl-v5.2.0
LikeGirl v5.2.0
master

搜索帮助