From 1101ed20b030ffea3918707afc2c587a0a403bfa Mon Sep 17 00:00:00 2001 From: sunsetsystems Date: Sat, 16 Dec 2006 18:51:57 +0000 Subject: [PATCH] some contributed fixes for the acog forms --- contrib/acog/README | 7 ++ contrib/acog/acog.css | 218 ++++++++++++++++++++++++++++++++++++++ contrib/acog/acog.js | 164 ++++++++++++++++++++++++++++ contrib/acog/acog_menu.inc | 75 +++++++++++++ contrib/acog/acog_printable_h.css | 206 +++++++++++++++++++++++++++++++++++ contrib/acog/acog_printable_v.css | 203 +++++++++++++++++++++++++++++++++++ contrib/acog/acogros.js | 46 ++++++++ contrib/acog/print_form.php | 6 ++ contrib/forms/plist/new.php | 19 ++-- contrib/forms/plist/report.php | 1 + 10 files changed, 939 insertions(+), 6 deletions(-) create mode 100644 contrib/acog/README create mode 100644 contrib/acog/acog.css create mode 100644 contrib/acog/acog.js create mode 100644 contrib/acog/acog_menu.inc create mode 100644 contrib/acog/acog_printable_h.css create mode 100644 contrib/acog/acog_printable_v.css create mode 100644 contrib/acog/acogros.js create mode 100644 contrib/acog/print_form.php diff --git a/contrib/acog/README b/contrib/acog/README new file mode 100644 index 000000000..d6dec9a57 --- /dev/null +++ b/contrib/acog/README @@ -0,0 +1,7 @@ +These files are needed to support some of the contributed forms. + +This was all gathered up in a hurry and is not fully debugged yet. If you +find that a form is broken because it refers to one of these files in a +different location, please fix the form to reference the file in this location +(contrib/acog/) instead. + diff --git a/contrib/acog/acog.css b/contrib/acog/acog.css new file mode 100644 index 000000000..1e4b40f63 --- /dev/null +++ b/contrib/acog/acog.css @@ -0,0 +1,218 @@ +a { + font-family: Arial, Helvetica, sans-serif ! important; + font-size: 10px ! important; +} + +body { + font-family: Arial, Helvetica, sans-serif ! important; + font-size: 11px !important; + padding-top: 4px; + padding-right: 12px; + padding-bottom: 4px; + padding-left: 18px; +} +tr, td, p { + font-family: Arial, Helvetica, sans-serif ! important; + font-size: 10px; +} + +h1 { + font-family: Arial, Helvetica, sans-serif; + font-size: 18px +} +h1 small { + font-size: 10px; +} +h2 { + font-family: Arial, Helvetica, sans-serif; + font-size: 14px; font-weight: bold; + text-transform:uppercase; + padding: 0; margin: 0; +} +h2 small { + font-size: 11px; + text-transform: none; +} +.ficaption { + text-transform:uppercase; + font-weight: bold; + border-right-width: 1px; + border-right-style: solid; + border-right-color: #000000; + font-size: 9px; + font-family: Tahoma; + border-bottom-width: 1px; + border-bottom-style: solid; + border-bottom-color: #000000; +} +.fibody { + border-bottom-width: 1px; + border-bottom-style: solid; + border-bottom-color: #000000; + border-right-width: 1px; + border-right-style: solid; + border-right-color: #000000; + font-family: Arial, Helvetica, sans-serif; + font-size: 9px; + text-transform: uppercase; +} +.fitable { + border-top-width: 1px; + border-left-width: 1px; + border-top-style: solid; + border-left-style: solid; + border-top-color: #000000; + border-left-color: #000000; + background-color: #FFFFFF; +} +input, textarea { + font-family: Arial, Helvetica, sans-serif; + font-size: 11px; + vertical-align: bottom; + color:#000066 +} +.fullin{ + font-family: Arial, Helvetica, sans-serif; + width: 95%; + border-top-width: 0px; + border-right-width: 0px; + border-bottom-width: 1px; + border-left-width: 0px; + border-top-style: none; + border-right-style: none; + border-bottom-style: solid; + border-left-style: none; + border-bottom-color: #333333; + padding: 0; + text-transform: none; +} +p { + padding:0; margin: 0; +} +li { + text-transform: uppercase; + text-indent: 0pt; + list-style-position: inside; + list-style-type: square; + padding-top: 2px; + padding-bottom: 1px; + padding-left: 3px; +} +blockquote { + margin: 0px; + padding: 0px 0px 0px 24px; +} +.bordR { + border-right-width: 1px; + border-right-style: dotted; + border-right-color: #000000; +} +#bordR { + border-right-width: 1px; + border-right-style: solid; + border-right-color: #000000; +} +.srvCaption, .srvCaption input{ + font-family: Arial, Helvetica, sans-serif; + font-size:14px; + font-weight: normal; + text-transform:uppercase; +} +.srvChapter{ + font-family: Arial, Helvetica, sans-serif; + font-size:16px; + font-weight: bold; + text-transform: uppercase; + text-align: center; + width: 100%; + color:#FFFFFF; + background-color:#000000; + padding: 2pt 0; + margin: 12pt 0; +} +.fullin2 { + font-family: Arial, Helvetica, sans-serif; + width: 100%; + background-color: #EAEAEA; + border: none; + padding: 0; + text-transform: none; + color: #000000; +} +td.fibody2 { + border-bottom-width: 1px; + border-bottom-style: solid; + border-bottom-color: #000000; + font-family: Arial, Helvetica, sans-serif; + font-size: 9px; + text-transform: uppercase; +} +.ficaption2 { + text-transform:uppercase; + font-weight: bold; + border-bottom-width: 1px; + border-bottom-style: solid; + border-bottom-color: #000000; + font-size: 9px; + font-family: Tahoma; +} +.fiheader { + border-bottom-width: 1px; + border-bottom-style: solid; + border-bottom-color: #000000; + border-right-width: 1px; + border-right-style: solid; + border-right-color: #000000; + font-family: Arial, Helvetica, sans-serif; + font-size: 9px; + text-transform: uppercase; +} +.fibody3 { + font-family: Arial, Helvetica, sans-serif; + font-size: 9px; + text-transform: uppercase; +} +.ficaption3 { + text-transform:uppercase; + font-weight: bold; + font-size: 9px; + font-family: Tahoma; +} +td.fibody4 { + border-bottom-width: 1px; + border-bottom-style: solid; + border-bottom-color: #000000; + font-family: Arial, Helvetica, sans-serif; + font-size: 9px; + text-transform: uppercase; + padding-left: 24px; +} + +.tooltip { + font-size: 11px; + text-align: left; +} +.tooltip li{ + font-size: 9px; +} +.tooltip p{ + font-size: 11px; + text-transform: none; +} +.link_submit{ + font-size: 9pt ! important; + padding : 4px; + border: 1px solid black; + background-color: #cccccc; +} + +.link_submit:hover{ + background-color: #ccccff; + text-decoration: none; + border-color: blue; +} + +.link_submit:selected{ + border: 2pt inset blue; + background-color: #bbbbbb; +} \ No newline at end of file diff --git a/contrib/acog/acog.js b/contrib/acog/acog.js new file mode 100644 index 000000000..089c39ecc --- /dev/null +++ b/contrib/acog/acog.js @@ -0,0 +1,164 @@ +function MM_findObj(n, d) { //v4.01 + var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { + d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} + if(!(x=d[n])&&d.all) x=d.all[n]; + for (i=0;!x&&i' + + ''+ this.text + ''; + + if(document.layers) { + t = '
' + t + '
'; + this.sobj.document.write(t); + this.sobj.document.close(); + } + else { + this.sobj.border = '1px solid ' + this.borderColor; + this.setOpacity(); + if(document.getElementById) document.getElementById('ToolTip').innerHTML = t; + else document.all.ToolTip.innerHTML = t; + } + this.show(); + } + + this.init = function() { + if(document.getElementById) { + this.obj = document.getElementById('ToolTip'); + this.sobj = this.obj.style; + } + else if(document.all) { + this.obj = document.all.ToolTip; + this.sobj = this.obj.style; + } + else if(document.layers) { + this.obj = document.ToolTip; + this.sobj = this.obj; + } + } + + this.show = function() { + var ext = (document.layers ? '' : 'px'); + var left = mouseX; + + if(left + this.width + this.cursorDistance > winX) left -= this.width + this.cursorDistance; + else left += this.cursorDistance; + + this.sobj.left = left + ext; + this.sobj.top = mouseY + this.cursorDistance + ext; + + if(!this.active) { + this.sobj.visibility = 'visible'; + this.active = true; + } + } + + this.hide = function() { + if(this.sobj) this.sobj.visibility = 'hidden'; + this.active = false; + } + + this.setOpacity = function() { + this.sobj.filter = 'alpha(opacity=' + this.opacity + ')'; + this.sobj.mozOpacity = '.1'; + if(this.obj.filters) this.obj.filters.alpha.opacity = this.opacity; + if(!document.all && this.sobj.setProperty) this.sobj.setProperty('-moz-opacity', this.opacity / 100, ''); + } + } + + var tooltip = mouseX = mouseY = winX = 0; + + if(document.layers) { + document.write(''); + document.captureEvents(Event.MOUSEMOVE); + } + else document.write('
'); + document.onmouseover = getMouseXY; + + function getMouseStub(e){ + } + + function getMouseXY(e) { + if(document.all) { + mouseX = event.clientX + document.body.scrollLeft; + mouseY = event.clientY + document.body.scrollTop; + } + else { + mouseX = e.pageX; + mouseY = e.pageY; + } + if(mouseX < 0) mouseX = 0; + if(mouseY < 0) mouseY = 0; + + if(document.body && document.body.offsetWidth) winX = document.body.offsetWidth - 25; + else if(window.innerWidth) winX = window.innerWidth - 25; + else winX = screen.width - 25; + + if(tooltip && tooltip.active) tooltip.show(); + } + + function toolTip(text, width, opacity) { + if(text) { + tooltip = new TOOLTIP(); + tooltip.text = text; + if(width) tooltip.width = width; + if(opacity) tooltip.opacity = opacity; + tooltip.create(); + } + else if(tooltip) tooltip.hide(); +} + + diff --git a/contrib/acog/acog_menu.inc b/contrib/acog/acog_menu.inc new file mode 100644 index 000000000..922afcbb0 --- /dev/null +++ b/contrib/acog/acog_menu.inc @@ -0,0 +1,75 @@ + + +
+
+

 Encounter

+ Encounter for: +
+".$iter{"form_name"}." by ".$user['fname']." ".$user['lname'] ."

\n"; + } +} +?> +
+ +
+ +
+

 Form actions

+ + + +
+ + + + +


+ Save filled form to make additional actions (printable, email, pdf) visible. +

+ +
+
\ No newline at end of file diff --git a/contrib/acog/acog_printable_h.css b/contrib/acog/acog_printable_h.css new file mode 100644 index 000000000..81653ad9f --- /dev/null +++ b/contrib/acog/acog_printable_h.css @@ -0,0 +1,206 @@ + \ No newline at end of file diff --git a/contrib/acog/acog_printable_v.css b/contrib/acog/acog_printable_v.css new file mode 100644 index 000000000..2719aca17 --- /dev/null +++ b/contrib/acog/acog_printable_v.css @@ -0,0 +1,203 @@ + \ No newline at end of file diff --git a/contrib/acog/acogros.js b/contrib/acog/acogros.js new file mode 100644 index 000000000..e6001a435 --- /dev/null +++ b/contrib/acog/acogros.js @@ -0,0 +1,46 @@ +// (c) Aire :) 2005 + +function InitSection(){ + var i; // elements iterator + var funct; + var l = document.my_form.elements.length; + for (i=0;i diff --git a/contrib/forms/plist/new.php b/contrib/forms/plist/new.php index ba4a7fc60..88a4bd335 100644 --- a/contrib/forms/plist/new.php +++ b/contrib/forms/plist/new.php @@ -73,12 +73,19 @@ if ($old) { diff --git a/contrib/forms/plist/report.php b/contrib/forms/plist/report.php index eb86ccf16..feb51797c 100644 --- a/contrib/forms/plist/report.php +++ b/contrib/forms/plist/report.php @@ -2,6 +2,7 @@