Commit 5feab15e authored by Andreas Müller's avatar Andreas Müller

Initial commit

parents
# Created by https://www.gitignore.io/api/windows,linux,osx,vim,node,emacs
### Windows ###
# Windows image file caches
Thumbs.db
ehthumbs.db
# Folder config file
Desktop.ini
# Recycle Bin used on file shares
$RECYCLE.BIN/
# Windows Installer files
*.cab
*.msi
*.msm
*.msp
# Windows shortcuts
*.lnk
### Linux ###
*~
# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*
# KDE directory preferences
.directory
# Linux trash folder which might appear on any partition or disk
.Trash-*
### OSX ###
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
### Vim ###
# swap
[._]*.s[a-w][a-z]
[._]s[a-w][a-z]
# session
Session.vim
# temporary
.netrwhist
*~
# auto-generated tag files
tags
### Node ###
# Logs
logs
*.log
npm-debug.log*
# Runtime data
pids
*.pid
*.seed
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# node-waf configuration
.lock-wscript
# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules
jspm_packages
# Optional npm cache directory
.npm
# Optional REPL history
.node_repl_history
### Emacs ###
# -*- mode: gitignore; -*-
*~
\#*\#
/.emacs.desktop
/.emacs.desktop.lock
*.elc
auto-save-list
tramp
.\#*
# Org-mode
.org-id-locations
*_archive
# flymake-mode
*_flymake.*
# eshell files
/eshell/history
/eshell/lastdir
# elpa packages
/elpa/
# reftex files
*.rel
# AUCTeX auto folder
/auto/
# cask packages
.cask/
dist/
# Flycheck
flycheck_*.el
# server auth directory
/server/
# projectiles files
.projectile
### PROJECT ###
php/config.php
*.db
\ No newline at end of file
[submodule "submodules/bootstrap-datepicker"]
path = submodules/bootstrap-datepicker
url = https://github.com/eternicode/bootstrap-datepicker.git
<Files "*.db">
Order Allow,Deny
Deny from all
</Files>
\ No newline at end of file
# Schulsanitätsdienst
## Kurzbeschreibung
Der Schulsanitätsdienst der Berufsschule Erlangen ist auf Grund von Tages- und Blockunterricht recht schwer zu organisieren.
Damit die Lehrer und das Sekretariat es leichter haben die Sanis zu koordinieren, existiert diese Seite.
Hier können die Sanitäter verwaltet und für den Dienst eingeteilt werden. Auf der Startseite kann dann der aktuelle Dienstplan dann eingesehen werden.
## Technologien / Frameworks
- PHP 5.6 (7.0 ready)
- CSS 3
- jQuery 2.2.3 (JavaScript)
- HTML 5
- Bootstrap 3.3.6
## Installation
- Den Quellcode in das Webverzeichnis legen (Nicht die submodules vergessen!)
- Die Schreibrechte auf `/sql/#ssd.db` prüfen und ggf. setzen
* Es ist bereits das Schuljahr 2015/16
* und ein Administrator (admin@example.com) angelegt. Passwort: `p@ssw0rd`
- Die Datenbankverbindung schreiben
* `config.php.example` kopiern/umbenennen in `config.php`
* Datei öffnen und Änderungen eintragen (soweit gewünscht)
- Seite aufrufen, einloggen und _mind._ das __Passwort und E-Mail Adresse ändern__
- In den Einstellungen das Schuljahr und die Ferien setzen
- __Fertig__
<?php
// Define the current directory as base directory
define('BASEDIR', str_replace('\\', '/', __DIR__));
$url = '';
if (file_exists(BASEDIR.'/url.txt'))
{
$url = trim(file_get_contents(BASEDIR.'/url.txt'));
}
if (empty($url))
{
// Corresponding to the current directory, define the url as base url
$url = str_replace($_SERVER['DOCUMENT_ROOT'], 'http://'.$_SERVER['HTTP_HOST'], BASEDIR);
}
define('ISHTTPS', (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ||
(isset($_SERVER['REQUEST_SCHEME']) && $_SERVER['REQUEST_SCHEME'] == 'https'));
if (ISHTTPS)
{
$url = str_replace("http", "https", $url);
}
define('BASEURL', $url);
?>
\ No newline at end of file
/**
* bootstrap-outline.css
* (c) Andreas Mueller <webmaster@am-wd.de>
*/
/**
* Added to most classes a *-outline class.
* These classes have the default colors but only border and text.
* On hover they become solid filled with that color.
*
* Created for Bootstrap 3.3.6
*
* @author Andreas Mueller <webmaster@am-wd.de>
* @copyright (c) 2016 Andreas Mueller
* @license MIT - http://am-wd.de/index.php?p=about#license
*/
/*
* Buttons
*/
.btn-default-outline,
.btn-primary-outline,
.btn-success-outline,
.btn-info-outline,
.btn-warning-outline,
.btn-danger-outline {
border-width: 2px;
}
.btn-default-outline {
color: #999;
border-color: #999;
background-color: transparent;
}
.btn-default-outline:focus,
.btn-default-outline.focus,
.btn-default-outline:hover,
.btn-default-outline:active,
.btn-default-outline.active,
.open > .dropdown-toggle.btn-default-outline {
color: #fff;
background-color: #999;
box-shadow: none;
}
.btn-default-outline.disabled,
.btn-default-outline[disabled],
fieldset[disabled] .btn-default-outline,
.btn-default-outline.disabled:hover,
.btn-default-outline[disabled]:hover,
fieldset[disabled] .btn-default-outline:hover,
.btn-default-outline.disabled:focus,
.btn-default-outline[disabled]:focus,
fieldset[disabled] .btn-default-outline:focus,
.btn-default-outline.disabled.focus,
.btn-default-outline[disabled].focus,
fieldset[disabled] .btn-default-outline.focus,
.btn-default-outline.disabled:active,
.btn-default-outline[disabled]:active,
fieldset[disabled] .btn-default-outline:active,
.btn-default-outline.disabled.active,
.btn-default-outline[disabled].active,
fieldset[disabled] .btn-default-outline.active {
border-color: #999;
}
.btn-default-outline .badge {
color: #fff;
background-color: #999;
}
.btn-primary-outline {
color: #337ab7;
border-color: #337ab7;
background-color: transparent;
}
.btn-primary-outline:focus,
.btn-primary-outline.focus,
.btn-primary-outline:hover,
.btn-primary-outline:active,
.btn-primary-outline.active,
.open > .dropdown-toggle.btn-primary-outline {
color: #fff;
background-color: #337ab7;
box-shadow: none;
}
.btn-primary-outline.disabled,
.btn-primary-outline[disabled],
fieldset[disabled] .btn-primary-outline,
.btn-primary-outline.disabled:hover,
.btn-primary-outline[disabled]:hover,
fieldset[disabled] .btn-primary-outline:hover,
.btn-primary-outline.disabled:focus,
.btn-primary-outline[disabled]:focus,
fieldset[disabled] .btn-primary-outline:focus,
.btn-primary-outline.disabled.focus,
.btn-primary-outline[disabled].focus,
fieldset[disabled] .btn-primary-outline.focus,
.btn-primary-outline.disabled:active,
.btn-primary-outline[disabled]:active,
fieldset[disabled] .btn-primary-outline:active,
.btn-primary-outline.disabled.active,
.btn-primary-outline[disabled].active,
fieldset[disabled] .btn-primary-outline.active {
border-color: #337ab7;
}
.btn-primary-outline .badge {
color: #fff;
background-color: #337ab7;
}
.btn-success-outline {
color: #5cb85c;
border-color: #5cb85c;
background-color: transparent;
}
.btn-success-outline:focus,
.btn-success-outline.focus,
.btn-success-outline:hover,
.btn-success-outline:active,
.btn-success-outline.active,
.open > .dropdown-toggle.btn-success-outline {
color: #fff;
background-color: #5cb85c;
box-shadow: none;
}
.btn-success-outline.disabled,
.btn-success-outline[disabled],
fieldset[disabled] .btn-success-outline,
.btn-success-outline.disabled:hover,
.btn-success-outline[disabled]:hover,
fieldset[disabled] .btn-success-outline:hover,
.btn-success-outline.disabled:focus,
.btn-success-outline[disabled]:focus,
fieldset[disabled] .btn-success-outline:focus,
.btn-success-outline.disabled.focus,
.btn-success-outline[disabled].focus,
fieldset[disabled] .btn-success-outline.focus,
.btn-success-outline.disabled:active,
.btn-success-outline[disabled]:active,
fieldset[disabled] .btn-success-outline:active,
.btn-success-outline.disabled.active,
.btn-success-outline[disabled].active,
fieldset[disabled] .btn-success-outline.active {
border-color: #5cb85c;
}
.btn-success-outline .badge {
color: #fff;
background-color: #5cb85c;
}
.btn-info-outline {
color: #5bc0de;
border-color: #5bc0de;
background-color: transparent;
}
.btn-info-outline:focus,
.btn-info-outline.focus,
.btn-info-outline:hover,
.btn-info-outline:active,
.btn-info-outline.active,
.open > .dropdown-toggle.btn-info-outline {
color: #fff;
background-color: #5bc0de;
box-shadow: none;
}
.btn-info-outline.disabled,
.btn-info-outline[disabled],
fieldset[disabled] .btn-info-outline,
.btn-info-outline.disabled:hover,
.btn-info-outline[disabled]:hover,
fieldset[disabled] .btn-info-outline:hover,
.btn-info-outline.disabled:focus,
.btn-info-outline[disabled]:focus,
fieldset[disabled] .btn-info-outline:focus,
.btn-info-outline.disabled.focus,
.btn-info-outline[disabled].focus,
fieldset[disabled] .btn-info-outline.focus,
.btn-info-outline.disabled:active,
.btn-info-outline[disabled]:active,
fieldset[disabled] .btn-info-outline:active,
.btn-info-outline.disabled.active,
.btn-info-outline[disabled].active,
fieldset[disabled] .btn-info-outline.active {
border-color: #5bc0de;
}
.btn-info-outline .badge {
color: #fff;
background-color: #5bc0de;
}
.btn-warning-outline {
color: #f0ad4e;
border-color: #f0ad4e;
background-color: transparent;
}
.btn-warning-outline:focus,
.btn-warning-outline.focus,
.btn-warning-outline:hover,
.btn-warning-outline:active,
.btn-warning-outline.active,
.open > .dropdown-toggle.btn-warning-outline {
color: #fff;
background-color: #f0ad4e;
box-shadow: none;
}
.btn-warning-outline.disabled,
.btn-warning-outline[disabled],
fieldset[disabled] .btn-warning-outline,
.btn-warning-outline.disabled:hover,
.btn-warning-outline[disabled]:hover,
fieldset[disabled] .btn-warning-outline:hover,
.btn-warning-outline.disabled:focus,
.btn-warning-outline[disabled]:focus,
fieldset[disabled] .btn-warning-outline:focus,
.btn-warning-outline.disabled.focus,
.btn-warning-outline[disabled].focus,
fieldset[disabled] .btn-warning-outline.focus,
.btn-warning-outline.disabled:active,
.btn-warning-outline[disabled]:active,
fieldset[disabled] .btn-warning-outline:active,
.btn-warning-outline.disabled.active,
.btn-warning-outline[disabled].active,
fieldset[disabled] .btn-warning-outline.active {
border-color: #f0ad4e;
}
.btn-warning-outline .badge {
color: #fff;
background-color: #f0ad4e;
}
.btn-danger-outline {
color: #d9534f;
border-color: #d9534f;
background-color: transparent;
}
.btn-danger-outline:focus,
.btn-danger-outline.focus,
.btn-danger-outline:hover,
.btn-danger-outline:active,
.btn-danger-outline.active,
.open > .dropdown-toggle.btn-danger-outline {
color: #fff;
background-color: #d9534f;
box-shadow: none;
}
.btn-danger-outline.disabled,
.btn-danger-outline[disabled],
fieldset[disabled] .btn-danger-outline,
.btn-danger-outline.disabled:hover,
.btn-danger-outline[disabled]:hover,
fieldset[disabled] .btn-danger-outline:hover,
.btn-danger-outline.disabled:focus,
.btn-danger-outline[disabled]:focus,
fieldset[disabled] .btn-danger-outline:focus,
.btn-danger-outline.disabled.focus,
.btn-danger-outline[disabled].focus,
fieldset[disabled] .btn-danger-outline.focus,
.btn-danger-outline.disabled:active,
.btn-danger-outline[disabled]:active,
fieldset[disabled] .btn-danger-outline:active,
.btn-danger-outline.disabled.active,
.btn-danger-outline[disabled].active,
fieldset[disabled] .btn-danger-outline.active {
border-color: #d9534f;
}
.btn-danger-outline .badge {
color: #fff;
background-color: #d9534f;
}
/*
* Alerts
*/
.alert-success-outline,
.alert-info-outline,
.alert-warning-outline,
.alert-danger-outline {
border-width: 3px;
border-radius: 10px;
}
.alert-success-outline .alert-link,
.alert-info-outline .alert-link,
.alert-warning-outline .alert-link,
.alert-danger-outline .alert-link {
cursor: pointer;
}
.alert-success-outline {
color: #3c763d;
border-color: #5cb85c;
background-color: transparent;
}
.alert-success-outline hr {
border-top-color: #5cb85c;
}
.alert-success-outline .alert-link {
color: #3c793c;
}
.alert-info-outline {
color: #31708f;
border-color: #5bc0de;
background-color: transparent;
}
.alert-info-outline hr {
border-top-color: #5bc0de;
}
.alert-info-outline .alert-link {
color: #11506f;
}
.alert-warning-outline {
color: #c07d4e;
border-color: #f0ad4e;
background-color: transparent;
}
.alert-warning-outline hr {
border-top-color: #f0ad4e;
}
.alert-warning-outline .alert-link {
color: #a05d4e;
}
.alert-danger-outline {
color: #b9534f;
border-color: #d9534f;
background-color: transparent;
}
.alert-danger-outline hr {
border-top-color: #d9534f;
}
.alert-danger-outline .alert-link {
color: #89332f;
}
/*
* Labels
*/
.label-default-outline,
.label-primary-outline,
.label-success-outline,
.label-info-outline,
.label-warning-outline,
.label-danger-outline {
border: 1px solid transparent;
}
.label-default-outline {
color: #999;
border-color: #999;
background-color: transparent;
}
.label-default-outline[href]:hover,
.label-default-outline[href]:focus {
background-color: #999;
}
.label-primary-outline {
color: #337ab7;
border-color: #337ab7;
background-color: transparent;
}
.label-primary-outline[href]:hover,
.label-primary-outline[href]:focus {
background-color: #337ab7;
}
.label-success-outline {
color: #5cb85c;
border-color: #5cb85c;
background-color: transparent;
}
.label-success-outline[href]:hover,
.label-success-outline[href]:focus {
background-color: #5cb85c;
}
.label-info-outline {
color: #5bc0de;
border-color: #5bc0de;
background-color: transparent;
}
.label-info-outline[href]:hover,
.label-info-outline[href]:focus {
background-color: #5bc0de;
}
.label-warning-outline {
color: #f0ad4e;
border-color: #f0ad4e;
background-color: transparent;
}
.label-warning-outline[href]:hover,
.label-warning-outline[href]:focus {
background-color: #f0ad4e;
}
.label-danger-outline {
color: #d9534f;
border-color: #d9534f;
background-color: transparent;
}
.label-danger-outline[href]:hover,
.label-danger-outline[href]:focus {
background-color: #d9534f;
}
/*
* Panels
*/
.panel-default-outline,
.panel-primary-outline,
.panel-success-outline,
.panel-info-outline,
.panel-warning-outline,
.panel-danger-outline {
background-color: transparent;
}
.panel-default-outline,
.panel-primary-outline,
.panel-success-outline,
.panel-info-outline,
.panel-warning-outline,
.panel-danger-outline,
.panel-default-outline > .panel-heading,
.panel-primary-outline > .panel-heading,
.panel-success-outline > .panel-heading,
.panel-info-outline > .panel-heading,
.panel-warning-outline > .panel-heading,
.panel-danger-outline > .panel-heading,
.panel-default-outline > .panel-heading + .panel-collapse > .panel-body,
.panel-primary-outline > .panel-heading + .panel-collapse > .panel-body,
.panel-success-outline > .panel-heading + .panel-collapse > .panel-body,
.panel-info-outline > .panel-heading + .panel-collapse > .panel-body,
.panel-warning-outline > .panel-heading + .panel-collapse > .panel-body,
.panel-danger-outline > .panel-heading + .panel-collapse > .panel-body,
.panel-default-outline > .panel-footer + .panel-collapse > .panel-body,
.panel-primary-outline > .panel-footer + .panel-collapse > .panel-body,
.panel-success-outline > .panel-footer + .panel-collapse > .panel-body,
.panel-info-outline > .panel-footer + .panel-collapse > .panel-body,
.panel-warning-outline > .panel-footer + .panel-collapse > .panel-body,
.panel-danger-outline > .panel-footer + .panel-collapse > .panel-body {
border-width: 3px;
}
.panel-default-outline .panel-heading,
.panel-primary-outline .panel-heading,
.panel-success-outline .panel-heading,
.panel-info-outline .panel-heading,
.panel-warning-outline .panel-heading,
.panel-danger-outline .panel-heading {
margin: 0 15px;
padding: 10px 0;
}
.panel-default-outline .panel-footer,
.panel-primary-outline .panel-footer,
.panel-success-outline .panel-footer,
.panel-info-outline .panel-footer,
.panel-warning-outline .panel-footer,
.panel-danger-outline .panel-footer {
margin: 0 15px;
padding: 10px 0;
border-width: 1px;
}
.panel-default-outline {
border-color: #999;
}
.panel-default-outline > .panel-heading {
color: #999;
border-color: #999;
background-color: transparent;
}
.panel-default-outline > .panel-heading + .panel-collapse > .panel-body {
border-top-color: #999;
}
.panel-default-outline > .panel-heading .badge {
color: #fff;
background-color: #999;
}
.panel-default-outline .panel-footer {
color: #999;
border-color: #999;
background-color: transparent;
}
.panel-default-outline > .panel-footer + .panel-collapse > .panel-body {
border-bottom-color: #999;
}
.panel-primary-outline {
border-color: #337ab7;
}
.panel-primary-outline > .panel-heading {
color: #337ab7;
border-color: #337ab7;
background-color: transparent;
}
.panel-primary-outline > .panel-heading + .panel-collapse > .panel-body {
border-top-color: #337ab7;
}
.panel-primary-outline > .panel-heading .badge {
color: #fff;
background-color: #337ab7;
}
.panel-primary-outline .panel-footer {
color: #337ab7;
border-color: #337ab7;
background-color: transparent;
}
.panel-primary-outline > .panel-footer + .panel-collapse > .panel-body {
border-bottom-color: #337ab7;
}
.panel-success-outline {
border-color: #5cb85c;
}
.panel-success-outline