make 'other' field optional and add inactivate/activate button
This commit is contained in:
17
_include/include_set_active_status.php
Normal file
17
_include/include_set_active_status.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
|
||||
if ($this->is_id()) {
|
||||
$user_kid = new user_kid();
|
||||
$user_kid->set_user_data_by_id($this->get_id());
|
||||
|
||||
$activityToSet = $user_kid->get_uk_is_active() == 1 ? 0 : 1;
|
||||
|
||||
$sql->update_table('user_kid', [
|
||||
'uk_is_active' => $activityToSet
|
||||
], [
|
||||
'uk_id' => $this->get_id()
|
||||
]);
|
||||
|
||||
header("Location: /admin/members/" . $this->get_id());
|
||||
}
|
||||
Reference in New Issue
Block a user