| 
									
										
										
										
											2022-07-31 23:09:00 -04:00
										 |  |  | <!--% PROCESS 'shared-episode-summary.tpl.html' %--> | 
					
						
							| 
									
										
										
										
											2022-07-31 22:25:15 -04:00
										 |  |  | <!--% PROCESS 'shared-avatar.tpl.html' %--> | 
					
						
							| 
									
										
										
										
											2022-08-06 09:59:31 -04:00
										 |  |  | <!--% PROCESS 'shared-utils.tpl.html' %--> | 
					
						
							| 
									
										
										
										
											2022-11-28 19:52:39 -05:00
										 |  |  | <!--% PROCESS "queries-correspondent-${constants.database}.tpl.html" %--> | 
					
						
							| 
									
										
										
										
											2022-07-31 23:09:00 -04:00
										 |  |  | <!--% USE DBI(constants.driver, constants.user, constants.password) %--> | 
					
						
							| 
									
										
										
										
											2022-09-17 17:28:39 -04:00
										 |  |  | <!--% query_hpr_show_count = DBI.prepare('
 | 
					
						
							| 
									
										
										
										
											2022-07-31 23:09:00 -04:00
										 |  |  | 		SELECT id | 
					
						
							|  |  |  | 		FROM eps | 
					
						
							| 
									
										
										
										
											2022-10-21 19:46:31 -04:00
										 |  |  | 		WHERE eps.hostid = ?  | 
					
						
							|  |  |  | 		') | 
					
						
							| 
									
										
										
										
											2022-07-31 23:09:00 -04:00
										 |  |  | %--> | 
					
						
							| 
									
										
										
										
											2022-11-28 19:52:39 -05:00
										 |  |  | <!--% results_hpr_shows = DBI.prepare(query_hpr_shows)
 | 
					
						
							| 
									
										
										
										
											2022-07-31 23:09:00 -04:00
										 |  |  | %--> | 
					
						
							| 
									
										
										
										
											2022-09-17 17:28:39 -04:00
										 |  |  | <!--% hpr_shows_to_count = query_hpr_show_count.execute(id); %--> | 
					
						
							| 
									
										
										
										
											2022-11-28 19:52:39 -05:00
										 |  |  | <!--% hpr_shows = results_hpr_shows.execute(id); %--> | 
					
						
							| 
									
										
										
										
											2022-09-17 17:28:39 -04:00
										 |  |  | <!--% hpr_show_count = 0 %--> | 
					
						
							|  |  |  | <!--% FOREACH show IN hpr_shows_to_count %--> | 
					
						
							|  |  |  | <!--% hpr_show_count = hpr_show_count +1; %--> | 
					
						
							| 
									
										
										
										
											2022-07-31 23:09:00 -04:00
										 |  |  | <!--% END %--> | 
					
						
							| 
									
										
										
										
											2022-09-17 17:28:39 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | <!--% query_twat_show_count = DBI.prepare('
 | 
					
						
							|  |  |  | 		SELECT id | 
					
						
							| 
									
										
										
										
											2022-10-21 19:46:31 -04:00
										 |  |  | 		FROM twat_eps AS eps | 
					
						
							|  |  |  | 		WHERE eps.hostid = ? | 
					
						
							|  |  |  | 		') | 
					
						
							| 
									
										
										
										
											2022-09-17 17:28:39 -04:00
										 |  |  | %--> | 
					
						
							|  |  |  | <!--% query_twat_shows = DBI.prepare('
 | 
					
						
							|  |  |  | 		SELECT  | 
					
						
							|  |  |  | 		eps.id,  | 
					
						
							|  |  |  | 		CASE eps.explicit WHEN 1 THEN \'Explicit\' ELSE \'Clean\' END AS explicit ,  | 
					
						
							|  |  |  | 		eps.date, eps.license, eps.duration, | 
					
						
							|  |  |  | 		eps.title, eps.summary, eps.tags,  | 
					
						
							|  |  |  | 		eps.notes, | 
					
						
							|  |  |  | 		hosts.local_image, | 
					
						
							|  |  |  | 		hosts.hostid,  | 
					
						
							|  |  |  | 		hosts.host, hosts.email, | 
					
						
							|  |  |  | 		miniseries.name AS series, miniseries.id AS seriesid | 
					
						
							|  |  |  | 	FROM twat_eps AS eps | 
					
						
							|  |  |  | 	INNER JOIN hosts ON eps.hostid = hosts.hostid  | 
					
						
							|  |  |  | 	INNER JOIN miniseries ON eps.series = miniseries.id | 
					
						
							|  |  |  | 	WHERE hosts.hostid = ? | 
					
						
							| 
									
										
										
										
											2022-10-21 19:46:31 -04:00
										 |  |  | 	ORDER BY eps.id DESC | 
					
						
							| 
									
										
										
										
											2022-09-17 17:28:39 -04:00
										 |  |  | 	') | 
					
						
							|  |  |  | %--> | 
					
						
							|  |  |  | <!--% twat_shows_to_count = query_twat_show_count.execute(id); %--> | 
					
						
							|  |  |  | <!--% twat_shows = query_twat_shows.execute(id); %--> | 
					
						
							|  |  |  | <!--% twat_show_count = 0 %--> | 
					
						
							|  |  |  | <!--% FOREACH show IN twat_shows_to_count %--> | 
					
						
							|  |  |  | <!--% twat_show_count = twat_show_count +1; %--> | 
					
						
							|  |  |  | <!--% END %--> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-07-31 23:09:00 -04:00
										 |  |  | <!--% hosts = DBI.tie('hosts', 'hostid') %--> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-07-28 22:04:15 -04:00
										 |  |  | 	<article> | 
					
						
							| 
									
										
										
										
											2022-07-31 23:09:00 -04:00
										 |  |  | 		<!--% this_host = hosts.$id %--> | 
					
						
							| 
									
										
										
										
											2022-07-28 22:04:15 -04:00
										 |  |  | 		<h2 class="title">Correspondent</h2> | 
					
						
							| 
									
										
										
										
											2022-07-31 23:09:00 -04:00
										 |  |  | 		<h2><!--% this_host.host %--></h2> | 
					
						
							| 
									
										
										
										
											2022-08-05 15:49:00 -04:00
										 |  |  | 		<p><img src="<!--% absolute_path(baseurl) %-->images/<!--% get_avatar(this_host.hostid) %-->"  | 
					
						
							| 
									
										
										
										
											2022-07-31 22:25:15 -04:00
										 |  |  | 				height="80" alt="Host Image" /><br> | 
					
						
							| 
									
										
										
										
											2022-07-31 23:09:00 -04:00
										 |  |  | 		<label>Host ID</label>: <!--% this_host.hostid %--><br><br> | 
					
						
							|  |  |  | 		<label>email:</label> <u><!--% this_host.email %--></u><br> | 
					
						
							| 
									
										
										
										
											2022-09-17 17:28:39 -04:00
										 |  |  | 		<label>episodes:</label> <strong><!--% hpr_show_count + twat_show_count %--></strong> | 
					
						
							| 
									
										
										
										
											2022-07-28 22:04:15 -04:00
										 |  |  | 		</p> | 
					
						
							| 
									
										
										
										
											2022-09-17 17:28:39 -04:00
										 |  |  | 	<!--% FOREACH hpr_show IN hpr_shows; %--> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		<!--% show_summary(hpr_show, 'hide_host') %--> | 
					
						
							|  |  |  |     <!--% END %--> | 
					
						
							|  |  |  | 	<!--% FOREACH twat_show IN twat_shows; %--> | 
					
						
							| 
									
										
										
										
											2022-07-31 23:09:00 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-09-17 17:28:39 -04:00
										 |  |  | 		<!--% twat_show_summary(twat_show, 'hide_host') %--> | 
					
						
							| 
									
										
										
										
											2022-07-31 23:09:00 -04:00
										 |  |  |     <!--% END %--> | 
					
						
							| 
									
										
										
										
											2022-07-28 22:04:15 -04:00
										 |  |  | 	</article> | 
					
						
							| 
									
										
										
										
											2022-07-31 23:09:00 -04:00
										 |  |  | 	<p><a href="contribute.html">Become a Correspondent</a></p> |