custom training price

This commit is contained in:
Tóth Richárd
2019-07-25 12:22:15 +02:00
parent 161453e9b5
commit 2c663d7ed1
20 changed files with 266 additions and 156 deletions

View File

@@ -169,11 +169,12 @@ if (isset($_POST['action'])) {
case 'training_type_update':
# edzés típus lista updatelése ABí-ba
unset($_POST['action']);
foreach ($_POST as $key => $value) {
$key_parts = explode('_', $key);
$trt_id = $key_parts[1];
$sql->update_table('training_type', array('trt_name' => $value), array('trt_id' => $trt_id));
}
// foreach ($_POST as $key => $value) {
// $key_parts = explode('_', $key);
// $trt_id = $key_parts[1];
// $sql->update_table('training_type', array('trt_name' => $value), array('trt_id' => $trt_id));
// }
training_type::update_training_type($_POST);
log::register('update_training_type', 'update all');
header("Location: " . $actual_link);
break;