enable to create one table per year

This commit is contained in:
Martin Monperrus
2019-03-29 21:15:53 +01:00
parent 4387468008
commit 75d56cd632
4 changed files with 56 additions and 16 deletions
+15 -9
View File
@@ -3122,6 +3122,12 @@ class SimpleDisplay {
var $entries = array();
var $headingLevel = BIBTEXBROWSER_HTMLHEADINGLEVEL;
function __construct($db = NULL, $query = NULL) {
if ($db == NULL) return;
$this->setEntries($db->multisearch($query));
}
function incHeadingLevel ($by=1) {
$this->headingLevel += $by;
}
@@ -3220,15 +3226,15 @@ class SimpleDisplay {
echo 'Options: '.@implode(',',$this->options).'<br/>';
}
if ($this->headingLevel == BIBTEXBROWSER_HTMLHEADINGLEVEL) {
echo "\n".'<span class="count">';
if (count($this->entries) == 1) {
echo count ($this->entries).' '.__('result');
} else if (count($this->entries) != 0) {
echo count ($this->entries).' '.__('results');
}
echo "</span>\n";
}
// if ($this->headingLevel == BIBTEXBROWSER_HTMLHEADINGLEVEL) {
// echo "\n".'<span class="count">';
// if (count($this->entries) == 1) {
// echo count ($this->entries).' '.__('result');
// } else if (count($this->entries) != 0) {
// echo count ($this->entries).' '.__('results');
// }
// echo "</span>\n";
// }
print_header_layout();
$pred = NULL;