htaccess fajl elkeszult

modositani kell majd az ajax hivast
edzes letrehozasnal bekerulnek az edzok
This commit is contained in:
Ricsi
2016-11-15 13:42:45 +00:00
parent 04961702b2
commit 15d8bf3c2e
5 changed files with 39 additions and 19 deletions

View File

@@ -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':