Skip to content

Commit

Permalink
Tab layout, second commit with main codebase modifications, take 3.
Browse files Browse the repository at this point in the history
Includes modifications and integration work by bradymiller.
  • Loading branch information
yehster authored and bradymiller committed Aug 6, 2016
1 parent 3c7abe3 commit e461943
Show file tree
Hide file tree
Showing 61 changed files with 2,469 additions and 27 deletions.
3 changes: 2 additions & 1 deletion custom/download_qrda.php
Expand Up @@ -48,7 +48,8 @@
<head>
<?php html_header_show();?>

<link rel="stylesheet" href="<?php echo $css_header;?>" type="text/css">
<link rel="stylesheet" href="<?php echo $css_header;?>" type="text/css">
<script type="text/javascript" src="<?php echo $webroot ?>/interface/main/tabs/js/include_opener.js"></script>
<script type="text/javascript" src="<?php echo $GLOBALS['webroot'] ?>/library/textformat.js"></script>
<script type="text/javascript" src="<?php echo $GLOBALS['webroot'] ?>/library/dialog.js"></script>
<script type="text/javascript" src="<?php echo $GLOBALS['webroot'] ?>/library/js/jquery-1.4.3.min.js"></script>
Expand Down
1 change: 1 addition & 0 deletions custom/export_qrda_xml.php
Expand Up @@ -1474,6 +1474,7 @@
<html>
<head>
<?php html_header_show();?>
<script type="text/javascript" src="<?php echo $webroot ?>/interface/main/tabs/js/include_opener.js"></script>
<link rel=stylesheet href="<?php echo $css_header;?>" type="text/css">
<title><?php echo xlt('Export QRDA Report'); ?></title>

Expand Down
1 change: 1 addition & 0 deletions custom/export_registry_xml.php
Expand Up @@ -189,6 +189,7 @@ function getMeasureNumber($row) {
<html>
<head>
<?php html_header_show();?>
<script type="text/javascript" src="<?php echo $webroot ?>/interface/main/tabs/js/include_opener.js"></script>
<link rel=stylesheet href="<?php echo $css_header;?>" type="text/css">
<title><?php echo htmlspecialchars( xl('Export PQRI Report'), ENT_NOQUOTES); ?></title>
</head>
Expand Down
Expand Up @@ -77,11 +77,11 @@ function set_related(s,type) {
function get_values(type)
{
if(type == "diagnosis")
dlgopen('find_code_popup.php', '_blank', 500, 400);
dlgopen('find_code_popup.php', '_blank', 500, 400,true);
else if(type == "drugs")
dlgopen('find_drug_popup.php', '_blank', 500, 400);
dlgopen('find_drug_popup.php', '_blank', 500, 400,true);
else if(type == "immunizations")
dlgopen('find_immunization_popup.php', '_blank', 500, 400);
dlgopen('find_immunization_popup.php', '_blank', 500, 400,true);
}

//remove item selected from list
Expand Down
1 change: 1 addition & 0 deletions interface/drugs/add_edit_drug.php
Expand Up @@ -109,6 +109,7 @@ function numericff($name) {

</style>

<script type="text/javascript" src="<?php echo $webroot ?>/interface/main/tabs/js/include_opener.js"></script>
<script type="text/javascript" src="../../library/topdialog.js"></script>
<script type="text/javascript" src="../../library/dialog.js"></script>
<script type="text/javascript" src="../../library/textformat.js"></script>
Expand Down
1 change: 1 addition & 0 deletions interface/drugs/add_edit_lot.php
Expand Up @@ -105,6 +105,7 @@ function genWarehouseList($tag_name, $currvalue, $title, $class='') {
td { font-size:10pt; }
</style>

<script type="text/javascript" src="<?php echo $webroot ?>/interface/main/tabs/js/include_opener.js"></script>
<style type="text/css">@import url(../../library/dynarch_calendar.css);</style>
<script type="text/javascript" src="../../library/textformat.js"></script>
<script type="text/javascript" src="../../library/dynarch_calendar.js"></script>
Expand Down
1 change: 1 addition & 0 deletions interface/drugs/dispense_drug.php
Expand Up @@ -197,6 +197,7 @@ function send_email($subject, $body) {
else { // HTML output
?>
<html>
<script type="text/javascript" src="<?php echo $webroot ?>/interface/main/tabs/js/include_opener.js"></script>
<head>
<?php html_header_show();?>
<style type="text/css">
Expand Down
1 change: 1 addition & 0 deletions interface/forms/physical_exam/edit_diagnoses.php
Expand Up @@ -17,6 +17,7 @@
<html>
<head>
<?php html_header_show();?>
<script type="text/javascript" src="<?php echo $webroot ?>/interface/main/tabs/js/include_opener.js"></script>
<title><?php xl('Edit Diagnoses for','e');?><?php echo $line_id ?></title>
<link rel="stylesheet" href='<?php echo $css_header ?>' type='text/css'>

Expand Down
3 changes: 2 additions & 1 deletion interface/main/calendar/add_edit_event.php
Expand Up @@ -44,6 +44,7 @@
require_once($GLOBALS['srcdir'].'/acl.inc');
require_once($GLOBALS['srcdir'].'/patient_tracker.inc.php');
require_once($GLOBALS['incdir']."/main/holidays/Holidays_Controller.php");

//Check access control
if (!acl_check('patients','appt','',array('write','wsome') ))
die(xl('Access not allowed'));
Expand Down Expand Up @@ -77,7 +78,7 @@
$info_msg = "";

?>

<script type="text/javascript" src="<?php echo $webroot ?>/interface/main/tabs/js/include_opener.js"></script>
<script type="text/javascript" src="<?php echo $GLOBALS['webroot'] ?>/library/js/jquery.js"></script>

<?php
Expand Down
9 changes: 6 additions & 3 deletions interface/main/calendar/find_appt_popup.php
Expand Up @@ -28,10 +28,12 @@

include_once("../../globals.php");
include_once("$srcdir/patient.inc");
///////
require_once(dirname(__FILE__)."/../../../library/appointments.inc.php");
require_once($GLOBALS['incdir']."/main/holidays/Holidays_Controller.php");
require_once($GLOBALS['incdir']."/main/holidays/Holidays_Controller.php");

?>
<script type="text/javascript" src="<?php echo $webroot ?>/interface/main/tabs/js/include_opener.js"></script>
<?php
// check access controls
if (!acl_check('patients','appt','',array('write','wsome') ))
die(xlt('Access not allowed'));
Expand Down Expand Up @@ -208,7 +210,8 @@ function doOneDay($catid, $udate, $starttime, $duration, $prefcatid) {

if ($ckavail) {
// The chosen appointment time is available.
echo "<html><script language='JavaScript'>\n";
echo "<html>"
. "<script language='JavaScript'>\n";
echo "function mytimeout() {\n";
echo " opener.top.restoreSession();\n";
echo " opener.document.forms[0].submit();\n";
Expand Down
2 changes: 1 addition & 1 deletion interface/main/calendar/find_patient_popup.php
Expand Up @@ -52,7 +52,7 @@
<?php html_header_show();?>
<title><?php echo htmlspecialchars( xl('Patient Finder'), ENT_NOQUOTES); ?></title>
<link rel="stylesheet" href='<?php echo $css_header ?>' type='text/css'>

<script type="text/javascript" src="<?php echo $webroot ?>/interface/main/tabs/js/include_opener.js"></script>
<style>
form {
padding: 0px;
Expand Down
7 changes: 5 additions & 2 deletions interface/main/dated_reminders/dated_reminders_add.php
Expand Up @@ -116,7 +116,9 @@
$output .= '<div style="text-size:2em; text-align:center; color:red">* '.xlt('Please select a valid recipient').'</div> ';
}else{
// --------- echo javascript
echo '<html><body><script language="JavaScript">';
echo '<html><body>'
."<script type=\"text/javascript\" src=\"". $webroot ."/interface/main/tabs/js/include_opener.js\"></script>"
.'<script language="JavaScript">';
// ------------ 1) refresh parent window this updates if sent to self
echo ' if (opener && !opener.closed && opener.updateme) opener.updateme("new");';
// ------------ 2) communicate with user
Expand Down Expand Up @@ -146,7 +148,8 @@
?>
<html>
<head>
<title><?php echo xlt('Send a Reminder') ?></title>
<title><?php echo xlt('Send a Reminder') ?></title>
<script type="text/javascript" src="<?php echo $webroot ?>/interface/main/tabs/js/include_opener.js"></script>
<link rel="stylesheet" href="<?php echo $css_header;?>" type="text/css">
<script type="text/javascript" src="<?php echo $GLOBALS['webroot'] ?>/library/topdialog.js"></script>
<script type="text/javascript" src="<?php echo $GLOBALS['webroot'] ?>/library/dialog.js"></script>
Expand Down
6 changes: 3 additions & 3 deletions interface/main/finder/dynamic_finder.php
Expand Up @@ -41,7 +41,7 @@
<html>
<head>
<?php html_header_show(); ?>

<title><?php echo xlt("Patient Finder"); ?></title>
<link rel="stylesheet" href="<?php echo $css_header; ?>" type="text/css">

<style type="text/css">
Expand Down Expand Up @@ -121,9 +121,9 @@
else {
top.restoreSession();
<?php if ($GLOBALS['concurrent_layout']) { ?>
document.location.href = "../../patient_file/summary/demographics.php?set_pid=" + newpid;
top.RTop.location = "../../patient_file/summary/demographics.php?set_pid=" + newpid;
<?php } else { ?>
top.location.href = "../../patient_file/patient_file.php?set_pid=" + newpid;
top.location = "../../patient_file/patient_file.php?set_pid=" + newpid;
<?php } ?>
}
} );
Expand Down
1 change: 1 addition & 0 deletions interface/main/finder/patient_select.php
Expand Up @@ -42,6 +42,7 @@
<html>
<head>
<?php html_header_show();?>
<script type="text/javascript" src="<?php echo $webroot ?>/interface/main/tabs/js/include_opener.js"></script>

<link rel=stylesheet href="<?php echo $css_header;?>" type="text/css">
<style>
Expand Down
10 changes: 10 additions & 0 deletions interface/main/main_screen.php
Expand Up @@ -102,6 +102,16 @@

$nav_area_width = '130';
if (!empty($GLOBALS['gbl_nav_area_width'])) $nav_area_width = $GLOBALS['gbl_nav_area_width'];

// This is where will decide whether to use tabs layout or non-tabs layout
// Note that this screen does not appear to support user specific globals since
// guessing the globals are collected before authentication and setting of the user.
// If want to support per user selection of tabs layout, will need to look into this.
if (!$GLOBALS['new_tabs_layout']) {
$_REQUEST['tabs'] = "false";
}
require_once("tabs/redirect.php");

?>
<html>
<head>
Expand Down
Binary file added interface/main/tabs/css/iframe_close.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
102 changes: 102 additions & 0 deletions interface/main/tabs/css/menu.css
@@ -0,0 +1,102 @@
/**
* Copyright (C) 2016 Kevin Yeh <kevin.y@integralemr.com>
*
* LICENSE: This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 3
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://opensource.org/licenses/gpl-license.php>;.
*
* @package OpenEMR
* @author Kevin Yeh <kevin.y@integralemr.com>
* @link http://www.open-emr.org
*/

.appMenu div
{
margin: 3px;
}
.appMenu > span
{
float: left;
}
.appMenu ul
{
list-style:none;
margin:0;
padding:0;
}
.appMenu li
{
width: 100%;
}
.menuHeader{
font-weight: bold;
}
.menuSection{
position: relative;
}
.menuLabel
{
width: 100%;
}
.menuSection >.menuLabel
{
font-weight: bold;
}
.menuSection > .menuEntries{
background-color:lightskyblue;
display: none;
position: absolute;
left: 0;
top: 100%;
z-index:1000;
}

.menuSection > .menuEntries .menuEntries {
display: none;
position: absolute;
top: 0;
left: 100%;
z-index:10000;
}
.menuSection:hover > .menuEntries{
display: block;
}

.menuLabel
{
cursor: pointer;
}
.menuLabel:hover
{
color: red;
}
.menuDisabled
{
color:lightgray;
}

#username
{
cursor: pointer;
}
#username > .userfunctions
{
background-color:lightskyblue;
display: none;
}
#username:hover > .userfunctions
{
display: block;
}

#username > .userfunctions > div:hover
{
color: red;
}

0 comments on commit e461943

Please sign in to comment.