X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Ftherapy.html.sh;h=0c91487cee322764b670f06608a124cf98d7f1fe;hp=e9781e9bc52f7c27ad47b66e112e21b35bab0ac2;hb=b0ab910afe1f7fec143a23e96c72e4f9a66db2bf;hpb=a9d6bfdfa84de24b8800b6d34b24c28cbdb2feb4 diff --git a/templates/therapy.html.sh b/templates/therapy.html.sh index e9781e9..0c91487 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,45 +125,65 @@ case "$tpy[color]" in esac cat <Behandlungen +

$(l10n therapy)

-
-

$client_name

- < $(l10n prescriptionlist) -
+
+

$client_name

+ < $(l10n prescriptionlist) +
-
-

$(l10n therapy_prescription)

- ${mpx[insurance]} - -
    - ${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)} + +
    + ${mpx[remidy]:+
  • ${mpx[quantity]} ${mpx[remidy]} ${mpx[quantity_weekly]:+($mpx[quantity_weekly] $(l10n weekly))}
  • } + ${mpx[remidy1]:+
  • ${mpx[quantity1]} ${mpx[remidy1]} ${mpx[quantity_weekly1]:+($mpx[quantity_weekly1] $(l10n weekly))}
  • } +
+ + ${mpx[indicator]:+${mpx[indicator]}} + ${mpx[icd10]:+ ${mpx[icd10]}} + + ${mpx[addcontrib]:+ + + } +
+ +
+ + + +
+ +EOF - $(therapy_sessions) +therapy_sessions +cat < @@ -174,7 +194,7 @@ cat < - + WARNING: Background Image not available! @@ -190,39 +210,55 @@ cat <= 800 ){ + sx=Math.floor(cscaleW * (x - canvas.offsetLeft)) + sy=Math.floor(cscaleH * (y - canvas.offsetTop)) + } else { + sx=Math.floor(cscaleW * (x - canvas.offsetLeft + window.pageXOffset)) + sy=Math.floor(cscaleH * (y - canvas.offsetTop + window.pageYOffset)) + } + image.lineTo( sx, sy ) + image.stroke() - image_serialize += " circle " + sx + "," + sy + " " + (sx-5) + "," + sy + image_serialize += " " + sx + "," + sy + } } - window.addEventListener( 'mouseup', function() { mouse = 0 - dbg.innerHTML = image_serialize - data.value = image_serialize - } ) - canvas.addEventListener( 'mousedown', function(e) { + function drawstart(x, y) { mouse = 1 cscaleW = canvas.width / canvas.clientWidth cscaleH = canvas.height / canvas.clientHeight - circle(e.clientX, e.clientY) - } ) - canvas.addEventListener( 'mousemove', function(e) { - if ( mouse == 1 ) { circle(e.clientX, e.clientY) } - } ) + image_serialize += " polyline" + image.beginPath() + draw(x, y) + } + function drawstop() { + mouse = 0 + image.closePath() + dbg.innerHTML = image_serialize + data.value = image_serialize + } + + window.addEventListener( 'mouseup', function() { drawstop() } ) + canvas.addEventListener( 'mousedown', function(e) { drawstart(e.clientX, e.clientY) } ) + canvas.addEventListener( 'mousemove', function(e) { draw(e.clientX, e.clientY) } ) + + window.addEventListener( 'touchend', function() { drawstop() } ) + canvas.addEventListener( 'touchstart', function(e) { drawstart(e.touches[0].clientX, e.touches[0].clientY) } ) + canvas.addEventListener( 'touchmove', function(e) { e.preventDefault(); draw(e.touches[0].clientX, e.touches[0].clientY) } ) + -->