function commonHeader($title, $caveat, $ed4col, $ed5col) {
printf('
%s
%s
%s
Artist |
Title |
%s
%s
', $title, $title, $caveat, $ed4col, $ed5col);
}
function pageLinks($base, $i, $n) {
printf("Select Page:\n");
for ($j = 1; $j <= $n; $j++) {
if ($j != $i) {
printf(" %d\n", $base, $j, $j);
} else {
printf("<< %d >>\n", $j);
}
}
printf("
\n");
}
function commonFooter($op) {
printf('
');
if ($op != 0) {
printf('Diffs | ');
}
if ($op != 1) {
printf('Drops | ');
}
if ($op != 2) {
print('Adds | ');
}
if ($op != 3) {
print('Changes | ');
}
if ($op != 4) {
print('4-Star | ');
}
if ($op != 5) {
print('3.5-Star | ');
}
printf('
');
}
?>