From ba7689ffe6f631a530dab35443035c7db3d505f2 Mon Sep 17 00:00:00 2001 From: Alan Jack Pippin Date: Thu, 18 Jan 2007 21:18:44 -0700 Subject: [PATCH] Fixed links in scheduling tool to point to "add" ability --- inc/class.eq.inc.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/inc/class.eq.inc.php b/inc/class.eq.inc.php index 8058a9d..7a29504 100644 --- a/inc/class.eq.inc.php +++ b/inc/class.eq.inc.php @@ -1033,6 +1033,14 @@ class eq $sql = "SELECT * FROM eq_ppi WHERE elder=" . $id . " AND eqpresppi=1 ORDER BY date DESC"; $this->db->query($sql,__LINE__,__FILE__); if($this->db->next_record()) { $date = $this->db->f('date'); } else { $date = ""; } + $link_data['menuaction'] = 'eq.eq.ppi_update'; + $link_data['elder'] = $id; + $link_data['aaronic'] = 0; + $link_data['name'] = $name; + $link_data['ppi'] = ''; + $link_data['eqpresppi'] = 1; + $link_data['action'] = 'add'; + $link = $GLOBALS['phpgw']->link('/eq/index.php',$link_data); $table_data.= "$name"; $table_data.= "$phone"; //$table_data.= "$ppi_pri"; @@ -1297,6 +1305,12 @@ class eq $sql = "SELECT * FROM eq_visit WHERE family=" . $id . " AND companionship=0 ORDER BY date DESC"; $this->db->query($sql,__LINE__,__FILE__); if($this->db->next_record()) { $date = $this->db->f('date'); } else { $date = ""; } + $link_data['menuaction'] = 'eq.eq.vis_update'; + $link_data['visit'] = ''; + $link_data['family'] = $id; + $link_data['name'] = $name; + $link_data['action'] = 'add'; + $link = $GLOBALS['phpgw']->link('/eq/index.php',$link_data); $table_data.= "$name Family"; $table_data.= "$phone"; $table_data.= ""; -- 2.34.1