Syntax fixes - static methods, call by reference and undefined variables
[openemr.git] / interface / patient_file / encounter / encounter_top.php
blobb7e8fa026cf45984423ebb3f809a458b3e35251b
1 <?php
2 // Cloned from patient_encounter.php.
4 include_once("../../globals.php");
5 include_once("$srcdir/pid.inc");
6 include_once("$srcdir/encounter.inc");
8 if (isset($_GET["set_encounter"])) {
9 // The billing page might also be setting a new pid.
10 if(isset($_GET["set_pid"]))
12 $set_pid=$_GET["set_pid"];
14 else if(isset($_GET["pid"]))
16 $set_pid=$_GET["pid"];
18 else
20 $set_pid=false;
22 if ($set_pid && $set_pid != $_SESSION["pid"]) {
23 setpid($set_pid);
25 setencounter($_GET["set_encounter"]);
28 <html>
29 <head>
30 <?php html_header_show();?>
31 </head>
32 <frameset cols="*">
33 <frame src="forms.php" name="Forms" scrolling="auto">
34 </frameset>
35 </html>