Example #1
0
        }
        print '<div class="fichecenter"><div class="fichehalfleft">';
        /*
         * Documents generes
         */
        $filename = dol_sanitizeFileName($object->ref);
        $filedir = $conf->contrat->dir_output . "/" . dol_sanitizeFileName($object->ref);
        $urlsource = $_SERVER["PHP_SELF"] . "?id=" . $object->id;
        $genallowed = $user->rights->contrat->creer;
        $delallowed = $user->rights->contrat->supprimer;
        $var = true;
        $somethingshown = $formfile->show_documents('contract', $filename, $filedir, $urlsource, $genallowed, $delallowed, $object->modelpdf, 1, 0, 0, 28, 0, '', 0, '', $soc->default_lang);
        // Linked object block
        $somethingshown = $form->showLinkedObjectBlock($object);
        // Show links to link elements
        $linktoelem = $form->showLinkToObjectBlock($object);
        if ($linktoelem) {
            print '<br>' . $linktoelem;
        }
        print '</div><div class="fichehalfright"><div class="ficheaddleft">';
        print '</div></div></div>';
    }
}
llxFooter();
$db->close();
?>

<?php 
if ($conf->margin->enabled && $action == 'editline') {
    ?>
Example #2
0
 if ($action != 'prerelance' && $action != 'presend') {
     print '<div class="fichecenter"><div class="fichehalfleft">';
     print '<a name="builddoc"></a>';
     // ancre
     // Documents generes
     $filename = dol_sanitizeFileName($object->ref);
     $filedir = $conf->facture->dir_output . '/' . dol_sanitizeFileName($object->ref);
     $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 {
Example #3
0
    $var = true;
    print $formfile->showdocuments('expensereport', $filename, $filedir, $urlsource, $genallowed, $delallowed);
    $somethingshown = $formfile->numoffiles;
}
print '</div>';
if ($action != 'create' && $action != 'edit' && ($id || $ref)) {
    $permissiondellink = $user->rights->facture->creer;
    // Used by the include of actions_dellink.inc.php
    include DOL_DOCUMENT_ROOT . '/core/actions_dellink.inc.php';
    // Must be include, not include_once
    // Link invoice to intervention
    if (GETPOST('LinkedFichinter')) {
        $object->fetch($id);
        $object->fetch_thirdparty();
        $result = $object->add_object_linked('fichinter', GETPOST('LinkedFichinter'));
    }
    // Linked object block
    $somethingshown = $form->showLinkedObjectBlock($object);
    // Show links to link elements
    $linktoelements = array();
    if ($conf->global->EXPENSES_LINK_TO_INTERVENTION) {
        $linktoelements[] = 'fichinter';
    }
    $linktoelem = '';
    $linktoelem = $form->showLinkToObjectBlock($object, $linktoelements);
    if ($linktoelem) {
        print '<br>' . $linktoelem;
    }
}
llxFooter();
$db->close();