Skip to content

Commit b492ef5

Browse files
committed
refactor select delete action
1 parent bbb7c90 commit b492ef5

File tree

1 file changed

+1
-37
lines changed

1 file changed

+1
-37
lines changed

backend/delete.php

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -21,42 +21,6 @@
2121
}
2222

2323
$link->close();
24+
include "modalCard.php";
2425
?>
2526

26-
<!DOCTYPE html>
27-
<html lang="en">
28-
<head>
29-
<meta charset="UTF-8">
30-
<title>Result</title>
31-
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
32-
<link rel="stylesheet" href="../css/shadowStyle.css ?v=<?php echo time(); ?>">
33-
</head>
34-
<body>
35-
<!-- Modal -->
36-
<div class="modal fade" id="messageModal" tabindex="-1" aria-labelledby="messageModalLabel" aria-hidden="true">
37-
<div class="modal-dialog modal-dialog-centered">
38-
<div class="modal-content">
39-
<div class="modal-header">
40-
<h5 class="modal-title" id="messageModalLabel">Message</h5>
41-
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
42-
<span aria-hidden="true">&times;</span>
43-
</button>
44-
</div>
45-
<div class="modal-body" id="modalMessage" data-message="<?php echo $message; ?>" data-status="<?php echo $status; ?>">
46-
<!-- Message will be inserted here -->
47-
</div>
48-
<div class="modal-footer">
49-
<div class="modal-footer">
50-
<button type="button" class="btn btn-secondary" data-dismiss="modal" id="closeModalButton">Close</button>
51-
</div>
52-
</div>
53-
</div>
54-
</div>
55-
</div>
56-
57-
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
58-
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
59-
<script src="../js/modal.js "></script>
60-
</body>
61-
</html>
62-

0 commit comments

Comments
 (0)