From: Owen Leonard Date: Thu, 21 Oct 2010 17:27:12 +0000 (-0600) Subject: fix width of companionshp tables so visit stats are aligned X-Git-Tag: release_1_1_0~5 X-Git-Url: http://git.pippins.net/embedvideo/.git/static/images/%7Badd%7D?a=commitdiff_plain;h=8abd1050612bcab4549875f12fdc1a036a9ce233;p=eq%2F.git fix width of companionshp tables so visit stats are aligned make number of months stats configurable --- diff --git a/inc/class.tc.inc.php b/inc/class.tc.inc.php index 15086be..c4337f1 100644 --- a/inc/class.tc.inc.php +++ b/inc/class.tc.inc.php @@ -674,10 +674,10 @@ class tc $family_name = $this->db2->f('name') . " Family"; $family_id = $this->db2->f('tc_family'); $sandbox_table_data .= ""; - $sandbox_table_data .= "$family_name"; + $sandbox_table_data .= "$family_name"; # get 12 months visit data for given family - for($m=12; $m >= 0; $m--) { + for($m=$this->sandbox_stats_num_months; $m >= 0; $m--) { $month = $this->current_month - $m; $year = $this->current_year; if($month <= 0) { $remainder = $month; $month = 12 + $remainder; $year=$year-1; } diff --git a/setup/tc_config b/setup/tc_config index 7b959ae..2c45522 100644 --- a/setup/tc_config +++ b/setup/tc_config @@ -77,4 +77,6 @@ $this->default_vis_num_years = 1; // The maximum number of districts you will ever need to create $this->max_num_districts = 4; +// The number of months of home teaching stats to show in the hometeaching sandbox +$this->sandbox_stats_num_months = 12; ?>