Skip to content

Commit

Permalink
Update member.php and members.php
Browse files Browse the repository at this point in the history
  • Loading branch information
HashJProgramming committed Feb 9, 2024
1 parent 2fdd53d commit 1927895
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion functions/views/members.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<td><?=$row['start_date']?></td>
<td class="text-center">
<button class="btn btn-warning btn-sm d-none d-sm-inline-block mx-1 my-1" type="button" data-bs-target="#update" data-bs-toggle="modal" data-id="<?=$row['id']?>" data-fullname="<?=$row['fullname']?>" data-address="<?=$row['address']?>" data-phone="<?=$row['phone']?>" data-sex="<?=$row['sex']?>" data-type="<?=$row['type']?>" data-birthdate="<?=$row['birthdate']?>" data-start_date="<?=$row['start_date']?>"><i class="fas fa-check-circle fa-sm text-white-50"></i>&nbsp;Update</button>
<button class="btn btn-danger btn-sm d-none d-sm-inline-block mx-1 my-1" type="button" data-bs-target="#remove" data-bs-toggle="modal" data-id="<?=$row['id']?>"><i class="fas fa-trash-alt fa-sm text-white-50"></i>&nbsp;Remove</button></td>
<button class="btn btn-danger btn-sm d-none d-sm-inline-block mx-1 my-1 <?php echo ($_SESSION['level'] == 1) ? 'd-none' : ''; ?>" type="button" data-bs-target="#remove" data-bs-toggle="modal" data-id="<?=$row['id']?>"><i class="fas fa-trash-alt fa-sm text-white-50"></i>&nbsp;Remove</button></td>
</tr>
<?php
}
2 changes: 1 addition & 1 deletion members.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
<h4 class="modal-title">Remove Member</h4><button class="btn-close" type="button" aria-label="Close" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body">
<form action="functions/r" method="post">
<form action="functions/remove-member.php" method="post">
<input type="hidden" name="id">
<p>Are you sure you want to remove this member?</p>
</div>
Expand Down

0 comments on commit 1927895

Please sign in to comment.