本文整理汇总了PHP中FormFile::show_documents方法的典型用法代码示例。如果您正苦于以下问题:PHP FormFile::show_documents方法的具体用法?PHP FormFile::show_documents怎么用?PHP FormFile::show_documents使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FormFile
的用法示例。
在下文中一共展示了FormFile::show_documents方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: FormActions
if ($user->rights->expedition->supprimer) {
print '<a class="butActionDelete" href="' . $_SERVER["PHP_SELF"] . '?id=' . $object->id . '&action=delete">' . $langs->trans("Delete") . '</a>';
}
print '</div>';
}
/*
* Documents generated
*/
if ($action != 'presend') {
print '<div class="fichecenter"><div class="fichehalfleft">';
$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
*/
示例2: FormActions
print '</div>';
if ($_GET['action'] != 'edit') {
print '<table width="100%"><tr><td width="50%" valign="top">';
print '<a name="builddoc"></a>';
// ancre
/*
* Documents generes
*/
$ref = dol_sanitizeFileName($fac->ref);
$subdir = get_exdir($fac->id, 2) . $ref;
$filedir = $conf->fournisseur->facture->dir_output . '/' . get_exdir($fac->id, 2) . $ref;
$urlsource = $_SERVER['PHP_SELF'] . '?facid=' . $fac->id;
$genallowed = $user->rights->fournisseur->facture->creer;
$delallowed = $user->rights->fournisseur->facture->supprimer;
print '<br>';
$somethingshown = $formfile->show_documents('facture_fournisseur', $subdir, $filedir, $urlsource, $genallowed, $delallowed, $fac->modelpdf, 1, 0, 0, 0, 0, '', '', '', $societe->default_lang);
$object = $fac;
/*
* Linked object block
*/
$somethingshown = $object->showLinkedObjectBlock();
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);
print '</td></tr></table>';
}
}
/*
示例3:
} else {
print '<div class="inline-block divButAction"><a class="butActionRefused" href="#" title="' . dol_escape_htmltag($langs->trans("NotAllowed")) . '">' . $langs->trans("Delete") . '</a></div>';
}
print "</div>";
}
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();
?>
示例4: FormActions
print "</div>";
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();
示例5:
if (empty($conf->global->SOCIETE_DISABLE_BUILDDOC))
{
print '<table width="100%"><tr><td valign="top" width="50%">';
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;
$somethingshown=$formfile->show_documents('company',$object->id,$filedir,$urlsource,$genallowed,$delallowed,'',0,0,0,28,0,'',0,'',$object->default_lang);
print '</td>';
print '<td></td>';
print '</tr>';
print '</table>';
print '<br>';
}
// Subsidiaries list
$result=show_subsidiaries($conf,$langs,$db,$object);
// Contacts list
if (empty($conf->global->SOCIETE_DISABLE_CONTACTS))
{
示例6: FormActions
print '<table width="100%"><tr><td width="50%" valign="top">';
/*
* Documents generes
*/
$filename=dol_sanitizeFileName($object->ref);
$filedir=$conf->propale->dir_output . "/" . dol_sanitizeFileName($object->ref);
$urlsource=$_SERVER["PHP_SELF"]."?id=".$object->id;
$genallowed=0;
$delallowed=0;
$var=true;
$somethingshown=$formfile->show_documents('propal',$filename,$filedir,$urlsource,$genallowed,$delallowed);
/*
* 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,'propal',$socid);
print '</td></tr></table>';
示例7:
} else {
dol_print_error($db);
}
dol_fiche_end();
}
/*
* Boutons Actions
*/
print '<div class="tabsAction">';
/*if ($user->societe_id == 0 && count($accounts) == 1 && $action == 'new' && $user->rights->banque->cheque)
{
print '<a class="butAction" href="'.$_SERVER["PHP_SELF"].'?action=create&accountid='.$account_id.'">'.$langs->trans('NewCheckReceipt').'</a>';
}*/
if ($user->societe_id == 0 && !empty($object->id) && $object->statut == 0 && $user->rights->banque->cheque) {
print '<a class="butAction" href="' . $_SERVER["PHP_SELF"] . '?id=' . $object->id . '&action=valide&sortfield=' . $sortfield . '&sortorder=' . $sortorder . '">' . $langs->trans('Valid') . '</a>';
}
if ($user->societe_id == 0 && !empty($object->id) && $user->rights->banque->cheque) {
print '<a class="butActionDelete" href="' . $_SERVER["PHP_SELF"] . '?id=' . $object->id . '&action=delete&sortfield=' . $sortfield . '&sortorder=' . $sortorder . '">' . $langs->trans('Delete') . '</a>';
}
print '</div>';
if ($action != 'new') {
if ($object->statut == 1) {
$filename = dol_sanitizeFileName($object->ref);
$filedir = $dir . get_exdir($object->number, 2, 1) . dol_sanitizeFileName($object->ref);
$urlsource = $_SERVER["PHP_SELF"] . "?id=" . $object->id;
$formfile->show_documents('remisecheque', $filename, $filedir, $urlsource, 1, 1);
print '<br>';
}
}
$db->close();
llxFooter();
示例8: foreach
<?php
foreach ($shippableOrder->statusShippable as $statusdesckey => $statusdescval) {
?>
<tr>
<td><?php
echo $statusdescval['picto'];
?>
</td>
<td><?php
echo $statusdescval['trans'];
?>
</td>
</tr>
<?php
}
?>
</table>
<?php
if ($conf->global->SHIPPABLEORDER_GENERATE_GLOBAL_PDF) {
print '<br><br>';
// We disable multilang because we concat already existing pdf.
$formfile = new FormFile($db);
$formfile->show_documents('shippableorder', '', $diroutputpdf, $urlsource, false, true, '', 1, 1, 0, 48, 1, $param, $langs->trans("GlobalGeneratedFiles"));
}
$db->free($resql);
} else {
print dol_print_error($db);
}
llxFooter();
$db->close();
示例9:
print "</div>";
}
print '<table width="100%"><tr><td width="50%" valign="top">';
print '<a name="builddoc"></a>';
// ancre
/*
* 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;
$somethingshown = $formfile->show_documents('commande_fournisseur', $comfournref, $filedir, $urlsource, $genallowed, $delallowed, $object->modelpdf, 1, 0, 0, 0, 0, '', '', '', $soc->default_lang);
$object = $object;
/*
* Linked object block
*/
$somethingshown = $object->showLinkedObjectBlock();
print '</td><td valign="top" width="50%">';
if ($user->rights->fournisseur->commande->commander && $object->statut == 2) {
/**
* Commander (action=commande)
*/
print '<br>';
print '<form name="commande" action="fiche.php?id=' . $object->id . '&action=commande" method="post">';
print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
print '<input type="hidden" name="action" value="commande">';
print '<table class="border" width="100%">';
示例10: time
print '<textarea rows="' . ROWS_3 . '" cols="120">' . $command . " " . $paramcrypted . '</textarea><br>' . "\n";
print '<br>';
// Now show to ask to run command
print $langs->trans("YouMustRunCommandFromCommandLineAfterLoginToUser", $dolibarr_main_db_user, $dolibarr_main_db_user);
print '<br>';
print '<br>';
$what = '';
}
// Si on a demande une generation
if ($what) {
if ($errormsg) {
print '<div class="error">' . $langs->trans("Error") . " : " . $errormsg . '</div>';
// print '<a href="'.DOL_URL_ROOT.$relativepatherr.'">'.$langs->trans("DownloadErrorFile").'</a><br>';
print '<br>';
print '<br>';
} else {
print '<div class="ok">';
print $langs->trans("BackupFileSuccessfullyCreated") . '.<br>';
print $langs->trans("YouCanDownloadBackupFile");
print '</div>';
print '<br>';
}
}
$result = $formfile->show_documents('systemtools', 'backup', $conf->admin->dir_output . '/backup', $_SERVER['PHP_SELF'], 0, 1, '', 1, 0, 0, 54, 0, '', $langs->trans("PreviousDumpFiles"));
if ($result == 0) {
print $langs->trans("NoBackupFileAvailable") . '<br>';
print $langs->trans("ToBuildBackupFileClickHere", DOL_URL_ROOT . '/admin/tools/dolibarr_export.php') . '<br>';
}
print '<br>';
$time_end = time();
llxFooter('$Date: 2011/08/03 00:45:43 $ - $Revision: 1.45 $');
示例11:
if ($object->statut == 1 && round($remaintopay) == 0 && $object->paid == 0 && $user->rights->don->creer) {
print '<div class="inline-block divButAction"><a class="butAction" href="' . $_SERVER["PHP_SELF"] . '?rowid=' . $object->id . '&action=set_paid">' . $langs->trans("ClassifyPaid") . "</a></div>";
}
// Delete
if ($user->rights->don->supprimer) {
if ($don->statut == -1 || $don->statut == 0) {
print '<div class="inline-block divButAction"><a class="butActionDelete" href="card.php?rowid=' . $don->id . '&action=delete">' . $langs->trans("Delete") . "</a></div>";
} else {
print '<div class="inline-block divButAction"><a class="butActionDelete butActionRefused" href="#">' . $langs->trans("Delete") . "</a></div>";
}
} else {
print '<div class="inline-block divButAction"><a class="butActionRefused" href="#">' . $langs->trans("Delete") . "</a></div>";
}
print "</div>";
print '<table width="100%"><tr><td width="50%" valign="top">';
/*
* Documents generes
*/
$filename = dol_sanitizeFileName($object->id);
$filedir = $conf->don->dir_output . "/" . dol_sanitizeFileName($object->id);
$urlsource = $_SERVER['PHP_SELF'] . '?rowid=' . $object->id;
$genallowed = $object->statut == 2 && ($object->paid == 0 || $user->admin) && $user->rights->don->creer;
$delallowed = $user->rights->don->supprimer;
$var = true;
print '<br>';
$formfile->show_documents('donation', $filename, $filedir, $urlsource, $genallowed, $delallowed, $object->modelpdf);
print '</td><td> </td>';
print '</tr></table>';
}
llxFooter();
$db->close();
示例12: getablenamefromfield
print $mesg;
print '</td></tr>';
}
if ($sqlusedforexport && $user->admin) {
print '<tr><td>';
print info_admin($langs->trans("SQLUsedForExport") . ':<br> ' . $sqlusedforexport);
print '</td></tr>';
}
print '</table>';
print '<table width="100%"><tr><td width="50%">';
if (!is_dir($conf->export->dir_temp)) {
dol_mkdir($conf->export->dir_temp);
}
// Affiche liste des documents
// NB: La fonction show_documents rescanne les modules qd genallowed=1, sinon prend $liste
$formfile->show_documents('export', '', $conf->export->dir_temp . '/' . $user->id, $_SERVER["PHP_SELF"] . '?step=4&datatoexport=' . $datatoexport, $liste, 1, !empty($_POST['model']) ? $_POST['model'] : 'csv', 1, 1);
print '</td><td width="50%"> </td></tr>';
print '</table>';
}
print '<br>';
$db->close();
llxFooter();
/**
* Return table name of an alias. For this, we look for the "tablename as alias" in sql string.
*
* @param string $code Alias.Fieldname
* @param string $sqlmaxforexport SQL request to parse
* @return string Table name of field
*/
function getablenamefromfield($code, $sqlmaxforexport)
{
示例13: FormActions
print '<table width="100%"><tr><td width="50%" valign="top">';
print '<a name="builddoc"></a>'; // ancre
/*
* Documents generes
*/
$ref=dol_sanitizeFileName($fac->ref);
$subdir = get_exdir($fac->id,2).$ref;
$filedir = $conf->fournisseur->facture->dir_output.'/'.get_exdir($fac->id,2).$ref;
$urlsource=$_SERVER['PHP_SELF'].'?facid='.$fac->id;
$genallowed=$user->rights->fournisseur->facture->creer;
$delallowed=$user->rights->fournisseur->facture->supprimer;
print '<br>';
$somethingshown=$formfile->show_documents('facture_fournisseur',$subdir,$filedir,$urlsource,$genallowed,$delallowed,$fac->modelpdf);
$object=$fac;
/*
* Linked object block
*/
$somethingshown=$object->showLinkedObjectBlock();
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);
示例14: FormActions
print "<br>\n";
}
if ($action != 'presend') {
print '<table width="100%"><tr><td width="50%" valign="top">';
print '<a name="builddoc"></a>';
// ancre
/*
* Documents generes
*/
$filename = dol_sanitizeFileName($object->ref);
$filedir = $conf->propal->dir_output . "/" . dol_sanitizeFileName($object->ref);
$urlsource = $_SERVER["PHP_SELF"] . "?id=" . $object->id;
$genallowed = $user->rights->propale->creer;
$delallowed = $user->rights->propale->supprimer;
$var = true;
$somethingshown = $formfile->show_documents('propal', $filename, $filedir, $urlsource, $genallowed, $delallowed, $object->modelpdf, 1, 0, 0, 28, 0, '', 0, '', $soc->default_lang, $hookmanager);
/*
* 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, 'propal', $socid);
print '</td></tr></table>';
}
/*
* Action presend
*
*/
示例15:
$i++;
}
print "</table>";
} else {
dol_print_error($db);
}
dol_fiche_end();
}
/*
* Boutons Actions
*/
print '<div class="tabsAction">';
if ($user->societe_id == 0 && sizeof($accounts) == 1 && $action == 'new' && $user->rights->banque->cheque) {
print '<a class="butAction" href="' . $_SERVER["PHP_SELF"] . '?action=create&accountid=' . $account_id . '">' . $langs->trans('NewCheckReceipt') . '</a>';
}
if ($user->societe_id == 0 && $remisecheque->statut == 0 && $remisecheque->id && $user->rights->banque->cheque) {
print '<a class="butAction" href="' . $_SERVER["PHP_SELF"] . '?id=' . $remisecheque->id . '&action=valide">' . $langs->trans('Valid') . '</a>';
}
if ($user->societe_id == 0 && $remisecheque->id && $user->rights->banque->cheque) {
print '<a class="butActionDelete" href="' . $_SERVER["PHP_SELF"] . '?id=' . $remisecheque->id . '&action=delete">' . $langs->trans('Delete') . '</a>';
}
print '</div>';
if ($action != 'new') {
if ($remisecheque->statut == 1) {
$dirchequereceipts = $dir . get_exdir($remisecheque->number, 2, 1) . $remisecheque->ref;
$formfile->show_documents("remisecheque", $remisecheque->ref, $dirchequereceipts, $_SERVER["PHP_SELF"] . '?id=' . $remisecheque->id, 1, 1);
print '<br>';
}
}
$db->close();
llxFooter('$Date: 2011/08/03 00:46:28 $ - $Revision: 1.78 $');