$this->t->set_file(array('att_view_t' => 'att_view.tpl'));
$this->t->set_block('att_view_t','act_list','list');
$this->t->set_file(array('att_view_t' => 'att_view.tpl'));
$this->t->set_block('att_view_t','act_list','list');
$this->t->set_var('year',$sunday_list[$i]['year']);
$this->t->fp('list2','header_list',True);
$total_width += $att_width;
$this->t->set_var('year',$sunday_list[$i]['year']);
$this->t->fp('list2','header_list',True);
$total_width += $att_width;
$cur_month = $sunday_list[$j]['month'];
if($attended[$i][$cur_month] != 1) {
$attended[$i][$cur_month]=1;
$cur_month = $sunday_list[$j]['month'];
if($attended[$i][$cur_month] != 1) {
$attended[$i][$cur_month]=1;
foreach($attendance as $att => $value) {
$total_attended = $attendance[$att];
$ave_total_attended += $attendance[$att]; $num_months++;
foreach($attendance as $att => $value) {
$total_attended = $attendance[$att];
$ave_total_attended += $attendance[$att]; $num_months++;