?
Path : /home/admin/public_html/old/board/templates/beez/html/com_poll/poll/ |
Current File : /home/admin/public_html/old/board/templates/beez/html/com_poll/poll/default_graph.php |
<?php // @version $Id: default_graph.php 12230 2009-06-21 02:07:34Z ian $ defined('_JEXEC') or die('Restricted access'); ?> <dl class="poll"> <dt><?php echo JText::_( 'Number of Voters' ); ?></dt> <dd><?php echo $this->votes[0]->voters; ?></dd> <dt><?php echo JText::_( 'First Vote' ); ?></dt> <dd><?php echo $this->first_vote; ?></dd> <dt><?php echo JText::_( 'Last Vote' ); ?></dt> <dd><?php echo $this->last_vote; ?></dd> </dl> <h3> <?php echo $this->escape($this->poll->title); ?> </h3> <table class="pollstableborder"><?php JPlugin::loadLanguage( 'tpl_beez' ); ?> <tr> <th id="itema" class="td_1"><?php echo JText::_( 'Hits' ); ?></th> <th id="itemb" class="td_2"><?php echo JText::_( 'Percent' ); ?></th> <th id="itemc" class="td_3"><?php echo JText::_( 'Graph' ); ?></th> </tr> <?php for ( $row = 0; $row < count( $this->votes ); $row++ ) : $vote = $this->votes[$row]; ?> <tr> <td colspan="3" id="question<?php echo $row; ?>" class="question"> <?php echo $vote->text; ?> </td> </tr> <tr class="sectiontableentry<?php echo $vote->odd; ?>"> <td headers="itema question<?php echo $row; ?>" class="td_1"> <?php echo $vote->hits; ?> </td> <td headers="itemb question<?php echo $row; ?>" class="td_2"> <?php echo $vote->percent.'%' ?> </td> <td headers="itemc question<?php echo $row; ?>" class="td_3"> <div class="<?php echo $vote->class; ?>" style="height:<?php echo $vote->barheight; ?>px;width:<?php echo $vote->percent; ?>% !important"></div> </td> </tr> <?php endfor; ?> </table>