htaccess fajl elkeszult
modositani kell majd az ajax hivast edzes letrehozasnal bekerulnek az edzok
This commit is contained in:
@@ -62,22 +62,10 @@ if (isset($_POST['action'])) {
|
||||
# a training_list-re ugrik vissza, mert lehet h többet is létrehoz
|
||||
unset($_POST['action']);
|
||||
|
||||
//coaches array alapján insertálunk
|
||||
|
||||
if (isset($_POST['coaches'])) {
|
||||
$coaches = $_POST['coaches'];
|
||||
unset($_POST['coaches']);
|
||||
}
|
||||
|
||||
$every_week = isset($_POST['every_week']);
|
||||
if ($every_week) unset($_POST['every_week']);
|
||||
$new_training_id = training::create_training($_POST, $every_week);
|
||||
//TRAINING_COACH kezelése
|
||||
if ($coaches) {
|
||||
foreach ($coaches as $coach_id) {
|
||||
$sql->insert_into('training_coach', array('trc_training_tr_id' => $new_training_id, 'trc_coach_uc_id' => $coach_id));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
break;
|
||||
case 'training_type_create':
|
||||
|
||||
Reference in New Issue
Block a user