Compare commits
No commits in common. "b1f1fd422990e1c78cf63fbb8f882f9216b5c6dd" and "47c51ec9a26dfaca2f2cda277f60db6407485006" have entirely different histories.
b1f1fd4229
...
47c51ec9a2
6
site.cfg
6
site.cfg
@ -58,9 +58,3 @@ filename: correspondents/[id]/index.html
|
|||||||
navigation: navigation-get-shows.tpl.html
|
navigation: navigation-get-shows.tpl.html
|
||||||
content: content-series.tpl.html
|
content: content-series.tpl.html
|
||||||
filename: series/index.html
|
filename: series/index.html
|
||||||
|
|
||||||
[series_shows]
|
|
||||||
navigation: navigation-get-shows.tpl.html
|
|
||||||
content: content-series_shows.tpl.html
|
|
||||||
multipage: true
|
|
||||||
filename: series/[id].html
|
|
||||||
|
@ -8,18 +8,15 @@
|
|||||||
%-->
|
%-->
|
||||||
<!--% query_shows = DBI.prepare('
|
<!--% query_shows = DBI.prepare('
|
||||||
SELECT
|
SELECT
|
||||||
eps.id,
|
substr(\'0000\' || eps.id, -4, 4) AS [id],
|
||||||
CASE eps.explicit WHEN 1 THEN \'Explicit\' ELSE \'Clean\' END AS explicit ,
|
CASE eps.explicit WHEN 1 THEN \'Explicit\' ELSE \'Clean\' END AS explicit ,
|
||||||
eps.date, eps.license, eps.duration,
|
eps.date, eps.license, eps.duration,
|
||||||
eps.title, eps.summary, eps.tags,
|
eps.title, eps.summary, eps.tags,
|
||||||
eps.notes,
|
eps.series, eps.notes,
|
||||||
hosts.local_image,
|
hosts.local_image,
|
||||||
hosts.hostid,
|
substr(\'0000\' || hosts.hostid, -4, 4) AS [host_id],
|
||||||
hosts.host, hosts.email,
|
hosts.host, hosts.email
|
||||||
miniseries.name AS series
|
FROM eps INNER JOIN hosts ON eps.hostid = hosts.hostid
|
||||||
FROM eps
|
|
||||||
INNER JOIN hosts ON eps.hostid = hosts.hostid
|
|
||||||
INNER JOIN miniseries ON eps.series = miniseries.id
|
|
||||||
WHERE hosts.hostid = ?
|
WHERE hosts.hostid = ?
|
||||||
ORDER BY date DESC ')
|
ORDER BY date DESC ')
|
||||||
%-->
|
%-->
|
||||||
@ -35,7 +32,7 @@
|
|||||||
<!--% this_host = hosts.$id %-->
|
<!--% this_host = hosts.$id %-->
|
||||||
<h2 class="title">Correspondent</h2>
|
<h2 class="title">Correspondent</h2>
|
||||||
<h2><!--% this_host.host %--></h2>
|
<h2><!--% this_host.host %--></h2>
|
||||||
<p><img src="<!--% absolute_path(baseurl) %-->images/<!--% get_avatar(this_host.hostid) %-->"
|
<p><img src="./images/<!--% get_avatar(this_host.hostid) %-->"
|
||||||
height="80" alt="Host Image" /><br>
|
height="80" alt="Host Image" /><br>
|
||||||
<label>Host ID</label>: <!--% this_host.hostid %--><br><br>
|
<label>Host ID</label>: <!--% this_host.hostid %--><br><br>
|
||||||
<label>email:</label> <u><!--% this_host.email %--></u><br>
|
<label>email:</label> <u><!--% this_host.email %--></u><br>
|
||||||
|
@ -17,11 +17,11 @@
|
|||||||
on h.hostid = e.hostid '
|
on h.hostid = e.hostid '
|
||||||
) %-->
|
) %-->
|
||||||
<tr height="80" bgcolor="#CCCCCC">
|
<tr height="80" bgcolor="#CCCCCC">
|
||||||
<td><img src="<!--% absolute_path(baseurl) %-->images/<!--% get_avatar(host.hostid) %-->" height="80" width="80" alt="avatar" /></td>
|
<td><img src="./images/<!--% get_avatar(host.hostid) %-->" height="80" width="80" alt="avatar" /></td>
|
||||||
|
|
||||||
<td><strong><!--% host.host %--></strong><br />
|
<td><strong><!--% host.host %--></strong><br />
|
||||||
|
|
||||||
Host ID: <a href="<!--% absolute_path(baseurl) %-->correspondents/<!--% zero_pad_left(host.hostid) %-->/index.html"><!--% host.hostid %--></a></td>
|
Host ID: <a href="correspondents/<!--% zero_pad_left(host.hostid) %-->/index.html"><!--% host.hostid %--></a></td>
|
||||||
<td><!--% host.license %--></td>
|
<td><!--% host.license %--></td>
|
||||||
<td><!--% host.date %--></td>
|
<td><!--% host.date %--></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -1,48 +0,0 @@
|
|||||||
<!--% PROCESS 'shared-episode-summary.tpl.html' %-->
|
|
||||||
<!--% PROCESS 'shared-avatar.tpl.html' %-->
|
|
||||||
<!--% USE DBI(constants.driver, constants.user, constants.password) %-->
|
|
||||||
<!--% query_series = DBI.prepare('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
|
|
||||||
WHERE miniseries.id = ?
|
|
||||||
ORDER BY name')
|
|
||||||
%-->
|
|
||||||
<!--% series_result = query_series.execute(id) %-->
|
|
||||||
<article>
|
|
||||||
<!--% FOREACH series IN series_result %-->
|
|
||||||
<h1 class="title">In-Depth Series: <!--% series.name %--></h1>
|
|
||||||
<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=79&full=1&gomax=1">ogg</a>, <a href="hpr_spx_rss.php?series=79&full=1&gomax=1">spx</a>, <a href="hpr_mp3_rss.php?series=79&full=1&gomax=1">mp3</a></li>
|
|
||||||
</ul>
|
|
||||||
<div><em><!--% series.description %--></em></div>
|
|
||||||
<!--% END %-->
|
|
||||||
<!--% query_shows = DBI.prepare('SELECT
|
|
||||||
id, date, title,
|
|
||||||
duration, summary, notes,
|
|
||||||
explicit, eps.license, tags,
|
|
||||||
hosts.host, hosts.hostid
|
|
||||||
FROM eps
|
|
||||||
INNER JOIN hosts
|
|
||||||
ON eps.hostid = hosts.hostid
|
|
||||||
WHERE series = ?
|
|
||||||
ORDER BY date DESC
|
|
||||||
')
|
|
||||||
%-->
|
|
||||||
<!--% show_results = query_shows.execute(id) %-->
|
|
||||||
<!--% FOREACH show IN show_results %-->
|
|
||||||
<!--% show_summary(show) %-->
|
|
||||||
<!--% END %-->
|
|
||||||
</article>
|
|
@ -1,7 +0,0 @@
|
|||||||
<!--% USE DBI(constants.driver, constants.user, constants.password) %-->
|
|
||||||
<!--% FOREACH series IN DBI.query(
|
|
||||||
'select s.id from miniseries as s'
|
|
||||||
) %-->
|
|
||||||
,<!--% series.id %-->
|
|
||||||
<!--% END %-->
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
|||||||
<!--% PROCESS 'shared-utils.tpl.html' %-->
|
|
||||||
<!DOCTYPE HTML>
|
<!DOCTYPE HTML>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
@ -25,9 +24,9 @@
|
|||||||
<link rel="alternate" type="application/rss+xml" title="Hacker Public Radio MP3 RSS" href="/hpr_mp3_rss.php" />
|
<link rel="alternate" type="application/rss+xml" title="Hacker Public Radio MP3 RSS" href="/hpr_mp3_rss.php" />
|
||||||
<link rel="alternate" type="application/rss+xml" title="Hacker Public Radio Comments RSS" href="/comments_rss.php" />
|
<link rel="alternate" type="application/rss+xml" title="Hacker Public Radio Comments RSS" href="/comments_rss.php" />
|
||||||
<link rel="license" title="cc by 3.0" href="https://creativecommons.org/licenses/by-sa/3.0/" />
|
<link rel="license" title="cc by 3.0" href="https://creativecommons.org/licenses/by-sa/3.0/" />
|
||||||
<link href="<!--% absolute_path(baseurl) %-->css/hpr.css" rel="stylesheet" />
|
<link href="./css/hpr.css" rel="stylesheet" />
|
||||||
<!--[if IE]>
|
<!--[if IE]>
|
||||||
<link rel="stylesheet" href="<!--% absolute_path(baseurl) %-->css/hpr.css" media="screen" type="text/css" />
|
<link rel="stylesheet" href="css/hpr.css" media="screen" type="text/css" />
|
||||||
<script src="/JavaScript/html5.js"></script>
|
<script src="/JavaScript/html5.js"></script>
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.5, user-scalable=yes"/>
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.5, user-scalable=yes"/>
|
||||||
@ -36,7 +35,7 @@
|
|||||||
<body id="give">
|
<body id="give">
|
||||||
<div id="container" class="shadow">
|
<div id="container" class="shadow">
|
||||||
<header>
|
<header>
|
||||||
<a href=""><img id="hprlogo" src="<!--% absolute_path(baseurl) %-->images/hpr_logo.png" alt=""></a>
|
<a href=""><img id="hprlogo" src="/images/hpr_logo.png" alt=""></a>
|
||||||
<div id="hpr_banner">
|
<div id="hpr_banner">
|
||||||
<p id="accessible_menu">
|
<p id="accessible_menu">
|
||||||
<a href="sitemap.php">Site Map</a>
|
<a href="sitemap.php">Site Map</a>
|
||||||
|
@ -7,7 +7,3 @@
|
|||||||
<!--% IF choice == 1 %--><!--% display_when_true %-->
|
<!--% IF choice == 1 %--><!--% display_when_true %-->
|
||||||
<!--% ELSE %--><!--% display_when_false %--><!--% END %-->
|
<!--% ELSE %--><!--% display_when_false %--><!--% END %-->
|
||||||
<!--% END %-->
|
<!--% END %-->
|
||||||
|
|
||||||
<!--% MACRO absolute_path(baseurl) BLOCK %-->
|
|
||||||
<!--% IF baseurl %-->./<!--% ELSE %-->/<!--% END %-->
|
|
||||||
<!--% END %-->
|
|
||||||
|
Reference in New Issue
Block a user