-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadmin_zinList.php
161 lines (133 loc) · 5.12 KB
/
admin_zinList.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
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<!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> -->
<!-- <article class="adArticle adminMenu"> -->
<?php
// include 'admin_article.php';
?>
<!-- </article> -->
<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">
<!-- <div class="sc_contain">
<div class="sc_list_area"> -->
<!-- <ul class="sc_list_contain"> -->
<!-- <ul class="sc_list_con"> -->
<div class="view_wrap">
<div class="view_wrap_line">
<div class="admin_table">
<?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'];
session_start();
$URL = "./admin_index.php";
if(!isset($_SESSION['username'])) {
// if($_SESSION['cast']=="normal" || $_SESSION['cast']=="author") {
?> <script>
alert("권한이 없습니다.");
location.replace("<?php echo $URL?>");
</script>
<?php
}
else {
?>
<div>
<center>
<h2>매거진 목록</h2>
</center>
</div>
<div id="adCsList">
<div class="cs_box">
<button class="view_btn1" onclick="location.href='./admin_create_zin.php'">매거진 만들기</button>
<select name="searchSlct" id="searchSlct">
<option value="0">번호</option>
<!-- <option value="1">에디터</option> -->
<option value="1">표지</option>
<option value="2">매거진 제목</option>
<option value="3">설명</option>
<option value="4">공개상태</option>
<option value="5">발행상태</option>
</select>
<input type="text" class="searchInput" id="searchInput" onkeyup="searchInput(this.name)" placeholder="검색">
<script>
function searchSet() {
let searchSlct = document.getElementById("searchSlct").value;
let searchInpt = document.getElementById("searchInput");
searchInpt.setAttribute("name", searchSlct);
}
document.getElementById("searchSlct").addEventListener("change", searchSet);
// searchSet();
</script>
</div>
<div id="includeTable">
<table class="cs_table sortTable zin_table">
<?php include 'admin_zinSelect.php'; ?>
</table>
</div>
<div id="tableBox"></div>
<?php
}
?>
<br>
<br>
</div>
</div>
<!-- </ul>
</div> -->
</div>
</div>
</div>
</section>
<footer id="bbdd_ft">
<!-- <div id="bbdd_ft_wrap">
<div id="bbdd_ft_area">
<div class="ft_contain">
<p class="gg-batang">
COPYRIGHT 2020 변방의북소리.
</p>
</div>
</div>
</div> -->
<?php include "admin_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>
admin_frontListColor("<?php echo $zin_color; ?>", "<?php echo $title_color; ?>", "<?php echo $point_color; ?>", "<?php echo $nav_color; ?>");
</script>
</div>
</body>
</html>