-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtop_menu.php
More file actions
51 lines (51 loc) · 1.65 KB
/
Copy pathtop_menu.php
File metadata and controls
51 lines (51 loc) · 1.65 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
<?php
if(!isset($_SESSION)){session_start();}
?>
<style>
@import url(http://fonts.googleapis.com/earlyaccess/jejugothic.css);
a {
text-decoration: none;
color: #333;
}
body {
margin: 0px;
padding: 0px;
}
#top_menu {
height:80px;
background: #000000;
}
.top_sub {
float:left;
height:80px;
line-height:80px;
text-align: center;
font-size:20px;
margin-right: 30px;
color: white;
}
#top_space {
display: inline;
width: 1235px;
height: 80px;
}
</style>
<div id=top_menu>
<?php if($_SESSION['count']==0){?>
<a href=main_not_joined.php id="logo_img" class=top_sub style="margin-left: 30px; margin-right: 10px"><img src=logo.png style="width: 80px; height: 80px;"></a>
<?php }elseif($_SESSION['count']==1){
$up_path = "/user/".$_SESSION['id']."/project";
$up = explode("\"", $firebase->get($up_path))[1];
$upi_path = "/user/".$_SESSION['id']."/project/".$up."/index";
$upi = $firebase->get($upi_path);
?>
<a href="main_joined.php?index=<?php echo $upi;?>" id="logo_img" class=top_sub style="margin-left: 30px; margin-right: 10px"><img src=logo.png style="width: 80px; height: 80px;"></a>
<?php }else{?>
<a href=project_list.php id="logo_img" class=top_sub style="margin-left: 30px; margin-right: 10px"><img src=logo.png style="width: 80px; height: 80px;"></a>
<?php }?>
<div id=top_space class=top_sub></div>
<a href=project_list.php id=top_project_list class=top_sub>내 프로젝트</a>
<a href=project_board.php id=top_project_board class=top_sub>프로젝트 게시판</a>
<a href=logout.php id=top_logout class=top_sub>로그아웃</a>
<img src=user.png class=top_sub style="margin-top:10px; width: 60px; height: 60px;">
</div>