本文整理汇总了PHP中FormFile::listOfLinks方法的典型用法代码示例。如果您正苦于以下问题:PHP FormFile::listOfLinks方法的具体用法?PHP FormFile::listOfLinks怎么用?PHP FormFile::listOfLinks使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FormFile
的用法示例。
在下文中一共展示了FormFile::listOfLinks方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: urlencode
* Confirm form to delete
*/
if ($action == 'delete') {
$langs->load("companies");
// Need for string DeleteFile+ConfirmDeleteFiles
$ret = $form->form_confirm($_SERVER["PHP_SELF"] . '?id=' . $object->id . '&urlfile=' . urlencode(GETPOST("urlfile")) . '&linkid=' . GETPOST('linkid', 'int') . (empty($param) ? '' : $param), $langs->trans('DeleteFile'), $langs->trans('ConfirmDeleteFile'), 'confirm_deletefile', '', 0, 1);
if ($ret == 'html') {
print '<br>';
}
}
$formfile = new FormFile($db);
// We define var to enable the feature to add prefix of uploaded files
$savingdocmask = '';
if (empty($conf->global->MAIN_DISABLE_SUGGEST_REF_AS_PREFIX)) {
//var_dump($modulepart);
if (in_array($modulepart, array('facture_fournisseur', 'commande_fournisseur', 'facture', 'commande', 'propal', 'ficheinter', 'contract', 'project', 'project_task'))) {
$savingdocmask = $object->ref . '___file__';
}
/*if (in_array($modulepart,array('member')))
{
$savingdocmask=$object->login.'___file__';
}*/
}
// Show upload form (document and links)
$formfile->form_attach_new_file($_SERVER["PHP_SELF"] . '?id=' . $object->id . (empty($withproject) ? '' : '&withproject=1'), '', 0, 0, $permission, 50, $object, '', 1, $savingdocmask);
// List of document
$formfile->list_of_documents($filearray, $object, $modulepart, $param, 0, $relativepathwithnofile, $permission);
print "<br>";
//List of links
$formfile->listOfLinks($object, $permission, $action, GETPOST('linkid', 'int'), $param);
print "<br>";