-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwork_add.php
More file actions
113 lines (102 loc) · 2.66 KB
/
Copy pathwork_add.php
File metadata and controls
113 lines (102 loc) · 2.66 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
<?php
if(!isset($_SESSION)) {session_start();}
?>
<!DOCTYPE html>
<html>
<meta charset="UTF-8" \>
<style>
h1 {
text-align: center;
}
@import url(http://fonts.googleapis.com/earlyaccess/jejugothic.css);
a {
text-decoration: none;
color: black;
}
#sendBtn {
margin: 20px 20px 20px 220px;
width: 100px;
height: 50px;
border: 0;
border-style: none;
background-image: url('add_work_small.png');
background-size: cover;
float: left;
}
#sendBtn:hover {
background-image: url('add_work_small_hover.png');
cursor: pointer;
}
#backBtn {
margin: 20px 20px;
width: 100px;
border: 0;
border-style: none;
height: 50px;
float: left;
background-image: url('back.png');
background-size: cover;
}
#backBtn:hover {
background-image: url('back_hover.png');
cursor: pointer;
}
</style>
</head>
<body>
<h1>일감 추가</h1>
<?php
include "db.php";
$pindex=$_REQUEST['pindex'];
?>
<form id=message_form action="work_add_end.php" method="post">
<table boder="0" style="margin: 0 auto; width: 350px; border-collapse: collapse;">
<tr style="height: 80px; border-bottom: 2px dotted #BDBDBD;">
<th><h3>담당자</h3></th>
<th>
<select id=mid name=mid>
<?php
$i=1;
?>
<option value=0>지정안함</option>
<?php
do{
$rid_path="/project/".$pindex."/member/".$i."/id";
$r_id=$firebase->get($rid_path);
$r = explode("\"",$r_id)[1];
?><option value=<?php echo $r_id;?>><?php echo $r;?></option><?php
$i++;
$m_path="/project/".$pindex."/member/".$i;
$m=$firebase->get($m_path);
}while($m!="null");
?>
</select>
</th>
</tr>
<tr style="height: 80px; border-bottom: 2px dotted #BDBDBD;">
<th><h3>마감날짜</h3></th>
<th>
<input id=deadline type=date name=deadline style="width: 200px; text-align:center; margin-left: 10px">
</th>
</tr>
<tr style="height: 80px; border-bottom: 2px dotted #BDBDBD;">
<th><h3>제목</h3></th>
<th>
<input id=wtitle name=wtitle type=text>
</th>
</tr>
<tr style="height: 200px; border-bottom: 2px dotted #BDBDBD;">
<th height="100"><h3>내용</h3></th>
<th height="100">
<textarea id=wcontent name=wcontent type=textarea rows=9 cols=20></textarea>
</th>
</tr>
</table>
<input type="hidden" name="m_index" value="<?php echo $m_index?>">
<input type="hidden" name="pindex" value="<?php echo $pindex?>">
<input id=sendBtn type=submit value="">
<input id=backBtn type=button Onclick="history.back();">
</form>
<body>
</body>
</html>