From 2e46c8140eb6ebebc8bb4907034bf6fafecef93d Mon Sep 17 00:00:00 2001 From: cfapress Date: Fri, 9 May 2008 20:12:50 +0000 Subject: [PATCH] removed patient link when no patient ID --- .../default/views/day/ajax_template.html | 32 +++++++++++++--------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/interface/main/calendar/modules/PostCalendar/pntemplates/default/views/day/ajax_template.html b/interface/main/calendar/modules/PostCalendar/pntemplates/default/views/day/ajax_template.html index ca3b4522e..4ed20f772 100644 --- a/interface/main/calendar/modules/PostCalendar/pntemplates/default/views/day/ajax_template.html +++ b/interface/main/calendar/modules/PostCalendar/pntemplates/default/views/day/ajax_template.html @@ -597,21 +597,27 @@ foreach ($providers as $provider) { $content .= htmlspecialchars($event['apptstatus']); //$content .= ""; //$content .= ""; - $content .= ""; - $content .= "View Patient"; - if ($catid == 1) $content .= ""; - $content .= $lname; - if ($GLOBALS['calendar_appt_style'] != 1) { - $content .= "," . $fname; - if ($event['title'] && $GLOBALS['calendar_appt_style'] >= 3) { - $content .= "(" . $event['title']; - if ($event['hometext'] && $GLOBALS['calendar_appt_style'] >= 4) - $content .= ": " . htmlspecialchars(trim($event['hometext'])) . ""; - $content .= ")"; + if ($patientid) { + $content .= ""; + $content .= "View Patient"; + if ($catid == 1) $content .= ""; + $content .= $lname; + if ($GLOBALS['calendar_appt_style'] != 1) { + $content .= "," . $fname; + if ($event['title'] && $GLOBALS['calendar_appt_style'] >= 3) { + $content .= "(" . $event['title']; + if ($event['hometext'] && $GLOBALS['calendar_appt_style'] >= 4) + $content .= ": " . htmlspecialchars(trim($event['hometext'])) . ""; + $content .= ")"; + } } + if ($catid == 1) $content .= ""; + $content .= ""; + } + else { + // no patient id, just output the category name + $content .= $catname; } - if ($catid == 1) $content .= ""; - $content .= ""; $content .= ""; } -- 2.11.4.GIT