updates and restart camps

This commit is contained in:
Tóth Richárd
2018-05-03 20:27:35 +02:00
parent 392b484666
commit a249c20433
38 changed files with 1153 additions and 235 deletions

View File

@@ -304,36 +304,60 @@ if (isset($_POST['action'])) {
break;
case 'money_deposit_update':
# befizetés módosítás
money_deposit::update_money_deposit($_POST['mod_user_kid_uk_id'], $_POST['mod_date'], $_POST['mod_sum'], $_POST['mod_id'], $_POST['mod_payment_type']);
money_deposit::update_money_deposit($_POST['mod_user_kid_uk_id'], $_POST['mod_date'], $_POST['mod_sum'], $_POST['mod_id'], $_POST['mod_payment_type'], $_POST['mi_id']);
$tmp_user = new user_kid();
$tmp_user->set_user_data_by_id($_POST['mod_user_kid_uk_id']);
log::register('update_money_deposit', $tmp_user->get_uk_name() . ': ' . $_POST['mod_sum']. ' Ft (' . $_POST['mod_date'] . ')');
header("Location: /admin/money_deposit");
break;
case 'moxc_create':
# befizetés kategória létrehozása
# kiadás kategória létrehozása
$new_moxc_id = money_expense_category::create_money_expense_category($_POST['moxc_name']);
log::register('new_moxc', $new_moxc_id);
header("Location: /admin/money_expense_category");
break;
case 'moxc_update':
# befizetés kategória módosítása
# kiadás kategória módosítása
money_expense_category::update_money_expense_category($_POST['moxc_name'], $_POST['moxc_id']);
log::register('update_moxc', $_POST['moxc_id']);
header("Location: /admin/money_expense_category");
break;
case 'mox_create':
# befizetés létrehozása
$new_mox_id = money_expense::create_money_expense($_POST['mox_name'], $_POST['mox_date'], $_POST['mox_item'], $_POST['mox_sum'], $_POST['mox_moxc_id']);
# kiadás létrehozása
$new_mox_id = money_expense::create_money_expense($_POST['mox_name'], $_POST['mox_date'], $_POST['mox_item'], $_POST['mox_sum'], $_POST['mox_moxc_id'], $_POST['mox_payment_type']);
log::register('new_mox', $_POST['mox_item'] . ": " . $_POST['mox_sum'] . " Ft");
header("Location: /admin/money_expense");
break;
case 'mox_update':
# befizetés módosítása
money_expense::update_money_expense($_POST['mox_name'], $_POST['mox_date'], $_POST['mox_item'], $_POST['mox_sum'], $_POST['mox_moxc_id'], $_POST['mox_id']);
# kiadás módosítása
money_expense::update_money_expense($_POST['mox_name'], $_POST['mox_date'], $_POST['mox_item'], $_POST['mox_sum'], $_POST['mox_moxc_id'], $_POST['mox_id'], $_POST['mox_payment_type']);
log::register('update_mox', $_POST['mox_item'] . ": " . $_POST['mox_sum'] . " Ft");
header("Location: /admin/money_expense");
break;
case 'mic_create':
# bevétel kategória létrehozása
$new_mic_id = money_income_category::create_money_income_category($_POST['mic_name']);
log::register('new_mic', $new_mic_id);
header("Location: /admin/money_income_category");
break;
case 'mi_create':
# bevétel létrehozása
$new_mi_id = money_income::create_money_income($_POST['mi_date'], $_POST['mi_item'], $_POST['mi_sum'], $_POST['mi_mic_id'], $_POST['mi_payment_type']);
log::register('new_mi', $_POST['mi_item'] . ": " . $_POST['mi_sum'] . " Ft");
header("Location: /admin/money_income");
break;
case 'mic_update':
# bevétel kategória módosítása
money_income_category::update_money_income_category($_POST['mic_name'], $_POST['mic_id']);
log::register('update_mic', $_POST['mic_id']);
header("Location: /admin/money_income_category");
break;
case 'mi_update':
# bevétel módosítása
money_income::update_money_income($_POST['mi_date'], $_POST['mi_item'], $_POST['mi_sum'], $_POST['mi_mic_id'], $_POST['mi_id'], $_POST['mi_payment_type']);
log::register('update_mi', $_POST['mi_item'] . ": " . $_POST['mi_sum'] . " Ft");
header("Location: /admin/money_income");
break;
case 'settings_data_edit':
$sql->update_table('setting_value',
array(
@@ -381,6 +405,7 @@ if (isset($_POST['action'])) {
camp::create_camp($_POST['camp_city'], $_POST['camp_from'], $_POST['camp_to'], $_POST['camp_leader'], $_POST['camp_helpers'], (!empty($_POST['camp_is_open'])?1:0), $_POST['camp_camp_type_ct_id'], $shuttles, $accoms);
log::register('new_camp', $_POST['camp_from'] . " (" . $_POST['camp_city'] . ")");
header("Location: /admin/camps");
break;
case 'camp_update':
# tábor módosítás