Jelenlet alapfunkcio OK. Edzes torles OK.
This commit is contained in:
@@ -47,6 +47,28 @@ if (isset($_POST['action'])) {
|
||||
header("Location: /admin/edit_member/" . $new_user_id);
|
||||
break;
|
||||
|
||||
case 'parent_create':
|
||||
# parent létrehozása
|
||||
unset($_POST['action']);
|
||||
if (!isset($_POST['up_email'])) $_POST['up_email'] = null;
|
||||
if (!isset($_POST['up_phone'])) $_POST['up_phone'] = null;
|
||||
if (!isset($_POST['up_facebook'])) $_POST['up_facebook'] = null;
|
||||
user_parent::create_parent($_POST['up_name'], $_POST['up_email'], $_POST['up_facebook'], $_POST['up_phone']);
|
||||
header("Location: /admin/parents");
|
||||
break;
|
||||
|
||||
case 'parent_data_update':
|
||||
# parent updatelés
|
||||
unset($_POST['action']);
|
||||
$up_id = $_POST['up_id'];
|
||||
unset($_POST['up_id']);
|
||||
if (!isset($_POST['up_email'])) $_POST['up_email'] = null;
|
||||
if (!isset($_POST['up_phone'])) $_POST['up_phone'] = null;
|
||||
if (!isset($_POST['up_facebook'])) $_POST['up_facebook'] = null;
|
||||
user_parent::update_parent($_POST, $up_id);
|
||||
header("Location: /admin/parents/" . $up_id);
|
||||
break;
|
||||
|
||||
case 'training_data_edit':
|
||||
#training edit
|
||||
$tr_id = $_POST['tr_id'];
|
||||
|
||||
Reference in New Issue
Block a user