function prepList($listEdit)
 {
     global $my, $acl;
     $lists = array();
     $jour = array();
     $jour[] = mosHTML::makeOption('1', _ACA_AUTO_DAY_CH1);
     $jour[] = mosHTML::makeOption('3', _ACA_AUTO_DAY_CH3);
     $jour[] = mosHTML::makeOption('5', _ACA_AUTO_DAY_CH5);
     $jour[] = mosHTML::makeOption('6', _ACA_AUTO_DAY_CH6);
     $jour[] = mosHTML::makeOption('7', _ACA_AUTO_DAY_CH7);
     $jour[] = mosHTML::makeOption('8', _ACA_AUTO_DAY_CH8);
     $jour[] = mosHTML::makeOption('9', _ACA_AUTO_DAY_CH9);
     $auto_option[] = mosHTML::makeOption('0', _ACA_AUTO_OPTION_NONE);
     $auto_option[] = mosHTML::makeOption('1', _ACA_AUTO_OPTION_NEW);
     if ($listEdit->new_letter == 1) {
         $auto_option[] = mosHTML::makeOption('2', _ACA_AUTO_OPTION_ALL);
     }
     $lists['delay_min'] = mosHTML::selectList($jour, 'delay_min', 'class="inputbox" size="1"', 'value', 'text', $listEdit->delay_min);
     $lists['auto_add'] = mosHTML::radioList($auto_option, 'auto_add', 'class="inputbox"', $listEdit->auto_add);
     $lists['published'] = mosHTML::yesnoRadioList('published', 'class="inputbox"', $listEdit->published);
     $lists['hidden'] = mosHTML::yesnoRadioList('hidden', 'class="inputbox"', $listEdit->hidden);
     $lists_option = lisType::getListOption();
     $lists['list_type'] = listsHTML::aca_radioList($lists_option, 'list_type', 'class="inputbox"', $listEdit->list_type);
     $lists['html_mailings'] = mosHTML::yesnoRadioList('html', 'class="inputbox"', $listEdit->html);
     $lists['unsubscribesend'] = mosHTML::yesnoRadioList("unsubscribesend", 'class="inputbox"', $listEdit->unsubscribesend);
     $lists['footer'] = mosHTML::yesnoRadioList("footer", 'class="inputbox"', $listEdit->footer);
     $my_group = strtolower($acl->get_group_name($listEdit->acc_id, 'ARO'));
     $gtree = $acl->get_group_children_tree(null, 'USERS', false);
     $lists['gid'] = mosHTML::selectList($gtree, 'acc_id', 'size="10"', 'value', 'text', $listEdit->acc_id);
     $lists['edit_perms'] = mosHTML::selectList($gtree, 'acc_level', 'size="10"', 'value', 'text', $listEdit->acc_level);
     return $lists;
 }
 function prepList($listEdit)
 {
     $lists = array();
     $jour = array();
     if (ACA_CMSTYPE) {
         // joomla 15
         $my =& JFactory::getUser();
         $acl =& JFactory::getACL();
         $gtree = $acl->get_group_children_tree(null, 'USERS', false);
         $jour[] = JHTML::_('select.option', '1800', 'Every 30 minutes');
         $jour[] = JHTML::_('select.option', '3600', 'Every hour');
         $jour[] = JHTML::_('select.option', '43200', 'Every 12 hours');
         $jour[] = JHTML::_('select.option', '1', _ACA_AUTO_DAY_CH1);
         $jour[] = JHTML::_('select.option', '3', _ACA_AUTO_DAY_CH3);
         $jour[] = JHTML::_('select.option', '5', _ACA_AUTO_DAY_CH5);
         $jour[] = JHTML::_('select.option', '6', _ACA_AUTO_DAY_CH6);
         $jour[] = JHTML::_('select.option', '7', _ACA_AUTO_DAY_CH7);
         $jour[] = JHTML::_('select.option', '8', _ACA_AUTO_DAY_CH8);
         $jour[] = JHTML::_('select.option', '9', _ACA_AUTO_DAY_CH9);
         $auto_option[] = JHTML::_('select.option', '0', _ACA_AUTO_OPTION_NONE);
         $auto_option[] = JHTML::_('select.option', '1', _ACA_AUTO_OPTION_NEW);
         if ($listEdit->new_letter == 1) {
             $auto_option[] = JHTML::_('select.option', '2', _ACA_AUTO_OPTION_ALL);
         }
         $lists['delay_min'] = JHTML::_('select.genericlist', $jour, 'delay_min', 'class="inputbox" size="1"', 'value', 'text', $listEdit->delay_min);
         $lists['gid'] = JHTML::_('select.genericlist', $gtree, 'acc_id', 'size="10"', 'value', 'text', $listEdit->acc_id);
         $lists['edit_perms'] = JHTML::_('select.genericlist', $gtree, 'acc_level', 'size="10"', 'value', 'text', $listEdit->acc_level);
         $lists['auto_add'] = JHTML::_('select.genericlist', $auto_option, 'auto_add', 'class="inputbox"', 'value', 'text', $listEdit->auto_add);
         $lists['published'] = JHTML::_('select.booleanlist', 'published', 'class="inputbox"', $listEdit->published);
         $lists['hidden'] = JHTML::_('select.booleanlist', 'hidden', 'class="inputbox"', $listEdit->hidden);
         $lists_option = lisType::getListOption();
         $lists['list_type'] = listsHTML::aca_radioList($lists_option, 'list_type', 'class="inputbox"', $listEdit->list_type);
         $lists['html_mailings'] = JHTML::_('select.booleanlist', 'html', 'class="inputbox"', $listEdit->html);
         $lists['unsubscribesend'] = JHTML::_('select.booleanlist', "unsubscribesend", 'class="inputbox"', $listEdit->unsubscribesend);
         $lists['footer'] = JHTML::_('select.booleanlist', "footer", 'class="inputbox"', $listEdit->footer);
     } else {
         //joomla 1x
         global $acl, $my;
         $gtree = $acl->get_group_children_tree(null, 'USERS', false);
         $jour[] = mosHTML::makeOption('1', _ACA_AUTO_DAY_CH1);
         $jour[] = mosHTML::makeOption('3', _ACA_AUTO_DAY_CH3);
         $jour[] = mosHTML::makeOption('5', _ACA_AUTO_DAY_CH5);
         $jour[] = mosHTML::makeOption('6', _ACA_AUTO_DAY_CH6);
         $jour[] = mosHTML::makeOption('7', _ACA_AUTO_DAY_CH7);
         $jour[] = mosHTML::makeOption('8', _ACA_AUTO_DAY_CH8);
         $jour[] = mosHTML::makeOption('9', _ACA_AUTO_DAY_CH9);
         $jour[] = mosHTML::makeOption('1800', 'Every 30 minutes');
         $jour[] = mosHTML::makeOption('3600', 'Every hour');
         $auto_option[] = mosHTML::makeOption('0', _ACA_AUTO_OPTION_NONE);
         $auto_option[] = mosHTML::makeOption('1', _ACA_AUTO_OPTION_NEW);
         if ($listEdit->new_letter == 1) {
             $auto_option[] = mosHTML::makeOption('2', _ACA_AUTO_OPTION_ALL);
         }
         $lists['delay_min'] = mosHTML::selectList($jour, 'delay_min', 'class="inputbox" size="1"', 'value', 'text', $listEdit->delay_min);
         $lists['gid'] = mosHTML::selectList($gtree, 'acc_id', 'size="10"', 'value', 'text', $listEdit->acc_id);
         $lists['edit_perms'] = mosHTML::selectList($gtree, 'acc_level', 'size="10"', 'value', 'text', $listEdit->acc_level);
         $lists['auto_add'] = mosHTML::radioList($auto_option, 'auto_add', 'class="inputbox"', $listEdit->auto_add);
         $lists['published'] = mosHTML::yesnoRadioList('published', 'class="inputbox"', $listEdit->published);
         $lists['hidden'] = mosHTML::yesnoRadioList('hidden', 'class="inputbox"', $listEdit->hidden);
         $lists_option = lisType::getListOption();
         $lists['list_type'] = listsHTML::aca_radioList($lists_option, 'list_type', 'class="inputbox"', $listEdit->list_type);
         $lists['html_mailings'] = mosHTML::yesnoRadioList('html', 'class="inputbox"', $listEdit->html);
         $lists['unsubscribesend'] = mosHTML::yesnoRadioList("unsubscribesend", 'class="inputbox"', $listEdit->unsubscribesend);
         $lists['footer'] = mosHTML::yesnoRadioList("footer", 'class="inputbox"', $listEdit->footer);
     }
     //endif
     $my_group = strtolower($acl->get_group_name($listEdit->acc_id, 'ARO'));
     return $lists;
 }