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: