From 4d8c223503257fce73cc67ec9b0fe09cc252c5c4 Mon Sep 17 00:00:00 2001 From: Christian Wieninger Date: Wed, 23 May 2007 10:12:50 +0000 Subject: - link to channel in search results --- css/styles.css | 5 +++++ pages/searchresults.ecpp | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/css/styles.css b/css/styles.css index da4c04a..31b76f7 100644 --- a/css/styles.css +++ b/css/styles.css @@ -857,6 +857,11 @@ table.searchresults div.more { cursor: pointer; } +table.searchresults a { + text-decoration: none; + color: black; + font-weight: bold; +} /* ############################## # Login diff --git a/pages/searchresults.ecpp b/pages/searchresults.ecpp index a900061..6711ec8 100644 --- a/pages/searchresults.ecpp +++ b/pages/searchresults.ecpp @@ -56,6 +56,7 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); for (SearchResults::iterator result = results.begin(); result != results.end(); ++result) { // active_line = !active_line; string channelname = Channels.GetByChannelID(result->Channel())->Name(); + int channelnr = Channels.GetByChannelID(result->Channel())->Number(); string start(result->StartTime() ? FormatDateTime(tr("%I:%M %p"), result->StartTime()) : ""); string end(result->StopTime() ? FormatDateTime(tr("%I:%M %p"), result->StopTime()) : ""); string day(result->StartTime() ? FormatDateTime(tr("%A, %b %d %Y"), result->StartTime()) : ""); @@ -86,7 +87,7 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); % } "> <& pageelems.event_timer channelid=(channel_id) eventid=(event)&> - <$ channelname $> + <$ channelname $> <$ start $> - <$ end $> -- cgit v1.2.3