-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwork_detail.php
More file actions
95 lines (84 loc) · 2.69 KB
/
Copy pathwork_detail.php
File metadata and controls
95 lines (84 loc) · 2.69 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
<?php
if(!isset($_SESSION)) {session_start();}
?>
<!DOCTYPE html>
<html>
<head>
<style>
#message_logo {
width: 80px;
height: 80px;
background-size: cover;
margin: 5px auto;
}
#backBtn {
margin: 20px 0 0 210px;
width: 100px;
height: 50px;
border: 0;
border-style: none;
background-image: url('back.png');
background-size: cover;
}
#backBtn:hover {
background-image: url('back_hover.png');
cursor: pointer;
}
</style>
</head>
<body>
<?php
include "db.php";
$pindex=$_REQUEST['pindex'];
$windex=$_REQUEST['windex'];
$id=$_SESSION['id'];
$wname_path="/project/".$pindex."/things/".$windex."/wname";
$begin_path="/project/".$pindex."/things/".$windex."/beginline";
$dead_path="/project/".$pindex."/things/".$windex."/deadline";
$content_path="/project/".$pindex."/things/".$windex."/content";
$state_path="/project/".$pindex."/things/".$windex."/state";
$wid_path="/project/".$pindex."/things/".$windex."/id";
$wname=$firebase->get($wname_path);
$content=$firebase->get($content_path);
$begin=$firebase->get($begin_path);
$dead=$firebase->get($dead_path);
$state=$firebase->get($state_path);
$wid=$firebase->get($wid_path);
$wname=explode("\"", $wname)[1];
$content=explode("\"", $content)[1];
$begin=explode("\"", $begin)[1];
$dead=explode("\"", $dead)[1];
$wid=explode("\"", $wid)[1];
?>
<?php if($state == 3){?>
<div id=message_logo style="background-image: url('done2.png');"></div>
<?php }elseif($state == 2){?>
<div id=message_logo style="background-image: url('issue2.png');"></div>
<?php }elseif($state == 1){?>
<div id=message_logo style="background-image: url('working3.png');"></div>
<?php }else{?>
<div id=message_logo style="background-image: url('finding.png');"></div>
<?php }?>
<table boder="0" style="margin: 0 auto; width: 350px; border-collapse: collapse;">
<tr style="height: 60px; border-bottom: 2px dotted #BDBDBD;">
<th><h3>담당자</h3></th>
<th><?php echo $id?></th>
</tr>
<tr style="height: 60px; border-bottom: 2px dotted #BDBDBD;">
<th><h3>기간</h3></th>
<th><?php echo $begin?> ~ <?php echo $dead?></th>
</tr>
<tr style="height: 60px; border-bottom: 2px dotted #BDBDBD;">
<th><h3>제목</h3></th>
<th><?php echo $wname?></th>
</tr>
<tr style="height: 200px; border-bottom: 2px dotted #BDBDBD;">
<th><h3>내용</h3></th>
<th><?php echo $content?></th>
</tr>
</table>
<?php if($id==$wid){?>
<input id=doneBtn type=button Onclick="location.replace('work_done.php?pindex=<?php echo $pindex?>&windex=<?php echo $windex?>');" value="완료">
<?php }?>
</body>
</html>