sql delete replaced by delete flag
log list (simple), log categories
minor bug fixes in css
This commit is contained in:
Ricsi
2016-12-30 18:00:05 +01:00
parent 664097a976
commit 5a78b09a38
39 changed files with 557 additions and 92 deletions

View File

@@ -2,10 +2,14 @@
if ($this->is_id()) {
//először ki kell törölni a coachokat
$delete_coach_query = "DELETE FROM training_coach WHERE trc_training_tr_id = " . $this->get_id() . ";";
$sql->execute_query($delete_coach_query);
$delete_query = "DELETE FROM training WHERE tr_id = " . $this->get_id() . ";";
$sql->execute_query($delete_query);
//$delete_coach_query = "DELETE FROM training_coach WHERE trc_training_tr_id = " . $this->get_id() . ";";
//$sql->execute_query($delete_coach_query);
//$delete_query = "DELETE FROM training WHERE tr_id = " . $this->get_id() . ";";
//$sql->execute_query($delete_query);
$sql->update_table('training', array('tr_deleted' => 1), array('tr_id' => $this->get_id()));
log::register('delete_training', $this->get_id());
header("Location: /admin/trainings");
}