X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Ftherapy.html.sh;h=05c50fd157f8338afa524c325cfbc568048703d2;hp=0b3bfbe2574298b5279bd7747d06a374b2cecb54;hb=9b13f7013dd882029ab3cf106d659a48243d910d;hpb=ef6fdf91d47347a43164ae8edfcc0dce6329af3f diff --git a/templates/therapy.html.sh b/templates/therapy.html.sh index 0b3bfbe..05c50fd 100755 --- a/templates/therapy.html.sh +++ b/templates/therapy.html.sh @@ -79,7 +79,7 @@ cat <
- + $(n=1; while [ -n "${tpy[${sid}_note${n}]+x}" ]; do t_session_note $session_n $n n=$(($n+1)) @@ -103,10 +103,10 @@ therapy_sessions(){ cat < - … + --> EOF @@ -125,46 +125,67 @@ case "$tpy[color]" in esac cat <Behandlungen +

$(l10n therapy)

-
-

$client_name

- < $(l10n prescriptionlist) -
+
+

$client_name

+ < $(l10n prescriptionlist) +
-
-

$(l10n therapy_prescription)

- ${mpx[insurance]} - ${mpx[date]} - -
    - ${mpx[remidy]:+
  • ${mpx[quantity]} ${mpx[remidy]}
  • } - ${mpx[remidy1]:+
  • ${mpx[quantity1]} ${mpx[remidy1]}
  • } -
- - ${mpx[addcontrib]:+ - - } -
+
+

$(l10n therapy_prescription)

+ ${mpx[insurance]} + ${mpx[date]} + + + + ${mpx[prescno]:+$(l10n presc${mpx[prescno]})} + ${mpx[grouptherapy]:+$(l10n grouptherapy)} + ${mpx[housecall]:+$(l10n housecall)} + ${mpx[report]:+$(l10n report)} + +
    $(for n in '' {0..10}; do + [ -n "${mpx[remidy$n]}" ] && \ + printf '
  • %s %s %s
  • ' "${mpx[quantity$n]}" \ + "${mpx[remidy$n]}" \ + "${mpx[quantity_weekly$n]:+($mpx[quantity_weekly$n] $(l10n weekly))}" + done)
+ + ${mpx[indicator]:+${mpx[indicator]}} + ${mpx[icd10]:+ ${mpx[icd10]}} + + ${mpx[addcontrib]:+ + + } +
+ +
+ + + +
+ +EOF - $(therapy_sessions) +therapy_sessions +cat < @@ -175,7 +196,7 @@ cat < - + WARNING: Background Image not available! @@ -191,27 +212,27 @@ cat <= 800 ){ sx=Math.floor(cscaleW * (x - canvas.offsetLeft)) sy=Math.floor(cscaleH * (y - canvas.offsetTop)) } else { - sx=Math.floor(cscaleW * (x - canvas.offsetLeft + body.scrollLeft)) - sy=Math.floor(cscaleH * (y - canvas.offsetTop + body.scrollTop)) + sx=Math.floor(cscaleW * (x - canvas.offsetLeft + window.pageXOffset)) + sy=Math.floor(cscaleH * (y - canvas.offsetTop + window.pageYOffset)) } - image.beginPath() - image.arc( sx, sy, 5, 0, 2 * Math.PI ) - image.fill() - image.closePath() + image.lineTo( sx, sy ) + image.stroke() - image_serialize += " circle " + sx + "," + sy + " " + (sx-5) + "," + sy + image_serialize += " " + sx + "," + sy } } @@ -221,21 +242,24 @@ cat <