<%$book[0]%>

2012 50 Books Winner


<%$book[0]%>
<%$book[1]%>
<%$book[2]%>

% if ($book[10]){ NOMINATOR: <%$book[10]%>

% } % if ($book[5]){ DESIGNER: <%$book[5]%>
% } % if ($book[4]){ ART DIRECTOR: <%$book[4]%>
% } % if ($book[3]){ DESIGN FIRM: <%$book[3]%>
% } % if ($book[6]){ OTHER CREDITS: <%$book[6]%>
% }
% if ($book[14]){ BUY THIS BOOK AT AMAZON >>
% }

<%args> $bookid=>"" <%init> use RubyCore::ObjectInit; use designobserver::Config(); my $rso = new RubyCore::ObjectInit { %designobserver::Config::c }; $rso->dbconnect(); my ($i, $sql, $sth); my @book; $sql = "SELECT title, author, publisher, designfirm, artdirector, designer, othercredits, book, cover, coverimage, nominator, id, finalist_cover, book, amazonlink FROM 5050_2012 WHERE id = '$bookid'"; $sth = $rso->dosql($sql); @book = $sth->fetchrow_array ();