X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Ftherapy.html.sh;h=63216ad703ced7ce40ca7120f70d4362e2932c3a;hp=cb3cf26850a0183e2360ce79f7d25f834eb3769e;hb=2d1ff8e80efbded90e01dc0fe477757bbc7e08f0;hpb=fdfc261b61998249782240ecb0d40a10d44936a9;ds=sidebyside diff --git a/templates/therapy.html.sh b/templates/therapy.html.sh index cb3cf26..63216ad 100755 --- a/templates/therapy.html.sh +++ b/templates/therapy.html.sh @@ -15,128 +15,284 @@ # You should have received a copy of the GNU Affero General Public License # along with Confetti. If not, see . +t_session_note(){ + session_n="$1" + note_n="$2" + + color=session${session_n}_note${note_n}_color + unset c0 c1 c2 c3 c4 c5 c6 c7 + + case "$tpy[$color]" in + \#888) c0=checked;; + \#00A) c1=checked;; + \#0A0) c2=checked;; + \#0AA) c3=checked;; + \#A00) c4=checked;; + \#A0A) c5=checked;; + \#AA0) c6=checked;; + *) c7=checked;; + esac + +if [ "$note_n" -eq 1 -o -n "${tpy[session${session_n}_note${note_n}]}" ]; then + printf '' +else + printf '' +fi cat < -

Behandlungen

+
+ + + + + + + + + +
+EOF +} -
-

Flrbrlprrf Zoidberg

- < zur Patientenliste - Gemeinsame Betriebskrankenkasse der Gesellschaften der Textilgruppe Hof -
+t_session(){ + session_n="$1" -
-

Verordnung

- -
    -
  • 6x MT
  • -
  • 6x Fango
  • -
- ??? - -
+ sid=session${session_n} - + if [ "$tpy[${sid}_sigset]" = pos ]; then + sigcheck=checked + else + unset sigcheck + fi - -