templates
This commit is contained in:
@@ -162,6 +162,7 @@ if (isset($_POST['action'])) {
|
||||
# training create
|
||||
# a training_list-re ugrik vissza, mert lehet h többet is létrehoz
|
||||
unset($_POST['action']);
|
||||
unset($_POST['training_templates']);
|
||||
|
||||
$every_week = isset($_POST['every_week']);
|
||||
$jumpTo = $_POST['jumpTo'];
|
||||
@@ -573,6 +574,18 @@ if (isset($_POST['action'])) {
|
||||
header('Location: /admin/milestones/success');
|
||||
}
|
||||
break;
|
||||
case 'training_template_create':
|
||||
# új edzés salon
|
||||
$new_tt_id = training_template::create_tt($_POST['tt_name'], $_POST['tt_time'], $_POST['tt_training_type'], $_POST['tt_duration']);
|
||||
log::register('new_training_template', $new_tt_id);
|
||||
header('Location: /admin/training_templates/'.$new_tt_id);
|
||||
break;
|
||||
case 'training_template_update':
|
||||
# edzés salon update
|
||||
training_template::update_tt($_POST['tt_name'], $_POST['tt_time'], $_POST['tt_training_type'], $_POST['tt_duration'], $_POST['tt_id']);
|
||||
log::register('update_training_template', $_POST['tt_id']);
|
||||
header('Location: /admin/training_templates/'.$_POST['tt_id']);
|
||||
break;
|
||||
default:
|
||||
# code...
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user