33require
'../main.inc.php';
34require_once DOL_DOCUMENT_ROOT.
'/contact/class/contact.class.php';
35require_once DOL_DOCUMENT_ROOT.
'/societe/class/societe.class.php';
36require_once DOL_DOCUMENT_ROOT.
'/societe/class/societeaccount.class.php';
37require_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
38require_once DOL_DOCUMENT_ROOT.
'/core/lib/company.lib.php';
42$langs->loadLangs(array(
"companies",
"website"));
48$action =
GETPOST(
'action',
'aZ09') ?
GETPOST(
'action',
'aZ09') :
'view';
49$show_files =
GETPOST(
'show_files',
'int');
50$contextpage =
GETPOST(
'contextpage',
'aZ') ?
GETPOST(
'contextpage',
'aZ') :
'websitelist';
51$backtopage =
GETPOST(
'backtopage',
'alpha');
52$optioncss =
GETPOST(
'optioncss',
'aZ');
53$toselect =
GETPOST(
'toselect',
'array');
54$optioncss =
GETPOST(
'optioncss',
'aZ');
57$limit =
GETPOST(
'limit',
'int') ?
GETPOST(
'limit',
'int') : $conf->liste_limit;
58$sortfield =
GETPOST(
'sortfield',
'aZ09comma');
59$sortorder =
GETPOST(
'sortorder',
'aZ09comma');
60$page = GETPOSTISSET(
'pageplusone') ? (
GETPOST(
'pageplusone') - 1) :
GETPOST(
"page",
'int');
61if (empty($page) || $page == -1) {
64$offset = $limit * $page;
68 $sortfield =
't.login';
79$diroutputmassaction = $conf->website->dir_output.
'/temp/massgeneration/'.$user->id;
80$hookmanager->initHooks(array(
'websitethirdpartylist'));
83$extrafields->fetch_name_optionals_label($objectwebsiteaccount->table_element);
85$search_array_options = $extrafields->getOptionalsFromPost($objectwebsiteaccount->table_element,
'',
'search_');
87unset($objectwebsiteaccount->fields[
'fk_soc']);
90$search_all =
GETPOST(
"search_all",
'alpha');
92foreach ($objectwebsiteaccount->fields as $key => $val) {
93 if (
GETPOST(
'search_'.$key,
'alpha')) {
94 $search[$key] =
GETPOST(
'search_'.$key,
'alpha');
99$fieldstosearchall = array();
100foreach ($objectwebsiteaccount->fields as $key => $val) {
101 if (!empty($val[
'searchall'])) {
102 $fieldstosearchall[
't.'.$key] = $val[
'label'];
107$arrayfields = array();
108foreach ($objectwebsiteaccount->fields as $key => $val) {
110 if (!empty($val[
'visible'])) {
111 $arrayfields[
't.'.$key] = array(
'label'=>$val[
'label'],
'checked'=>(($val[
'visible'] < 0) ? 0 : 1),
'enabled'=>$val[
'enabled']);
116include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_array_fields.tpl.php';
122 $result = $object->fetch($id);
130$result =
restrictedArea($user,
'societe', $object->id,
'&societe');
137$parameters = array(
'id'=>$id);
138$reshook = $hookmanager->executeHooks(
'doActions', $parameters, $object, $action);
143if (empty($reshook)) {
145 if (
GETPOST(
'cancel',
'alpha') && !empty($backtopage)) {
146 header(
"Location: ".$backtopage);
151 include DOL_DOCUMENT_ROOT.
'/core/actions_changeselectedfields.inc.php';
154 if (
GETPOST(
'button_removefilter_x',
'alpha') ||
GETPOST(
'button_removefilter.x',
'alpha') ||
GETPOST(
'button_removefilter',
'alpha')) {
155 foreach ($objectwebsiteaccount->fields as $key => $val) {
159 $search_array_options = array();
161 if (
GETPOST(
'button_removefilter_x',
'alpha') ||
GETPOST(
'button_removefilter.x',
'alpha') ||
GETPOST(
'button_removefilter',
'alpha')
162 ||
GETPOST(
'button_search_x',
'alpha') ||
GETPOST(
'button_search.x',
'alpha') ||
GETPOST(
'button_search',
'alpha')) {
167 $objectclass =
'WebsiteAccount';
168 $objectlabel =
'WebsiteAccount';
169 $permissiontoread = $user->hasRight(
'societe',
'lire');
170 $permissiontodelete = $user->hasRight(
'societe',
'supprimer');
171 $uploaddir = $conf->societe->multidir_output[$object->entity];
172 include DOL_DOCUMENT_ROOT.
'/core/actions_massactions.inc.php';
181$contactstatic =
new Contact($db);
183$form =
new Form($db);
185$langs->load(
"companies");
187$title = $langs->trans(
"WebsiteAccounts");
191if (!empty($contextpage) && $contextpage != $_SERVER[
"PHP_SELF"]) {
192 $param .=
'&contextpage='.urlencode($contextpage);
195 $param .=
'&id='.urlencode($id);
197if ($limit > 0 && $limit != $conf->liste_limit) {
198 $param .=
'&limit='.((int) $limit);
200foreach ($search as $key => $val) {
201 $param .=
'&search_'.$key.
'='.urlencode($search[$key]);
203if ($optioncss !=
'') {
204 $param .=
'&optioncss='.urlencode($optioncss);
207include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_param.tpl.php';
211print
dol_get_fiche_head($head,
'website', $langs->trans(
"ThirdParty"), - 1,
'company');
213$linkback =
'<a href="'.DOL_URL_ROOT.
'/societe/list.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToList").
'</a>';
215dol_banner_tab($object,
'socid', $linkback, ($user->socid ? 0 : 1),
'rowid',
'nom');
217print
'<div class="fichecenter">';
219print
'<div class="underbanner clearboth"></div>';
221print
'<table class="border centpercent">';
225 print
'<tr><td class="titlefield">'.$langs->trans(
'Prefix').
'</td><td colspan="3">'.$object->prefix_comm.
'</td></tr>';
228if ($object->client) {
229 print
'<tr><td class="titlefield">';
230 print $langs->trans(
'CustomerCode').
'</td><td colspan="3">';
231 print $object->code_client;
232 $tmpcheck = $object->check_codeclient();
233 if ($tmpcheck != 0 && $tmpcheck != -5) {
234 print
' <span class="error">('.$langs->trans(
"WrongCustomerCode").
')</span>';
239if ($object->fournisseur) {
240 print
'<tr><td class="titlefield">';
241 print $langs->trans(
'SupplierCode').
'</td><td colspan="3">';
242 print $object->code_fournisseur;
243 $tmpcheck = $object->check_codefournisseur();
244 if ($tmpcheck != 0 && $tmpcheck != -5) {
245 print
' <span class="error">('.$langs->trans(
"WrongSupplierCode").
')</span>';
257if (isModEnabled(
'website') || isModEnabled(
'webportal')) {
258 if ($user->hasRight(
'societe',
'lire')) {
259 $newcardbutton .=
dolGetButtonTitle($langs->trans(
"AddWebsiteAccount"),
'',
'fa fa-plus-circle', DOL_URL_ROOT.
'/website/websiteaccount_card.php?action=create&fk_soc='.$object->id.
'&backtopage='.urlencode($_SERVER[
"PHP_SELF"].
'?id='.$object->id));
261 $newcardbutton .=
dolGetButtonTitle($langs->trans(
"AddAction"),
'',
'fa fa-plus-circle', DOL_URL_ROOT.
'/website/websiteaccount_card.php?action=create&fk_soc='.$object->id.
'&backtopage='.urlencode($_SERVER[
"PHP_SELF"].
'?id='.$object->id),
'', 0);
271$site_filter_list = array();
272if (isModEnabled(
'website')) {
273 $site_filter_list[] =
'dolibarr_website';
275if (isModEnabled(
'webportal')) {
276 $site_filter_list[] =
'dolibarr_portal';
279foreach ($objectwebsiteaccount->fields as $key => $val) {
280 $sql .=
"t.".$key.
", ";
283if (!empty($extrafields->attributes[$object->table_element][
'label'])) {
284 foreach ($extrafields->attributes[$object->table_element][
'label'] as $key => $val) {
285 $sql .= ($extrafields->attributes[$object->table_element][
'type'][$key] !=
'separate' ?
"ef.".$key.
" as options_".$key.
', ' :
'');
289$parameters = array();
290$reshook = $hookmanager->executeHooks(
'printFieldListSelect', $parameters, $objectwebsiteaccount);
291$sql .= $hookmanager->resPrint;
292$sql = preg_replace(
'/, $/',
'', $sql);
293$sql .=
" FROM ".MAIN_DB_PREFIX.
"societe_account as t";
294if (isset($extrafields->attributes[$object->table_element][
'label']) && is_array($extrafields->attributes[$object->table_element][
'label']) && count($extrafields->attributes[$object->table_element][
'label'])) {
295 $sql .=
" LEFT JOIN ".MAIN_DB_PREFIX.$object->table_element.
"_extrafields as ef on (t.rowid = ef.fk_object)";
297if ($objectwebsiteaccount->ismultientitymanaged == 1) {
298 $sql .=
" WHERE t.entity IN (".getEntity(
'thirdpartyaccount').
")";
300 $sql .=
" WHERE 1 = 1";
302$sql .=
" AND fk_soc = ".((int) $object->id);
303if (!empty($site_filter_list)) {
304 $sql .=
" AND t.site IN (".$db->sanitize(
"'".implode(
"','", $site_filter_list).
"'", 1).
")";
306foreach ($search as $key => $val) {
307 $mode_search = (($objectwebsiteaccount->isInt($objectwebsiteaccount->fields[$key]) || $objectwebsiteaccount->isFloat($objectwebsiteaccount->fields[$key])) ? 1 : 0);
308 if ($search[$key] !=
'') {
309 $sql .=
natural_search($key, $search[$key], (($key ==
'status') ? 2 : $mode_search));
313 $sql .=
natural_search(array_keys($fieldstosearchall), $search_all);
316include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_sql.tpl.php';
318$parameters = array();
319$reshook = $hookmanager->executeHooks(
'printFieldListWhere', $parameters, $objectwebsiteaccount);
320$sql .= $hookmanager->resPrint;
337$sql .= $db->order($sortfield, $sortorder);
340$nbtotalofrecords =
'';
342 $result = $db->query($sql);
343 $nbtotalofrecords = $db->num_rows($result);
344 if (($page * $limit) > $nbtotalofrecords) {
350$sql .= $db->plimit($limit + 1, $offset);
352$resql = $db->query($sql);
358$num = $db->num_rows($resql);
360$arrayofselected = is_array($toselect) ? $toselect : array();
363$arrayofmassactions = array(
367if ($user->hasRight(
'mymodule',
'delete')) {
368 $arrayofmassactions[
'predelete'] =
'<span class="fa fa-trash paddingrightonly"></span>'.$langs->trans(
"Delete");
370if (in_array($massaction, array(
'presend',
'predelete'))) {
371 $arrayofmassactions = array();
373$massactionbutton = $form->selectMassAction(
'', $arrayofmassactions);
375print
'<form method="POST" id="searchFormList" action="'.$_SERVER[
"PHP_SELF"].
'">';
376if ($optioncss !=
'') {
377 print
'<input type="hidden" name="optioncss" value="'.$optioncss.
'">';
379print
'<input type="hidden" name="token" value="'.newToken().
'">';
380print
'<input type="hidden" name="formfilteraction" id="formfilteraction" value="list">';
381print
'<input type="hidden" name="action" value="list">';
382print
'<input type="hidden" name="sortfield" value="'.$sortfield.
'">';
383print
'<input type="hidden" name="sortorder" value="'.$sortorder.
'">';
384print
'<input type="hidden" name="page" value="'.$page.
'">';
385print
'<input type="hidden" name="id" value="'.$id.
'">';
386print
'<input type="hidden" name="contextpage" value="'.$contextpage.
'">';
388print_barre_liste($title, $page, $_SERVER[
"PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords,
'', 0, $newcardbutton,
'', $limit);
390$topicmail =
"Information";
391$modelmail =
"societeaccount";
393$trackid =
'thi'.$object->id;
394include DOL_DOCUMENT_ROOT.
'/core/tpl/massactions_pre.tpl.php';
407$parameters = array();
408$reshook = $hookmanager->executeHooks(
'printFieldPreListTitle', $parameters, $objectwebsiteaccount);
409if (empty($reshook)) {
410 $moreforfilter .= $hookmanager->resPrint;
412 $moreforfilter = $hookmanager->resPrint;
415if (!empty($moreforfilter)) {
416 print
'<div class="liste_titre liste_titre_bydiv centpercent">';
417 print $moreforfilter;
421$varpage = empty($contextpage) ? $_SERVER[
"PHP_SELF"] : $contextpage;
422$selectedfields = ($mode !=
'kanban' ? $form->multiSelectArrayWithCheckbox(
'selectedfields', $arrayfields, $varpage,
getDolGlobalString(
'MAIN_CHECKBOX_LEFT_COLUMN',
'')) :
'');
423$selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons(
'checkforselect', 1) :
'');
425print
'<div class="div-table-responsive">';
426print
'<table class="tagtable nobottomiftotal liste'.($moreforfilter ?
" listwithfilterbefore" :
"").
'">'.
"\n";
431print
'<tr class="liste_titre">';
434 print
'<td class="liste_titre center maxwidthsearch">';
435 $searchpicto = $form->showFilterButtons(
'left');
439foreach ($objectwebsiteaccount->fields as $key => $val) {
441 if (in_array($val[
'type'], array(
'date',
'datetime',
'timestamp'))) {
444 if (in_array($val[
'type'], array(
'timestamp'))) {
447 if ($key ==
'status') {
448 $align .= ($align ?
' ' :
'').
'center';
450 if (!empty($arrayfields[
't.'.$key][
'checked'])) {
451 print
'<td class="liste_titre'.($align ?
' '.$align :
'').
'"><input type="text" class="flat maxwidth75" name="search_'.$key.
'" value="'.
dol_escape_htmltag(empty($search[$key]) ?
'' : $search[$key]).
'"></td>';
455include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_input.tpl.php';
457$parameters = array(
'arrayfields'=>$arrayfields);
458$reshook = $hookmanager->executeHooks(
'printFieldListOption', $parameters, $objectwebsiteaccount);
459print $hookmanager->resPrint;
462 print
'<td class="liste_titre maxwidthsearch">';
463 $searchpicto = $form->showFilterButtons();
470$totalarray = array();
471$totalarray[
'nbfield'] = 0;
475print
'<tr class="liste_titre">';
478 print
getTitleFieldOfList($selectedfields, 0, $_SERVER[
"PHP_SELF"],
'',
'',
'',
'', $sortfield, $sortorder,
'center maxwidthsearch ').
"\n";
479 $totalarray[
'nbfield']++;
481foreach ($objectwebsiteaccount->fields as $key => $val) {
482 $cssforfield = (empty($val[
'csslist']) ? (empty($val[
'css']) ?
'' : $val[
'css']) : $val[
'csslist']);
483 if ($key ==
'status') {
484 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
485 } elseif (in_array($val[
'type'], array(
'date',
'datetime',
'timestamp'))) {
486 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
487 } elseif (in_array($val[
'type'], array(
'timestamp'))) {
488 $cssforfield .= ($cssforfield ?
' ' :
'').
'nowrap';
489 } elseif (in_array($val[
'type'], array(
'double(24,8)',
'double(6,3)',
'integer',
'real',
'price')) && !in_array($key, array(
'id',
'rowid',
'ref',
'status')) && $val[
'label'] !=
'TechnicalID' && empty($val[
'arrayofkeyval'])) {
490 $cssforfield .= ($cssforfield ?
' ' :
'').
'right';
492 $cssforfield = preg_replace(
'/small\s*/',
'', $cssforfield);
493 if (!empty($arrayfields[
't.'.$key][
'checked'])) {
494 print
getTitleFieldOfList($arrayfields[
't.'.$key][
'label'], 0, $_SERVER[
'PHP_SELF'],
't.'.$key,
'', $param, ($cssforfield ?
'class="'.$cssforfield.
'"' :
''), $sortfield, $sortorder, ($cssforfield ? $cssforfield.
' ' :
''), 0, (empty($val[
'helplist']) ?
'' : $val[
'helplist'])).
"\n";
495 $totalarray[
'nbfield']++;
500include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_title.tpl.php';
502$parameters = array(
'arrayfields'=>$arrayfields,
'param'=>$param,
'sortfield'=>$sortfield,
'sortorder'=>$sortorder);
503$reshook = $hookmanager->executeHooks(
'printFieldListTitle', $parameters, $objectwebsiteaccount);
504print $hookmanager->resPrint;
507 print
getTitleFieldOfList($selectedfields, 0, $_SERVER[
"PHP_SELF"],
"",
'',
'',
'', $sortfield, $sortorder,
'maxwidthsearch center ').
"\n";
508 $totalarray[
'nbfield']++;
514$needToFetchEachLine = 0;
515if (isset($extrafields->attributes[$object->table_element][
'computed']) && is_array($extrafields->attributes[$object->table_element][
'computed']) && count($extrafields->attributes[$object->table_element][
'computed']) > 0) {
516 foreach ($extrafields->attributes[$object->table_element][
'computed'] as $key => $val) {
517 if (!is_null($val) && preg_match(
'/\$object/', $val)) {
518 $needToFetchEachLine++;
526$totalarray = array(
'nbfield' => 0);
527while ($i < min($num, $limit)) {
528 $obj = $db->fetch_object($resql);
534 $objectwebsiteaccount->id = $obj->rowid;
535 $objectwebsiteaccount->login = $obj->login;
536 $objectwebsiteaccount->ref = $obj->login;
537 foreach ($objectwebsiteaccount->fields as $key => $val) {
538 if (property_exists($objectwebsiteaccount, $key)) {
539 $objectwebsiteaccount->$key = $obj->$key;
544 print
'<tr class="oddeven">';
547 print
'<td class="nowrap center">';
548 if ($massactionbutton || $massaction) {
550 if (in_array($obj->rowid, $arrayofselected)) {
553 print
'<input id="cb'.$obj->rowid.
'" class="flat checkforselect" type="checkbox" name="toselect[]" value="'.$obj->rowid.
'"'.($selected ?
' checked="checked"' :
'').
'>';
557 $totalarray[
'nbfield']++;
560 foreach ($objectwebsiteaccount->fields as $key => $val) {
562 if (in_array($val[
'type'], array(
'date',
'datetime',
'timestamp'))) {
565 if (in_array($val[
'type'], array(
'timestamp'))) {
568 if ($key ==
'status') {
569 $align .= ($align ?
' ' :
'').
'center';
571 if (!empty($arrayfields[
't.'.$key][
'checked'])) {
574 print
' class="'.$align.
'"';
577 if ($key ==
'login') {
578 print $objectwebsiteaccount->getNomUrl(1,
'', 0,
'', 1);
580 print $objectwebsiteaccount->showOutputField($val, $key, $obj->$key,
'');
584 $totalarray[
'nbfield']++;
586 if (!empty($val[
'isameasure']) && $val[
'isameasure'] == 1) {
588 $totalarray[
'pos'][$totalarray[
'nbfield']] =
't.'.$key;
590 if (!isset($totalarray[
'val'])) {
591 $totalarray[
'val'] = array();
593 if (!isset($totalarray[
'val'][
't.'.$key])) {
594 $totalarray[
'val'][
't.'.$key] = 0;
596 $totalarray[
'val'][
't.'.$key] += $objectwebsiteaccount->$key;
601 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_print_fields.tpl.php';
603 $parameters = array(
'arrayfields'=>$arrayfields,
'obj'=>$obj,
'i'=>$i,
'totalarray'=>&$totalarray);
604 $reshook = $hookmanager->executeHooks(
'printFieldListValue', $parameters, $objectwebsiteaccount);
605 print $hookmanager->resPrint;
608 print
'<td class="nowrap center">';
609 if ($massactionbutton || $massaction) {
611 if (in_array($obj->rowid, $arrayofselected)) {
614 print
'<input id="cb'.$obj->rowid.
'" class="flat checkforselect" type="checkbox" name="toselect[]" value="'.$obj->rowid.
'"'.($selected ?
' checked="checked"' :
'').
'>';
618 $totalarray[
'nbfield']++;
627include DOL_DOCUMENT_ROOT.
'/core/tpl/list_print_total.tpl.php';
633 foreach ($arrayfields as $key => $val) {
634 if (!empty($val[
'checked'])) {
638 print
'<tr><td colspan="'.$colspan.
'"><span class="opacitymedium">'.$langs->trans(
"NoRecordFound").
'</span></td></tr>';
644$parameters = array(
'arrayfields'=>$arrayfields,
'sql'=>$sql);
645$reshook = $hookmanager->executeHooks(
'printFieldListFooter', $parameters, $objectwebsiteaccount);
646print $hookmanager->resPrint;
648print
'</table>'.
"\n";
653if (in_array(
'builddoc', array_keys($arrayofmassactions)) && ($nbtotalofrecords ===
'' || $nbtotalofrecords)) {
654 $hidegeneratedfilelistifempty = 1;
655 if ($massaction ==
'builddoc' || $action ==
'remove_file' || $show_files) {
656 $hidegeneratedfilelistifempty = 0;
659 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formfile.class.php';
663 $urlsource = $_SERVER[
'PHP_SELF'].
'?sortfield='.$sortfield.
'&sortorder='.$sortorder;
664 $urlsource .= str_replace(
'&',
'&', $param);
666 $filedir = $diroutputmassaction;
667 $genallowed = $user->rights->mymodule->read;
668 $delallowed = $user->rights->mymodule->create;
670 print $formfile->showdocuments(
'massfilesarea_mymodule',
'', $filedir, $urlsource, 0, $delallowed,
'', 1, 1, 0, 48, 1, $param, $title,
'',
'',
'',
null, $hidegeneratedfilelistifempty);
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader()
Empty header.
Class for SocieteAccount.
Class to manage third parties objects (customers, suppliers, prospects...)
societe_prepare_head(Societe $object)
Return array of tabs to used on pages for third parties cards.
dol_banner_tab($object, $paramid, $morehtml='', $shownav=1, $fieldid='rowid', $fieldref='ref', $morehtmlref='', $moreparam='', $nodbprefix=0, $morehtmlleft='', $morehtmlstatus='', $onlybanner=0, $morehtmlright='')
Show tab footer of a card.
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='', $dragdropfile=0)
Show tabs of a record.
dol_print_error($db='', $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
dolGetButtonTitle($label, $helpText='', $iconClass='fa fa-file', $url='', $id='', $status=1, $params=array())
Function dolGetButtonTitle : this kind of buttons are used in title in list.
dol_get_fiche_end($notab=0)
Return tab footer of a card.
natural_search($fields, $value, $mode=0, $nofirstand=0)
Generate natural SQL search string for a criteria (this criteria can be tested on one or several fiel...
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
dol_sort_array(&$array, $index, $order='asc', $natsort=0, $case_sensitive=0, $keepindex=0)
Advanced sort array by second index function, which produces ascending (default) or descending output...
getTitleFieldOfList($name, $thead=0, $file="", $field="", $begin="", $moreparam="", $moreattrib="", $sortfield="", $sortorder="", $prefix="", $disablesortlink=0, $tooltip='', $forcenowrapcolumntitle=0)
Get title line of an array.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='', $noduplicate=0)
Set event messages in dol_events session object.
print_barre_liste($titre, $page, $file, $options='', $sortfield='', $sortorder='', $morehtmlcenter='', $num=-1, $totalnboflines='', $picto='generic', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limit=-1, $hideselectlimit=0, $hidenavigation=0, $pagenavastextinput=0, $morehtmlrightbeforearrow='')
Print a title with navigation controls for pagination.
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.
dol_escape_htmltag($stringtoescape, $keepb=0, $keepn=0, $noescapetags='', $escapeonlyhtmltags=0, $cleanalsojavascript=0)
Returns text escaped for inclusion in HTML alt or title or value tags, or into values of HTML input f...
restrictedArea(User $user, $features, $object=0, $tableandshare='', $feature2='', $dbt_keyfield='fk_soc', $dbt_select='rowid', $isdraft=0, $mode=0)
Check permissions of a user to show a page and an object.