1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<?php
function ShiftType_delete_view($shifttype) {
}
function ShiftType_edit_view($name, $angeltype_id, $angeltypes, $description, $shifttype_id) {
}
function ShiftType_view($shifttype) {
}
function ShiftTypes_list_view($shifttypes) {
foreach ($shifttypes as &$shifttype) {
$shifttype['actions'] = table_buttons([
button(page_link_to('shifttypes') . '&action=edit&shifttype_id=' . $shifttype['id'], _("edit"), "btn-xs"),
button(page_link_to('shifttypes') . '&action=delete&shifttype_id=' . $shifttypes['id'], _("delete"), "btn-xs")
]);
}
return page_with_title(shifttypes_title(), array(
msg(),
buttons(array(
button(page_link_to('shifttypes') . '&action=edit', _("New shifttype"), 'add')
)),
table(array(
'name' => _("Name"),
'actions' => ""
), $shifttypes)
));
}
?>
|