Пример #1
0
    jQuery(document).ready(function(){
        jQuery("#exampleclick1").click(function(event){
            if (i1 == 0) { jQuery("#example1").show(); i1=1; }
            else if (i1 == 1)  { jQuery("#example1").hide(); i1=0; }
            });
        jQuery("#exampleclick2").click(function(){
            if (i2 == 0) { jQuery("#example2").show(); i2=1; }
            else if (i2 == 1)  { jQuery("#example2").hide(); i2=0; }
            });
        jQuery("#exampleclick3").click(function(){
            if (i3 == 0) { jQuery("#example3").show(); i3=1; }
            else if (i3 == 1)  { jQuery("#example3").hide(); i3=0; }
            });
	});
    </script>';
    form_constantes($constantes, 2);
    print '*' . $langs->trans("FollowingConstantsWillBeSubstituted") . '<br>';
    print '%LISTE%, %MAILMAN_ADMINPW%, %EMAIL% <br>';
    dol_fiche_end();
    print '<div class="center"><input type="submit" class="button" value="' . $langs->trans("Update") . '" name="update"></div>';
    print '</form>';
} else {
    dol_fiche_head($head, 'mailman', $langs->trans("Setup"), 0, 'user');
    $link = '<a href="' . $_SERVER["PHP_SELF"] . '?action=set&value=1&name=ADHERENT_USE_MAILMAN">';
    //$link.=img_$langs->trans("Activate")
    $link .= img_picto($langs->trans("Disabled"), 'switch_off');
    $link .= '</a>';
    print load_fiche_titre($langs->trans('MailmanTitle'), $link, '');
    dol_fiche_end();
}
if (!empty($conf->global->ADHERENT_USE_MAILMAN)) {
Пример #2
0
print '%DOL_MAIN_URL_ROOT%, %ID%, %FIRSTNAME%, %LASTNAME%, %FULLNAME%, %LOGIN%, %PASSWORD%, ';
print '%COMPANY%, %ADDRESS%, %ZIP%, %TOWN%, %COUNTRY%, %EMAIL%, %BIRTH%, %PHOTO%, %TYPE%, ';
print '%YEAR%, %MONTH%, %DAY%';
print '<br>';
print '<br>';
/*
 * Edition info modele document
 */
$constantes = array('ADHERENT_ETIQUETTE_TYPE', 'ADHERENT_ETIQUETTE_TEXT');
print load_fiche_titre($langs->trans("MembersTickets"), '', '');
form_constantes($constantes);
print '*' . $langs->trans("FollowingConstantsWillBeSubstituted") . '<br>';
print '%DOL_MAIN_URL_ROOT%, %ID%, %FIRSTNAME%, %LASTNAME%, %FULLNAME%, %LOGIN%, %PASSWORD%, ';
print '%COMPANY%, %ADDRESS%, %ZIP%, %TOWN%, %COUNTRY%, %EMAIL%, %BIRTH%, %PHOTO%, %TYPE%, ';
print '%YEAR%, %MONTH%, %DAY%';
print '<br>';
print '<br>';
/*
 * Editing global variables not related to a specific theme
 */
$constantes = array('ADHERENT_AUTOREGISTER_NOTIF_MAIL_SUBJECT', 'ADHERENT_AUTOREGISTER_NOTIF_MAIL', 'ADHERENT_AUTOREGISTER_MAIL_SUBJECT', 'ADHERENT_AUTOREGISTER_MAIL', 'ADHERENT_MAIL_VALID_SUBJECT', 'ADHERENT_MAIL_VALID', 'ADHERENT_MAIL_COTIS_SUBJECT', 'ADHERENT_MAIL_COTIS', 'ADHERENT_MAIL_RESIL_SUBJECT', 'ADHERENT_MAIL_RESIL', 'ADHERENT_MAIL_FROM');
print load_fiche_titre($langs->trans("Other"), '', '');
form_constantes($constantes);
print '*' . $langs->trans("FollowingConstantsWillBeSubstituted") . '<br>';
print '%DOL_MAIN_URL_ROOT%, %ID%, %FIRSTNAME%, %LASTNAME%, %FULLNAME%, %LOGIN%, %PASSWORD%, ';
print '%COMPANY%, %ADDRESS%, %ZIP%, %TOWN%, %COUNTRY%, %EMAIL%, %BIRTH%, %PHOTO%, %TYPE%, ';
//print '%YEAR%, %MONTH%, %DAY%';	// Not supported
print '<br>';
dol_fiche_end();
llxFooter();
$db->close();
Пример #3
0
    jQuery(document).ready(function(){
        jQuery("#exampleclick1").click(function(event){
            if (i1 == 0) { jQuery("#example1").show(); i1=1; }
            else if (i1 == 1)  { jQuery("#example1").hide(); i1=0; }
            });
        jQuery("#exampleclick2").click(function(){
            if (i2 == 0) { jQuery("#example2").show(); i2=1; }
            else if (i2 == 1)  { jQuery("#example2").hide(); i2=0; }
            });
        jQuery("#exampleclick3").click(function(){
            if (i3 == 0) { jQuery("#example3").show(); i3=1; }
            else if (i3 == 1)  { jQuery("#example3").hide(); i3=0; }
            });
	});
    </script>';
    form_constantes($constantes, 1);
    print '*' . $langs->trans("FollowingConstantsWillBeSubstituted") . '<br>';
    print '%LISTE%, %MAILMAN_ADMINPW%, %EMAIL% <br>';
} else {
    $lien = '<a href="' . $_SERVER["PHP_SELF"] . '?action=set&value=1&name=ADHERENT_USE_MAILMAN">';
    //$lien.=img_$langs->trans("Activate")
    $lien .= img_picto($langs->trans("Disabled"), 'switch_off');
    $lien .= '</a>';
    print_fiche_titre($langs->trans('MailmanTitle'), $lien, '');
}
dol_fiche_end();
if (!empty($conf->global->ADHERENT_USE_MAILMAN)) {
    print '<form action="' . $_SERVER["PHP_SELF"] . '">';
    print '<input type="hidden" name="action" value="testsubscribe">';
    print $langs->trans("TestSubscribe") . '<br>';
    print $langs->trans("EMail") . ' <input type="email" class="flat" name="testsubscribeemail" value="' . GETPOST('testsubscribeemail') . '"> <input class="button" type="submit" value="' . $langs->trans("Test") . '"><br>';