echo "<html><body><script language='JavaScript'>\n"; echo "if (top.restoreSession) top.restoreSession(); else opener.top.restoreSession();\n"; echo "document.location.href = 'list_requests.php';\n"; echo "</script></body></html>\n"; exit; } // Get the portal request data. if (!$postid) { die(xlt('Request ID is missing!')); } $result = cms_portal_call(array('action' => 'getpost', 'postid' => $postid)); if ($result['errmsg']) { die(text($result['errmsg'])); } // Look up the patient in OpenEMR. $ptid = lookup_openemr_patient($result['post']['user']); ?> <html> <head> <?php html_header_show(); ?> <link rel=stylesheet href="<?php echo $css_header; ?> " type="text/css"> <style type="text/css">@import url(../../library/dynarch_calendar.css);</style> <style> tr.head { font-size:10pt; background-color:#cccccc; text-align:center; }
getKittens(0, '', $categories); // Get the portal request data. if (!$postid && !$messageid) { die(xlt('Request ID is missing!')); } if ($messageid) { $result = cms_portal_call(array('action' => 'getmessage', 'messageid' => $messageid)); } else { $result = cms_portal_call(array('action' => 'getpost', 'postid' => $postid)); } if ($result['errmsg']) { die(text($result['errmsg'])); } // Look up the patient in OpenEMR. $userlogin = $messageid ? $result['message']['user'] : $result['post']['user']; $ptid = lookup_openemr_patient($userlogin); ?> <html> <head> <?php html_header_show(); ?> <link rel=stylesheet href="<?php echo $css_header; ?> " type="text/css"> <style type="text/css">@import url(../../library/dynarch_calendar.css);</style> <style> tr.head { font-size:10pt; background-color:#cccccc; text-align:center; }