From: Alan Jack Pippin Date: Fri, 19 Jan 2007 04:18:44 +0000 (-0700) Subject: Fixed links in scheduling tool to point to "add" ability X-Git-Tag: release_0_1_0~39 X-Git-Url: http://git.pippins.net/embedvideo/.git/%27%20%20%20%20.%20%24GLOBALS%5B%27phpgw%27%5D-%3Elink%28%27inc/jquery/images/static/%27.%24link.%27?a=commitdiff_plain;h=ba7689ffe6f631a530dab35443035c7db3d505f2;p=eq%2F.git Fixed links in scheduling tool to point to "add" ability --- 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.= "";