web: add optional class param to row_heading()

This commit is contained in:
David Anderson 2017-07-03 14:46:34 -07:00
parent 8b06de2d28
commit 75d8bae2c5
1 changed files with 4 additions and 3 deletions

View File

@ -496,9 +496,10 @@ function row_heading_array($x, $attrs=null, $class='bg-primary') {
echo "</tr>\n";
}
function row_heading($x) {
echo '<tr><th class="bg-primary" colspan=99>'.$x.'</th></tr>
';
function row_heading($x, $class='bg-primary') {
echo sprintf('<tr><th class="%s" colspan=99>%s</th></tr>
', $class, $x
);
}
function random_string() {