remove unused calendar styles
[openemr.git] / interface / main / main_info.php
blob237dbe2568ca6be452df79f9765785c5fe483f66
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.g.miller@gmail.com>
18 * @link http://www.open-emr.org
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><?php echo xlt('Calendar'); ?></TITLE>
30 <!-- (CHEMED) -->
31 <!-- The DOCTYPE is set above to XHTML to put IE into Sttrict Mode so we can get a viewport width -->
32 <script type='text/javascript' language='JavaScript'>
33 function GetInnerX () {
34 var x;
35 if (self.innerHeight) // all except Explorer
37 x = self.innerWidth;
39 else if (document.documentElement && document.documentElement.clientHeight)
40 // Explorer 6 Strict Mode
42 x = document.documentElement.clientWidth;
44 else if (document.body) // other Explorers
46 x = document.body.clientWidth;
48 return x;
51 var x = GetInnerX();
52 var framesrc = '<frame ';
54 <?php
56 // this allows us to keep our viewtype between screens -- JRM calendar_view_type
57 $viewtype = $GLOBALS['calendar_view_type'];
58 if (isset($_SESSION['viewtype'])) { $viewtype = $_SESSION['viewtype']; }
60 // this allows us to keep our selected providers between screens -- JRM
61 $pcuStr = "pc_username=".$_SESSION['authUser'];
62 if (isset($_SESSION['pc_username'])) {
63 $pcuStr = "";
64 if (count($_SESSION['pc_username']) > 1) {
65 // loop over the array of values in pc_username to build
66 // a list of pc_username HTTP vars
67 foreach ($_SESSION['pc_username'] as $pcu) {
68 $pcuStr .= "&pc_username[]=".$pcu;
71 else {
72 // two possibilities here
73 // 1) pc_username is an array with a single element
74 // 2) pc_username is just a string, not an array
75 if (is_string($_SESSION['pc_username'])) {
76 $pcuStr .= "&pc_username[]=".$_SESSION['pc_username'];
78 else {
79 $pcuStr .= "&pc_username[]=".$_SESSION['pc_username'][0];
84 // different frame source page depending on session vars
85 if ($_SESSION['userauthorized'] && $GLOBALS['docs_see_entire_calendar']) {
86 $framesrc = "calendar/index.php?module=PostCalendar&viewtype=".$viewtype."&func=view";
88 else if ($_SESSION['userauthorized']) {
89 $framesrc = "calendar/index.php?module=PostCalendar&viewtype=".$viewtype."&func=view&".$pcuStr;
91 else {
92 $framesrc = "calendar/index.php?module=PostCalendar&func=view&viewtype=".$viewtype;
96 framesrc += ' src="<?php echo $framesrc; ?>';
97 framesrc += '&framewidth='+x+'" name="Calendar" scrolling="auto" frameborder="YES">';
99 </script>
100 <!-- END (CHEMED) -->
101 </HEAD>
103 <!-- (CHEMED) -->
104 <script type='text/javascript' language='JavaScript'>
105 document.write('<frameset rows="*" cols="*" name="Main" frameborder="NO" border="0" framespacing="0" >');
106 document.write(framesrc);
107 document.write('</frameset>');
108 document.close();
110 </script>
111 <!-- END (CHEMED) -->
114 <noframes><body bgcolor="#FFFFFF">
115 <?php echo xlt('Frame support required'); ?>
116 </body></noframes>
118 </HTML>