7 * @link https://www.open-emr.org
8 * @author Ranganath Pathak <pathak@scrs1.org>
9 * @author Brady Miller <brady.g.miller@gmail.com>
10 * @copyright Copyright (c) 2018 Ranganath Pathak <pathak@scrs1.org>
11 * @copyright Copyright (c) 2018-2020 Brady Miller <brady.g.miller@gmail.com>
12 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
15 require_once('globals.php');
20 $close = xla("Close");
21 $print = xla("Print");
25 <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
26 <div class="modal-dialog modal-lg">
27 <div class="modal-content oe-modal-content" style="height: 700px">
28 <div class="modal-header clearfix">
29 <button type="button" class="close" data-dismiss="modal" aria-label=$close>
30 <span aria-hidden="true" class="text-body" style="font-size: 1.5rem;">×</span></button>
32 <div class="modal-body" style="height:80%;">
33 <iframe src="" id="targetiframe" class="border-0 h-100 w-100" style="overflow-x: hidden;" allowtransparency="true"></iframe>
35 <div class="modal-footer mt-0">
36 <button class="btn btn-link btn-cancel oe-pull-away" data-dismiss="modal" type="button">$close</button>
37 <!--<button class="btn btn-secondary btn-print oe-pull-away" data-dismiss="modal" id="print-help-href" type="button">$print</button>-->
48 var helpFilePath
= '<?php echo "$webroot/Documentation/help_files/"?>';
50 $
('#help-href').click (function(){
51 document
.getElementById('targetiframe').src
= helpFilePath + helpFile
;
54 <?php
//print needs work on ie, edge browsers?>
56 $
('#print-help-href').click (function(){
57 $
("#targetiframe").get(0).contentWindow
.print();
62 $
(".modal-dialog").addClass('drag-action');
63 $
(".modal-content").addClass('resize-action');