function print_rev($time, $rev = 0) { return 'r' . $rev . ' ' . date('W', $time) . print_dag(date('w', $time)) . date('G:i', $time); //return date('W', $time).print_dag(date('w', $time)).date('G:i T', $time); }
function print_diff($row) { if ($row[DAG] != $row[DAG2] || $row[UUR] != $row[UUR2]) { if ($row[DAG] != $row[DAG2] && $_GET['dy'] != '*') { $output[] = make_link($_GET['q'], print_dag($row[DAG2]), $row[DAG2]) . $row[UUR2]; } else { $output[] = print_dag($row[DAG2]) . $row[UUR2]; } } if ($row[LESGROEPEN] != $row[LESGROEPEN2] && $row[LESGROEPEN2] != '') { $output[] = make_link($row[LESGROEPEN2], NULL, $row[DAG2]); } if ($row[VAKKEN] != $row[VAKKEN2] && $row[VAKKEN2] != '') { if ($row[VAKKEN2] != '' && !vakmatch($row[VAKKEN2], $row[LESGROEPEN2])) { $output[] = htmlenc($row[VAKKEN2]); } } if ($row[DOCENTEN] != $row[DOCENTEN2]) { if ($row[DOCENTEN2] != '') { $output[] = make_link($row[DOCENTEN2], NULL, $row[DAG2]); } else { $output[] = '<span class="unknown">DOC?</span>'; } } if ($row[LOKALEN] != $row[LOKALEN2]) { if ($row[LOKALEN2] != '') { $output[] = make_link($row[LOKALEN2], NULL, $row[DAG2]); } else { $output[] = '<span class="unknown">LOK?</span>'; } } return implode('/', $output); }