2 // Copyright (C) 2010 Brady Miller <brady@sparmy.com>
4 // This program is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU General Public License
6 // as published by the Free Software Foundation; either version 2
7 // of the License, or (at your option) any later version.
10 $sanitize_all_escapes=true;
13 //STOP FAKE REGISTER GLOBALS
14 $fake_register_globals=false;
17 require_once("../../globals.php");
22 <link rel
="stylesheet" href
="<?php echo $css_header;?>" type
="text/css">
23 <link rel
="stylesheet" type
="text/css" href
="<?php echo $GLOBALS['webroot'] ?>/library/dynarch_calendar.css" media
="screen" />
24 <link rel
="stylesheet" type
="text/css" href
="<?php echo $GLOBALS['webroot'] ?>/library/js/fancybox/jquery.fancybox-1.2.6.css" media
="screen" />
25 <script type
="text/javascript" src
="<?php echo $GLOBALS['webroot'] ?>/library/js/jquery.1.3.2.js"></script
>
26 <script type
="text/javascript" src
="<?php echo $GLOBALS['webroot']; ?>/library/dialog.js"></script
>
27 <script type
="text/javascript" src
="<?php echo $GLOBALS['webroot']; ?>/library/textformat.js"></script
>
28 <script type
="text/javascript" src
="<?php echo $GLOBALS['webroot'] ?>/library/js/common.js"></script
>
29 <script type
="text/javascript" src
="<?php echo $GLOBALS['webroot'] ?>/library/js/fancybox/jquery.fancybox-1.2.6.js"></script
>
30 <script type
="text/javascript" src
="<?php echo $GLOBALS['webroot']; ?>/library/dynarch_calendar.js"></script
>
31 <?php
include_once("{$GLOBALS['srcdir']}/dynarch_calendar_en.inc.php"); ?
>
32 <script type
="text/javascript" src
="<?php echo $GLOBALS['webroot']; ?>/library/dynarch_calendar_setup.js"></script
>
33 <SCRIPT LANGUAGE
="JavaScript">
36 $
(document
).ready(function(){
37 $
("#req_button").click(function() {
38 // hide the button, show the message, and send the ajax call
39 $
('#req_button').hide();
42 $
.post( "../../../library/ajax/amc_misc_data.php",
43 { amc_id
: "provide_rec_pat_amc",
46 patient_id
: <?php
echo htmlspecialchars($pid,ENT_NOQUOTES
); ?
>
57 $recordRequest = sqlQuery("SELECT * FROM `amc_misc_data` WHERE `pid`=? AND `amc_id`='provide_rec_pat_amc' AND (`date_completed` IS NULL OR `date_completed`='') ORDER BY `date_created` DESC", array($pid) );
60 <body
class="body_top">
62 <table cellspacing
='0' cellpadding
='0' border
='0'>
64 <td
><span
class="title"><?php
echo htmlspecialchars( xl('Patient Records Request'), ENT_NOQUOTES
); ?
></span
> 
; 
; 
;</td
>
70 <?php
if (empty($recordRequest)) { ?
>
71 <a href
="javascript:void(0)" id
="req_button" class="css_button"><span
><?php
echo htmlspecialchars( xl('Patient Record Request'), ENT_NOQUOTES
);?
></span
></a
>
73 <span
class="text" id
="openreq" style
="display:none"><?php
echo htmlspecialchars(xl('The patient record request has been recorded.'), ENT_NOQUOTES
) ?
></span
>
75 <a href
="javascript:void(0)" id
="req_button" class="css_button" style
="display:none"><span
><?php
echo htmlspecialchars( xl('Patient Record Request'), ENT_NOQUOTES
);?
></span
></a
>
77 <span
class="text" id
="openreq"><?php
echo htmlspecialchars(xl('There is already an open patient record request.'), ENT_NOQUOTES
) ?
></span
>