-
Notifications
You must be signed in to change notification settings - Fork 0
/
list.php
93 lines (88 loc) · 3.15 KB
/
list.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<?php
include_once 'admin/connect.php';
$time = gmdate("Y-m-d", time() + 8 * 3600);
$lovelist = "select * from lovelist order by id desc";
$reslist = mysqli_query($connect, $lovelist);
?>
<!DOCTYPE html>
<html>
<head>
<?php
include_once 'head.php';
?>
<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-6">
<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 bounceIn 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-original="<?php echo $list['imgurl']; ?>"
class="spotlight"
src="<?php echo $list['imgurl']; ?>"
alt=""> <?php } ?>
<?php if (!$list['imgurl']) { ?><?php } ?>
</li>
</ul>
<?php
}
?>
</div>
</div>
</div>
</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>
</div>
<?php
include_once 'footer.php';
?>
<script>
$(function() {
// $(".lovelist").height(document.body.scrollHeight);
$(".lovelist ul").hide();
$(".lovelist li").bind("click", function() {
$(this).next("ul").slideToggle(500).siblings("ul").slideUp(500);
})
})
</script>
</body>
</html>