feat: add videodb media index with Docker stack
- Add videodb PHP/MySQL media collection manager (Blu-ray, DVD, CD) - Dockerfile: PHP 8.1 + Apache with GD/mysqli/exif extensions - docker-compose.yml: app on port 6761 + MySQL 8.0 with health checks - docker-entrypoint.sh: auto-generates config.inc.php from env vars, waits for MySQL, initializes DB schema idempotently - init-db.php: CLI schema installer using app's own prefix_query() logic - Persistent volumes for DB, cache, and cover images Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
42
videodb/templates/nexgen/footer.tpl
Normal file
42
videodb/templates/nexgen/footer.tpl
Normal file
@@ -0,0 +1,42 @@
|
||||
{*
|
||||
Footer template
|
||||
$Id: footer.tpl,v 1.2 2013/03/12 19:13:18 andig2 Exp $
|
||||
*}
|
||||
|
||||
<!-- {$smarty.template} -->
|
||||
|
||||
{if !empty($pageno) && !empty($maxpageno)}
|
||||
<footer>
|
||||
<div class="pagination-centered">
|
||||
<ul class="pagination">
|
||||
<li class="arrow {if $pageno <= 1}unavailable{/if}"><a href="{if $pageno <= 1}#{else}index.php?pageno={$pageno-1}{/if}">«</a></li>
|
||||
|
||||
{assign var=delta value=2}
|
||||
|
||||
{if $maxpageno > 0}
|
||||
<li {if $pageno == 1}class="current"{/if}><a href="index.php?pageno=1">1</a></li>
|
||||
{/if}
|
||||
|
||||
{if $pageno-$delta > 2}<li class="unavailable"><a href="">…</a></li>{/if}
|
||||
|
||||
{for $page=($pageno-$delta)|max:2 to ($pageno+$delta)|min:($maxpageno-1)}
|
||||
<li {if $page==$pageno}class="current"{/if}><a href="index.php?pageno={$page}">{$page}</a></li>
|
||||
{/for}
|
||||
|
||||
{if $pageno+$delta <= $maxpageno-2}<li class="unavailable"><a href="">…</a></li>{/if}
|
||||
|
||||
{if $maxpageno > 1}
|
||||
<li {if $pageno == $maxpageno}class="current"{/if}><a href="index.php?pageno={$maxpageno}">{$maxpageno}</a></li>
|
||||
{/if}
|
||||
<li class="arrow {if $pageno >= $maxpageno}unavailable{/if}"><a href="{if $pageno >= $maxpageno}#{else}index.php?pageno={$pageno+1}{/if}">»</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</footer>
|
||||
{/if}
|
||||
|
||||
{if $DEBUG}
|
||||
<div class="row">{$DEBUG}</div>
|
||||
{/if}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user