示例#1
0
 function _displaylist($tpl = null)
 {
     $document = JFactory::getDocument();
     $logo = '<img src="' . JURI::root() . 'administrator/components/com_alphauserpoints/assets/images/icon-48-alphauserpoints.png" />&nbsp;&nbsp;';
     JToolBarHelper::title($logo . 'AlphaUserPoints :: ' . JText::_('AUP_RAFFLE'), 'featured');
     getCpanelToolbar();
     JToolBarHelper::publishList();
     JToolBarHelper::unpublishList();
     JToolBarHelper::divider();
     if (JFactory::getUser()->authorise('core.edit', 'com_alphauserpoints')) {
         JToolBarHelper::editList('editraffle');
     }
     if (JFactory::getUser()->authorise('core.create', 'com_alphauserpoints')) {
         JToolBarHelper::addNew('editraffle');
     }
     if (JFactory::getUser()->authorise('core.delete', 'com_alphauserpoints')) {
         JToolBarHelper::custom('deleteraffle', 'delete.png', 'delete.png', JText::_('AUP_DELETE'));
     }
     getPrefHelpToolbar();
     $this->assignRef('raffle', $this->raffle);
     $this->assignRef('lists', $this->lists);
     $pagination = new JPagination($this->total, $this->limitstart, $this->limit);
     $this->assignRef('pagination', $pagination);
     parent::display($tpl);
 }
示例#2
0
 function _edit_user($tpl = null)
 {
     $document = JFactory::getDocument();
     JFactory::getApplication()->input->set('hidemainmenu', 1);
     $logo = '<img src="' . JURI::root() . 'administrator/components/com_alphauserpoints/assets/images/icon-48-alphauserpoints.png" />&nbsp;&nbsp;';
     JToolBarHelper::title($logo . 'AlphaUserPoints :: ' . JText::_('AUP_USERS_POINTS') . ': ' . $this->row->name, 'user');
     getCpanelToolbar();
     if (JFactory::getUser()->authorise('core.edit.state', 'com_alphauserpoints')) {
         JToolbarHelper::apply('applyuser');
         JToolBarHelper::save('saveuser');
     }
     JToolBarHelper::cancel('canceluser');
     getPrefHelpToolbar();
     JHTML::_('behavior.calendar');
     //$document->addScriptDeclaration("window.addEvent('domready', function(){ var JTooltips = new Tips($$('.hasTip'), { maxTitleChars: 50, fixed: false}); });");
     $this->assignRef('row', $this->row);
     $this->assignRef('listrank', $this->listrank);
     $this->assignRef('medalsexist', $this->medalsexist);
     $pagination = new JPagination($this->total, $this->limitstart, $this->limit);
     $this->assignRef('pagination', $pagination);
     $this->assignRef('userDetails', $this->userDetails);
     $this->assignRef('total', $this->total);
     $this->assignRef('limit', $this->limit);
     $this->assignRef('limitstart', $this->limitstart);
     $this->assignRef('lists', $this->lists);
     $this->assignRef('name', $this->name);
     $this->assignRef('cid', $this->cid);
     parent::display("form");
 }
示例#3
0
 function show($tpl = null)
 {
     $logo = '<img src="' . JURI::root() . 'administrator/components/com_alphauserpoints/assets/images/icon-48-alphauserpoints.png" />&nbsp;&nbsp;';
     JToolBarHelper::title($logo . 'AlphaUserPoints :: ' . JText::_('AUP_PLUGINS'), 'plugin');
     JToolBarHelper::back();
     getPrefHelpToolbar();
     parent::display($tpl);
 }
示例#4
0
 function show($tpl = null)
 {
     $document = JFactory::getDocument();
     $logo = '<img src="' . JURI::root() . 'administrator/components/com_alphauserpoints/assets/images/icon-48-alphauserpoints.png" />&nbsp;&nbsp;';
     JToolBarHelper::title($logo . 'AlphaUserPoints :: ' . JText::_('AUP_COMBINE_ACTIVITIES'), 'install');
     getCpanelToolbar();
     JToolBarHelper::back();
     getPrefHelpToolbar();
     parent::display($tpl);
 }
示例#5
0
 function _displaydetailrank($tpl = null)
 {
     $logo = '<img src="' . JURI::root() . 'administrator/components/com_alphauserpoints/assets/images/icon-48-alphauserpoints.png" />&nbsp;&nbsp;';
     JToolBarHelper::title($logo . 'AlphaUserPoints :: ' . JText::_('AUP_AWARDED'), 'addedit');
     getCpanelToolbar();
     JToolBarHelper::back();
     getPrefHelpToolbar();
     $this->assignRef('detailrank', $this->detailrank);
     $pagination = new JPagination($this->total, $this->limitstart, $this->limit);
     $this->assignRef('pagination', $pagination);
     parent::display("listing");
 }
示例#6
0
 function show($tpl = null)
 {
     $document = JFactory::getDocument();
     JFactory::getApplication()->input->set('hidemainmenu', 1);
     $logo = '<img src="' . JURI::root() . 'administrator/components/com_alphauserpoints/assets/images/icon-48-alphauserpoints.png" />&nbsp;&nbsp;';
     JToolBarHelper::title($logo . 'AlphaUserPoints :: ' . JText::_('AUP_REPORT_SYSTEM'), 'config');
     getCpanelToolbar();
     JToolBarHelper::back();
     getPrefHelpToolbar();
     $this->assignRef('reportsystem', $this->reportsystem);
     parent::display($tpl);
 }
示例#7
0
 function _displayQRcodestats($tpl = null)
 {
     $document = JFactory::getDocument();
     $logo = '<img src="' . JURI::root() . 'administrator/components/com_alphauserpoints/assets/images/icon-48-alphauserpoints.png" />&nbsp;&nbsp;';
     JToolBarHelper::title($logo . 'AlphaUserPoints :: ' . JText::_('AUP_QRCODE'), 'thememanager');
     getCpanelToolbar();
     JToolBarHelper::back();
     getPrefHelpToolbar();
     $this->assignRef('qrcodestats', $this->qrcodestats);
     $this->assignRef('id', $this->id);
     $pagination = new JPagination($this->total, $this->limitstart, $this->limit);
     $this->assignRef('pagination', $pagination);
     parent::display('qrstats');
 }
示例#8
0
 function showform($tpl = null)
 {
     $document = JFactory::getDocument();
     JFactory::getApplication()->input->set('hidemainmenu', 1);
     $logo = '<img src="' . JURI::root() . 'administrator/components/com_alphauserpoints/assets/images/icon-48-alphauserpoints.png" />&nbsp;&nbsp;';
     JToolBarHelper::title($logo . 'AlphaUserPoints :: ' . JText::_('AUP_SETMAXPOINST'), 'cpanel');
     getCpanelToolbar();
     if (JFactory::getUser()->authorise('core.edit.state', 'com_alphauserpoints')) {
         JToolBarHelper::save('savemaxpoints');
     }
     getPrefHelpToolbar();
     $document->addScriptDeclaration("window.addEvent('domready', function(){ var JTooltips = new Tips(\$\$('.hasTip'), { maxTitleChars: 50, fixed: false}); });");
     $this->assignRef('setpoints', $this->setpoints);
     parent::display($tpl);
 }
