From 571dcfd0d79d028e3b3a6c84b1ddbc9b695f5b6d Mon Sep 17 00:00:00 2001 From: bradymiller Date: Sun, 30 Jun 2013 22:02:52 -0700 Subject: [PATCH] Session fixes in the patient notes module --- interface/patient_file/summary/pnotes.php | 18 +++++++++ interface/patient_file/summary/pnotes_fragment.php | 30 +++++++++++---- interface/patient_file/summary/pnotes_full.php | 44 +++++++++++----------- 3 files changed, 62 insertions(+), 30 deletions(-) diff --git a/interface/patient_file/summary/pnotes.php b/interface/patient_file/summary/pnotes.php index c461f3312..9ea9bf5b2 100644 --- a/interface/patient_file/summary/pnotes.php +++ b/interface/patient_file/summary/pnotes.php @@ -1,4 +1,22 @@ ;. + * + * @package OpenEMR + * @author Brady Miller + * @link http://www.open-emr.org + */ //SANITIZE ALL ESCAPES $sanitize_all_escapes=true; diff --git a/interface/patient_file/summary/pnotes_fragment.php b/interface/patient_file/summary/pnotes_fragment.php index 9b0139d9e..3a621f5eb 100644 --- a/interface/patient_file/summary/pnotes_fragment.php +++ b/interface/patient_file/summary/pnotes_fragment.php @@ -1,8 +1,22 @@ ;. + * + * @package OpenEMR + * @author Brady Miller + * @link http://www.open-emr.org + */ //SANITIZE ALL ESCAPES $sanitize_all_escapes=true; @@ -104,7 +118,7 @@ $fake_register_globals=false; "; + echo ""; echo htmlspecialchars(xl("To add notes, please click here"),ENT_NOQUOTES); echo "."; ?> @@ -114,7 +128,7 @@ $fake_register_globals=false;
- +
@@ -177,7 +191,7 @@ $fake_register_globals=false; "; + echo ""; echo htmlspecialchars(xl("To add notes, please click here"),ENT_NOQUOTES); echo "."; ?> @@ -187,7 +201,7 @@ $fake_register_globals=false;
- +
diff --git a/interface/patient_file/summary/pnotes_full.php b/interface/patient_file/summary/pnotes_full.php index 221e1ff8a..70f203f48 100644 --- a/interface/patient_file/summary/pnotes_full.php +++ b/interface/patient_file/summary/pnotes_full.php @@ -1,21 +1,21 @@ ;. * + * @package OpenEMR + * @author Brady Miller + * @link http://www.open-emr.org */ //SANITIZE ALL ESCAPES @@ -221,7 +221,7 @@ function show_div(name){
-
+
- + class="css_button" onclick="top.restoreSession()"> @@ -332,7 +332,7 @@ if ($billing_note) {
> + action="pnotes_full.php?&" onsubmit='return top.restoreSession()'>
@@ -345,7 +345,7 @@ if ($billing_note) { | - + @@ -413,13 +413,13 @@ if ($result != "") { echo " ". htmlspecialchars( xl('Edit'), ENT_NOQUOTES) ."\n"; + "' class='css_button_small iframe' onclick='top.restoreSession()'>". htmlspecialchars( xl('Edit'), ENT_NOQUOTES) ."\n"; // display, or not, a button to delete the note // if the user is an admin or if they are the author of the note, they can delete it if (($iter['user'] == $_SESSION['authUser']) || (acl_check('admin','super','','write'))) { echo " " . + "' title='" . htmlspecialchars( xl('Delete this note'), ENT_QUOTES) . "' onclick='top.restoreSession()'>" . htmlspecialchars( xl('Delete'), ENT_NOQUOTES) . "\n"; } echo " \n"; @@ -437,7 +437,7 @@ if ($result != "") { echo " \n"; echo " " . - "\n"; + "\n"; // Modified 6/2009 by BM to incorporate the patient notes into the list_options listings echo generate_display_field(array('data_type'=>'1','list_id'=>'note_type'), $iter['title']); echo " \n"; @@ -498,7 +498,7 @@ if ($result_count == $N) { + class="" id='Submit' onclick='top.restoreSession()'> @@ -566,13 +566,13 @@ if ($result_sent != "") { echo " ". htmlspecialchars( xl('Edit'), ENT_NOQUOTES) ."\n"; + "' class='css_button_small iframe' onclick='top.restoreSession()'>". htmlspecialchars( xl('Edit'), ENT_NOQUOTES) ."\n"; // display, or not, a button to delete the note // if the user is an admin or if they are the author of the note, they can delete it if (($iter['user'] == $_SESSION['authUser']) || (acl_check('admin','super','','write'))) { echo " " . + "' title='" . htmlspecialchars( xl('Delete this note'), ENT_QUOTES) . "' onclick='top.restoreSession()'>" . htmlspecialchars( xl('Delete'), ENT_NOQUOTES) . "\n"; } echo " \n"; @@ -590,7 +590,7 @@ if ($result_sent != "") { echo " \n"; echo " " . - "\n"; + "\n"; // Modified 6/2009 by BM to incorporate the patient notes into the list_options listings echo generate_display_field(array('data_type'=>'1','list_id'=>'note_type'), $iter['title']); echo " \n"; -- 2.11.4.GIT