3 * Multi Site Administration Help.
6 * @link http://www.open-emr.org
7 * @author Ranganath Pathak <pathak@scrs1.org>
8 * @copyright Copyright (c) 2019 Ranganath Pathak <pathak@scrs1.org>
9 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
15 <link rel
=stylesheet href
="../../public/themes/style_light.css">
16 <link rel
="stylesheet" href
="../../public/assets/bootstrap/dist/css/bootstrap.min.css" type
="text/css">
17 <link rel
="stylesheet" href
="../../public/assets/jquery-ui/jquery-ui.css" type
="text/css">
18 <script type
="text/javascript" src
="../../public/assets/jquery/dist/jquery.min.js"></script
>
19 <script type
="text/javascript" src
="../../public/assets/bootstrap/dist/js/bootstrap.min.js"></script
>
20 <link rel
="stylesheet" href
="../../public/assets/font-awesome/css/font-awesome.min.css" type
="text/css">
21 <link rel
="shortcut icon" href
="../../public/images/favicon.ico" />
22 <script type
="text/javascript" src
="../../public/assets/jquery-ui/jquery-ui.js"></script
>
23 <title
><?php
echo ("Multi Site Administration Help");?
></title
>
25 @media only screen
and (max
-width
: 768px
) {
28 text
-align
:left
!Important
;
34 <div
class="container oe-help-container">
36 <center
><h2
><a name
='entire_doc'><?php
echo ("OpenEMR Multi Site Administration");?
></a
></h2
></center
>
39 <div
class="col-sm-12">
40 <p
><?php
echo ("This is the central location to manage multisite intallations");?
>.
42 <p
><?php
echo ("It serves three functions");?
>:
44 <li
><?php
echo ("Tabulates all sites that have been installed using the multisite module with ability to login to each site"); ?
></li
>
45 <li
><?php
echo ("Keeps track of the version and status of the site's database, access control list tables and patch status"); ?
></li
>
46 <li
><?php
echo ("Lets the user add a new site using the multisite module"); ?
></li
>
49 <p
><?php
echo ("Initially it will have only the 'default' site installed");?
>.
51 <p
><?php
echo ("The displayed table will have six columns - 'Site ID', 'DB Name', 'Site Name', 'Version', 'Is Current', and 'Log In'");?
>.
53 <p
><?php
echo ("<strong>Site ID</strong> - unique ID of the site, should be one word, preferably lower case");?
>.
55 <p
><?php
echo ("This will be used to identify which site to login to");?
>.
57 <p
><?php
echo ("The site-specific non-database patient data will be stored in a sub-directory bearing the site ID in the 'sites' directory");?
>.
59 <p
><?php
echo ("<strong>DB Name</strong> - the name of the database containing site-specific data");?
>.
61 <p
><?php
echo ("<strong>Site Name</strong> - by default it will be OpenEMR, once the site is setup this can be changed for that instance by going to Administration > Appearance > Application Title");?
>.
63 <p
><?php
echo ("<strong>Version</strong> - the version of the current installation");?
>.
65 <p
><?php
echo ("As the script files are common to all sites, it would be imperative that all sites have the same version number");?
>.
67 <p
><?php
echo ("<strong>Is Current</strong> - Whether on not the the site's installed database, access control list version and patch status is current i.e. the OpenEMR scripts will work with the installed database, the latest access control lists are available and that the required patches have been applied and is up to date ");?
>.
69 <p
><?php
echo ("<strong>Log In</strong> - That will let you login to the particular site");?
>.
71 <p
><?php
echo ("Clicking the 'Add a New Site' button will take you to 'Optional Site ID Selection' page that will begin the process of adding a new site using the setup script");?
>.
73 <p
><?php
echo ("More information on how to use the multisite module is available by clicking the help icon on the 'Optional Site ID Selection' page");?
>.
77 </div
><!--end of container div
-->
79 $
('#show_hide').click(function() {
80 var elementTitle
= $
('#show_hide').prop('title');
81 var hideTitle
= '<?php echo xla('Click to Hide
'); ?>';
82 var showTitle
= '<?php echo xla('Click to Show
'); ?>';
83 $
('.hideaway').toggle('1000');
84 $
(this
).toggleClass('fa-eye-slash fa-eye');
85 if (elementTitle
== hideTitle
) {
86 elementTitle
= showTitle
;
87 } else if (elementTitle
== showTitle
) {
88 elementTitle
= hideTitle
;
90 $
('#show_hide').prop('title', elementTitle
);
95 // better script for tackling nested divs
96 $
('.show_hide').click(function() {
97 var elementTitle
= $
(this
).prop('title');
98 var hideTitle
= '<?php echo xla('Click to Hide
'); ?>';
99 var showTitle
= '<?php echo xla('Click to Show
'); ?>';
100 //$('.hideaway').toggle('1000');
101 $
(this
).parent().parent().closest('div').children('.hideaway').toggle('1000');
102 if (elementTitle
== hideTitle
) {
103 elementTitle
= showTitle
;
104 $
(this
).toggleClass('fa-eye-slash fa-eye');
105 } else if (elementTitle
== showTitle
) {
106 elementTitle
= hideTitle
;
107 $
(this
).toggleClass('fa-eye fa-eye-slash');
109 $
(this
).prop('title', elementTitle
);