updates and restart camps
This commit is contained in:
23
_include/include_create.php
Executable file → Normal file
23
_include/include_create.php
Executable file → Normal file
@@ -133,6 +133,9 @@ switch ($this->get_id()) {
|
||||
$moxc_array[] = $new_moxc;
|
||||
}
|
||||
|
||||
$pt_assoc_array = $sql->assoc_array('SELECT * FROM payment_type ORDER BY pt_id ASC;');
|
||||
|
||||
$smarty->assign('pt_assoc_array', $pt_assoc_array);
|
||||
$smarty->assign('moxc_array', $moxc_array);
|
||||
$smarty->display('money_expense_create.tpl');
|
||||
break;
|
||||
@@ -140,6 +143,26 @@ switch ($this->get_id()) {
|
||||
# ÚJ KIADÁS KATEGÓRIA
|
||||
$smarty->display('money_expense_category_create.tpl');
|
||||
break;
|
||||
case 'money_income_category':
|
||||
# ÚJ BEVÉTEL KATEGÓRIA
|
||||
$smarty->display('money_income_category_create.tpl');
|
||||
break;
|
||||
case 'money_income':
|
||||
# ÚJ KIADÁS
|
||||
$mic_assoc_array = $sql->assoc_array('SELECT * FROM money_income_category WHERE mic_deleted = 0 AND mic_id != 4 ORDER BY mic_name ASC;');
|
||||
$mic_array = array();
|
||||
foreach ($mic_assoc_array as $key => $mic) {
|
||||
$new_mic = new money_income_category();
|
||||
$new_mic->set_mic_data_by_id($mic['mic_id']);
|
||||
$mic_array[] = $new_mic;
|
||||
}
|
||||
|
||||
$pt_assoc_array = $sql->assoc_array('SELECT * FROM payment_type ORDER BY pt_id ASC;');
|
||||
|
||||
$smarty->assign('pt_assoc_array', $pt_assoc_array);
|
||||
$smarty->assign('mic_array', $mic_array);
|
||||
$smarty->display('money_income_create.tpl');
|
||||
break;
|
||||
case 'backup':
|
||||
# BACKUP
|
||||
//létrehozzá, és hozzáfűzi az ID-t a dátumhoz
|
||||
|
||||
Reference in New Issue
Block a user