From: Alan Jack Pippin Date: Mon, 13 Nov 2006 14:46:02 +0000 (-0700) Subject: Added table showing elders who have their yearly ppi completed. X-Git-Tag: release_0_1_0~44 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=f6da15001ec9f71cf5774b5e4bc29e70f29323b2;p=eq%2F.git Added table showing elders who have their yearly ppi completed. --- diff --git a/inc/class.eq.inc.php b/inc/class.eq.inc.php index 7b40acb..3136f12 100644 --- a/inc/class.eq.inc.php +++ b/inc/class.eq.inc.php @@ -878,7 +878,7 @@ class eq $header_row.= "Phone"; $header_row.= "Priority"; $header_row.= "Scheduling Notes"; - $table_data=""; + $table_data=""; $completed_data=""; $totals_data=""; $year = date('Y'); @@ -952,14 +952,27 @@ class eq $table_data.= ''; $table_data.= ''; $table_data.= ''; + $table_data.= ''; $tr_color = $this->nextmatchs->alternate_row_color($tr_color); $this->t->set_var('tr_color',$tr_color); - $table_data.= ''; } else { $elders_with_yearly_ppi++; + $date = $this->db2->f('date'); + $completed_data.= "$name"; + $completed_data.= "$phone"; + $completed_data.= "$date"; + $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; + $completed_header_row = "Elder Name"; + $completed_header_row.= "Phone"; + $completed_header_row.= "Date"; + $elders_width=300; $totals_width=100; $totals_table_width=$elders_width + $totals_width; $totals_header_row = "Elders"; @@ -980,6 +993,9 @@ class eq $this->t->set_var('table_data',$table_data); $this->t->set_var('totals_header_row',$totals_header_row); $this->t->set_var('totals_table_width',$totals_table_width); + $this->t->set_var('completed_header_row',$completed_header_row); + $this->t->set_var('completed_table_width',$completed_table_width); + $this->t->set_var('completed',$completed_data); $this->t->set_var('totals',$totals_data); $this->t->fp('list','elder_list',True); diff --git a/templates/default/ppi_sched.tpl b/templates/default/ppi_sched.tpl index be7281d..8e543f8 100644 --- a/templates/default/ppi_sched.tpl +++ b/templates/default/ppi_sched.tpl @@ -20,7 +20,7 @@ {header_row} @@ -37,7 +37,19 @@
- All Elders + All Elders with Yearly PPI Not Completed
- + +
+ + + + {completed_header_row} + {completed} +
+ All Elders with Yearly PPI Completed +
+

+ +
Total EQ President Yearly PPIs