Slimmed down version of class OemrUI - Take 4 (#2044)
commit2fbcd2793d2165ae84bc6e874afb1da0d5260cc3
authorzbig01 <zbig01@users.noreply.github.com>
Sun, 16 Dec 2018 11:44:34 +0000 (16 03:44 -0800)
committerBrady Miller <brady.g.miller@gmail.com>
Sun, 16 Dec 2018 11:44:34 +0000 (16 03:44 -0800)
tree7a7b598dbf66345a0cf8a2172fae861928ca827a
parentd2f0591efb69522a9e4a20c814ea30fb7cf309a6
Slimmed down version of class OemrUI  - Take 4 (#2044)

* Slimmed down version of class OemrUI

Easy to implement solution to have a uniform Heading and container
for user facing pages in openEMR

Includes the ability to implement 3 optional icons - Expandable, Action
and Help icon

place  use OpenEMR\OeUI\OemrUI at the top of the page

Create a single associative array $arrOeUiSettings  and pass it as
an argument to class OemrUI and instantiate a new object

$arrOeUiSettings = array(
    'heading_title' => xl('The page Heading'),
    'include_patient_name' => false,
    'expandable' => false,
    'expandable_files' => array(),//all file names need suffix _xpd
    'action' => "",//conceal, reveal, search, reset, link or back
    'action_title' => "",
    'action_href' => "",//only for actions - reset, link or back
    'show_help_icon' => false,
    'help_file_name' => ""
);
$oemr_ui = new OemrUI($arrOeUiSettings);

To set the container
<div id="container_div" class="<?php echo $oemr_ui->oeContainer();?>">

To set the header
<div class="row">
    <div class="col-sm-12">
        <div class="page-header">
            <?php echo  $oemr_ui->pageHeading() . "\r\n"; ?>
        </div>
    </div>
</div>

To set the Help modal and needed jQuery

Place this line of code just after the container div
<?php $oemr_ui->oeBelowContainerDiv();?>
17 files changed:
composer.json
interface/billing/sl_eob_search.php
interface/patient_file/history/history.php
interface/patient_file/history/history_full.php
interface/patient_file/reminder/patient_reminders.php
interface/patient_file/report/patient_report.php
interface/patient_file/summary/dashboard_header.php
interface/patient_file/summary/demographics.php
interface/patient_file/summary/stats_full.php
interface/patient_file/transaction/add_transaction.php
interface/patient_file/transaction/transactions.php
interface/reports/external_data.php
interface/reports/pat_ledger.php
interface/usergroup/adminacl.php
library/globals.inc.php
library/js/oeUI/universalTooltip.js [new file with mode: 0644]
library/oeUI/src/OemrUI.php [new file with mode: 0644]