示例#9
0
 function _display($tpl = null)
 {
     $document = JFactory::getDocument();
     $document->addScript("https://www.google.com/jsapi");
     $logo = '<img src="' . JURI::root() . 'administrator/components/com_alphauserpoints/assets/images/icon-48-alphauserpoints.png" />&nbsp;&nbsp;';
     JToolBarHelper::title($logo . 'AlphaUserPoints :: ' . JText::_('AUP_STATISTICS'), 'searchtext');
     getCpanelToolbar();
     JToolBarHelper::back();
     getPrefHelpToolbar();
     $topcountries = "";
     foreach ($this->topcountryusers as $countryusers) {
         $topcountries .= ",['" . $countryusers->country . "', '" . $countryusers->numusers . "']";
     }
     $scriptCountry = "google.load('visualization', '1', {'packages': ['geochart']});\r\n\t\t\t\t\t\t\t\t google.setOnLoadCallback(drawRegionsMap);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t  function drawRegionsMap() {\r\n\t\t\t\t\t\t\t\t\tvar data = google.visualization.arrayToDataTable([['Country', 'Popularity']" . $topcountries . "\r\n\t\t\t\t\t\t\t\t\t]);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tvar options = {};\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tvar chart = new google.visualization.GeoChart(document.getElementById('chart_div'));\r\n\t\t\t\t\t\t\t\t\tchart.draw(data, {width: 556, height: 347, minValue: 0,  colors: ['#FF0000', '#00FF00']});\r\n\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t";
     $document->addScriptDeclaration($scriptCountry);
     foreach ($this->ratiomembers as $ratio) {
         $sexe = $ratio->gender;
         $num = $ratio->nb;
         switch ($sexe) {
             case '0':
                 $numU = $num;
                 break;
             case '1':
                 $numM = $num;
                 break;
             case '2':
                 $numF = $num;
                 break;
         }
     }
     $scriptGender = "      google.load('visualization', '1', {packages:['corechart']});\r\n\t\t\t  google.setOnLoadCallback(drawChart);\r\n\t\t\t  function drawChart() {\r\n\t\t\t\tvar data = google.visualization.arrayToDataTable([\r\n\t\t\t\t  ['Gender', 'Num'],\r\n\t\t\t\t  ['" . JText::_('AUP_MALES') . "'," . $numM . "],\r\n\t\t\t\t  ['" . JText::_('AUP_FEMALES') . "'," . $numF . "],\r\n\t\t\t\t  ['" . JText::_('AUP_UNKNOW') . "'," . $numU . "]\r\n\t\t\t\t]);\r\n\t\t\r\n\t\t\t\tvar options = {title:'" . JText::_('AUP_RATIO_MALE_FEMALE') . "',  chartArea:{left:10,top:20,width:'100%',height:'100%'},width:320,height:260};\r\n\t\t\r\n\t\t\t\tvar chart = new google.visualization.PieChart(document.getElementById('chart_div_gender'));\r\n\t\t\t\tchart.draw(data, options);\r\n\t\t\t  }\t\t\r\n\t\t";
     $document->addScriptDeclaration($scriptGender);
     $this->assignRef('result', $this->result);
     $this->assignRef('result2', $this->result2);
     $this->assignRef('date_start', $this->date_start);
     $this->assignRef('date_end', $this->date_end);
     $this->assignRef('listrules', $this->listrules);
     $this->assignRef('communitypoints', $this->communitypoints);
     $this->assignRef('average_age', $this->average_age);
     $this->assignRef('average_points_earned_by_day', $this->average_points_earned_by_day);
     $this->assignRef('average_points_spent_by_day', $this->average_points_spent_by_day);
     $this->assignRef('topcountryusers', $this->topcountryusers);
     $this->assignRef('numusers', $this->numusers);
     $this->assignRef('ratiomembers', $this->ratiomembers);
     $this->assignRef('inactiveusers', $this->inactiveusers);
     $this->assignRef('num_days_inactiveusers_rule', $this->num_days_inactiveusers_rule);
     parent::display($tpl);
 }
示例#10
0
 function _displaylist($tpl = null)
 {
     $document = JFactory::getDocument();
     $logo = '<img src="' . JURI::root() . 'administrator/components/com_alphauserpoints/assets/images/icon-48-alphauserpoints.png" />&nbsp;&nbsp;';
     JToolBarHelper::title($logo . 'AlphaUserPoints :: ' . JText::_('AUP_ACTIVITY'), 'searchtext');
     getCpanelToolbar();
     if (JFactory::getUser()->authorise('core.create', 'com_alphauserpoints')) {
         JToolBarHelper::custom('exportallactivitiesallusers', 'upload.png', 'upload.png', JText::_('AUP_EXPORT_ACTIVITIES'), false);
     }
     getPrefHelpToolbar();
     $pagination = new JPagination($this->total, $this->limitstart, $this->limit);
     $this->assignRef('pagination', $pagination);
     $this->assignRef('activities', $this->activities);
     $this->assignRef('lists', $this->lists);
     parent::display($tpl);
 }
