示例#1
0
$xtpl->assign("HEAD_NAME",'Days');


foreach ($r as $rk=>$rv )
{
    $xtpl->assign("HEAD_LIST_ITEM",$rv['q_html_title']);
    $xtpl->assign("HEAD_LIST_COLOR",$rv['q_color']);
    $xtpl->parse("main.stat.stat_body.head_list");
}

//average time of first answer evaluation
$avg=avg_answer_time('avg_answer_time_u',array("#year#","#month#","#user#"),array($year,$month,$user));
$xtpl->assign('AVG_ANSWER',$avg['days']." days ".$avg['hours']." hours");

//average lifetime evaluation
$avg=avg_lifetime('avg_lifetime_u',array("#year#","#month#","#user#"),array($year,$month,$user));
$xtpl->assign('AVG_LIFETIME',$avg['days']." days ".$avg['hours']." hours");

$xtpl->parse("main.stat_list.avg_answer");
$xtpl->parse("main.stat_list.avg_lifetime");

$xtpl->assign("ACTION",'stat_managers.php');

$xtpl->parse("main.stat.stat_body");

}
else
  $xtpl->assign('ANSWER','Please, choose manager ');

$xtpl->parse("main.stat_list");
$xtpl->parse("main.stat.selects");
示例#2
0
                $xtpl->assign("TD_CONTENT",0);
        }
        $s=$s.'<img border="0" align="bottom" src="./images/l_'.$rv['q_image'].'.png" width="6" height="'.$height.'" alt="'.$rv['q_html_title'].': '.$title.'" title="'.$rv['q_html_title'].': '.$title.'">';


        $xtpl->parse("main.stat.stat_body.list_tr.list_td");

    }

    //average time of first answer evaluation
    $avg=avg_answer_time('avg_answer_time',array("#year#","#month#"),array($year,$dn));
    $xtpl->assign('TD_CONTENT',$avg['days']." days ".$avg['hours']." hours");
    $xtpl->parse("main.stat.stat_body.list_tr.list_td");

    //average lifetime evaluation
    $avg=avg_lifetime('avg_lifetime',array("#year#","#month#"),array($year,$dn));
    $xtpl->assign('TD_CONTENT',$avg['days']." days ".$avg['hours']." hours");
    $xtpl->parse("main.stat.stat_body.list_tr.list_td");


    $xtpl->assign("IMAGES",$s);
    $xtpl->parse("main.stat.graf_td");

    $xtpl->assign("CAPTION",$dn."<br>".substr($monthes[$dn-1]['month_name'],0,3));
    $xtpl->parse("main.stat.graf_td_caption");


    $xtpl->assign("DAY",$dn);
    $xtpl->parse("main.stat.stat_body.list_tr");

}