GIF89a;
Direktori : /home/serb/public_html/poll/poll-multi-choice/ |
Current File : /home/serb/public_html/poll/poll-multi-choice/tpl.result.inc.php |
<?php $poll =& $this->poll; ?> <?php include( "css/style.inc.php" ); ?> <div class='poll-result poll-multi-choice' style='display:none;'> <form class='poll-form'> <div class='poll-title'> <?php echo $poll->attr( "title" ); ?> </div> <!-- [BEGIN] Looping through all the items --> <div style='margin:20px 10px'> <?php foreach( $poll->getAllItems() as $item ) { ?> <div class='poll-item' style='padding-bottom:10px;'> <div style='margin:3px 0;'> <?php echo $item->getName(); ?>: <span><?php echo $item->getPercent(); ?>%</span> <span><?php echo $item->getCount(); ?></span> <?php if ( $item->isVoted() ): ?> <span style='color:red;'>«««</span> <?php endif; ?> </div> <div class='ap-bar poll-bar' ap-wratio='<?php echo $item->getWRatio(); ?>'></div> </div> <?php } ?> </div> <!-- [END] Looping through all the items --> <!-- [BEGIN] Show total vote counts --> <div style='text-align:center;margin:10px 10px;'> <span style='color:white;font-weight:bold;font-size:16px;'> <?php echo $poll->attr( "msg-total" ); ?> <?php echo $poll->getTotal(); ?> </span> </div> <!-- [END] Show total vote counts --> <?php if ( $poll->ended() ): ?> <div class='poll-time-msg'> <?php echo $poll->attr( "msg-ended" ); ?> </div> <?php else: ?> <!-- [BEGIN] Back button --> <div style='text-align:center;margin:10px 10px;'> <button class="ap-front ap-ref-tipbox poll-button"> <?php echo $poll->attr( "msg-return" ); ?> </button> </div> <!-- [END] Back button --> <?php endif; ?> <input type='hidden' name='msg-thank-you' value='<?php echo $poll->attr( "msg-thank-you" ); ?>' /> </form> </div>