sql delete replaced by delete flag log list (simple), log categories minor bug fixes in css
33 lines
477 B
PHP
33 lines
477 B
PHP
<?php
|
|
|
|
|
|
# EDZÉS ZÁROLÁS
|
|
|
|
if ($this->is_id()) {
|
|
|
|
# EDZÉS ZÁROLÁS/FELOLDÁS
|
|
|
|
$locked = $sql->single_variable('select tr_locked from training where tr_id =' . $this->get_id());
|
|
$sql->update_table('training', array(
|
|
'tr_locked' => ($locked?0:1)
|
|
),
|
|
array(
|
|
'tr_id' => $this->get_id()
|
|
)
|
|
);
|
|
log::register(($locked?'training_open':'training_close'), $this->get_id());
|
|
header('Location: /admin/presence/' . $this->get_id());
|
|
}
|
|
|
|
else {
|
|
|
|
# NEM LEHET
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
?>
|