Server IP : 180.180.241.3 / Your IP : 216.73.216.252 Web Server : Microsoft-IIS/7.5 System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /AppServ/www/news/components/com_phocagallery/views/detail/tmpl/ |
Upload File : |
<?php defined('_JEXEC') or die('Restricted access'); $amp = PhocaGalleryUtils::setQuestionmarkOrAmp($this->tmpl['action']); if ((int)$this->tmpl['displayratingimg'] == 1) { // Leave message for already voted images $vote = JRequest::getVar('vote', 0, '', 'int'); if ($vote == 1) { $voteMsg = JText::_('PHOCA GALLERY IMAGE RATED'); } else { $voteMsg = JText::_('You have already rated this image'); } echo '<table style="text-align:left" border="0">' .'<tr>' .'<td><strong>' . JText::_('Rating'). '</strong>: ' . $this->tmpl['votesaverageimg'] .' / '.$this->tmpl['votescountimg'] . ' ' . JText::_($this->tmpl['votestextimg']). ' </td>'; if ($this->tmpl['alreadyratedimg']) { echo '<td style="text-align:left"><ul class="star-rating">' .'<li class="current-rating" style="width:'.$this->tmpl['voteswidthimg'].'px"></li>' .'<li><span class="star1"></span></li>'; for ($i = 2;$i < 6;$i++) { echo '<li><span class="stars'.$i.'"></span></li>'; } echo '</ul></td>' .'<td style="text-align:left" colspan="4"> '.$voteMsg.'</td></tr>'; } else if ($this->tmpl['notregisteredimg']) { echo '<td style="text-align:left"><ul class="star-rating">' .'<li class="current-rating" style="width:'.$this->tmpl['voteswidthimg'].'px"></li>' .'<li><span class="star1"></span></li>'; for ($i = 2;$i < 6;$i++) { echo '<li><span class="stars'.$i.'"></span></li>'; } echo '</ul></td>' .'<td style="text-align:left" colspan="4"> '.JText::_('Only registered and logged in user can rate this image').'</td></tr>'; } else { echo '<td style="text-align:left"><ul class="star-rating">' .'<li class="current-rating" style="width:'.$this->tmpl['voteswidthimg'].'px"></li>' .'<li><a href="'.$this->tmpl['action'].$amp.'controller=detail&task=rate&rating=1" title="1 '. JText::_('star out of').' 5" class="star1">1</a></li>'; for ($i = 2;$i < 6;$i++) { echo '<li><a href="'.$this->tmpl['action'].$amp.'controller=detail&task=rate&rating='.$i.'" title="'.$i.' '. JText::_('star out of').' 5" class="stars'.$i.'">'.$i.'</a></li>'; } echo '</ul></td></tr>'; } echo '</table>'; } ?>