Skip to content

Commit

Permalink
initial support for multiple browser windows
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsetsystems committed Jul 28, 2007
1 parent 4d744ec commit 9e21fdc
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 6 deletions.
14 changes: 8 additions & 6 deletions interface/main/finder/finder_navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@
</head>
<body <? echo $nav_bg_line;?> topmargin=0 rightmargin=4 leftmargin=2 marginheight=0 bottommargin=0 link=#000000 vlink=#000000 alink=#000000>

<form border=0 method=post target="_top" name="find_patient" action="<? echo $rootdir?>/main/finder/patient_finder.php">
<form border='0' method='post' target="_top"
name="find_patient" action="<? echo $rootdir?>/main/finder/patient_finder.php"
onsubmit="return top.restoreSession()">

<table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%">
<tr>

<td width="10%" nowrap>
<? //<a href="javascript:document.find_patient.action='finder/patient_finder_keyboard.php';document.find_patient.submit();" class=link>Find Patient:</a>?>
<input type=entry size=10 name=patient> <select name="findBy" size=1>
<option value="ID"><? xl('ID','e');?></option>
<option value="Last" selected><? xl('Name','e');?></option>
Expand All @@ -28,16 +29,17 @@
</td>

<td width="5%" nowrap>
<a href="javascript:document.find_patient.action='<? echo $rootdir?>/main/finder/patient_finder.php';document.find_patient.submit();" class=link>&nbsp;<? xl('Find Patient','e');?></a>
<a href="javascript:top.restoreSession();document.find_patient.action='<? echo $rootdir?>/main/finder/patient_finder.php';document.find_patient.submit();" class=link>&nbsp;<? xl('Find Patient','e');?></a>
</td>

<td width="48%" nowrap>
&nbsp;&nbsp;&nbsp;<a class=menu target=_top href="../../new/new_patient.php"><? xl('New Patient','e');?></a>&nbsp;
&nbsp;&nbsp;&nbsp;<a class=menu target=_top href="../../new/new_patient.php" onclick="top.restoreSession()">
<? xl('New Patient','e');?></a>&nbsp;
</td>

<td align="right" nowrap>
<? //<a href="../logout.php?auth=logout" target="_top" class="logout">Logout</a>?>
&nbsp;<a href="../main_screen.php" target="_top" class="logout"><? xl('Back','e');?></a>&nbsp;&nbsp;
&nbsp;<a href="../main_screen.php" target="_top" class="logout" onclick="top.restoreSession()">
<? xl('Back','e');?></a>&nbsp;&nbsp;
</td>
</tr>
</table>
Expand Down
10 changes: 10 additions & 0 deletions interface/main/finder/patient_finder.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@
<TITLE>
<?php xl ('Patient Finder','e'); ?>
</TITLE>

<script language='JavaScript'>

function restoreSession() {
document.cookie = '<?php echo session_name() . '=' . session_id(); ?>; path=/';
return true;
}

</script>

</HEAD>
<frameset rows="<?php echo "$GLOBALS[navBarHeight],$GLOBALS[titleBarHeight]" ?>,*" cols="*" frameborder="0" border="0" framespacing="0">
<frame src="finder_navigation.php" name="Navigation" scrolling="no" noresize frameborder="0">
Expand Down
10 changes: 10 additions & 0 deletions interface/new/new_patient.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@
<TITLE>
<?php echo $openemr_name; ?>
</TITLE>

<script language='JavaScript'>

function restoreSession() {
document.cookie = '<?php echo session_name() . '=' . session_id(); ?>; path=/';
return true;
}

</script>

</HEAD>
<frameset rows="<?php echo "$GLOBALS[navBarHeight],$GLOBALS[titleBarHeight]"; ?>,*" cols="*" frameborder="0" border="0" framespacing="0">
<frame src="new_navigation.php" name="Navigation" scrolling="no" noresize frameborder="NO">
Expand Down

0 comments on commit 9e21fdc

Please sign in to comment.