summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/controller/shifttypes_controller.php39
-rw-r--r--includes/view/ShiftTypes_view.php15
-rw-r--r--public/index.php10
3 files changed, 60 insertions, 4 deletions
diff --git a/includes/controller/shifttypes_controller.php b/includes/controller/shifttypes_controller.php
new file mode 100644
index 00000000..3ceb5c0d
--- /dev/null
+++ b/includes/controller/shifttypes_controller.php
@@ -0,0 +1,39 @@
+<?php
+
+function shifttype_delete_controller() {
+}
+
+function shifttype_edit_controller() {
+}
+
+function shifttype_controller() {
+}
+
+function shifttypes_list_controller() {
+}
+
+/**
+ * Text for shift type related links.
+ */
+function shifttypes_title() {
+ return _("Shifttypes");
+}
+
+function shifttypes_controller() {
+ if (! isset($_REQUEST['action']))
+ $_REQUEST['action'] = 'list';
+
+ switch ($_REQUEST['action']) {
+ default:
+ case 'list':
+ return shifttypes_list_controller();
+ case 'view':
+ return shifttype_controller();
+ case 'edit':
+ return shifttype_edit_controller();
+ case 'delete':
+ return shifttype_delete_controller();
+ }
+}
+
+?> \ No newline at end of file
diff --git a/includes/view/ShiftTypes_view.php b/includes/view/ShiftTypes_view.php
new file mode 100644
index 00000000..c18ea493
--- /dev/null
+++ b/includes/view/ShiftTypes_view.php
@@ -0,0 +1,15 @@
+<?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() {
+}
+
+?> \ No newline at end of file
diff --git a/public/index.php b/public/index.php
index 54ea1090..6574b619 100644
--- a/public/index.php
+++ b/public/index.php
@@ -24,10 +24,12 @@ require_once realpath(__DIR__ . '/../includes/view/AngelTypes_view.php');
require_once realpath(__DIR__ . '/../includes/view/Questions_view.php');
require_once realpath(__DIR__ . '/../includes/view/Shifts_view.php');
require_once realpath(__DIR__ . '/../includes/view/ShiftEntry_view.php');
+require_once realpath(__DIR__ . '/../includes/view/ShiftTypes_view.php');
require_once realpath(__DIR__ . '/../includes/view/UserAngelTypes_view.php');
require_once realpath(__DIR__ . '/../includes/view/User_view.php');
require_once realpath(__DIR__ . '/../includes/controller/angeltypes_controller.php');
+require_once realpath(__DIR__ . '/../includes/controller/shifttypes_controller.php');
require_once realpath(__DIR__ . '/../includes/controller/users_controller.php');
require_once realpath(__DIR__ . '/../includes/controller/user_angeltypes_controller.php');
@@ -86,7 +88,7 @@ $free_pages = array(
'users',
'ical',
'shifts_json_export',
- 'atom'
+ 'atom'
);
// Gewünschte Seite/Funktion
@@ -95,10 +97,10 @@ if (! isset($_REQUEST['p']))
$_REQUEST['p'] = isset($user) ? "news" : "login";
if (isset($_REQUEST['p']) && preg_match("/^[a-z0-9_]*$/i", $_REQUEST['p']) && (in_array($_REQUEST['p'], $free_pages) || in_array($_REQUEST['p'], $privileges))) {
$p = $_REQUEST['p'];
-
+
$title = $p;
$content = "";
-
+
if ($p == "api") {
require_once realpath(__DIR__ . '/../includes/controller/api.php');
error("Api disabled temporily.");
@@ -226,7 +228,7 @@ echo template_render('../templates/layout.html', array(
'content' => msg() . $content,
'header_toolbar' => header_toolbar(),
'faq_url' => $faq_url,
- 'locale' => $_SESSION['locale']
+ 'locale' => $_SESSION['locale']
));
counter();