update message codes
[openemr.git] / interface / patient_file / transaction / transactions.php
blob7fa00fbe67d1c584868039d38250fd79f3649559
1 <?php
3 //SANITIZE ALL ESCAPES
4 $sanitize_all_escapes=true;
5 //
7 //STOP FAKE REGISTER GLOBALS
8 $fake_register_globals=false;
9 //
11 include_once("../../globals.php");
12 include_once("$srcdir/transactions.inc");
14 <html>
15 <head>
16 <?php html_header_show();?>
18 <link rel="stylesheet" href="<?php echo $css_header;?>" type="text/css">
19 <link rel="stylesheet" type="text/css" href="../../../library/js/fancybox/jquery.fancybox-1.2.6.css" media="screen" />
20 <script type="text/javascript" src="../../../library/textformat.js"></script>
21 <script type="text/javascript" src="../../../library/dialog.js"></script>
22 <script type="text/javascript" src="../../../library/js/jquery.1.3.2.js"></script>
23 <script type="text/javascript" src="../../../library/js/common.js"></script>
24 <script type="text/javascript" src="../../../library/js/fancybox/jquery.fancybox-1.2.6.js"></script>
26 <script type="text/javascript">
27 function toggle( target, div ) {
28 $mode = $(target).find(".indicator").text();
29 if ( $mode == "collapse" ) {
30 $(target).find(".indicator").text( "expand" );
31 $(div).hide();
32 } else {
33 $(target).find(".indicator").text( "collapse" );
34 $(div).show();
38 $(document).ready(function(){
40 $("#transactions_view").click( function() {
41 toggle( $(this), "#transactions_div" );
42 });
44 // load transaction divs
45 $("#transactions_div").load("transactions_full.php");
46 });
47 </script>
48 </head>
50 <body class="body_top">
51 <table>
52 <tr>
53 <td>
54 <span class="title"><?php echo htmlspecialchars( xl('Patient Transactions'), ENT_NOQUOTES); ?></span>&nbsp;</td>
55 <td>
56 <!-- Define CSS Buttons -->
57 <a href="add_transaction.php" <?php if (!$GLOBALS['concurrent_layout']) echo "target='Main'"; ?> class="css_button" onclick="top.restoreSession()">
58 <span><?php echo htmlspecialchars( xl('Add'), ENT_NOQUOTES); ?></span></a>
59 </td>
60 <td>
61 <a href="print_referral.php" <?php if (!$GLOBALS['concurrent_layout']) echo "target='Main'"; ?> onclick="top.restoreSession()" class="css_button" >
62 <span><?php echo htmlspecialchars( xl('Print Blank Referral Form'), ENT_NOQUOTES); ?></span></a>
63 </td>
64 </tr>
65 </table>
67 <div style='margin-left:10px' class='text'>
68 <?php if ($result = getTransByPid($pid)) { ?>
69 <div id='transactions_div'></div>
70 <?php } else { ?>
71 <span class="text"><?php echo htmlspecialchars( xl('There are no transactions on file for this patient.'), ENT_NOQUOTES); ?></span>
72 <?php } ?>
73 </div>
74 </body>
75 </html>