Esempio n. 1
0
				<td>
					<div align="center">
					<?php 
    echo JText::_($row->category_title);
    ?>
					</div>
				</td>				
				<td align="center">
					<?php 
    echo $registration;
    ?>
				
				</td>
				<td align="center">
					<?php 
    echo getFormattedPointsAdm($row->pointstoparticipate);
    ?>
				</td>
				<td align="center">
					<?php 
    if (!$row->inscription) {
        echo "-";
    } else {
        if ($row->numregistered >= 1) {
            if (JFactory::getUser()->authorise('core.create', 'com_alphauserpoints')) {
                echo "<a href=\"index.php?option=com_alphauserpoints&amp;task=exportListUsersRaffle&amp;id=" . $row->id . "\">" . $row->numregistered . "</a>";
            } else {
                echo $row->numregistered;
            }
        } else {
            echo $row->numregistered;
Esempio n. 2
0
        ?>
					</td>
					<td>					
						<?php 
        $linkPA = "<a href=\"index.php?option=com_alphauserpoints&task=showdetails&cid=" . $rowPA->referreid . "&name=" . htmlspecialchars($rowPA->name, ENT_QUOTES, 'UTF-8') . "\">";
        echo $linkPA . htmlspecialchars($rowPA->name, ENT_QUOTES, 'UTF-8') . "</a>";
        ?>
					</td>
					<td>
						<?php 
        echo $rowPA->username;
        ?>
					</td>
					<td align="right">
						<?php 
        echo getFormattedPointsAdm($rowPA->pendingapprovalpoints);
        ?>
					</td>
					<td>
						<?php 
        $linkDeletePA = '<a href="index.php?option=com_alphauserpoints&task=deletependingapproval&cid=' . $rowPA->cid . '">';
        echo $linkDeletePA . '<img src="' . JURI::base(true) . '/components/com_alphauserpoints/assets/images/trash-16.png" alt="" style="vertical-align:middle;" /></a>';
        ?>
					</td>
				</tr>
				<?php 
    }
    ?>
		  </table>
		  <table class="adminform">
		  	<tr>
Esempio n. 3
0
    } else {
        if (JFactory::getUser()->authorise('core.edit', 'com_alphauserpoints')) {
            echo '<a href="' . $link . '">';
        }
        echo JText::_(strtoupper($row->couponcode));
        if (JFactory::getUser()->authorise('core.edit', 'com_alphauserpoints')) {
            echo '</a>';
        }
    }
    ?>
					
				</td>
				<td>
					<div align="right">
					<?php 
    echo getFormattedPointsAdm($row->points);
    ?>
					</div>
				</td>
				<td>
					<div align="center">
					<?php 
    echo JText::_($row->category_title);
    ?>
					</div>
				</td>				
				<td>
					<div align="center">
					<?php 
    if ($row->expires == $nullDate) {
        echo '-';
Esempio n. 4
0
					<?php 
    echo JText::_($row->category_title);
    ?>
					</div>
				</td>
				<td>
					<div align="center">
					<?php 
    echo $typerank;
    ?>
					</div>
				</td>
				<td>		
					<div align="center">
					<?php 
    echo getFormattedPointsAdm($row->levelpoints);
    ?>
					</div>
				</td>
				<td>
					<div align="center">
					<?php 
    echo $image;
    ?>
					</div>
				</td>
				<td>
					<div align="center">
					<?php 
    $num = $row->typerank ? $row->nummedals : $row->numrank;
    if ($num) {
Esempio n. 5
0
    ?>
					</a>
				</td>
				<td>
					<a href="<?php 
    echo $link;
    ?>
">
						<?php 
    echo htmlspecialchars(JText::_($row->usrname), ENT_QUOTES, 'UTF-8');
    ?>
					</a>
				</td>
				<td align="right">
				<?php 
    echo getFormattedPointsAdm($row->last_points);
    ?>
				</td>
				<td align="center">
				<?php 
    if ($row->approved == '1') {
        echo '<span class="label label-success">' . JText::_('AUP_APPROVED') . '</label>';
    } elseif ($row->approved == '0') {
        echo '<span class="label label-important">' . JText::_('AUP_UNAPPROVED') . '</label>';
    }
    ?>
									
				</td>				
			</tr>
			<?php 
    $k = 1 - $k;
Esempio n. 6
0
?>
<br />
<div class="printcoupon"><a href="javascript:window.print()"><?php 
echo JText::_('AUP_PRINT');
?>
</a></div>
<br /><br />
<div class="cut"></div>
<div class="coupon"><div class="couponcolor">
	<div class="infocoupon">	
	<h1><?php 
echo $this->couponcode;
?>
</h1>
	<h2><?php 
echo getFormattedPointsAdm($this->points) . ' ' . JText::_('AUP_POINTS');
?>
 </h2>
	</div>
	<div class="qrcode"><img src="<?php 
echo JURI::base();
?>
components/com_alphauserpoints/assets/coupons/QRcode/250/<?php 
echo strtoupper($this->couponcode);
?>
.png" alt="" align="absmiddle" /></div>
	<div class="infosite">
	<?php 
echo $this->sitename;
?>
 - <?php