示例#11
0
 function _edit_pointsDetails()
 {
     $document = JFactory::getDocument();
     JFactory::getApplication()->input->set('hidemainmenu', 1);
     JToolBarHelper::title('AlphaUserPoints :: ' . JText::_('AUP_ACTIVITY') . ': ' . $this->name, 'addedit');
     getCpanelToolbar();
     if (JFactory::getUser()->authorise('core.edit.state', 'com_alphauserpoints')) {
         JToolBarHelper::save('saveuserdetails');
     }
     JToolBarHelper::cancel('canceluserdetails');
     getPrefHelpToolbar();
     JHTML::_('behavior.calendar');
     $document->addScriptDeclaration("window.addEvent('domready', function(){ var JTooltips = new Tips(\$\$('.hasTip'), { maxTitleChars: 50, fixed: false}); });");
     $this->assignRef('row', $this->row);
     $this->assignRef('name', $this->name);
     $this->assignRef('rulename', $this->rulename);
     $this->assignRef('cid', $this->cid);
     parent::display("form");
 }
示例#12
0
 function show($tpl = null)
 {
     $language = JFactory::getLanguage();
     $tag = $language->getTag();
     $logo = '<img src="' . JURI::root() . 'administrator/components/com_alphauserpoints/assets/images/icon-48-alphauserpoints.png" />&nbsp;&nbsp;';
     JToolBarHelper::title($logo . 'AlphaUserPoints :: ' . JText::_('AUP_CPANEL'), 'cpanel');
     JToolBarHelper::custom('cpanel', 'refresh.png', 'refresh.png', JText::_('AUP_REFRESH'), false);
     $bar = JToolBar::getInstance('toolbar');
     getPrefHelpToolbar();
     require_once JPATH_COMPONENT . DS . 'assets' . DS . 'includes' . DS . 'functions.php';
     jimport('joomla.html.pane');
     $pane = JPane::getInstance('sliders');
     /*
     $scriptMigration = "	window.addEvent('domready', function(){
     				$$('a.rpcmigrate').addEvent('click', function(e){	
     					// stop the default link event
     					// new Event(e).stop();											
     					var url = '".JURI::base(true)."/components/com_alphauserpoints/install/migration_1.5.x.php;
     					var myAjax = new Request({
     							url:url,
     							method: 'get',						
     							onComplete: function(responseText) {
     								$('migration').set('html', responseText);
     							}
     						});
     				myAjax.send();
     				});
     				});";
     $document->addScriptDeclaration($scriptMigration);		
     */
     $this->assignRef('tag', $tag);
     $this->assignRef('pane', $pane);
     $this->assignRef('top10', $this->top10);
     $this->assignRef('needSync', $this->needSync);
     $this->assignRef('check', $this->check);
     $this->assignRef('params', $this->params);
     $this->assignRef('lastactivities', $this->lastactivities);
     $this->assignRef('synch', $this->synch);
     $this->assignRef('recalculate', $this->recalculate);
     $this->assignRef('communitypoints', $this->communitypoints);
     parent::display($tpl);
 }
示例#13
0
 function _edit_templateinvite($tpl = null)
 {
     $document = JFactory::getDocument();
     JFactory::getApplication()->input->set('hidemainmenu', 1);
     JToolBarHelper::title('AlphaUserPoints :: ' . JText::_('AUP_TEMPLATE'), 'thememanager');
     getCpanelToolbar();
     if (JFactory::getUser()->authorise('core.edit.state', 'com_alphauserpoints')) {
         JToolbarHelper::apply('applytemplateinvite');
         JToolBarHelper::save('savetemplateinvite');
     }
     JToolBarHelper::cancel('canceltemplateinvite');
     getPrefHelpToolbar();
     $document->addScriptDeclaration("window.addEvent('domready', function(){ var JTooltips = new Tips(\$\$('.hasTip'), { maxTitleChars: 50, fixed: false}); });");
     $lists = array();
     $lists['published'] = JHTML::_('select.booleanlist', 'published', '', $this->row->published);
     $options = "";
     $options[] = JHTML::_('select.option', '0', JText::_('AUP_PLAIN-TEXT'));
     $options[] = JHTML::_('select.option', '1', JText::_('AUP_HTML'));
     $lists['emailformat'] = JHTML::_('select.genericlist', $options, 'emailformat', 'class="inputbox" size="1"', 'value', 'text', $this->row->emailformat);
     $lists['bcc2admin'] = JHTML::_('select.booleanlist', 'bcc2admin', '', $this->row->bcc2admin);
     $this->assignRef('row', $this->row);
     $this->assignRef('lists', $lists);
     parent::display("form");
 }
