X-Git-Url: http://git.pippins.net/embedvideo/.git/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fclass.eq.inc.php;h=7f0d5a6e887671fb744d508cd3468d9b6aaf1508;hb=f043aa9ef5f150757d49f113307ea912c23006bc;hp=32f824585502991769491f2e19841ef45a616e0b;hpb=4800cbc5c11e33d6f32ea72c80c07a71ab02c158;p=eq%2F.git diff --git a/inc/class.eq.inc.php b/inc/class.eq.inc.php index 32f8245..7f0d5a6 100644 --- a/inc/class.eq.inc.php +++ b/inc/class.eq.inc.php @@ -1599,7 +1599,7 @@ class eq $this->db2->query($sql,__LINE__,__FILE__); if(!$this->db2->next_record()) { - $sql = "SELECT * FROM eq_ppi WHERE elder=" . $id . " ORDER BY date DESC"; + $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'; @@ -3649,7 +3649,7 @@ class eq $this->t->set_var('schedule_ppi_link',$GLOBALS['phpgw']->link('/eq/index.php','menuaction=eq.eq.ppi_sched')); $this->t->set_var('schedule_ppi_link_title','Schedule Yearly PPIs'); - $date_width=150; $time_width=225; $elder_width=200; $family_width=200; $location_width=100; + $date_width=150; $time_width=220; $elder_width=170; $family_width=180; $location_width=100; $table_width=$date_width + $time_width + $elder_width + $family_width + $location_width; $header_row = "Date"; $header_row.= "Time"; @@ -3887,7 +3887,7 @@ class eq $table_data.= ""; // Elder drop down list (for PPIs) - $table_data.= ''; $table_data.= ''; for ($j=0; $j < count($elder_id); $j++) { $id = $elder_id[$j]; @@ -3898,7 +3898,7 @@ class eq $table_data.=''; // Family drop down list (for Visits) - $table_data.= ''; $table_data.= ''; for ($j=0; $j < count($elder_id); $j++) { $id = $family_id[$j]; @@ -3910,7 +3910,7 @@ class eq // Location text box $table_data.= ''; + $table_data.= 'name="sched['.$presidency.']['.$appointment.'][location]" value="'.$location.'" STYLE="font-size : 8pt">'; $table_data.= ''; $table_data.= ''; @@ -3936,7 +3936,7 @@ class eq $table_data.= ""; // Elder drop down list - $table_data.= ''; $table_data.= ''; for ($j=0; $j < count($elder_id); $j++) { $id = $elder_id[$j]; @@ -3946,7 +3946,7 @@ class eq $table_data.=''; // Family drop down list - $table_data.= ''; $table_data.= ''; for ($j=0; $j < count($elder_id); $j++) { $id = $family_id[$j]; @@ -3957,7 +3957,7 @@ class eq // Location text box $table_data.= ''; + $table_data.= 'name="sched['.$presidency.']['.$appointment.'][location]" value="" STYLE="font-size : 8pt">'; $table_data.= ''; $table_data.= '';