-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathremove.php
103 lines (92 loc) · 2.61 KB
/
remove.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
<?php
/*
File: remove.php
Author: Jaspers
Created by 2018-07-08
Goal:
Description:
*/
require('jasper.php');
?>
<!DOCTYPE html>
<html lang="ko">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
<title>삭제할 게시물(Posts to delete) - Board/Jaspers</title>
<link rel="stylesheet" type="text/css" href="./css/mystyle.css">
<script src="./script/myscripts.js"></script>
</head>
<body>
<?php
$board = new JasperBoard();
$boardFn = new BoardFn();
$start = $boardFn->getExecutionTime(); // 수행시간 측정(시작)
$boardName = $_GET['name'];
$article_id = $_GET['id'];
?>
<?php
require('remove_ok.php');
?>
<h3>삭제할 게시물(Posts to delete)</h3>
<form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]). "?name=" . $boardName . "&id=" . $article_id; ?>">
<table class="tg_general" style="width:100%;">
<tr>
<td class="tg-nknw" style="background-color:#E2E2E2; width:10%;">
<span style="font-weight:bold;">비밀번호 입력해주세요.(Input the Password)</span>
</td>
</tr>
<tr>
<td style="text-align:left;">
<input type="password" name="passwd" class="input_box" value="<?php echo $passwd;?>">
<span class="error">* <?php echo $passwdErr;?></span>
</td>
</tr>
</table>
<!-- 하단 -->
<table style="width:100%">
<tr>
<td>
<input type="submit" name="submit" value="삭제(Delete)" class="button" style="color:#000;">
<?php
echo "<a href=\"list.php?name=$boardName\" class=\"button\">목록(List)</a>";
?>
</td>
</tr>
</table>
</form>
<!-- W3C -->
<table style="width:100%">
<tr>
<td>
<a href="http://jigsaw.w3.org/css-validator/check/referer">
<img style="border:0;width:88px;height:31px"
src="//jigsaw.w3.org/css-validator/images/vcss"
alt="올바른 CSS입니다!" />
</a>
<a href="http://jigsaw.w3.org/css-validator/check/referer">
<img style="border:0;width:88px;height:31px"
src="//jigsaw.w3.org/css-validator/images/vcss-blue"
alt="올바른 CSS입니다!" />
</a>
</td>
</tr>
</table>
<!-- 수행시간(Execution time) -->
<?php
$end = $boardFn->getExecutionTime();
$time = $end - $start;
echo "\t\t\t<br>";
echo "\t\t\t<span class=\"time_font\">";
echo "수행시간(Execution Time):";
echo $time . "초(Sec)</span>";
echo "\t\t\t<br>";
echo "\t\t\t<span class=\"time_font\">";
echo "시작시간(Start Time):";
echo $start . "초(Sec)</span>";
echo "\t\t\t<br>";
echo "\t\t\t<span class=\"time_font\">";
echo "종료시간(End Time):";
echo $end . "초(Sec)</span>";
?>
</body>
</html>