acknowledgments update
[openemr.git] / interface / main / main_info.php
blobf94c35ca9a7fcc638571518e93faaa8d9f2b6432
1 <?php
2 /**
3 * Main info frame.
5 * LICENSE: This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://opensource.org/licenses/gpl-license.php>;.
16 * @package OpenEMR
17 * @author Brady Miller <brady@sparmy.com>
18 * @link http://www.open-emr.org
21 $fake_register_globals=false;
22 $sanitize_all_escapes=true;
24 require_once("../globals.php");
26 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
27 <HTML>
28 <HEAD>
29 <TITLE>
30 Main Screen
31 </TITLE>
32 <!-- (CHEMED) -->
33 <!-- The DOCTYPE is set above to XHTML to put IE into Sttrict Mode so we can get a viewport width -->
34 <script type='text/javascript' language='JavaScript'>
35 function GetInnerX () {
36 var x;
37 if (self.innerHeight) // all except Explorer
39 x = self.innerWidth;
41 else if (document.documentElement && document.documentElement.clientHeight)
42 // Explorer 6 Strict Mode
44 x = document.documentElement.clientWidth;
46 else if (document.body) // other Explorers
48 x = document.body.clientWidth;
50 return x;
53 var x = GetInnerX();
54 var framesrc = '<frame ';
56 <?php
58 // this allows us to keep our viewtype between screens -- JRM
59 $viewtype = 'day';
60 if (isset($_SESSION['viewtype'])) { $viewtype = $_SESSION['viewtype']; }
62 // this allows us to keep our selected providers between screens -- JRM
63 $pcuStr = "pc_username=".$_SESSION['authUser'];
64 if (isset($_SESSION['pc_username'])) {
65 $pcuStr = "";
66 if (count($_SESSION['pc_username']) > 1) {
67 // loop over the array of values in pc_username to build
68 // a list of pc_username HTTP vars
69 foreach ($_SESSION['pc_username'] as $pcu) {
70 $pcuStr .= "&pc_username[]=".$pcu;
73 else {
74 // two possibilities here
75 // 1) pc_username is an array with a single element
76 // 2) pc_username is just a string, not an array
77 if (is_string($_SESSION['pc_username'])) {
78 $pcuStr .= "&pc_username[]=".$_SESSION['pc_username'];
80 else {
81 $pcuStr .= "&pc_username[]=".$_SESSION['pc_username'][0];
86 // different frame source page depending on session vars
87 if ($_SESSION['userauthorized'] && $GLOBALS['docs_see_entire_calendar']) {
88 $framesrc = "calendar/index.php?module=PostCalendar&viewtype=".$viewtype."&func=view";
90 else if ($_SESSION['userauthorized']) {
91 $framesrc = "calendar/index.php?module=PostCalendar&viewtype=".$viewtype."&func=view&".$pcuStr;
93 else {
94 $framesrc = "calendar/index.php?module=PostCalendar&func=view&viewtype=".$viewtype;
98 framesrc += ' src="<?php echo $framesrc; ?>';
99 framesrc += '&framewidth='+x+'" name="Calendar" scrolling="auto" frameborder="YES">';
101 </script>
102 <!-- END (CHEMED) -->
103 </HEAD>
105 <!-- (CHEMED) -->
106 <script type='text/javascript' language='JavaScript'>
107 document.write('<frameset rows="*" cols="*" name="Main" frameborder="NO" border="0" framespacing="0" <?php if ($_SESSION['cal_ui'] == 2) {echo 'onResize="window.location.href = window.location.href;"'; }?> >');
108 document.write(framesrc);
109 document.write('</frameset>');
110 document.close();
112 </script>
113 <!-- END (CHEMED) -->
116 <noframes><body bgcolor="#FFFFFF">
117 <?php echo xlt('Frame support required'); ?>
118 </body></noframes>
120 </HTML>