added money delete option

add _developer directorym (ignored)
This commit is contained in:
Ricsi
2017-01-24 22:49:43 +01:00
parent d73e0cce1a
commit bdd04b9cdc
7 changed files with 33 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
<?php
if ($this->is_id()) {
$sql->update_table('money_deposit', array('mod_deleted' => 1), array('mod_id' => $this->get_id()));
$new_mod = new money_deposit();
$new_mod->set_mod_data_by_id($this->get_id());
//log::register('update_money_deposit', $tmp_user->get_uk_name() . ': ' . $_POST['mod_sum']. ' Ft (' . $_POST['mod_date'] . ')');
log::register('delete_money_deposit', $new_mod->get_mod_user_kid()->get_uk_name() . ': ' . $new_mod->get_mod_sum() . ' Ft (' . $new_mod->get_mod_date() . ')');
header("Location: /admin/money_deposit");
}
?>

View File

@@ -29,7 +29,7 @@ if ($this->is_id()) {
}
else {
# BEFIZETÉS LISTA
$mod_query = "SELECT * FROM money_deposit ORDER BY mod_date DESC LIMIT 50;";
$mod_query = "SELECT * FROM money_deposit WHERE mod_deleted = 0 ORDER BY mod_date DESC LIMIT 50;";
$mod_array = array();
$mod_assoc_array = $sql->assoc_array($mod_query);