From: Alan Jack Pippin Date: Tue, 24 Jan 2006 19:45:36 +0000 (-0700) Subject: Fixed bug related to ht_update visited column width. X-Git-Tag: release_0_1_0~66 X-Git-Url: http://git.pippins.net/embedvideo/.git/static/images/%7Blink_attendance%7D?a=commitdiff_plain;h=01032479e76f23194a60f1eef950c87bef033176;p=eq%2F.git Fixed bug related to ht_update visited column width. Fixed bug related to invalid ht companionships being displayed in ht_update view. --- diff --git a/inc/class.eq.inc.php b/inc/class.eq.inc.php index 8c2984e..069b3ae 100644 --- a/inc/class.eq.inc.php +++ b/inc/class.eq.inc.php @@ -386,7 +386,7 @@ class eq } // Select all the unique companionship numbers for this district - $sql = "SELECT distinct companionship FROM eq_companionship where district=". $district; + $sql = "SELECT distinct companionship FROM eq_companionship where valid=1 and district=". $district; $this->db->query($sql,__LINE__,__FILE__); $j=0; $unique_companionships=''; while ($this->db->next_record()) @@ -395,7 +395,7 @@ class eq $j++; } - $comp_width=300; $visit_width=25; $table_width=$comp_width + $num_months*$visit_width; + $comp_width=300; $visit_width=25; $table_width=$comp_width + $visit_width; $table_data=""; $num_companionships = 0; $num_families = 0; $visits=0; for ($j=0; $j < count($unique_companionships); $j++) { $companion_table_entry = "";