This commit is contained in:
Ricsi
2016-12-15 23:27:55 +01:00
parent 08627484da
commit d458b996a4
46 changed files with 1138 additions and 386 deletions

View File

@@ -0,0 +1,32 @@
<?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()
)
);
header('Location: /admin/presence/' . $this->get_id());
}
else {
# NEM LEHET
}
?>