Ejemplo n.º 1
0
    print '<tr><td>' . $langs->trans("VoteAllowed") . '</td><td>';
    print $form->selectyesno("vote", 0, 1);
    print '</td></tr>';
    print '<tr><td valign="top">' . $langs->trans("Description") . '</td><td>';
    print '<textarea name="comment" wrap="soft" cols="60" rows="3"></textarea></td></tr>';
    print '<tr><td valign="top">' . $langs->trans("WelcomeEMail") . '</td><td>';
    require_once DOL_DOCUMENT_ROOT . '/core/class/doleditor.class.php';
    $doleditor = new DolEditor('mail_valid', $object->mail_valid, '', 280, 'dolibarr_notes', '', false, true, $conf->fckeditor->enabled, 15, 90);
    $doleditor->Create();
    print '</td></tr>';
    // Other attributes
    $parameters = array();
    $reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $act, $action);
    // Note that $action and $object may have been modified by hook
    if (empty($reshook) && !empty($extrafields->attribute_label)) {
        print $object->showOptionals($extrafields, 'edit');
    }
    print '<tbody>';
    print "</table>\n";
    dol_fiche_end();
    print '<div class="center">';
    print '<input type="submit" name="button" class="button" value="' . $langs->trans("Add") . '">';
    print '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
    print '<input type="submit" name="cancel" class="button" value="' . $langs->trans("Cancel") . '" onclick="history.go(-1)" />';
    print '</div>';
    print "</form>\n";
}
/* ************************************************************************** */
/*                                                                            */
/* View mode                                                                  */
/*                                                                            */
Ejemplo n.º 2
0
    print '<tr><td>' . $langs->trans("VoteAllowed") . '</td><td>';
    print $form->selectyesno("vote", 0, 1);
    print '</td></tr>';
    print '<tr><td valign="top">' . $langs->trans("Description") . '</td><td>';
    print '<textarea name="comment" wrap="soft" cols="60" rows="3"></textarea></td></tr>';
    print '<tr><td valign="top">' . $langs->trans("WelcomeEMail") . '</td><td>';
    require_once DOL_DOCUMENT_ROOT . '/core/class/doleditor.class.php';
    $doleditor = new DolEditor('mail_valid', $adht->mail_valid, '', 280, 'dolibarr_notes', '', false, true, $conf->fckeditor->enabled, 15, 90);
    $doleditor->Create();
    print '</td></tr>';
    // Other attributes
    $parameters = array();
    $reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $act, $action);
    // Note that $action and $object may have been modified by hook
    if (empty($reshook) && !empty($extrafields->attribute_label)) {
        print $adht->showOptionals($extrafields, 'edit');
    }
    print "</table>\n";
    print '<br>';
    print '<center><input type="submit" name="button" class="button" value="' . $langs->trans("Add") . '"> &nbsp; &nbsp; ';
    print '<input type="submit" name="button" class="button" value="' . $langs->trans("Cancel") . '"></center>';
    print "</form>\n";
}
/* ************************************************************************** */
/*                                                                            */
/* Edition de la fiche                                                        */
/*                                                                            */
/* ************************************************************************** */
if ($rowid > 0) {
    if ($action != 'edit') {
        $adht = new AdherentType($db);