Beispiel #1
0
 function _display($tpl = null)
 {
     $document = JFactory::getDocument();
     //JHTML::_('behavior.mootools');
     JHTML::_('behavior.calendar');
     require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'assets' . DS . 'includes' . DS . 'pane.php';
     $pane = JPane::getInstance('tabs');
     $slider = JPane::getInstance('sliders');
     $document->addStyleSheet(JURI::base(true) . '/components/com_alphauserpoints/assets/css/alphauserpoints.css');
     $document->addStyleSheet(JURI::base(true) . '/components/com_alphauserpoints/assets/css/bar.css');
     $document->addScript(JURI::base(true) . '/components/com_alphauserpoints/assets/ajax/maxlength.js');
     // CROP AVATAR
     /*
     $document->addStyleSheet(JURI::base(true).'/components/com_alphauserpoints/assets/crop/css/uvumi-crop.css', 'text/css', 'screen');
     $document->addScript(JURI::base(true).'/components/com_alphauserpoints/assets/crop/js/UvumiCrop-compressed.js');
     $scriptCrop = "cropperAvatar = new uvumiCropper('cropAvatar',{
     		coordinates:true,
     		preview:true,
     		downloadButton:false,
     		saveButton:true
     	});";
     $document->addScriptDeclaration($scriptCrop, '');
     */
     isIE();
     // get params definitions
     $params = JComponentHelper::getParams('com_alphauserpoints');
     $enabledUDDEIM = $params->get('showUddeimTab', '0');
     $this->assignRef('params', $this->params);
     $this->assignRef('cparams', $this->cparams);
     $this->assignRef('referreid', $this->referreid);
     $this->assignRef('currenttotalpoints', $this->currenttotalpoints);
     $this->assignRef('lastupdate', $this->lastupdate);
     $this->assignRef('rowslastpoints', $this->rowslastpoints);
     $this->assignRef('referraluser', $this->referraluser);
     $this->assignRef('referralname', $this->referralname);
     $this->assignRef('rowsreferrees', $this->rowsreferrees);
     $this->assignRef('userid', $this->userid);
     $this->assignRef('userrankinfo', $this->userrankinfo);
     $this->assignRef('medalslistuser', $this->medalslistuser);
     $this->assignRef('pane', $pane);
     $this->assignRef('slider', $slider);
     $this->assignRef('pointsearned', $this->pointsearned);
     $this->assignRef('totalpoints', $this->totalpoints);
     $this->assignRef('mypointsearned', $this->mypointsearned);
     $this->assignRef('mypointsspent', $this->mypointsspent);
     $this->assignRef('mypointsearnedthismonth', $this->mypointsearnedthismonth);
     $this->assignRef('mypointsspentthismonth', $this->mypointsspentthismonth);
     $this->assignRef('mypointsearnedthisday', $this->mypointsearnedthisday);
     $this->assignRef('mypointsspentthisday', $this->mypointsspentthisday);
     $this->assignRef('myname', $this->myname);
     $this->assignRef('myusername', $this->myusername);
     $this->assignRef('avatar', $this->avatar);
     $this->assignRef('birthday', $this->birthday);
     $this->assignRef('user_info', $this->user_info);
     $this->assignRef('useAvatarFrom', $this->useAvatarFrom);
     $this->assignRef('mycouponscode', $this->mycouponscode);
     $this->assignRef('userinfo', $this->userinfo);
     $this->assignRef('average_age', $this->average_age);
     $this->assignRef('enabledUDDEIM', $enabledUDDEIM);
     $lists = array();
     if ($this->referreid == @$_SESSION['referrerid']) {
         $options = array();
         $options[] = JHTML::_('select.option', '1', JText::_('AUP_MALE'));
         $options[] = JHTML::_('select.option', '2', JText::_('AUP_FEMALE'));
         $lists['gender'] = JHTML::_('select.radiolist', $options, 'gender', 'class="inputbox"', 'value', 'text', $this->userinfo->gender);
     }
     if ($this->referreid == @$_SESSION['referrerid']) {
         $lists['shareinfos'] = JHTML::_('select.booleanlist', 'shareinfos', '', $this->userinfo->shareinfos);
     }
     $this->assignRef('lists', $lists);
     $pagination = new JPagination($this->total, $this->limitstart, $this->limit);
     $this->assignRef('pagination', $pagination);
     $document->setTitle($this->myusername . ' - ' . getFormattedPoints($this->currenttotalpoints) . ' ' . JText::_('AUP_POINTS'));
     parent::display($tpl);
 }
