コード例 #1
0
ファイル: card.php プロジェクト: TAASA/Dolibarr-ERP-3.8.1
    print "<br>\n";
    if ($action != 'presend') {
        print '<div class="fichecenter"><div class="fichehalfleft">';
        print '<a name="builddoc"></a>';
        // ancre
        /*
         * Documents generes
         */
        $filename = dol_sanitizeFileName($object->ref);
        $filedir = $conf->projet->dir_output . "/" . dol_sanitizeFileName($object->ref);
        $urlsource = $_SERVER["PHP_SELF"] . "?id=" . $object->id;
        $genallowed = $user->rights->projet->lire && $userAccess > 0;
        $delallowed = $user->rights->projet->creer && $userWrite > 0;
        $var = true;
        $somethingshown = $formfile->show_documents('project', $filename, $filedir, $urlsource, $genallowed, $delallowed, $object->modelpdf);
        print '</div></div class="fichehalfright">';
        if (!empty($object->id)) {
            // List of actions on element
            include_once DOL_DOCUMENT_ROOT . '/core/class/html.formactions.class.php';
            $formactions = new FormActions($db);
            $somethingshown = $formactions->showactions($object, 'project', $socid);
        }
        print '</div>';
    }
    // Hook to add more things on page
    $parameters = array();
    $reshook = $hookmanager->executeHooks('mainCardTabAddMore', $parameters, $object, $action);
    // Note that $action and $object may have been modified by hook
}
llxFooter();
$db->close();
コード例 #2
0
ファイル: facture.php プロジェクト: Samara94/dolibarr
     $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';
     $modelmail = 'facture_send';
     if ($action == 'prerelance') {
         $titrefrom = 'SendReminderBillByMail';
         $topicmail = 'SendReminderBillRef';
         $modelmail = 'facture_relance';
         $action = 'relance';
コード例 #3
0
ファイル: card.php プロジェクト: NoisyBoy86/Dolibarr_test
     $objectref = dol_sanitizeFileName($object->ref);
     $filedir = $conf->expedition->dir_output . "/sending/" . $objectref;
     $urlsource = $_SERVER["PHP_SELF"] . "?id=" . $object->id;
     $genallowed = $user->rights->expedition->lire;
     $delallowed = $user->rights->expedition->supprimer;
     $somethingshown = $formfile->show_documents('expedition', $objectref, $filedir, $urlsource, $genallowed, $delallowed, $object->modelpdf, 1, 0, 0, 28, 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">';
     // List of actions on element
     include_once DOL_DOCUMENT_ROOT . '/core/class/html.formactions.class.php';
     $formactions = new FormActions($db);
     $somethingshown = $formactions->showactions($object, 'shipping', $socid);
     print '</div></div></div>';
 }
 /*
  * Action presend
  */
 //Select mail models is same action as presend
 if (GETPOST('modelselected')) {
     $action = 'presend';
 }
 if ($action == 'presend') {
     $ref = dol_sanitizeFileName($object->ref);
     include_once DOL_DOCUMENT_ROOT . '/core/lib/files.lib.php';
     $fileparams = dol_most_recent_file($conf->expedition->dir_output . '/sending/' . $ref, preg_quote($ref, '/') . '[^\\-]+');
     $file = $fileparams['fullname'];
     // Define output language
コード例 #4
0
ファイル: fiche.php プロジェクト: ripasch/dolibarr
     $file = $conf->commande->dir_output . '/' . $comref . '/' . $comref . '.pdf';
     $relativepath = $comref . '/' . $comref . '.pdf';
     $filedir = $conf->commande->dir_output . '/' . $comref;
     $urlsource = $_SERVER["PHP_SELF"] . "?id=" . $object->id;
     $genallowed = $user->rights->commande->creer;
     $delallowed = $user->rights->commande->supprimer;
     $somethingshown = $formfile->show_documents('commande', $comref, $filedir, $urlsource, $genallowed, $delallowed, $object->modelpdf, 1, 0, 0, 28, 0, '', '', '', $soc->default_lang, $object->hooks);
     /*
      * Linked object block
      */
     $somethingshown = $object->showLinkedObjectBlock();
     print '</td><td valign="top" width="50%">';
     // List of actions on element
     include_once DOL_DOCUMENT_ROOT . '/core/class/html.formactions.class.php';
     $formactions = new FormActions($db);
     $somethingshown = $formactions->showactions($object, 'order', $socid);
     print '</td></tr></table>';
 }
 /*
  * Action presend
  *
  */
 if ($action == 'presend') {
     $ref = dol_sanitizeFileName($object->ref);
     $file = $conf->commande->dir_output . '/' . $ref . '/' . $ref . '.pdf';
     print '<br>';
     print_titre($langs->trans('SendOrderByMail'));
     // Cree l'objet formulaire mail
     include_once DOL_DOCUMENT_ROOT . '/core/class/html.formmail.class.php';
     $formmail = new FormMail($db);
     $formmail->fromtype = 'user';
コード例 #5
0
ファイル: card.php プロジェクト: NoisyBoy86/Dolibarr_test
     $delallowed = $user->rights->ficheinter->supprimer;
     $genallowed = 1;
     $delallowed = 1;
     $var = true;
     //print "<br>\n";
     $somethingshown = $formfile->show_documents('ficheinter', $filename, $filedir, $urlsource, $genallowed, $delallowed, $object->modelpdf, 1, 0, 0, 28, 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">';
     // List of actions on element
     include_once DOL_DOCUMENT_ROOT . '/core/class/html.formactions.class.php';
     $formactions = new FormActions($db);
     $somethingshown = $formactions->showactions($object, 'fichinter', $socid);
     print '</div></div></div>';
 }
 /*
  * Action presend
  */
 if (GETPOST('modelselected')) {
     $action = 'presend';
 }
 if ($action == 'presend') {
     $ref = dol_sanitizeFileName($object->ref);
     include_once DOL_DOCUMENT_ROOT . '/core/lib/files.lib.php';
     $fileparams = dol_most_recent_file($conf->ficheinter->dir_output . '/' . $ref, preg_quote($ref, '/') . '[^\\-]+');
     $file = $fileparams['fullname'];
     // Define output language
     $outputlangs = $langs;
コード例 #6
0
ファイル: card.php プロジェクト: TAASA/Dolibarr-ERP-3.8.1
     $filedir = $conf->askpricesupplier->dir_output . "/" . dol_sanitizeFileName($object->ref);
     $urlsource = $_SERVER["PHP_SELF"] . "?id=" . $object->id;
     $genallowed = $user->rights->askpricesupplier->creer;
     $delallowed = $user->rights->askpricesupplier->supprimer;
     $var = true;
     $somethingshown = $formfile->show_documents('askpricesupplier', $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">';
     // List of actions on element
     include_once DOL_DOCUMENT_ROOT . '/core/class/html.formactions.class.php';
     $formactions = new FormActions($db);
     $somethingshown = $formactions->showactions($object, 'askpricesupplier', $socid);
     print '</div></div></div>';
 }
 /*
  * Action presend
  */
 if (GETPOST('modelselected')) {
     $action = 'presend';
 }
 if ($action == 'presend') {
     $object->fetch_projet();
     $ref = dol_sanitizeFileName($object->ref);
     include_once DOL_DOCUMENT_ROOT . '/core/lib/files.lib.php';
     $fileparams = dol_most_recent_file($conf->askpricesupplier->dir_output . '/' . $ref, preg_quote($ref, '/') . '[^\\-]+');
     $file = $fileparams['fullname'];
     // Define output language
コード例 #7
0
ファイル: card.php プロジェクト: NoisyBoy86/Dolibarr_test
		$somethingshown = $formfile->show_documents('supplier_proposal', $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">';

		// List of actions on element
		include_once DOL_DOCUMENT_ROOT . '/core/class/html.formactions.class.php';
		$formactions = new FormActions($db);
		$somethingshown = $formactions->showactions($object, 'supplier_proposal', $socid);

		print '</div></div></div>';
	}

	/*
	 * Action presend
 	 */
	if (GETPOST('modelselected')) {
		$action = 'presend';
	}
	if ($action == 'presend')
	{
		$object->fetch_projet();

		$ref = dol_sanitizeFileName($object->ref);