Пример #1
0
function format_travel_data($tsdata)
{
    $ftv = array();
    foreach ($tsdata as $t) {
        $rw = array($t[0], studylevel($t[1]), $t[2][1], semester($t[7], $t[17]), $t[3], $t[4], $t[5][1], $t[6][1], $t[8][1], $t[9], $t[10], YesOrNothing($t[11]), YesOrNothing($t[12]), format_files($t[13]), "<article class='special'>" . $t[14] . "</article>", $t[15], YesOrNothing($t[16]));
        $ftv[] = $rw;
    }
    return $ftv;
}
Пример #2
0
function format_agreements_data($agg)
{
    $fagg = array();
    foreach ($agg as $a) {
        $ff = format_files($a[10]);
        if (check_in_range($a[2], $a[3], time())) {
            $decorate1 = '<b>';
            $decorate2 = '</b>';
        } else {
            $decorate1 = $decorate2 = "";
        }
        $fa = array($a[0], $decorate1 . $a[1][1] . ' (' . $a[1][2] . ', ' . $a[1][3] . ')' . $decorate2, $a[2], $a[3], $a[4], $a[5][1], BSCMGRPHD($a[6], $a[7], $a[8]), $a[9], $ff);
        $fagg[] = $fa;
    }
    return $fagg;
}