mirror of
https://github.com/itflow-org/itflow
synced 2026-03-11 00:04:50 +00:00
Initial work on detion confirmation
This commit is contained in:
@@ -222,7 +222,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
<div class="dropdown-menu">
|
<div class="dropdown-menu">
|
||||||
<a class="dropdown-item" href="#" data-toggle="modal" data-target="#editClientModal<?php echo $client_id; ?>">Edit</a>
|
<a class="dropdown-item" href="#" data-toggle="modal" data-target="#editClientModal<?php echo $client_id; ?>">Edit</a>
|
||||||
<div class="dropdown-divider"></div>
|
<div class="dropdown-divider"></div>
|
||||||
<a class="dropdown-item" href="post.php?delete_client=<?php echo $client_id; ?>">Delete</a>
|
<a class="dropdown-item" href="#" data-toggle="modal" data-target="#deleteClientModal<?php echo $client_id; ?>">Delete</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
@@ -231,6 +231,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("edit_client_modal.php");
|
include("edit_client_modal.php");
|
||||||
|
include("delete_client_modal.php");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
20
delete_client_modal.php
Normal file
20
delete_client_modal.php
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
<div class="modal" id="deleteClientModal<?php echo $client_id; ?>" tabindex="-1">
|
||||||
|
<div class="modal-dialog">
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header bg-danger">
|
||||||
|
<button type="button" class="close text-white" data-dismiss="modal">
|
||||||
|
<span>×</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<center class="mb-4">
|
||||||
|
<i class="far fa-8x fa-times-circle text-danger mb-3 mt-3"></i>
|
||||||
|
<h2>Are you sure?</h2>
|
||||||
|
<h6 class="mb-4 text-secondary">Do you really want to delete <?php echo $client_name; ?>? This process cannot be undone.</h6>
|
||||||
|
<button type="button" class="btn btn-outline-secondary btn-lg px-5 mr-4" data-dismiss="modal">Cancel</button>
|
||||||
|
<a class="btn btn-danger btn-lg px-5" href="post.php?delete_client=<?php echo $client_id; ?>">Yes, Delete!</a>
|
||||||
|
</center>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
Reference in New Issue
Block a user