1 <?xml version=
"1.0" encoding=
"ISO-8859-1"?>
2 <!-- Generated by Hand -->
4 Copyright (C) 2011 Julia Longtin <julia.longtin@gmail.com>
6 This program is free software; you can redistribute it and/or
7 Modify it under the terms of the GNU General Public License
8 as published by the Free Software Foundation; either version 2
9 of the License, or (at your option) any later version.
11 <xsl:stylesheet version=
"1.0"
12 xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform">
13 <xsl:output method=
"xml" omit-xml-declaration=
"yes"/>
14 <xsl:include href=
"common_objects.xslt"/>
15 <xsl:include href=
"field_objects.xslt"/>
16 <xsl:strip-space elements=
"*"/>
17 <xsl:template match=
"/">
18 <xsl:apply-templates select=
"form"/>
20 <!-- The variable telling field_objects.xslt what form is calling it -->
21 <xsl:variable name=
"page">print
</xsl:variable>
22 <!-- if fetchrow has contents, a variable with that name will be created by field_objects.xslt, and all fields created by it will retreive values from it. -->
23 <xsl:variable name=
"fetchrow">xyzzy
</xsl:variable>
24 <xsl:template match=
"form">
25 <xsl:text disable-output-escaping=
"yes"><![CDATA[
<?php
27 * The page shown when the user requests to print this form. This page automatically prints itsself, and closes its parent browser window.
30 /* for $GLOBALS[], ?? */
31 require_once('../../globals.php');
32 /* for acl_check(), ?? */
33 require_once($GLOBALS['srcdir'].'/api.inc');
34 /* for generate_form_field, ?? */
35 require_once($GLOBALS['srcdir'].'/options.inc.php');
38 <!-- these templates generate PHP code -->
39 <xsl:apply-templates select=
"table|RealName|safename|acl|style"/>
40 <xsl:apply-templates select=
"layout" mode=
"head"/>
41 <xsl:text disable-output-escaping=
"yes"><![CDATA[
42 $returnurl = $GLOBALS['concurrent_layout'] ? 'encounter_top.php' : 'patient_encounter.php';
45 <xsl:apply-templates select=
"//field[@type='date']" mode=
"split_timeofday"/>
46 <xsl:call-template name=
"generate_chkdata"/>
47 <xsl:text disable-output-escaping=
"yes"><![CDATA[
48 ?><!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
50 <html xmlns=
"http://www.w3.org/1999/xhtml" xml:
lang=
"en">
53 <!-- declare this document as being encoded in UTF-8 -->
54 <meta http-equiv=
"Content-Type" content=
"text/html;charset=utf-8" ></meta>
56 <!-- supporting javascript code -->
58 <script type=
"text/javascript" src=
"<?php echo $GLOBALS['webroot']; ?>/library/dialog.js"></script>
59 <script type=
"text/javascript" src=
"<?php echo $GLOBALS['webroot']; ?>/library/textformat.js"></script>
61 <!-- Global Stylesheet -->
62 <link rel=
"stylesheet" href=
"<?php echo $css_header; ?>" type=
"text/css"/>
63 <!-- Form Specific Stylesheet. -->
64 <link rel=
"stylesheet" href=
"../../forms/<?php echo $form_folder; ?>/style.css" type=
"text/css"/>
65 <title><?php echo htmlspecialchars('Print '.$form_name);
?></title>
68 <body class=
"body_top">
70 <div class=
"print_date"><?php xl('Printed on ','e'); echo date('F d, Y', time());
?></div>
72 <form method=
"post" id=
"<?php echo $form_folder; ?>" action=
"">
73 <div class=
"title"><?php xl($form_name,'e');
?></div>
75 <!-- container for the main body of the form -->
76 <div id=
"print_form_container">
80 <xsl:apply-templates select=
"H2|H3|H4|manual|layout"/>
81 <xsl:text disable-output-escaping=
"yes"><![CDATA[
84 </div><!-- end print_form_container -->
87 <script type=
"text/javascript">
97 <!-- LocalWords: Stylesheet