Files
MeDBia/videodb/templates/modern/episodes.tpl
Malin f55c91276e 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>
2026-05-11 09:49:52 +02:00

54 lines
1.0 KiB
Smarty

{*
Template for the video detail view/episodes chapter
$Id: episodes.tpl,v 2.2 2005/05/20 10:24:28 andig2 Exp $
*}
<table width="100%" class="show_plot" cellspacing="0" cellpadding="0">
{counter start=0 print=false name=videocount}
{foreach item=episode from=$video.episodes}
{if !$count}
{cycle values="even,odd" assign=CLASS print=false}
<tr class="{$CLASS}">
{/if}
<td class="list_episode">
{*
<table width="100%" class="show_plot">
<tr>
<td style="text-align:justify">
*}
<b>
<a href="show.php?id={$episode.id}">{$episode.title}</a>
{if $episode.episode}
[{$episode.season}-{$episode.episode}]
{/if}
</b><br/>
{*
<b>{$lang.plot}:</b><br/>{$episode.plot}<br/>
*}
{$episode.plot}
{*
</td>
</tr>
</table>
*}
</td>
{counter assign=count name=videocount}
{if $count == $listcolumns}
{counter start=0 print=false name=videocount}
</tr>
{/if}
{/foreach}
{if $count}
{section name="columnLoop" start=$count loop=$listcolumns}
<td class="{$CLASS}">&nbsp;</td>
{/section}
</tr>
{/if}
</table>