custom training price
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user