Add new sort option
This commit is contained in:
parent
3e330a40b5
commit
1935e05c9c
|
@ -47,6 +47,7 @@
|
||||||
$('.book').sortElements(function(a, b){
|
$('.book').sortElements(function(a, b){
|
||||||
return $(a).find ("." + $("#sortchoice").val()).text() > $(b).find ("." + $("#sortchoice").val()).text() ? 1 : -1;
|
return $(a).find ("." + $("#sortchoice").val()).text() > $(b).find ("." + $("#sortchoice").val()).text() ? 1 : -1;
|
||||||
});
|
});
|
||||||
|
$("#search").slideUp();
|
||||||
});
|
});
|
||||||
|
|
||||||
$(".fancycover").fancybox({
|
$(".fancycover").fancybox({
|
||||||
|
@ -107,6 +108,8 @@
|
||||||
<select id="sortchoice">
|
<select id="sortchoice">
|
||||||
<option value="st"><?php echo localize("bookword.title") ?></option>
|
<option value="st"><?php echo localize("bookword.title") ?></option>
|
||||||
<option value="sa"><?php echo localize("authors.title") ?></option>
|
<option value="sa"><?php echo localize("authors.title") ?></option>
|
||||||
|
<option value="ss"><?php echo localize("series.title") ?></option>
|
||||||
|
<option value="sp"><?php echo localize("content.published") ?></option>
|
||||||
</select>
|
</select>
|
||||||
<img id="sort" src="images/sort32.png" alt="Sort" />
|
<img id="sort" src="images/sort32.png" alt="Sort" />
|
||||||
</form>
|
</form>
|
||||||
|
@ -157,14 +160,14 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="bookdetail">
|
<div class="bookdetail">
|
||||||
<a class="navigation" href="bookdetail.php?id=<?php echo $entry->book->id ?>" />
|
<a class="navigation" href="bookdetail.php?id=<?php echo $entry->book->id ?>" />
|
||||||
<div class="entryTitle st"><?php echo htmlspecialchars ($entry->title) ?></div>
|
<div class="entryTitle st"><?php echo htmlspecialchars ($entry->title) ?> <span class="sp">(<?php echo date ('Y', $entry->book->pubdate) ?>)</span></div>
|
||||||
<div class="entryContent sa"><?php echo localize("authors.title") . " : " . htmlspecialchars ($entry->book->getAuthorsName ()) ?></div>
|
<div class="entryContent sa"><?php echo localize("authors.title") . " : " . htmlspecialchars ($entry->book->getAuthorsName ()) ?></div>
|
||||||
<div class="entryContent"><?php echo localize("tags.title") . " : " . htmlspecialchars ($entry->book->getTagsName ()) ?></div>
|
<div class="entryContent"><?php echo localize("tags.title") . " : " . htmlspecialchars ($entry->book->getTagsName ()) ?></div>
|
||||||
<?php
|
<?php
|
||||||
$serie = $entry->book->getSerie ();
|
$serie = $entry->book->getSerie ();
|
||||||
if (!is_null ($serie)) {
|
if (!is_null ($serie)) {
|
||||||
?>
|
?>
|
||||||
<div class="entryContent"><?php echo localize("series.title") . " : " . htmlspecialchars ($serie->name) . " (" . $entry->book->seriesIndex . ")" ?></div>
|
<div class="entryContent ss"><?php echo localize("series.title") . " : " . htmlspecialchars ($serie->name) . " (" . $entry->book->seriesIndex . ")" ?></div>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in a new issue