--- /dev/null
+#!/bin/sh
+
+cat <<EOF
+* { box-sizing: border-box; }
+body {
+ position: relative;
+ width: 100%;
+ margin: 0; padding: 0;
+}
+
+input.tab { display: none; }
+input.tab + label.tab { display: block; }
+input.tab + label.tab::before { content: '\25b8 \00a0'; float: left;}
+input.tab:checked + label.tab::before { content: '\25be \00a0'; }
+input.tab + label.tab + div.tab { display: none; }
+input.tab:checked + label.tab + div.tab { display: block; }
+
+input.color { display: none }
+input.color + label{
+ display: inline-block;
+ width: 1em; height: 1em;
+ border: 1px solid black;
+}
+input.color:checked + label{ border-width: 3px;}
+input.color[value="c000"] + label { background-color: #888;}
+input.color[value="c001"] + label { background-color: #00F;}
+input.color[value="c010"] + label { background-color: #0F0;}
+input.color[value="c011"] + label { background-color: #0FF;}
+input.color[value="c100"] + label { background-color: #F00;}
+input.color[value="c101"] + label { background-color: #F0F;}
+input.color[value="c110"] + label { background-color: #FF0;}
+input.color[value="c111"] + label { background-color: #FFF;}
+
+h1, label.tab, div.tab,
+div.patient, div.prescription {
+ display: block;
+ width: 96%;
+ margin: 0 2%;
+}
+fieldset.color {
+ margin: .5em 2% 0 2%;
+ border: none;
+ padding: 0;
+}
+img.dotmark {
+ max-width: 96%;
+ margin: .125em 2%; padding: 0;
+ text-align: left;
+ border: 1px dotted black;
+}
+img.dotmark.ov {
+ position: absolute;
+ bottom: 5px; right: 0%;
+ z-index: 1;
+}
+@media(min-width: 800px){
+ h1, label.tab, div.tab,
+ div.patient, div.prescription {
+ width: 38%;
+ margin-right: 0;
+ }
+ fieldset.color{
+ position: fixed;
+ max-width: 56%;
+ right: 0;
+ top: 0em;
+ }
+ img.dotmark {
+ position: fixed;
+ max-width: 56%;
+ max-height: 480px;
+ right: 0;
+ top: 2em;
+ }
+ img.dotmark.ov {
+ position: fixed;
+ bottom: auto;
+ }
+}
+
+h1 {display: none;}
+
+div.patient, div.prescription { margin-top: 1em; }
+div.prescription {
+ border: 1px solid black;
+ background-color: #EEE;
+ padding: .125em 1.25ex .5em 1.25ex;
+}
+div > h2 { margin: 0; border-bottom: 1px solid black; }
+div > a:first-of-type {
+ display: block;
+ margin: .125em 0 .5em 0;
+ text-decoration: none;
+}
+
+label.tab {
+ font-size: 1.25em;
+ font-weight: bold;
+ padding: .125em 1ex .25em 1ex;
+ color: #FFF;
+ background-color: #333;
+ margin-top: .125em;
+ text-align: right;
+}
+label.heading {
+ background-color: #FFF;
+ margin-top: 1em;
+ border: 2px solid black;
+ border-bottom-width: 1px;
+ color: black;
+}
+label.heading > span {
+ text-decoration: underline;
+}
+
+label > span {
+ display: inline-block;
+ text-align: right;
+}
+label > span.no {
+ width: 10%; float: left;
+ border: solid 1px #FFF;
+ background-color: #555;
+ border-radius: 2ex;
+ padding: 0;
+ text-align: center;
+}
+label.heading > span.no {
+ background-color: inherit;
+ border: none;
+}
+label > span.date { width: 30%; }
+label > span.therapist { width: 40%; }
+label > span.signature { width: 10%; }
+label > span.signature > button { display: inline-block; margin: 0; }
+
+button[value=pos], button[value=neg] {
+ display: block;
+ margin-bottom: .25em;
+ border: 1px solid black;
+ height: 1.5em; width: 1.5em;
+ vertical-align: top;
+ background-color: #FFF;
+ color: #000;
+ white-space: nowrap;
+}
+button[value=pos]::before { padding: 0 1ex 0 .25ex; content: "\2713"; }
+button[value=neg]::before { padding: 0 1ex 0 .25ex; content: "\00a0 \00a0 \00a0"; }
+
+div.tab {
+ border: 2px solid #333;
+ border-top-width: 1px;
+ margin-top: -1px;
+ padding: .25em .5ex;
+}
+div.tab > fieldset.note {
+ border: none;
+ margin: 0; padding: 0;
+}
+div.tab > fieldset.note > textarea {
+ display: block;
+ width: 95%; height: 8em;
+ margin: -8em 0 .5em 1.25em;
+ font: normal 1em sans-serif;
+}
+div.tab > fieldset.note > input.color + label { margin: 0; display: block; }
+div.tab > fieldset.note > input.color[value="c000"]:checked ~ textarea { background-color: #AAA; }
+div.tab > fieldset.note > input.color[value="c001"]:checked ~ textarea { background-color: #88F; }
+div.tab > fieldset.note > input.color[value="c010"]:checked ~ textarea { background-color: #8F8; }
+div.tab > fieldset.note > input.color[value="c011"]:checked ~ textarea { background-color: #8FF; }
+div.tab > fieldset.note > input.color[value="c100"]:checked ~ textarea { background-color: #F88; }
+div.tab > fieldset.note > input.color[value="c101"]:checked ~ textarea { background-color: #F8F; }
+div.tab > fieldset.note > input.color[value="c110"]:checked ~ textarea { background-color: #FF8; }
+div.tab > fieldset.note > input.color[value="c111"]:checked ~ textarea { background-color: #FFF; }
+
+EOF
+
+# vi:set filetype=css:
--- /dev/null
+# Copyright 2016 Paul Hänsch
+#
+# This file is part of Confetti.
+#
+# Confetti is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# Confetti is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with Confetti. If not, see <http://www.gnu.org/licenses/>.
+
+cat <<EOF
+<form method=GET action="">
+ <h1>Behandlungen</h1>
+
+ <div class="patient">
+ <h2>Flrbrlprrf Zoidberg</h2>
+ <a href="?p=patienten">< zur Patientenliste</a>
+ <span class="insurance">Gemeinsame Betriebskrankenkasse der Gesellschaften der Textilgruppe Hof</span>
+ </div>
+
+ <div class="prescription">
+ <h2>Verordnung</h2>
+ <button type=submit name=prescreviewed value=pos>Verordnung geprüft</button>
+ <ul>
+ <li>6x MT</li>
+ <li>6x Fango</li>
+ </ul>
+ ???
+ <button type=submit name=extrapay value=neg>Zuzahlung</button>
+ </div>
+
+ <label class="tab heading">
+ <span class=no>Nr.</span><!--
+ --><span class=date>Datum</span><!--
+ --><span class=therapist>Therapeut</span><!--
+ --><span class=signature>Sig.</span>
+ </label>
+
+ <input class="tab" type="checkbox" id=2015-10-15-1>
+ <label class="tab" for=2015-10-15-1>
+ <span class=no>1.</span><!--
+ --><span class=date>15.10.2015</span><!--
+ --><span class=therapist>Josh</span><!--
+ --><span class=signature><button type=submit name=2015-10-15-1_sig value=pos></button></span>
+ </label>
+ <div class=tab>
+ <img class="dotmark ov" src="therapy_ov2015-10-15-1.png" alt="">
+
+ <fieldset class=note>
+ <input class=color type=radio name=2015-10-15-1_c1 value="c000" id=2015-10-15-1_c1c000><label for=2015-10-15-1_c1c000></label>
+ <input class=color type=radio name=2015-10-15-1_c1 value="c001" id=2015-10-15-1_c1c001><label for=2015-10-15-1_c1c001></label>
+ <input class=color type=radio name=2015-10-15-1_c1 value="c010" id=2015-10-15-1_c1c010><label for=2015-10-15-1_c1c010></label>
+ <input class=color type=radio name=2015-10-15-1_c1 value="c011" id=2015-10-15-1_c1c011 checked><label for=2015-10-15-1_c1c011></label>
+ <input class=color type=radio name=2015-10-15-1_c1 value="c100" id=2015-10-15-1_c1c100><label for=2015-10-15-1_c1c100></label>
+ <input class=color type=radio name=2015-10-15-1_c1 value="c101" id=2015-10-15-1_c1c101><label for=2015-10-15-1_c1c101></label>
+ <input class=color type=radio name=2015-10-15-1_c1 value="c110" id=2015-10-15-1_c1c110><label for=2015-10-15-1_c1c110></label>
+ <input class=color type=radio name=2015-10-15-1_c1 value="c111" id=2015-10-15-1_c1c111><label for=2015-10-15-1_c1c111></label>
+ <textarea name=2015-10-15-1_n1>
+Unfall 3.9.2015
+Bruch Oberarm rechts
+ </textarea>
+ </fieldset>
+
+ <fieldset class=note>
+ <input class=color type=radio name=2015-10-15-1_c2 value="c000" id=2015-10-15-1_c2c000><label for=2015-10-15-1_c2c000></label>
+ <input class=color type=radio name=2015-10-15-1_c2 value="c001" id=2015-10-15-1_c2c001><label for=2015-10-15-1_c2c001></label>
+ <input class=color type=radio name=2015-10-15-1_c2 value="c010" id=2015-10-15-1_c2c010><label for=2015-10-15-1_c2c010></label>
+ <input class=color type=radio name=2015-10-15-1_c2 value="c011" id=2015-10-15-1_c2c011><label for=2015-10-15-1_c2c011></label>
+ <input class=color type=radio name=2015-10-15-1_c2 value="c100" id=2015-10-15-1_c2c100 checked><label for=2015-10-15-1_c2c100></label>
+ <input class=color type=radio name=2015-10-15-1_c2 value="c101" id=2015-10-15-1_c2c101><label for=2015-10-15-1_c2c101></label>
+ <input class=color type=radio name=2015-10-15-1_c2 value="c110" id=2015-10-15-1_c2c110><label for=2015-10-15-1_c2c110></label>
+ <input class=color type=radio name=2015-10-15-1_c2 value="c111" id=2015-10-15-1_c2c111><label for=2015-10-15-1_c2c111></label>
+ <textarea name=2015-10-15-1_n2>
+Medikamentenallergie
+Komplikationen
+6. Rippe instabil
+ </textarea>
+ </fieldset>
+
+ <fieldset class=note>
+ <input class=color type=radio name=2015-10-15-1_c3 value="c000" id=2015-10-15-1_c3c000><label for=2015-10-15-1_c3c000></label>
+ <input class=color type=radio name=2015-10-15-1_c3 value="c001" id=2015-10-15-1_c3c001><label for=2015-10-15-1_c3c001></label>
+ <input class=color type=radio name=2015-10-15-1_c3 value="c010" id=2015-10-15-1_c3c010><label for=2015-10-15-1_c3c010></label>
+ <input class=color type=radio name=2015-10-15-1_c3 value="c011" id=2015-10-15-1_c3c011><label for=2015-10-15-1_c3c011></label>
+ <input class=color type=radio name=2015-10-15-1_c3 value="c100" id=2015-10-15-1_c3c100><label for=2015-10-15-1_c3c100></label>
+ <input class=color type=radio name=2015-10-15-1_c3 value="c101" id=2015-10-15-1_c3c101><label for=2015-10-15-1_c3c101></label>
+ <input class=color type=radio name=2015-10-15-1_c3 value="c110" id=2015-10-15-1_c3c110><label for=2015-10-15-1_c3c110></label>
+ <input class=color type=radio name=2015-10-15-1_c3 value="c111" id=2015-10-15-1_c3c111><label for=2015-10-15-1_c3c111></label>
+ <textarea name=2015-10-15-1_n3>
+ </textarea>
+ </fieldset>
+ <button type=submit name=edit value=2015-10-15-1_note3>Speichern</button>
+ </div>
+
+
+ <input class=tab type="checkbox" id=2015-10-22-1>
+ <label class=tab for=2015-10-22-1>
+ <span class=no>2.</span><!--
+ --><span class=date>22.10.2015</span><!--
+ --><span class=therapist>Josh</span><!--
+ --><span class=signature><button type=submit name=2015-10-22-1_sig value=neg></button></span>
+ </label>
+ <div class=tab>
+ <img class="dotmark ov" src="therapy_ov2015-10-22-1.png" alt="">
+
+ <fieldset class=note>
+ <input class=color type=radio name=2015-10-22-1_c1 value="c000" id=2015-10-22-1_c1c000><label for=2015-10-22-1_c1c000></label>
+ <input class=color type=radio name=2015-10-22-1_c1 value="c001" id=2015-10-22-1_c1c001><label for=2015-10-22-1_c1c001></label>
+ <input class=color type=radio name=2015-10-22-1_c1 value="c010" id=2015-10-22-1_c1c010><label for=2015-10-22-1_c1c010></label>
+ <input class=color type=radio name=2015-10-22-1_c1 value="c011" id=2015-10-22-1_c1c011><label for=2015-10-22-1_c1c011></label>
+ <input class=color type=radio name=2015-10-22-1_c1 value="c100" id=2015-10-22-1_c1c100><label for=2015-10-22-1_c1c100></label>
+ <input class=color type=radio name=2015-10-22-1_c1 value="c101" id=2015-10-22-1_c1c101><label for=2015-10-22-1_c1c101></label>
+ <input class=color type=radio name=2015-10-22-1_c1 value="c110" id=2015-10-22-1_c1c110><label for=2015-10-22-1_c1c110></label>
+ <input class=color type=radio name=2015-10-22-1_c1 value="c111" id=2015-10-22-1_c1c111><label for=2015-10-22-1_c1c111></label>
+ <textarea name=2015-10-22-1_n1>
+ </textarea>
+ </fieldset>
+ <button type=submit name=edit value=2015-10-22-1_note3>Speichern</button>
+ </div>
+
+ <fieldset class=color>
+ <input class=color type=radio name=color value="c000" id=c000><label for=c000></label>
+ <input class=color type=radio name=color value="c001" id=c001><label for=c001></label>
+ <input class=color type=radio name=color value="c010" id=c010><label for=c010></label>
+ <input class=color type=radio name=color value="c011" id=c011><label for=c011></label>
+ <input class=color type=radio name=color value="c100" id=c100 checked><label for=c100></label>
+ <input class=color type=radio name=color value="c101" id=c101><label for=c101></label>
+ <input class=color type=radio name=color value="c110" id=c110><label for=c110></label>
+ <input class=color type=radio name=color value="c111" id=c111><label for=c111></label>
+ </fieldset>
+ <img class="dotmark bg" src="therapy_background.png" alt="">
+</form>
+
+EOF
+# vi:set filetype=html: