Skip to content

Commit

Permalink
If this is the top frame then show the encounters list in the bottom …
Browse files Browse the repository at this point in the history
…frame, for athletic teams only
  • Loading branch information
sunsetsystems committed Nov 28, 2008
1 parent c0f9abc commit 1e61fde
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions interface/patient_file/encounter/forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,18 @@ function imdeleted() {
}
?>

<?php if ($GLOBALS['athletic_team'] && $GLOBALS['concurrent_layout'] == 2) { ?>
<script language='JavaScript'>
// If this is the top frame then show the encounters list in the bottom frame.
var n = parent.parent.left_nav;
var nf = n.document.forms[0];
if (parent.window.name == 'RTop' && nf.cb_bot.checked) {
var othername = 'RBot';
n.setRadio(othername, 'ens');
n.loadFrame('ens1', othername, 'patient_file/history/encounters.php');
}
</script>
<?php } ?>

</body>
</html>

0 comments on commit 1e61fde

Please sign in to comment.