fixed undo of checkouts
[openemr.git] / interface / main / main_screen.php
blob43eccba720de2d472126a6c642ec01e7d65843bf
1 <?php
2 include_once("../globals.php");
3 $_SESSION["encounter"] = "";
5 if ($GLOBALS['athletic_team']) {
6 $frame1url = "../reports/players_report.php?embed=1";
7 } else {
8 if (isset($_GET['mode']) && $_GET['mode'] == "loadcalendar") {
9 $frame1url = "calendar/index.php?pid=" . $_GET['pid'];
10 if (isset($_GET['date'])) $frame1url .= "&date=" . $_GET['date'];
11 } else {
12 if ($GLOBALS['concurrent_layout']) {
13 // new layout
14 if ($GLOBALS['default_top_pane']) {
15 $frame1url=$GLOBALS['default_top_pane'];
16 } else {
17 $frame1url = "main_info.php";
20 else
21 // old layout
22 $frame1url = "main.php?mode=" . $_GET['mode'];
26 <html>
27 <head>
28 <title>
29 <?php echo $openemr_name ?>
30 </title>
31 <script type="text/javascript" src="../../library/topdialog.js"></script>
33 <script language='JavaScript'>
34 <?php require($GLOBALS['srcdir'] . "/restoreSession.php"); ?>
35 </script>
37 <?php if ($GLOBALS['concurrent_layout']) { // start new layout ?>
39 </head>
40 <!-- border (mozilla) and framespacing (ie) are the same thing. -->
41 <!-- frameborder specifies a 3d look, not whether there are borders. -->
42 <frameset rows='<?php echo $GLOBALS['titleBarHeight'] ?>,*' frameborder='1' border='1' framespacing='1' onunload='imclosing()'>
43 <frame src='main_title.php' name='Title' scrolling='no' frameborder='1' noresize />
44 <frameset cols='<?php echo $GLOBALS['athletic_team'] ? '230' : '130'; ?>,*' id='fsbody' frameborder='1' border='4' framespacing='4'>
45 <frameset rows='*,0' frameborder='0' border='0' framespacing='0'>
46 <frame src='left_nav.php' name='left_nav' />
47 <frame src='daemon_frame.php' name='Daemon' scrolling='no' frameborder='0'
48 border='0' framespacing='0' />
49 </frameset>
50 <?php if (empty($GLOBALS['athletic_team'])) { ?>
51 <frameset rows='60%,*' id='fsright' bordercolor='#999999' frameborder='1'>
52 <?php } else { ?>
53 <frameset rows='100%,*' id='fsright' bordercolor='#999999' frameborder='1'>
54 <?php } ?>
55 <frame src='<?php echo $frame1url ?>' name='RTop' scrolling='auto' />
56 <frame src='authorizations/authorizations.php' name='RBot' scrolling='auto' />
57 </frameset>
58 </frameset>
59 </frameset>
61 <?php } else { // start old layout ?>
63 </head>
64 <frameset rows="<?php echo "$GLOBALS[navBarHeight],$GLOBALS[titleBarHeight]" ?>,*"
65 cols="*" frameborder="no" border="0" framespacing="0"
66 onunload="imclosing()">
67 <frame src="main_navigation.php" name="Navigation" scrolling="no" noresize frameborder="no">
68 <frame src="main_title.php" name="Title" scrolling="no" noresize frameborder="no">
69 <frame src='<?php echo $frame1url ?>' name='Main' scrolling='auto' noresize frameborder='no'>
70 </frameset>
71 <noframes><body bgcolor="#FFFFFF">
72 Frame support required
73 </body></noframes>
75 <?php } // end old layout ?>
77 </html>