Initial implementation of series page

This commit is contained in:
Roan Horning 2022-08-02 21:57:56 -04:00
parent b8a5a99523
commit 1800d52f88
Signed by untrusted user: rho_n
GPG Key ID: 234AEF20B72D5769
2 changed files with 34 additions and 0 deletions

View File

@ -53,3 +53,8 @@ navigation: navigation-about.tpl.html
content: content-correspondent.tpl.html content: content-correspondent.tpl.html
multipage: true multipage: true
filename: correspondents/[id]/index.html filename: correspondents/[id]/index.html
[series]
navigation: navigation-get-shows.tpl.html
content: content-series.tpl.html
filename: series/index.html

View File

@ -0,0 +1,29 @@
<!--% PROCESS 'shared-utils.tpl.html' %-->
<article>
<!--% USE DBI(constants.driver, constants.user, constants.password) %-->
<h1 class="title">In-Depth Series</h1>
<!--% FOREACH series IN DBI.query(
'SELECT miniseries.id, miniseries.name, miniseries.description,
miniseries.private, miniseries.image, miniseries.valid,
ep.number_of_episodes, ep.latest_show, ep.earliest_show
FROM miniseries
INNER JOIN
(SELECT series,
COUNT(eps.id) AS number_of_episodes,
MAX(eps.date) AS latest_show,
MIN(eps.date) AS earliest_show
FROM eps
GROUP BY series) AS ep ON ep.series = miniseries.id
ORDER BY name'
) %-->
<h2><a href="series/<!--% zero_pad_left(series.id) %-->.html"><!--% series.name %--></a></h2>
<ul>
<li>Number of episodes: <!--% series.number_of_episodes %--></li>
<li>Open/closed: open</li>
<li>Date of earliest show: <!--% series.earliest_show %--></li>
<li>Date of latest show: <!--% series.latest_show %--></li>
<li>Series RSS feeds: <a href="hpr_ogg_rss.php?series=38">ogg</a>, <a href="hpr_spx_rss.php?series=38">spx</a>, <a href="hpr_mp3_rss.php?series=38">mp3</a></li>
</ul>
<em><!--% series.description %--></em>
<!--% END %-->
</article>