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>;.
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">
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 () {
37 if (self
.innerHeight
) // all except Explorer
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
;
54 var framesrc
= '<frame ';
58 // this allows us to keep our viewtype between screens -- JRM calendar_view_type
59 $viewtype = $GLOBALS['calendar_view_type'];
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'])) {
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;
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'];
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;
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">';
102 <!-- END (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>');
113 <!-- END (CHEMED
) -->
116 <noframes
><body bgcolor
="#FFFFFF">
117 <?php
echo xlt('Frame support required'); ?
>