annotate modules/poll/poll-bar-block.tpl.php @ 1:c1f4ac30525a 6.0

Drupal 6.0
author Franck Deroche <webmaster@defr.org>
date Tue, 23 Dec 2008 14:28:28 +0100
parents
children
rev   line source
webmaster@1 1 <?php
webmaster@1 2 // $Id: poll-bar-block.tpl.php,v 1.2 2007/08/07 08:39:35 goba Exp $
webmaster@1 3
webmaster@1 4 /**
webmaster@1 5 * @file poll-bar-block.tpl.php
webmaster@1 6 * Display the bar for a single choice in a poll
webmaster@1 7 *
webmaster@1 8 * Variables available:
webmaster@1 9 * - $title: The title of the poll.
webmaster@1 10 * - $votes: The number of votes for this choice
webmaster@1 11 * - $total_votes: The number of votes for this choice
webmaster@1 12 * - $percentage: The percentage of votes for this choice.
webmaster@1 13 * - $vote: The choice number of the current user's vote.
webmaster@1 14 * - $voted: Set to TRUE if the user voted for this choice.
webmaster@1 15 *
webmaster@1 16 * @see template_preprocess_poll_bar()
webmaster@1 17 */
webmaster@1 18 ?>
webmaster@1 19
webmaster@1 20 <div class="text"><?php print $title; ?></div>
webmaster@1 21 <div class="bar">
webmaster@1 22 <div style="width: <?php print $percentage; ?>%;" class="foreground"></div>
webmaster@1 23 </div>
webmaster@1 24 <div class="percent">
webmaster@1 25 <?php print $percentage; ?>%
webmaster@1 26 </div>