2 require_once("../globals.php");
4 <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
11 <!-- The DOCTYPE is set above to XHTML to put IE into Sttrict Mode so we can get a viewport width
-->
12 <script type
='text/javascript' language
='JavaScript'>
13 function GetInnerX () {
15 if (self
.innerHeight
) // all except Explorer
19 else if (document
.documentElement
&& document
.documentElement
.clientHeight
)
20 // Explorer 6 Strict Mode
22 x
= document
.documentElement
.clientWidth
;
24 else if (document
.body
) // other Explorers
26 x
= document
.body
.clientWidth
;
32 var framesrc
= '<frame ';
36 // this allows us to keep our viewtype between screens -- JRM
38 if (isset($_SESSION['viewtype'])) { $viewtype = $_SESSION['viewtype']; }
40 // this allows us to keep our selected providers between screens -- JRM
41 $pcuStr = "pc_username=".$_SESSION['authUser'];
42 if (isset($_SESSION['pc_username'])) {
44 if (count($_SESSION['pc_username']) > 1) {
45 // loop over the array of values in pc_username to build
46 // a list of pc_username HTTP vars
47 foreach ($_SESSION['pc_username'] as $pcu) {
48 $pcuStr .= "&pc_username[]=".$pcu;
52 // two possibilities here
53 // 1) pc_username is an array with a single element
54 // 2) pc_username is just a string, not an array
55 if (is_string($_SESSION['pc_username'])) {
56 $pcuStr .= "&pc_username[]=".$_SESSION['pc_username'];
59 $pcuStr .= "&pc_username[]=".$_SESSION['pc_username'][0];
64 // different frame source page depending on session vars
65 if ($_SESSION['userauthorized'] && $GLOBALS['docs_see_entire_calendar']) {
66 $framesrc = "calendar/index.php?module=PostCalendar&viewtype=".$viewtype."&func=view";
68 else if ($_SESSION['userauthorized']) {
69 $framesrc = "calendar/index.php?module=PostCalendar&viewtype=".$viewtype."&func=view&".$pcuStr;
72 $framesrc = "calendar/index.php?module=PostCalendar&func=view&viewtype=".$viewtype;
76 framesrc +
= ' src="<?php echo $framesrc; ?>';
77 framesrc +
= '&framewidth='+x+
'" name="Calendar" scrolling="auto" frameborder="YES">';
84 <script type
='text/javascript' language
='JavaScript'>
85 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;"'; }?> >');
86 document
.write(framesrc
);
87 document
.write('</frameset>');
94 <noframes
><body bgcolor
="#FFFFFF">
95 Frame support required