forked from rho_n/hpr_generator
30 lines
1.3 KiB
HTML
30 lines
1.3 KiB
HTML
<!--% 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="<!--% absolute_path(baseurl) %-->series/<!--% zero_pad_left(series.id) %-->.html"><!--% series.name %--></a></h2>
|
|
<ul>
|
|
<li>Number of episodes: <!--% series.number_of_episodes %--></li>
|
|
<li>Open/closed: <!--% display_choice(series.private, '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>
|