Fix: delete entry in immunization (#7346)
[openemr.git] / interface / help_modal.php
blob1a6d547931bdb6df8771dd327ec4a8a4b5f97502
1 <?php
3 /**
4 * Help modal.
6 * @package OpenEMR
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');
18 <br />
19 <?php
20 $close = xla("Close");
21 $print = xla("Print");
23 $help_modal = <<<HELP
24 <div class="row">
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;">&times;</span></button>
31 </div>
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>
34 </div>
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>-->
38 </div>
39 </div>
40 </div>
41 </div>
42 </div>
43 HELP;
45 echo $help_modal;
47 <script>
48 var helpFilePath = '<?php echo "$webroot/Documentation/help_files/"?>';
49 $(function () {
50 $('#help-href').click (function(){
51 document.getElementById('targetiframe').src = helpFilePath + helpFile;
53 });
54 <?php //print needs work on ie, edge browsers?>
55 $(function () {
56 $('#print-help-href').click (function(){
57 $("#targetiframe").get(0).contentWindow.print();
59 });
61 // Jquery draggable
62 $(".modal-dialog").addClass('drag-action');
63 $(".modal-content").addClass('resize-action');
64 </script>