<!-- star rating, width 150px (5x30) for the wrapping div is necessary -->
<div style="position:relative;left:453px;margin-top:0.5em;width:150px">
 <ul <?php if(!$this->resultOnly):?>id='articleRatigList'<?php endif?> style="text-align:left" class='star-rating'>
  <li <?php if(!$this->resultOnly):?>id='current-rating'<?php endif?> class='current-rating' style='width:<?php echo sprintf("%d",$this->average*30)?>px'>Currently <?php echo ($this->average*30)?>/5 Stars.</li>
 <?php if (!$this->resultOnly):?>
  <li><a href='#' title='<?php echo $this->trans("1 star out of 5 - ok")?>' class='one-star' onclick="rateArticle(<?php echo $this->articleId?>,1);return false;">1</a></li>
  <li><a href='#' title='<?php echo $this->trans("2 stars out of 5 - well")?>' class='two-stars' onclick="rateArticle(<?php echo $this->articleId?>,2);return false;">2</a></li>
  <li><a href='#' title='<?php echo $this->trans("3 stars out of 5 - good")?>' class='three-stars' onclick="rateArticle(<?php echo $this->articleId?>,3);return false;">3</a></li>
  <li><a href='#' title='<?php echo $this->trans("4 stars out of 5 - very good")?>' class='four-stars' onclick="rateArticle(<?php echo $this->articleId?>,4);return false;">4</a></li>
  <li><a href='#' title='<?php echo $this->trans("5 stars out of 5 - super")?>' class='five-stars' onclick="rateArticle(<?php echo $this->articleId?>,5);return false;">5</a></li>
 <?php endif?>
 </ul>
</div>

<div style="text-align:right;margin:0;padding:0;">
 <div>
  <?php echo $this->trans("current rating")?> <span <?php if(!$this->resultOnly):?>id="averageRating"<?php endif?>><?php echo sprintf("%.2f",$this->average)?></span>/5 
 (<?php echo $this->trans("votes")?>: <span <?php if(!$this->resultOnly):?>id="votingCount"<?php endif?>><?php echo $this->votingCount?></span>)
 </div>
 <?php if(!$this->resultOnly):?> 
 <span id="ratingMessage"></span>
 <?php endif?> 
</div>
 
