";
+
+ $this->t->set_var('table_width',$table_width);
+ $this->t->set_var('header_row',$header_row);
+ $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);
+
+ $this->t->pfp('out','ppi_sched_t');
+ $this->save_sessiondata();
+
+ }
+
function ppi_view()
{
$this->t->set_file(array('ppi_view_t' => 'ppi_view.tpl'));
@@ -862,24 +1016,28 @@ class eq
if($num_months == 1) { $this->t->set_var('lang_num_months','Month of History'); }
else { $this->t->set_var('lang_num_months','Months of History'); }
$this->t->set_var('lang_filter','Filter');
-
$this->t->set_var('actionurl',$GLOBALS['phpgw']->link('/eq/index.php','menuaction=eq.eq.ppi_view'));
+
+ $this->t->set_var('ppi_link',$GLOBALS['phpgw']->link('/eq/index.php','menuaction=eq.eq.ppi_view'));
+ $this->t->set_var('ppi_link_title','Hometeaching PPIs');
+
$this->t->set_var('eqpres_ppi_link',$GLOBALS['phpgw']->link('/eq/index.php','menuaction=eq.eq.ppi_view&eqpresppi=1'));
+ $this->t->set_var('eqpres_ppi_link_title','EQ President Yearly PPIs');
$eqpresppi = get_var('eqpresppi',array('GET','POST'));
+
+ $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');
if($eqpresppi == 1) {
+ $this->t->set_var('title','EQ President Yearly PPIs');
$num_months = get_var('num_months',array('GET','POST'));
if($num_months == '') { $num_months = $this->default_ppi_num_years; }
$this->t->set_var('num_months',$num_months);
- $this->t->set_var('ppi_link_title','PPIs');
- $this->t->set_var('title','EQ President Yearly PPIs');
if($num_months == 1) { $this->t->set_var('lang_num_months','Year of History'); }
- else { $this->t->set_var('lang_num_months','Years of History'); }
- $this->t->set_var('eqpres_ppi_link',$GLOBALS['phpgw']->link('/eq/index.php','menuaction=eq.eq.ppi_view'));
+ else { $this->t->set_var('lang_num_months','Years of History'); }
}
else {
- $this->t->set_var('ppi_link_title','EQ President Yearly PPIs');
- $this->t->set_var('title','PPIs');
+ $this->t->set_var('title','Hometeaching PPIs');
}
$sql = "SELECT * FROM eq_district where valid=1 ORDER BY district ASC";
@@ -887,7 +1045,7 @@ class eq
$i=0;
while ($this->db->next_record())
{
- if($eqpresppi == 1 && $this->db->f('district') == 1) {
+ if(($eqpresppi == 1) && ($this->db->f('district') == 1)) {
$districts[$i]['district'] = $this->db->f('district');
$districts[$i]['name'] = $this->db->f('name');
$districts[$i]['supervisor'] = $this->db->f('supervisor');
@@ -907,6 +1065,8 @@ class eq
$elder_id[$i] = $this->db->f('elder');
$elder_name[$i] = $this->db->f('name');
$elder_phone[$elder_id[$i]] = $this->db->f('phone');
+ $elder_ppi_pri[$elder_id[$i]] = $this->db->f('ppi_pri');
+ $elder_ppi_notes[$elder_id[$i]] = $this->db->f('ppi_notes');
$i++;
}
array_multisort($elder_name, $elder_id);
@@ -1050,7 +1210,7 @@ class eq
}
// Now add Elders not assigned to any companionship to the table if we are in eqpresppi mode
if($eqpresppi == 1) {
- $table_data .= "
Unassigned Potential Home Teachers
";
+ $table_data .= "
Unassigned Potential Home Teachers
";
foreach($elders as $elder_id => $value) {
$sql = "SELECT * FROM eq_companionship where valid=1 and elder=".$elder_id;
$this->db->query($sql,__LINE__,__FILE__);