当前位置: 首页>>代码示例>>PHP>>正文


PHP FormFile::showdocuments方法代码示例

本文整理汇总了PHP中FormFile::showdocuments方法的典型用法代码示例。如果您正苦于以下问题:PHP FormFile::showdocuments方法的具体用法?PHP FormFile::showdocuments怎么用?PHP FormFile::showdocuments使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在FormFile的用法示例。


在下文中一共展示了FormFile::showdocuments方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

 print '<br>';
 // Select mail models is same action as presend
 if (GETPOST('modelselected')) {
     $action = 'presend';
 }
 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
开发者ID:Samara94,项目名称:dolibarr,代码行数:31,代码来源:facture.php

示例2: array

 print '<br>';
 if ($action != 'edit') {
     print '<div class="fichecenter"><div class="fichehalfleft">';
     //print '<table width="100%"><tr><td width="50%" valign="top">';
     //print '<a name="builddoc"></a>'; // ancre
     /*
      * Documents generes
      */
     $ref = dol_sanitizeFileName($object->ref);
     $subdir = get_exdir($object->id, 2, 0, 0, $object, 'invoice_supplier') . $ref;
     $filedir = $conf->fournisseur->facture->dir_output . '/' . get_exdir($object->id, 2, 0, 0, $object, 'invoice_supplier') . $ref;
     $urlsource = $_SERVER['PHP_SELF'] . '?id=' . $object->id;
     $genallowed = $user->rights->fournisseur->facture->creer;
     $delallowed = $user->rights->fournisseur->facture->supprimer;
     $modelpdf = !empty($object->modelpdf) ? $object->modelpdf : (empty($conf->global->INVOICE_SUPPLIER_ADDON_PDF) ? '' : $conf->global->INVOICE_SUPPLIER_ADDON_PDF);
     print $formfile->showdocuments('facture_fournisseur', $subdir, $filedir, $urlsource, $genallowed, $delallowed, $modelpdf, 1, 0, 0, 40, 0, '', '', '', $societe->default_lang);
     $somethingshown = $formfile->numoffiles;
     // Linked object block
     $somethingshown = $form->showLinkedObjectBlock($object);
     // Show links to link elements
     $linktoelem = $form->showLinkToObjectBlock($object, array('supplier_order'));
     if ($linktoelem) {
         print '<br>' . $linktoelem;
     }
     print '</div><div class="fichehalfright"><div class="ficheaddleft">';
     //print '</td><td valign="top" width="50%">';
     //print '<br>';
     // 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_supplier', $socid);
开发者ID:Samara94,项目名称:dolibarr,代码行数:31,代码来源:card.php

示例3: FormActions

     }
     print "</div>";
 }
 print "<br>";
 print '<div class="fichecenter"><div class="fichehalfleft">';
 /*
  * Documents generes
  */
 $comfournref = dol_sanitizeFileName($object->ref);
 $file = $conf->fournisseur->dir_output . '/commande/' . $comfournref . '/' . $comfournref . '.pdf';
 $relativepath = $comfournref . '/' . $comfournref . '.pdf';
 $filedir = $conf->fournisseur->dir_output . '/commande/' . $comfournref;
 $urlsource = $_SERVER["PHP_SELF"] . "?id=" . $object->id;
 $genallowed = $user->rights->fournisseur->commande->creer;
 $delallowed = $user->rights->fournisseur->commande->supprimer;
 print $formfile->showdocuments('commande_fournisseur', $comfournref, $filedir, $urlsource, $genallowed, $delallowed, $object->modelpdf, 1, 0, 0, 0, 0, '', '', '', $object->thirdparty->default_lang);
 $somethingshown = $formfile->numoffiles;
 /*
  * Linked object block
  */
 $somethingshown = $object->showLinkedObjectBlock();
 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, 'order_supplier', $socid);
 if ($user->rights->fournisseur->commande->commander && $object->statut == 2) {
     /*
      * Commander (action=commande)
      */
     print '<br>';
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:31,代码来源:fiche.php

示例4:

     * 	ET user à droit "supprimer"
     *	Afficher : "Supprimer"
     */
    if ($user->rights->expensereport->supprimer && $object->fk_statut == 4) {
        if ($user->id == $object->fk_user_author || $user->id == $object->fk_user_valid) {
            // Brouillonner
            print '<a class="butAction" href="' . $_SERVER["PHP_SELF"] . '?action=brouillonner&id=' . $object->id . '">' . $langs->trans('ReOpen') . '</a>';
        }
        // Delete
        print '<a class="butActionDelete" href="' . $_SERVER["PHP_SELF"] . '?action=delete&id=' . $object->id . '">' . $langs->trans('Delete') . '</a>';
    }
}
print '</div>';
//$conf->global->DOL_URL_ROOT_DOCUMENT_PHP=dol_buildpath('/expensereport/documentwrapper.php',1);
print '<div style="width:50%">';
/*
 * Generate documents
 */
if ($user->rights->expensereport->export && $object->fk_statut > 0 && $action != 'edit') {
    $filename = dol_sanitizeFileName($object->ref);
    $filedir = $conf->expensereport->dir_output . "/" . dol_sanitizeFileName($object->ref);
    $urlsource = $_SERVER["PHP_SELF"] . "?id=" . $object->id;
    $genallowed = 1;
    $delallowed = 1;
    $var = true;
    print $formfile->showdocuments('expensereport', $filename, $filedir, $urlsource, $genallowed, $delallowed);
    $somethingshown = $formfile->numoffiles;
}
print '</div>';
llxFooter();
$db->close();
开发者ID:Samara94,项目名称:dolibarr,代码行数:31,代码来源:card.php

示例5:

     print $formmail->get_form();
     print '<br>';
 } else {
     if (empty($conf->global->SOCIETE_DISABLE_BUILDDOC)) {
         print '<div class="fichecenter"><div class="fichehalfleft">';
         print '<a name="builddoc"></a>';
         // ancre
         /*
          * Documents generes
          */
         $filedir = $conf->societe->multidir_output[$object->entity] . '/' . $object->id;
         $urlsource = $_SERVER["PHP_SELF"] . "?socid=" . $object->id;
         $genallowed = $user->rights->societe->creer;
         $delallowed = $user->rights->societe->supprimer;
         $var = true;
         print $formfile->showdocuments('company', $object->id, $filedir, $urlsource, $genallowed, $delallowed, $object->modelpdf, 0, 0, 0, 28, 0, '', 0, '', $object->default_lang);
         print '</div><div class="fichehalfright"><div class="ficheaddleft">';
         print '</div></div></div>';
         print '<br>';
     }
     print '<div class="fichecenter"><br></div>';
     // Subsidiaries list
     $result = show_subsidiaries($conf, $langs, $db, $object);
     // Contacts list
     if (empty($conf->global->SOCIETE_DISABLE_CONTACTS)) {
         $result = show_contacts($conf, $langs, $db, $object, $_SERVER["PHP_SELF"] . '?socid=' . $object->id);
     }
     // Addresses list
     if (!empty($conf->global->SOCIETE_ADDRESSES_MANAGEMENT)) {
         $result = show_addresses($conf, $langs, $db, $object, $_SERVER["PHP_SELF"] . '?socid=' . $object->id);
     }
开发者ID:Samara94,项目名称:dolibarr,代码行数:31,代码来源:soc.php


注:本文中的FormFile::showdocuments方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。