%doc> ################################################## # Marketability # Alex @ Popcorn 2008 ################################################## # Course Detail ################################################## %doc> <%args> $id => undef %args>







<% $testimonial_first->{heading} %>
‘<% $testimonial_first->{quote} %>’
<% $testimonial_first->{cite} %>
| <% $event->{date_string} %><% $event->{date_end_string} ? ' - '.$event->{date_end_string} : '' %> | <%doc><% $event->{custom_venue} || $event->{venue} %> | %doc><% $event->{location} %> | £<% $event->{price} %> + VAT | {places} ? ' class="'.$event->{places}.'"' : '' %>> % if ($event->{places} ne 'Full') { BOOK % } else { FULL % } |
Course availability key:
Check out our terms
and conditions before booking if you want to.
% }
% while (my $testimonial = $testimonials_st->fetchrow_hashref()) {
‘<% $testimonial->{quote} %>’
<% $testimonial->{cite} %>
% if ($course->{tutor2}) {
% }
<% $tutorsnippet %>
| Check availability/Ask a question | |
| Related Pages and Courses | |
| Workshop Diary | |
| How does tailored training work? | |
| <% $course->{title} %> | |
| |
<%shared> if (!$m->request_args->{id}) { $m->redirect('../'); } my $attachments = $cms->attachments->attachments(owner_type => 'course', owner_id => $m->request_args->{id}); my $course = $dbh->selectrow_hashref(q/SELECT *, c.tutor_snippet AS snippet, t1.name AS tutor1_name, t2.name AS tutor2_name FROM course c LEFT JOIN course_tutor t1 ON c.tutor1 = t1.tutor_id LEFT JOIN course_tutor t2 ON c.tutor2 = t2.tutor_id WHERE course_id = ? /, undef, $m->request_args->{id}); my $testimonials_st = $dbh->prepare("SELECT * FROM course_testimonial WHERE course_id = ? AND active = 'on' ORDER BY sort"); $testimonials_st->execute($m->request_args->{id}); my $firstevent = $dbh->selectrow_hashref(q/SELECT e.places AS places FROM course_event e WHERE course_id = ? AND DATE > NOW() ORDER BY date LIMIT 1 /, undef, $m->request_args->{id}); my $event_st = $dbh->prepare(q/SELECT e.*, DATE_FORMAT(e.date, '%d %M %Y') AS date_string, v.title AS venue FROM course_event e LEFT JOIN course_venue v ON e.venue_id = v.venue_id WHERE course_id = ? AND date > NOW() ORDER BY date/ ); $event_st->execute($m->request_args->{id}); %shared>