$urlsource = $_SERVER['PHP_SELF'] . '?facid=' . $object->id; $genallowed = $user->rights->facture->creer; $delallowed = $user->rights->facture->supprimer; print $formfile->showdocuments('facture', $filename, $filedir, $urlsource, $genallowed, $delallowed, $object->modelpdf, 1, 0, 0, 28, 0, '', '', '', $soc->default_lang); $somethingshown = $formfile->numoffiles; // Linked object block $somethingshown = $form->showLinkedObjectBlock($object); // Show links to link elements $linktoelem = $form->showLinkToObjectBlock($object, array('order')); if ($linktoelem) { print '<br>' . $linktoelem; } // Link for paypal payment if (!empty($conf->paypal->enabled) && $object->statut != 0) { include_once DOL_DOCUMENT_ROOT . '/paypal/lib/paypal.lib.php'; print showPaypalPaymentUrl('invoice', $object->ref); } print '</div><div class="fichehalfright"><div class="ficheaddleft">'; // List of actions on element include_once DOL_DOCUMENT_ROOT . '/core/class/html.formactions.class.php'; $formactions = new FormActions($db); $somethingshown = $formactions->showactions($object, 'invoice', $socid); print '</div></div></div>'; } else { /* * Action presend (or prerelance) */ $object->fetch_projet(); // By default if $action=='presend' $titreform = 'SendBillByMail'; $topicmail = 'SendBillRef';
} else { print ' '; } print '</td>'; } print "</tr>"; $i++; } print "</table>"; } else { dol_print_error($db); } // Link for paypal payment if (!empty($conf->paypal->enabled)) { include_once DOL_DOCUMENT_ROOT . '/paypal/lib/paypal.lib.php'; print showPaypalPaymentUrl('membersubscription', $object->ref); } } /* * Add new subscription form */ if (($action == 'addsubscription' || $action == 'create_thirdparty') && $user->rights->adherent->cotisation->creer) { print '<br>'; print load_fiche_titre($langs->trans("NewCotisation")); // Define default choice to select $bankdirect = 0; // 1 means option by default is write to bank direct with no invoice $invoiceonly = 0; // 1 means option by default is invoice only $bankviainvoice = 0; // 1 means option by default is write to bank via invoice