preparing for 5.0.1 release in several weeks (#1509)
[openemr.git] / interface / main / about_page.php
blob065fcfbcb1dbad481ead1754d9e3f4c6a8fe002f
1 <?php
2 /**
3 * OpenEMR About Page
5 * This Displays an About page for OpenEMR Displaying Version Number, Support Phone Number
6 * If it have been entered in Globals along with the Manual and On Line Support Links
8 * Copyright (C) 2016 Terry Hill <terry@lillysystems.com>
9 * Copyright (C) 2017 Brady Miller <brady.g.miller@gmail.com>
11 * LICENSE: This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version 3
14 * of the License, or (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program. If not, see <http://opensource.org/licenses/gpl-license.php>;.
22 * @package OpenEMR
23 * @author Terry Hill <terry@lilysystems.com>
24 * @author Brady Miller <brady.g.miller@gmail.com>
25 * @link http://www.open-emr.org
27 * Please help the overall project by sending changes you make to the author and to the OpenEMR community.
32 require_once("../globals.php");
34 use OpenEMR\Core\Header;
35 use OpenEMR\Services\VersionService;
38 <html>
39 <head>
41 <?php Header::setupHeader(["jquery-ui","jquery-ui-darkness"]); ?>
42 <title><?php echo xl("About");?> OpenEMR</title>
43 <style>
44 .donations-needed {
45 margin-top: 25px;
46 margin-bottom: 25px;
47 color: #c9302c;
49 .donations-needed a, .donations-needed a:visited,
50 .donations-needed a:active {
51 color: #c9302c;
53 .donations-needed a.btn {
54 color: #c9302c;
55 text-align: center;
56 font-size: 1.5em;
57 font-weight: bold;
58 animation: all 2s;
60 .donations-needed a.btn:hover {
61 background-color: #c9302c;
62 color: #fff;
64 .donations-needed .btn {
65 border-radius: 8px;
66 border: 2px solid #c9302c;
67 color: #c9302c;
68 background-color: transparent;
70 </style>
72 <script type="text/javascript">
73 var registrationTranslations = <?php echo json_encode(array(
74 'title' => xla('OpenEMR Product Registration'),
75 'pleaseProvideValidEmail' => xla('Please provide a valid email address'),
76 'success' => xla('Success'),
77 'registeredSuccess' => xla('Your installation of OpenEMR has been registered'),
78 'submit' => xla('Submit'),
79 'noThanks' => xla('No Thanks'),
80 'registeredEmail' => xla('Registered email'),
81 'registeredId' => xla('Registered id'),
82 'genericError' => xla('Error. Try again later'),
83 'closeTooltip' => ''
84 ));
85 ?>;
87 var registrationConstants = <?php echo json_encode(array(
88 'webroot' => $GLOBALS['webroot']
90 ?>;
91 </script>
93 <script type="text/javascript" src="<?php echo $webroot ?>/interface/product_registration/product_registration_service.js?v=<?php echo $v_js_includes; ?>"></script>
94 <script type="text/javascript" src="<?php echo $webroot ?>/interface/product_registration/product_registration_controller.js?v=<?php echo $v_js_includes; ?>"></script>
96 <script type="text/javascript">
97 jQuery(document).ready(function() {
98 var productRegistrationController = new ProductRegistrationController();
99 productRegistrationController.getProductRegistrationStatus(function(err, data) {
100 if (err) { return; }
102 if (data.statusAsString === 'UNREGISTERED') {
103 productRegistrationController.showProductRegistrationModal();
104 } else if (data.statusAsString === 'REGISTERED') {
105 productRegistrationController.displayRegistrationInformationIfDivExists(data);
109 </script>
110 </head>
111 <?php
112 $versionService = new VersionService();
113 $version = $versionService->fetch();
115 <body class="body_top">
116 <div class="container">
117 <div class="row">
118 <div class="col-xs-12 col-md-4 col-md-offset-4 text-center">
119 <div class="page-header">
120 <h1><?php echo xlt("About");?>&nbsp;OpenEMR</h1>
121 </div>
122 <h4><?php echo xlt('Version Number'); ?>: <?php echo "v".text($openemr_version) ?></h4>
123 <span class="text product-registration"><span class="email"></span> <span class="id"></span></span><br>
124 <?php if (!empty($GLOBALS['support_phone_number'])) { ?>
125 <span class="text"><?php echo xlt('Support Phone Number'); ?>: <?php echo $GLOBALS['support_phone_number'] ?></span><br>
126 <?php } ?>
127 <a href="<?php echo "http://open-emr.org/wiki/index.php/OpenEMR_".attr($version->getMajor()).".".attr($version->getMinor()).".".attr($version->getPatch())."_Users_Guide"; ?>" target="_blank" class="btn btn-block btn-default"><i class="fa fa-fw fa-book"></i>&nbsp;<?php echo xlt('User Manual'); ?></a>
128 <?php if (!empty($GLOBALS['online_support_link'])) { ?>
129 <a href='<?php echo $GLOBALS["online_support_link"]; ?>' target="_blank" class="btn btn-default btn-block"><i class="fa fa-fw fa-question-circle"></i>&nbsp;<?php echo xlt('Online Support'); ?></a>
130 <?php } ?>
131 <a href="../../acknowledge_license_cert.html" target="_blank" class="btn btn-default btn-block"><i class="fa fa-fw fa-info-circle"></i><?php echo xlt('Acknowledgments, Licensing and Certification'); ?></a>
132 <div class="donations-needed">
133 <span class="text"><?php echo xlt("Please consider sending in a donation to"); ?> OpenEMR:</span><br>
134 <a href="http://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=V6EVVTYYK264C" target="_blank" class="btn btn-lg btn-block"><i class="fa fa-2x fa-heart"></i><br/><?php echo xlt("DONATE NOW!"); ?></a>
135 </div>
136 </div>
137 </div>
140 <div class="product-registration-modal" style="display: none">
141 <p class="context"><?php echo xlt("Register your installation with OEMR to receive important notifications, such as security fixes and new release announcements."); ?></p>
142 <input placeholder="<?php echo xlt('email'); ?>" type="email" class="email" style="width: 100%; color: black" />
143 <p class="message" style="font-style: italic"></p>
144 </div>
145 </body>
146 </html>