Beispiel #2
0
        } else {
            $margin = 10;
        }
        ?>
		
			<div style="margin-left:<?php 
        echo $margin;
        ?>
px;margin-top:3px;">
				<?php 
        if ($user->id || !$user->id && $com_params->get('allowGuestUserViewProfil', 1)) {
            echo '<a href="' . $profil . '">' . $usrname . '</a>';
        } else {
            echo $usrname;
        }
        ?>
				<div class="small">
				<?php 
        echo getFormattedPoints($item->points) . ' ' . JText::_('MODAUP_POINTS');
        ?>
				</div>		
			</div>
		</li>		
		<?php 
        $i++;
    }
    ?>
	
	</ul><div style="clear: both;">&nbsp;</div></div>
	<?php 
}
Beispiel #3
0
				<td headers="categorylist_header_title" class="list-title">
					<?php 
            echo JHTML::_('date', $lastpoints->insert_date, JText::_('DATE_FORMAT_LC2'));
            ?>
				</td>
				<td headers="categorylist_header_title" class="list-title">
					<?php 
            echo JText::_($lastpoints->rule_name);
            ?>
				</td>
				<td headers="categorylist_header_title" class="list-title">
					<span class="<?php 
            echo $points_color;
            ?>
"><?php 
            echo getFormattedPoints($lastpoints->points);
            ?>