示例#14
0
 public function _edit_rule($tpl = null)
 {
     JFactory::getApplication()->input->set('hidemainmenu', 1);
     $document = JFactory::getDocument();
     $document->addStyleDeclaration(".icon-32-plugin-add {background-image: url(components/com_alphauserpoints/assets/images/icon-32-plugin-add.png);}", "text/css");
     $logo = '<img src="' . JURI::root() . 'administrator/components/com_alphauserpoints/assets/images/icon-48-alphauserpoints.png" />&nbsp;&nbsp;';
     JToolBarHelper::title($logo . 'AlphaUserPoints :: ' . JText::_('AUP_RULES'), 'article-add');
     getCpanelToolbar();
     JToolBarHelper::custom('plugins', 'power-cord.png', 'power-cord.png', JText::_('AUP_PLUGINS'), false);
     JToolBarHelper::divider();
     if (JFactory::getUser()->authorise('core.edit.state', 'com_alphauserpoints')) {
         JToolbarHelper::apply('applyrule');
         JToolBarHelper::save('saverule');
     }
     JToolBarHelper::cancel('cancelrule');
     getPrefHelpToolbar();
     //JHTML::_('behavior.mootools');
     JHTML::_('behavior.calendar');
     $document->addScriptDeclaration("window.addEvent('domready', function(){ var JTooltips = new Tips(\$\$('.hasTip'), { maxTitleChars: 50, fixed: false}); });");
     $lists = array();
     // build the html radio buttons for published
     $lists['published'] = JHTML::_('select.booleanlist', 'published', '', $this->row->published);
     $lists['autoapproved'] = JHTML::_('select.booleanlist', 'autoapproved', '', $this->row->autoapproved);
     $auth[] = JHTML::_('select.option', 'Registered', 'Registered');
     $auth[] = JHTML::_('select.option', 'Author', 'Author');
     $auth[] = JHTML::_('select.option', 'Editor', 'Editor');
     $auth[] = JHTML::_('select.option', 'Publisher', 'Publisher');
     $lists['percentage'] = JHTML::_('select.booleanlist', 'percentage', '', $this->row->percentage);
     $lists['fixedpoints'] = JHTML::_('select.booleanlist', 'fixedpoints', '', $this->row->fixedpoints);
     $options[] = JHTML::_('select.option', '', JText::_('AUP_NONE'));
     $options[] = JHTML::_('select.option', 'us', JText::_('AUP_CAT_USER'));
     $options[] = JHTML::_('select.option', 'co', JText::_('AUP_CAT_COMMUNITY'));
     $options[] = JHTML::_('select.option', 'ar', JText::_('AUP_CAT_ARTICLE'));
     $options[] = JHTML::_('select.option', 'li', JText::_('AUP_CAT_LINK'));
     $options[] = JHTML::_('select.option', 'po', JText::_('AUP_CAT_POLL_QUIZZ'));
     $options[] = JHTML::_('select.option', 're', JText::_('AUP_CAT_RECOMMEND_INVITE'));
     $options[] = JHTML::_('select.option', 'fo', JText::_('AUP_CAT_COMMENT_FORUM'));
     $options[] = JHTML::_('select.option', 'vi', JText::_('AUP_CAT_VIDEO'));
     $options[] = JHTML::_('select.option', 'ph', JText::_('CAT_CAT_PHOTO'));
     $options[] = JHTML::_('select.option', 'mu', JText::_('AUP_CAT_MUSIC'));
     $options[] = JHTML::_('select.option', 'sh', JText::_('AUP_CAT_SHOPPING'));
     $options[] = JHTML::_('select.option', 'pu', JText::_('AUP_CAT_PURCHASING'));
     $options[] = JHTML::_('select.option', 'cd', JText::_('AUP_CAT_COUPON_CODE'));
     $options[] = JHTML::_('select.option', 'su', JText::_('AUP_CAT_SUBSCRIPTION'));
     $options[] = JHTML::_('select.option', 'sy', JText::_('AUP_CAT_SYSTEM'));
     $options[] = JHTML::_('select.option', 'ot', JText::_('AUP_CAT_OTHER'));
     $lists['category'] = JHTML::_('select.genericlist', $options, 'category', 'class="inputbox" size="1"', 'value', 'text', $this->row->category);
     $options = "";
     $options[] = JHTML::_('select.option', '1', '1 ' . JText::_('AUP_DAY'));
     $options[] = JHTML::_('select.option', '2', '2 ' . JText::_('AUP_DAYS'));
     $options[] = JHTML::_('select.option', '3', '3 ' . JText::_('AUP_DAYS'));
     $options[] = JHTML::_('select.option', '4', '4 ' . JText::_('AUP_DAYS'));
     $options[] = JHTML::_('select.option', '5', '5 ' . JText::_('AUP_DAYS'));
     $options[] = JHTML::_('select.option', '6', '6 ' . JText::_('AUP_DAYS'));
     $options[] = JHTML::_('select.option', '7', '7 ' . JText::_('AUP_DAYS'));
     $options[] = JHTML::_('select.option', '8', '8 ' . JText::_('AUP_DAYS'));
     $options[] = JHTML::_('select.option', '9', '9 ' . JText::_('AUP_DAYS'));
     $options[] = JHTML::_('select.option', '10', '10 ' . JText::_('AUP_DAYS'));
     $options[] = JHTML::_('select.option', '11', '11 ' . JText::_('AUP_DAYS'));
     $options[] = JHTML::_('select.option', '12', '12 ' . JText::_('AUP_DAYS'));
     $options[] = JHTML::_('select.option', '13', '13 ' . JText::_('AUP_DAYS'));
     $options[] = JHTML::_('select.option', '14', '14 ' . JText::_('AUP_DAYS'));
     $options[] = JHTML::_('select.option', '15', '15 ' . JText::_('AUP_DAYS'));
     $options[] = JHTML::_('select.option', '20', '20 ' . JText::_('AUP_DAYS'));
     $options[] = JHTML::_('select.option', '25', '25 ' . JText::_('AUP_DAYS'));
     $options[] = JHTML::_('select.option', '30', '30 ' . JText::_('AUP_DAYS'));
     $options[] = JHTML::_('select.option', '60', '2 ' . JText::_('AUP_MONTHS'));
     $options[] = JHTML::_('select.option', '90', '3 ' . JText::_('AUP_MONTHS'));
     $options[] = JHTML::_('select.option', '180', '6 ' . JText::_('AUP_MONTHS'));
     $options[] = JHTML::_('select.option', '365', '1 ' . JText::_('AUP_YEAR'));
     $options[] = JHTML::_('select.option', '730', '2 ' . JText::_('AUP_YEARS'));
     $options[] = JHTML::_('select.option', '1825', '5 ' . JText::_('AUP_YEARS'));
     $lists['inactive_preset_period'] = JHTML::_('select.genericlist', $options, 'content_items', 'class="inputbox" size="1"', 'value', 'text', $this->row->content_items);
     $lists['displaymsg'] = JHTML::_('select.booleanlist', 'displaymsg', '', $this->row->displaymsg);
     $lists['notification'] = JHTML::_('select.booleanlist', 'notification', '', $this->row->notification);
     $options = "";
     $options[] = JHTML::_('select.option', '0', JText::_('AUP_PLAIN-TEXT'));
     $options[] = JHTML::_('select.option', '1', JText::_('AUP_HTML'));
     $lists['emailformat'] = JHTML::_('select.genericlist', $options, 'emailformat', 'class="inputbox" size="1"', 'value', 'text', $this->row->emailformat);
     $lists['bcc2admin'] = JHTML::_('select.booleanlist', 'bcc2admin', '', $this->row->bcc2admin);
     $options = "";
     $options[] = JHTML::_('select.option', '0', JText::_('AUP_SELECT_A_METHOD_TO_ATTRIB_POINTS'));
     $options[] = JHTML::_('select.option', '1', JText::_('AUP_ONLY_ONCE'));
     $options[] = JHTML::_('select.option', '2', JText::_('AUP_ONCE_PER_DAY'));
     $options[] = JHTML::_('select.option', '3', JText::_('AUP_ONCE_PER_DAY_MIXED'));
     $options[] = JHTML::_('select.option', '5', JText::_('AUP_ONCE_PER_WEEK'));
     $options[] = JHTML::_('select.option', '6', JText::_('AUP_ONCE_PER_MONTH'));
     $options[] = JHTML::_('select.option', '7', JText::_('AUP_ONCE_PER_YEAR'));
     // --------------
     $options[] = JHTML::_('select.option', '4', JText::_('AUP_WHENEVER'));
     $lists['methods'] = JHTML::_('select.genericlist', $options, 'method', 'class="inputbox" size="1"', 'value', 'text', $this->row->method);
     $lists['groups'] = $this->groups;
     $options = "";
     $options[] = JHTML::_('select.option', '0', JText::_('AUP_DEFAULT'));
     $options[] = JHTML::_('select.option', '1', '1 ' . JText::_('AUP_DAY'));
     $options[] = JHTML::_('select.option', '2', '2 ' . JText::_('AUP_DAYS'));
     $options[] = JHTML::_('select.option', '3', '3 ' . JText::_('AUP_DAYS'));
     $options[] = JHTML::_('select.option', '4', '4 ' . JText::_('AUP_DAYS'));
     $options[] = JHTML::_('select.option', '5', '5 ' . JText::_('AUP_DAYS'));
     $options[] = JHTML::_('select.option', '6', '6 ' . JText::_('AUP_DAYS'));
     $options[] = JHTML::_('select.option', '7', '7 ' . JText::_('AUP_DAYS'));
     $options[] = JHTML::_('select.option', '8', '8 ' . JText::_('AUP_DAYS'));
     $options[] = JHTML::_('select.option', '9', '9 ' . JText::_('AUP_DAYS'));
     $options[] = JHTML::_('select.option', '10', '10 ' . JText::_('AUP_DAYS'));
     $options[] = JHTML::_('select.option', '11', '11 ' . JText::_('AUP_DAYS'));
     $options[] = JHTML::_('select.option', '12', '12 ' . JText::_('AUP_DAYS'));
     $options[] = JHTML::_('select.option', '13', '13 ' . JText::_('AUP_DAYS'));
     $options[] = JHTML::_('select.option', '14', '14 ' . JText::_('AUP_DAYS'));
     $options[] = JHTML::_('select.option', '15', '15 ' . JText::_('AUP_DAYS'));
     $options[] = JHTML::_('select.option', '20', '20 ' . JText::_('AUP_DAYS'));
     $options[] = JHTML::_('select.option', '25', '25 ' . JText::_('AUP_DAYS'));
     $options[] = JHTML::_('select.option', '30', '1 ' . JText::_('AUP_MONTH'));
     $options[] = JHTML::_('select.option', '60', '2 ' . JText::_('AUP_MONTHS'));
     $options[] = JHTML::_('select.option', '90', '3 ' . JText::_('AUP_MONTHS'));
     $options[] = JHTML::_('select.option', '180', '6 ' . JText::_('AUP_MONTHS'));
     $options[] = JHTML::_('select.option', '360', '1 ' . JText::_('AUP_YEAR'));
     $options[] = JHTML::_('select.option', '720', '2 ' . JText::_('AUP_YEARS'));
     $options[] = JHTML::_('select.option', '1080', '3 ' . JText::_('AUP_YEARS'));
     $options[] = JHTML::_('select.option', '1440', '4 ' . JText::_('AUP_YEARS'));
     $options[] = JHTML::_('select.option', '1800', '5 ' . JText::_('AUP_YEARS'));
     $options[] = JHTML::_('select.option', '3600', '10 ' . JText::_('AUP_YEARS'));
     $lists['type_expire_date'] = JHTML::_('select.genericlist', $options, 'type_expire_date', 'class="inputbox" size="1"', 'value', 'text', $this->row->type_expire_date);
     $options = "";
     $options[] = JHTML::_('select.option', '0', JText::_('AUP_NONE'));
     foreach ($this->chainedrules as $chain) {
         $options[] = JHTML::_('select.option', $chain->id, JText::_($chain->rule_name));
     }
     $lists['linkup'] = JHTML::_('select.genericlist', $options, 'linkup', 'class="inputbox" size="1"', 'value', 'text', $this->row->linkup);
     $lists['displayactivity'] = JHTML::_('select.booleanlist', 'displayactivity', '', $this->row->displayactivity);
     $this->assignRef('row', $this->row);
     $this->assignRef('lists', $lists);
     parent::display("form");
 }