$this->t->set_block('ht_sandbox_t','companionship_table_list','ct_list');
$this->t->set_var('submit_action',$GLOBALS['phpgw']->link('/tc/index.php','menuaction=tc.tc.ht_sandbox&action=add'));
-
+ $this->t->set_var('jquery_url',$GLOBALS['phpgw']->link('inc/jquery.js'));
+
$action = get_var('action',array('GET','POST'));
$this->t->set_var('title','Hometeaching Sandbox');
$switch_case_list .= " $(\"#assignedFamilies option[value='".$family."']\").attr(\"selected\",true);\n";
# get 12 months visit data for given family
- for($m=$this->sandbox_stats_num_months; $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; }