From b3a0504e7ab2c85c08245887f1ee08499e1450c0 Mon Sep 17 00:00:00 2001 From: bradymiller Date: Sat, 29 Jun 2013 19:43:29 -0700 Subject: [PATCH] More session fixes --- custom/chart_tracker.php | 2 +- interface/batchcom/batchcom.php | 21 +++++++++++++- interface/main/authorizations/authorizations.php | 28 +++++++++++++++---- .../main/authorizations/authorizations_full.php | 22 +++++++++++++-- interface/main/finder/patient_select.php | 27 ++++++++++++++---- interface/main/onotes/office_comments.php | 4 +-- interface/main/onotes/office_comments_full.php | 22 +++++++-------- interface/reports/patient_edu_web_lookup.php | 32 ++++++++++++++++------ interface/usergroup/addrbook_list.php | 2 +- 9 files changed, 122 insertions(+), 38 deletions(-) diff --git a/custom/chart_tracker.php b/custom/chart_tracker.php index cf8149165..7fe1e5ac2 100644 --- a/custom/chart_tracker.php +++ b/custom/chart_tracker.php @@ -75,7 +75,7 @@ echo "" . xlt('Chart Tracker') . "\n";
 
-
+ ;. + * + * @package OpenEMR + * @author Brady Miller + * @link http://www.open-emr.org + */ + //INCLUDES, DO ANY ACTIONS, THEN GET OUR DATA include_once("../globals.php"); include_once("$srcdir/registry.inc"); @@ -167,7 +186,7 @@ if ($_POST['form_action']=='Process') { - +
\n"; break; @@ -193,16 +211,16 @@ if ($authorize) { // as demographics.php takes care of loading the bottom frame. echo ""; + htmlspecialchars($ppid,ENT_QUOTES) . "' target='RTop' onclick='top.restoreSession()'>"; } else { echo ""; + htmlspecialchars($ppid,ENT_QUOTES) . "' target='_top' onclick='top.restoreSession()'>"; } echo "" . htmlspecialchars($name{"fname"},ENT_NOQUOTES) . " " . htmlspecialchars($name{"lname"},ENT_NOQUOTES) . "
" . "" . + "&pid=" . htmlspecialchars($ppid,ENT_QUOTES) . "' onclick='top.restoreSession()'>" . htmlspecialchars(xl('Authorize'),ENT_NOQUOTES) . "\n"; /**** diff --git a/interface/main/authorizations/authorizations_full.php b/interface/main/authorizations/authorizations_full.php index b61c5c097..f80e25a45 100644 --- a/interface/main/authorizations/authorizations_full.php +++ b/interface/main/authorizations/authorizations_full.php @@ -1,4 +1,22 @@ ;. + * + * @package OpenEMR + * @author Brady Miller + * @link http://www.open-emr.org + */ //SANITIZE ALL ESCAPES $sanitize_all_escapes=true; @@ -28,7 +46,7 @@ sqlStatement("update transactions set authorized=1 where pid=?", array($_GET["pi - + @@ -124,7 +142,7 @@ while(list($ppid,$patient) = each($authorize)){ echo "\n"; + htmlspecialchars($ppid,ENT_QUOTES) . "' onclick='top.restoreSession()'>" . htmlspecialchars(xl('Authorize'),ENT_NOQUOTES) . "\n"; echo "\n"; echo "\n"; + print "\n"; break; } diff --git a/interface/main/onotes/office_comments_full.php b/interface/main/onotes/office_comments_full.php index f802f1299..133d58644 100644 --- a/interface/main/onotes/office_comments_full.php +++ b/interface/main/onotes/office_comments_full.php @@ -54,7 +54,7 @@ if (isset($_POST['mode'])) {
diff --git a/interface/main/authorizations/authorizations.php b/interface/main/authorizations/authorizations.php index 56b846246..bf87ed044 100644 --- a/interface/main/authorizations/authorizations.php +++ b/interface/main/authorizations/authorizations.php @@ -1,4 +1,22 @@ ;. + * + * @package OpenEMR + * @author Brady Miller + * @link http://www.open-emr.org + */ //SANITIZE ALL ESCAPES $sanitize_all_escapes=true; @@ -73,7 +91,7 @@ if (isset($_GET["mode"]) && $_GET["mode"] == "authorize" && $imauthorized) { - + @@ -181,7 +199,7 @@ if ($authorize) { if ($count >= $N) { print "
" . + " href='authorizations_full.php?active=1' class='alert' onclick='top.restoreSession()'>" . htmlspecialchars(xl('Some authorizations were not displayed. Click here to view all'),ENT_NOQUOTES) . "
". htmlspecialchars($name{"fname"} . " " . $name{"lname"},ENT_NOQUOTES) . "
" . htmlspecialchars(xl('Authorize'),ENT_NOQUOTES) . "
".htmlspecialchars(xl('Billing'),ENT_NOQUOTES). ":
" . $patient{"billing"} . "
".htmlspecialchars(xl('Transactions'),ENT_NOQUOTES). diff --git a/interface/main/finder/patient_select.php b/interface/main/finder/patient_select.php index eb01e9c9b..34499e5a5 100644 --- a/interface/main/finder/patient_select.php +++ b/interface/main/finder/patient_select.php @@ -1,8 +1,22 @@ ;. + * + * @package OpenEMR + * @author Brady Miller + * @link http://www.open-emr.org + */ //SANITIZE ALL ESCAPES $sanitize_all_escapes=true; @@ -100,6 +114,7 @@ function submitList(offset) { var i = parseInt(f.fstart.value) + offset; if (i < 0) i = 0; f.fstart.value = i; + top.restoreSession(); f.submit(); } @@ -108,7 +123,7 @@ function submitList(offset) { - +
- [ + [ ".htmlspecialchars( $message, ENT_NOQUOTES)."\n"; ?> diff --git a/interface/main/onotes/office_comments.php b/interface/main/onotes/office_comments.php index b9a4ed8d0..96db39526 100644 --- a/interface/main/onotes/office_comments.php +++ b/interface/main/onotes/office_comments.php @@ -34,7 +34,7 @@ $N = 10;
-> +> @@ -51,7 +51,7 @@ $notes_count = 0;//number of notes so far displayed foreach ($result as $iter) { if ($notes_count >= $N) { //we have more active notes to print, but we've reached our display maximum (defined at top of this file) - print "
".xlt("Some office notes were not displayed. Click here to view all.")."
".xlt("Some office notes were not displayed. Click here to view all.")."
\n"; ?>
-[] +[]
@@ -147,13 +147,13 @@ print "\n"; ($N-1)) { -echo "[".xlt('Previous')."]"; +echo "[".xlt('Previous')."]"; } ?> [".xlt('Next')."]"; +echo "[".xlt('Next')."]"; } ?> diff --git a/interface/reports/patient_edu_web_lookup.php b/interface/reports/patient_edu_web_lookup.php index a66938fff..9bb80b772 100644 --- a/interface/reports/patient_edu_web_lookup.php +++ b/interface/reports/patient_edu_web_lookup.php @@ -1,13 +1,27 @@ -// Brady Miller -// -// This program is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License -// as published by the Free Software Foundation; either version 2 -// of the License, or (at your option) any later version. +/** + * Open websearch for patient education materials + * + * Copyright (C) 2011 Tony McCormick + * Copyright (C) 2011 Brady Miller + * + * LICENSE: This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * You should have received a copy of the GNU General Public License + * along with this program. If not, see ;. + * + * @package OpenEMR + * @author Tony McCormick + * @author Brady Miller + * @link http://www.open-emr.org + */ -// Open websearch for patient education materials //SANITIZE ALL ESCAPES $sanitize_all_escapes=true; @@ -92,7 +106,7 @@ $form_diagnosis = (isset($_POST['form_diagnosis'])) ? $_POST['form_diagnosis'] :