X-Git-Url: http://git.pippins.net/embedvideo/.git/static/gitweb.js?a=blobdiff_plain;ds=sidebyside;f=inc%2Fclass.eq.inc.php;h=6b2b8aa346d1c04c10038bf8555ec33d399f8d88;hb=a09d03a95920d3698aa9c1dc7556b44451cfd24a;hp=069b3ae9b963a7cab80d86ccc6f94dfa30612da3;hpb=01032479e76f23194a60f1eef950c87bef033176;p=eq%2F.git diff --git a/inc/class.eq.inc.php b/inc/class.eq.inc.php index 069b3ae..6b2b8aa 100644 --- a/inc/class.eq.inc.php +++ b/inc/class.eq.inc.php @@ -143,6 +143,7 @@ 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'); $i++; } array_multisort($elder_name, $elder_id); @@ -192,15 +193,16 @@ class eq while ($this->db->next_record()) { // Get this companions information - if($companion_table_entry != "") { $companion_table_entry .= " / "; } + if($companion_table_entry != "") { $companion_table_entry .= " / "; } $companionship = $this->db->f('companionship'); $elder_id = $this->db->f('elder'); $aaronic_id = $this->db->f('aaronic'); + $phone = $elder_phone[$elder_id]; if($elder_id) { $name = $elders[$elder_id]; } else if($aaronic_id) { $name = $aaronic[$aaronic_id]['name']; } - $companion_table_entry .= "$name"; + $companion_table_entry .= "$name"; } - $table_data.= "$companion_table_entry
"; + $table_data.= "$companion_table_entry

"; // Get the names of the families assigned this home teaching companionship $sql = "SELECT * from eq_family where valid=1 AND companionship=".$unique_companionships[$j]['companionship'];