translations for product registration dialog close (#330)
[openemr.git] / interface / main / about_page.php
blobba0695253811d4173368e62f89beb22cd5805795
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) 2016 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.
31 $fake_register_globals=false;
32 $sanitize_all_escapes=true;
34 require_once("../globals.php");
36 <html>
37 <head>
38 <link rel="stylesheet" href="<?php echo $GLOBALS['assets_static_relative']; ?>/bootstrap-3-3-4/dist/css/bootstrap.min.css">
39 <link rel="stylesheet" href="<?php echo $GLOBALS['assets_static_relative'] ?>/jquery-ui-1-11-4/themes/ui-darkness/jquery-ui.min.css" />
40 <link rel="stylesheet" href="<?php echo $GLOBALS['assets_static_relative']; ?>/font-awesome-4-6-3/css/font-awesome.min.css">
41 <link rel="stylesheet" href="<?php echo $css_header; ?>" type="text/css">
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" src="<?php echo $GLOBALS['assets_static_relative'] ?>/jquery-min-2-2-0/index.js"></script>
73 <script type="text/javascript" src="<?php echo $GLOBALS['assets_static_relative']; ?>/bootstrap-3-3-4/dist/js/bootstrap.min.js"></script>
74 <script type="text/javascript" src="<?php echo $GLOBALS['assets_static_relative'] ?>/jquery-ui-1-11-4/jquery-ui.min.js"></script>
76 <script type="text/javascript">
77 var registrationTranslations = <?php echo json_encode(array(
78 'title' => xla('OpenEMR Product Registration'),
79 'pleaseProvideValidEmail' => xla('Please provide a valid email address'),
80 'success' => xla('Success'),
81 'registeredSuccess' => xla('Your installation of OpenEMR has been registered'),
82 'submit' => xla('Submit'),
83 'noThanks' => xla('No Thanks'),
84 'registeredEmail' => xla('Registered email'),
85 'registeredId' => xla('Registered id'),
86 'genericError' => xla('Error. Try again later'),
87 'closeTooltip' => xla('Close')
88 ));
89 ?>;
91 var registrationConstants = <?php echo json_encode(array(
92 'webroot' => $GLOBALS['webroot']
94 ?>;
95 </script>
97 <script type="text/javascript" src="<?php echo $webroot ?>/interface/product_registration/product_registration_service.js?v=<?php echo $v_js_includes; ?>"></script>
98 <script type="text/javascript" src="<?php echo $webroot ?>/interface/product_registration/product_registration_controller.js?v=<?php echo $v_js_includes; ?>"></script>
100 <script type="text/javascript">
101 jQuery(document).ready(function() {
102 var productRegistrationController = new ProductRegistrationController();
103 productRegistrationController.getProductRegistrationStatus(function(err, data) {
104 if (err) { return; }
106 if (data.status === 'UNREGISTERED') {
107 productRegistrationController.showProductRegistrationModal();
108 } else if (data.status === 'REGISTERED') {
109 productRegistrationController.displayRegistrationInformationIfDivExists(data);
113 </script>
114 </head>
116 <body class="body_top">
117 <div style="text-align: center;">
118 <span class="title"><?php echo xlt('About OpenEMR'); ?> </span><br><br>
119 <span class="text"><?php echo xlt('Version Number'); ?>: <?php echo "v".text($openemr_version) ?></span><br><br>
120 <span class="text product-registration"><span class="email"></span> <span class="id"></span></span><br><br>
121 <?php if (!empty($GLOBALS['support_phone_number'])) { ?>
122 <span class="text"><?php echo xlt('Support Phone Number'); ?>: <?php echo $GLOBALS['support_phone_number'] ?></span><br><br>
123 <?php } ?>
124 </div>
125 <a href="<?php echo "http://open-emr.org/wiki/index.php/OpenEMR_".attr($v_major).".".attr($v_minor).".".attr($v_patch)."_Users_Guide"; ?>" target="_blank" class="css_button"><span><?php echo xlt('User Manual'); ?></span></a><br><br>
126 <?php if (!empty($GLOBALS['online_support_link'])) { ?>
127 <a href='<?php echo $GLOBALS["online_support_link"]; ?>' target="_blank" class="css_button"><span><?php echo xlt('Online Support'); ?></span></a><br><br>
128 <?php } ?>
129 <a href="../../acknowledge_license_cert.html" target="_blank" class="css_button"><span><?php echo xlt('Acknowledgments, Licensing and Certification'); ?></span></a><br>
130 <div class="donations-needed">
131 <span class="text"><?php echo xlt("Please consider sending in a donation to OpenEMR"); ?>:</span><br>
132 <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>
133 </div>
135 <div class="product-registration-modal" style="display: none">
136 <p class="context"><?php echo xlt("Register your installation with OEMR 501(c)(3) to receive important notifications, such as security fixes and new release announcements."); ?></p>
137 <input placeholder="<?php echo xlt('email'); ?>" type="email" class="email" style="width: 100%; color: black" />
138 <p class="message" style="font-style: italic"></p>
139 </div>
140 </body>
141 </html>