added money delete option
add _developer directorym (ignored)
This commit is contained in:
13
_include/include_delete_money_deposit.php
Normal file
13
_include/include_delete_money_deposit.php
Normal 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");
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user