-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin_frontNotice.php
More file actions
148 lines (102 loc) · 4.18 KB
/
admin_frontNotice.php
File metadata and controls
148 lines (102 loc) · 4.18 KB
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<!DOCTYPE html>
<html lang="ko">
<head>
<?php include "admin_head.php"; ?>
</head>
<body>
<div id="bbdd_body">
<header id="bbdd_hd">
<?php include "admin_header.php"; ?>
</header>
<section id="bbdd_sc">
<div id="bbdd_sc_wrap">
<div id="bbdd_sc_area">
<?php
include 'bbdd_db_conn.php';
$sqlStandingZin = "SELECT * FROM zin WHERE publish = 'standing'";
$resultStandingZin = $conn->query($sqlStandingZin) or die($conn->error);
$rowStandingZin = $resultStandingZin->fetch_assoc();
// $zin_column = $rowStandingZin['zin_column'];
// $zin_color = $rowStandingZin['zin_color'];
// $title_color = $rowStandingZin['title_color'];
// $point_color = $rowStandingZin['point_color'];
// $nav_color = $rowStandingZin['nav_color'];
$sqlZinNow = "SELECT * FROM zin WHERE publish='now' AND display = 'on' ORDER BY id DESC LIMIT 1";
$resultZinNow = $conn->query($sqlZinNow) or die($conn->error);
$rowZinNow = $resultZinNow->fetch_assoc();
$zin_column = $rowZinNow['zin_column'];
$zin_color = $rowZinNow['zin_color'];
$title_color = $rowZinNow['title_color'];
$point_color = $rowZinNow['point_color'];
$nav_color = $rowZinNow['nav_color'];
?>
<div class="view_wrap">
<div class="view_wrap_line">
<div class = 'view_category front_point_color'>'둥둥' 지난호</div>
<div class = 'view_author'>
</div>
<ul class = 'view_contList'>
<?php
// $sql = "SELECT * FROM notice WHERE category = 'notice' AND display='on' ORDER BY id DESC";
$sql = "SELECT * FROM zin WHERE publish = 'ready' AND display='on' ORDER BY id DESC";
$result = $conn->query($sql) or die($conn->error);
if($result->num_rows >0){
while($rows = $result->fetch_assoc()) {
$published_date = $rows['date'];
echo "
<li class='cont_li'>
<a class = 'frontCont' id = '";
echo $rows['id'];
echo "'";
echo " onclick = 'adminNoticeSlctShow(this.id)'>
<div class='cont_li_title'>
<p>";
echo $rows['title'];
echo ' </p>
</div>
<div class="li_created">
<span>';
// echo $rows['created'];
echo $published_date;
echo ' </span>
</div>
<div class="zin_cover">';
// echo " <div class='zin_cover' style='background-image:url(";
// echo '"';
// echo $rows['img_dir'];
// echo '");';
// echo "'>";
echo " <img src=";
echo '"';
echo $rows['img_dir'];
echo '" alt="';
echo $rows['title'];
echo '"> ';
echo ' </div>
</a>
</li>';
}
}
?>
</ul>
</div>
</div>
</div>
</div>
</section>
<footer id="bbdd_ft">
<?php include "footer.php";?>
</footer>
</div>
<nav id="bbdd_nav">
<?php include "admin_nav.php"; ?>
</nav>
<div id="body_bg"></div>
<?php include "jsGroup.php"; ?>
<?php include "admin_jsGroup.php"; ?>
<script>
document.querySelector(".view_wrap").style.boxShadow = "0 4px 8px 0 rgba(0, 0, 0, 0.2)";
frontListColor("<?php echo $zin_color; ?>", "<?php echo $title_color; ?>", "<?php echo $point_color; ?>", "<?php echo $nav_color; ?>");
</script>
</body>
</html>