3 * Copyright (C) 2010 Brady Miller <brady@sparmy.com>
5 * 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.
11 //SANITIZE ALL ESCAPES
12 $sanitize_all_escapes=true;
15 //STOP FAKE REGISTER GLOBALS
16 $fake_register_globals=false;
19 require_once("../../globals.php");
24 <link rel
="stylesheet" href
="<?php echo $css_header;?>" type
="text/css">
25 <link rel
="stylesheet" type
="text/css" href
="<?php echo $GLOBALS['webroot'] ?>/library/dynarch_calendar.css" media
="screen" />
26 <link rel
="stylesheet" type
="text/css" href
="<?php echo $GLOBALS['webroot'] ?>/library/js/fancybox/jquery.fancybox-1.2.6.css" media
="screen" />
27 <script type
="text/javascript" src
="<?php echo $GLOBALS['webroot'] ?>/library/js/jquery.1.3.2.js"></script
>
28 <script type
="text/javascript" src
="<?php echo $GLOBALS['webroot']; ?>/library/dialog.js"></script
>
29 <script type
="text/javascript" src
="<?php echo $GLOBALS['webroot']; ?>/library/textformat.js"></script
>
30 <script type
="text/javascript" src
="<?php echo $GLOBALS['webroot'] ?>/library/js/common.js"></script
>
31 <script type
="text/javascript" src
="<?php echo $GLOBALS['webroot'] ?>/library/js/fancybox/jquery.fancybox-1.2.6.js"></script
>
32 <script type
="text/javascript" src
="<?php echo $GLOBALS['webroot']; ?>/library/dynarch_calendar.js"></script
>
33 <?php
include_once("{$GLOBALS['srcdir']}/dynarch_calendar_en.inc.php"); ?
>
34 <script type
="text/javascript" src
="<?php echo $GLOBALS['webroot']; ?>/library/dynarch_calendar_setup.js"></script
>
35 <SCRIPT LANGUAGE
="JavaScript">
38 $
(document
).ready(function(){
39 $
("#req_button").click(function() {
40 // hide the button, show the message, and send the ajax call
41 $
('#req_button').hide();
44 $
.post( "../../../library/ajax/amc_misc_data.php",
45 { amc_id
: "provide_rec_pat_amc",
48 patient_id
: <?php
echo htmlspecialchars($pid,ENT_NOQUOTES
); ?
>
59 $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) );
62 <body
class="body_top">
64 <table cellspacing
='0' cellpadding
='0' border
='0'>
66 <td
><span
class="title"><?php
echo htmlspecialchars( xl('Patient Records Request'), ENT_NOQUOTES
); ?
></span
> 
; 
; 
;</td
>
72 <?php
if (empty($recordRequest)) { ?
>
73 <a href
="javascript:void(0)" id
="req_button" class="css_button"><span
><?php
echo htmlspecialchars( xl('Patient Record Request'), ENT_NOQUOTES
);?
></span
></a
>
75 <span
class="text" id
="openreq" style
="display:none"><?php
echo htmlspecialchars(xl('The patient record request has been recorded.'), ENT_NOQUOTES
) ?
></span
>
77 <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
>
79 <span
class="text" id
="openreq"><?php
echo htmlspecialchars(xl('There is already an open patient record request.'), ENT_NOQUOTES
) ?
></span
>