function query1($disorder)
{
    echo "jaz sem funkcija";
    $dal = new DAL();
    $age_min = 18;
    $age_max = 36;
    $unitarray = array(75, 77, 78);
    $disorderarray = array(1, 2, 3, 4, 5);
    $cat = $dal->get_count_dissorder_age_persons_by_unit($unit_in, 0, 11, $age_min, $age_max, $disorder);
    $cat = $cat[0];
    $table = str_replace("##DISORDER{$disorder}##", $cat->sestevek, $table);
    echo $table;
    return $table;
}
Exemplo n.º 2
0
$enota = $enota[0];
$table = str_replace("##UNIT##", $enota->name, $table);
$age_group1 = array(18, 25);
$age_group2 = array(26, 35);
$age_min = 18;
$age_max = 36;
$unitarray = array(75, 77, 78);
$disorderarray = array(1, 2, 3, 4, 5);
$unit_in = 78;
$enota = $dal->get_unit_by_persons_unit($unit_in);
$enota = $enota[0];
$table = str_replace("##UNIT##", $enota->name, $table);
$array1 = array(array($unit_in, 0, 11, $age_min, $age_max, 1));
echo "fdfsf";
$table .= $row;
$cat1 = $dal->get_count_dissorder_age_persons_by_unit($unit_in, 0, 11, $age_min, $age_max, 1);
//  $cat1 = $dal->get_count_dissorder_age_persons_by_unit($array);
$cat1 = $cat1[0];
$table = str_replace("##DISORDER##", $cat1->sestevek, $table);
/*  
       $cat1 = $dal->get_count_dissorder_age_persons_by_unit($unit_in, 0, 11, $age_min, $age_max, 1);
       $cat1=$cat1[0];
       $table = str_replace("##DISORDER##", $cat1->sestevek, $table);

     $cat2 = $dal->get_count_dissorder_age_persons_by_unit($unit_in, 0, 11, $age_min, $age_max, 2);
       $cat2=$cat2[0];
       $table = str_replace("##DISORDER2##", $cat2->sestevek, $table);

        $cat3 = $dal->get_count_dissorder_age_persons_by_unit($unit_in, 0, 11, $age_min, $age_max, 3);
       $cat3=$cat3[0];
       $table = str_replace("##DISORDER3##", $cat3->sestevek, $table);