</span>
				</td>
				<td headers="categorylist_header_title" class="list-title">
					<?php 
            if ($lastpoints->expire_date == $nullDate) {
                echo '-';
            } else {
                echo JHTML::_('date', $lastpoints->expire_date, JText::_('DATE_FORMAT_LC'));
            }
            ?>
				</td>
				<td headers="categorylist_header_title" class="list-title">
					<?php 
            switch ($lastpoints->plugin_function) {
Beispiel #4
0
        ?>
"><div align="left">
		<?php 
        if ($user->id || !$user->id && $com_params->get('allowGuestUserViewProfil', 1)) {
            echo '<a href="' . $profil . '">' . $usrname . '</a>';
        } else {
            echo $usrname;
        }
        ?>
		</div></td>
		<td class="sectiontableentry<?php 
        echo $k;
        ?>
" width="25%"><div align="left">
		<?php 
        echo getFormattedPoints($item->sumpoints);
        ?>
		</div></td>
		</tr>
		<?php 
        if ($params->get('showbar')) {
            ?>
			<tr>		
			<td colspan="3" height="8">
				<div class="progress progress-striped active">
					<div class="bar" style="width: <?php 
            echo $barwidth;
            ?>
%;"><?php 
            echo $barwidth;
            ?>
Beispiel #5
0
<?php

/**
* @version		$Id: mod_alphauserpoints_actual_points.php 2015-August-03 v2.0.2 $
* @package		AlphaUserPoints for Joomla 3.x
* @copyright	Copyright (C) 2008-2015. All rights reserved.
* @license		GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
if ($points) {
    $f = $params->get('format', 'h1');
    echo "<p>" . JText::_('AUP_MYPOINTS') . "</p>";
    echo "<h" . $f . ">" . getFormattedPoints($points) . "</h" . $f . ">";
}
Beispiel #6
0
        ?>
	
				</div>
			<div style="margin-left:<?php 
        echo $margin;
        ?>
px;margin-top:3px;">
				<span class="small">
				<?php 
        if ($user->id || !$user->id && $com_params->get('allowGuestUserViewProfil', 1)) {
            echo '<a href="' . $profil . '">' . $usrname . '</a>';
        } else {
            echo $usrname;
        }
        ?>
				 </span>
				<span class="small">
				<?php 
        echo ' &raquo; ' . getFormattedPoints($item->last_points) . ' ' . JText::_('MODAUP_LP_POINTS');
        ?>
				</span>
			</div>
		</li>		
		<?php 
        $i++;
    }
    ?>
	
	</ul><div style="clear: both;">&nbsp;</div></div>
	<?php 
}
Beispiel #7
0
    ?>
" title="<?php 
    echo JText::_('JCANCEL');
    ?>
"><?php 
    echo JText::_('JCANCEL');
    ?>
</a>
		</div>		
	<input type="hidden" name="option" value="com_alphauserpoints" />
	<input type="hidden" name="view" value="registerqrcode" />
	<input type="hidden" name="couponCode" value="<?php 
    echo $this->couponCode;
    ?>
" />
	<input type="hidden" name="trackID" value="<?php 
    echo $this->trackID;
    ?>
" />
	<input type="hidden" name="task" value="attribqrcode" />
	</fieldset>
</form>
<?php 
} else {
    $app = JFactory::getApplication();
    if ($this->points > 0) {
        $app->enqueueMessage(sprintf(JText::_('AUP_CONGRATULATION'), getFormattedPoints($this->points)));
    } elseif ($this->points < 0) {
        $app->enqueueMessage(sprintf(JText::_('AUP_X_POINTS_HAS_BEEN_DEDUCTED_FROM_YOUR_ACCOUNT'), getFormattedPoints(abs($this->points))));
    }
}
Beispiel #8
0
    }
    ?>
				<?php 
    if ($this->params->get('show_referreid_cols')) {
        ?>
				<td headers="categorylist_header_title" class="list-title">
					<?php 
        echo $row->referreid;
        ?>
				</td>
				<?php 
    }
    ?>
				<td headers="categorylist_header_title" class="list-title">	
					<span class="badge badge-info"><?php 
    echo getFormattedPoints($row->points);
    ?>
</span>
				</td>
				<?php 
    if ($this->params->get('show_referral_user_cols')) {
        ?>
				<td headers="categorylist_header_title" class="list-title">		
					<?php 
        echo $row->referraluser;
        ?>
				</td>
				<?php 
    }
    ?>
			</tr>
Beispiel #9
0
        ?>
					<span class="<?php 
        echo $points_color;
        ?>
">
					<?php 
        switch ($row->plugin_function) {
            case 'sysplgaup_referralpoints':
                echo getFormattedPoints($points) . " %";
                break;
            case 'sysplgaup_unlockmenus':
            case substr($row->plugin_function, 0, 21) == 'sysplgaup_unlockmenus':
                echo getFormattedPoints($points2);
                break;
            default:
                echo getFormattedPoints($points);
                ?>
					<?php 
        }
        ?>
					</span>
					<?php 
    } else {
        echo '-';
    }
    ?>
					<?php 
    if (!$row->published) {
        ?>
					<span class="badge badge-warning">
					<?php 
Beispiel #10
0
        $points_color = '';
        if ($activity->last_points > 0) {
            $points_color = 'badge badge-info';
        }
        if ($activity->last_points < 0) {
            $points_color = 'badge badge-warning';
        }
        if ($activity->last_points == 0) {
            $points_color = 'badge';
        }
        ?>
						<span class="<?php 
        echo $points_color;
        ?>
"><?php 
        echo getFormattedPoints($activity->last_points) . " " . JText::_('AUP_POINTS');
        ?>
</span>
				</td>
			</tr>
		<?php 
        $i++;
    }
    // end foreach
    ?>
			</tbody>
		</table>
		<?php 
    echo '<div class="pagination">';
    echo $this->pagination->getPagesCounter() . '<br />';
    echo $this->pagination->getPagesLinks();