X-Git-Url: http://git.pippins.net/embedvideo/.git/static/gitweb.js?a=blobdiff_plain;f=inc%2Fclass.eq.inc.php;h=9132163d176037bf5987ac7613ed8894360b5902;hb=bac0e351544d3bb1b064109982928e3e7de5dd73;hp=3136f1252cccce4937ca4cdf14b2207da5f6559e;hpb=f6da15001ec9f71cf5774b5e4bc29e70f29323b2;p=eq%2F.git diff --git a/inc/class.eq.inc.php b/inc/class.eq.inc.php index 3136f12..9132163 100644 --- a/inc/class.eq.inc.php +++ b/inc/class.eq.inc.php @@ -872,11 +872,12 @@ class eq $this->t->set_var('actionurl',$GLOBALS['phpgw']->link('/eq/index.php','menuaction=eq.eq.ppi_sched&action=save')); $this->t->set_var('title','EQ President Yearly PPIs Scheduler'); - $elder_width=450; $phone_width=25; $pri_width=10; $notes_width=128; - $table_width=$elder_width + $phone_width + $pri_width + $notes_width; + $elder_width=500; $phone_width=25; $pri_width=10; $notes_width=128; $ppi_date_width=20; + $table_width=$elder_width + $phone_width + $pri_width + $notes_width + $ppi_date_width; $header_row = "Elder Name"; $header_row.= "Phone"; $header_row.= "Priority"; + $header_row.= "Last PPI"; $header_row.= "Scheduling Notes"; $table_data=""; $completed_data=""; $totals_data=""; @@ -937,6 +938,9 @@ class eq $this->db2->query($sql,__LINE__,__FILE__); if(!$this->db2->next_record()) { + $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 = ""; } $table_data.= "$name"; $table_data.= "$phone"; //$table_data.= "$ppi_pri"; @@ -948,6 +952,7 @@ class eq $table_data.= ''; } $table_data.= ''; + $table_data.= "$date"; $table_data.= ''; $table_data.= ''; $table_data.= ''; @@ -959,19 +964,21 @@ class eq $elders_with_yearly_ppi++; $date = $this->db2->f('date'); $completed_data.= "$name"; - $completed_data.= "$phone"; - $completed_data.= "$date"; + $completed_data.= "$phone"; + $completed_data.= "$date"; + $completed_data.= "$ppi_notes"; $completed_data.= ''; $tr_color2 = $this->nextmatchs->alternate_row_color($tr_color2); $this->t->set_var('tr_color2',$tr_color2); } } - $name_width=300; $phone_width=150; $date_width=100; - $completed_table_width=$name_width + $phone_width + $date_width; + $name_width=175; $phone_width=100; $date_width=100; $notes_width=300; + $completed_table_width=$name_width + $phone_width + $date_width + $notes_width; $completed_header_row = "Elder Name"; $completed_header_row.= "Phone"; $completed_header_row.= "Date"; + $completed_header_row.= "Scheduling Notes"; $elders_width=300; $totals_width=100; $totals_table_width=$elders_width + $totals_width;