--- config/select.php
+++ config/select.php
... | ... | @@ -52,3 +52,5 @@ |
52 | 52 |
} |
53 | 53 |
$total_block = ceil($total_page / $block_cnt); //총 블록 수 |
54 | 54 |
|
55 |
+//$querySelectID = "select " |
|
56 |
+ |
--- main.php
+++ main.php
... | ... | @@ -19,7 +19,7 @@ |
19 | 19 |
if (!isset($_SESSION['is_login'])){ |
20 | 20 |
echo "<script>alert('Need Login')</script>"; |
21 | 21 |
header('Location:index.php'); |
22 |
-} |
|
22 |
+}else{ |
|
23 | 23 |
?> |
24 | 24 |
<!doctype html> |
25 | 25 |
<html lang="ko"> |
... | ... | @@ -39,6 +39,7 @@ |
39 | 39 |
#title {text-align: center;} |
40 | 40 |
#refresh {text-decoration:none; color: black;} |
41 | 41 |
#logoutSector {text-align: right;} |
42 |
+ #welcome {color: green; float: left; font-weight: bolder;} |
|
42 | 43 |
#btnLogout {height: 30px; font-weight: bolder; background-color: darkslategrey; border-style: none; color: white;} |
43 | 44 |
#btnLogout:hover {background-color: black;} |
44 | 45 |
#hr {border-style: solid;} |
... | ... | @@ -66,6 +67,7 @@ |
66 | 67 |
<div id="page"> |
67 | 68 |
<div id="title" title="Refresh"><h1><a href="main.php" id="refresh">Notice Board</a></h1></div> |
68 | 69 |
<div id="logoutSector"> |
70 |
+ <span id="welcome"><?php echo "Welcome, " . "<em>" . $_SESSION['id'] . "</em>" . " !"; ?></span> |
|
69 | 71 |
<button id="btnLogout" onclick="location.href='config/logout.php'">Logout</button> |
70 | 72 |
</div> |
71 | 73 |
<hr id="hr"> |
... | ... | @@ -200,4 +202,6 @@ |
200 | 202 |
</div> |
201 | 203 |
</div> |
202 | 204 |
</body> |
203 |
-</html>(No newline at end of file) |
|
205 |
+</html> |
|
206 |
+<?php |
|
207 |
+}(No newline at end of file) |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?