dolibarr  16.0.5
workstation_card.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) 2017 Laurent Destailleur <eldy@users.sourceforge.net>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program. If not, see <https://www.gnu.org/licenses/>.
16  */
17 
24 // Load Dolibarr environment
25 require '../main.inc.php';
26 require_once DOL_DOCUMENT_ROOT.'/core/class/html.formcompany.class.php';
27 require_once DOL_DOCUMENT_ROOT.'/resource/class/html.formresource.class.php';
28 require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
29 require_once DOL_DOCUMENT_ROOT.'/resource/class/dolresource.class.php';
30 require_once DOL_DOCUMENT_ROOT.'/workstation/class/workstation.class.php';
31 require_once DOL_DOCUMENT_ROOT.'/workstation/lib/workstation_workstation.lib.php';
32 require_once DOL_DOCUMENT_ROOT.'/workstation/class/workstationusergroup.class.php';
33 
34 // Load translation files required by the page
35 $langs->loadLangs(array("workstation", "other"));
36 
37 // Get parameters
38 $id = GETPOST('id', 'int');
39 $ref = GETPOST('ref', 'alpha');
40 $action = GETPOST('action', 'aZ09');
41 $confirm = GETPOST('confirm', 'alpha');
42 $cancel = GETPOST('cancel', 'aZ09');
43 $contextpage = GETPOST('contextpage', 'aZ') ?GETPOST('contextpage', 'aZ') : 'workstationcard'; // To manage different context of search
44 $backtopage = GETPOST('backtopage', 'alpha');
45 $backtopageforcancel = GETPOST('backtopageforcancel', 'alpha');
46 
47 $groups = GETPOST('groups', 'array:int');
48 $resources = GETPOST('resources', 'array:int');
49 //$lineid = GETPOST('lineid', 'int');
50 
51 // Initialize technical objects
52 $object = new Workstation($db);
53 //$extrafields = new ExtraFields($db);
54 $diroutputmassaction = $conf->workstation->dir_output.'/temp/massgeneration/'.$user->id;
55 $hookmanager->initHooks(array('workstationcard', 'globalcard')); // Note that conf->hooks_modules contains array
56 
57 // Fetch optionals attributes and labels
58 $extrafields->fetch_name_optionals_label($object->table_element);
59 
60 $search_array_options = $extrafields->getOptionalsFromPost($object->table_element, '', 'search_');
61 
62 // Initialize array of search criterias
63 $search_all = GETPOST("search_all", 'alpha');
64 $search = array();
65 foreach ($object->fields as $key => $val) {
66  if (GETPOST('search_'.$key, 'alpha')) {
67  $search[$key] = GETPOST('search_'.$key, 'alpha');
68  }
69 }
70 
71 if (empty($action) && empty($id) && empty($ref)) {
72  $action = 'view';
73 }
74 
75 // Load object
76 include DOL_DOCUMENT_ROOT.'/core/actions_fetchobject.inc.php'; // Must be include, not include_once.
77 
78 $permissiontoread = $user->rights->workstation->workstation->read;
79 $permissiontoadd = $user->rights->workstation->workstation->write; // Used by the include of actions_addupdatedelete.inc.php and actions_lineupdown.inc.php
80 $permissiontodelete = $user->rights->workstation->workstation->delete || ($permissiontoadd && isset($object->status) && $object->status == $object::STATUS_DRAFT);
81 $permissionnote = $user->rights->workstation->workstation->write; // Used by the include of actions_setnotes.inc.php
82 $permissiondellink = $user->rights->workstation->workstation->write; // Used by the include of actions_dellink.inc.php
83 $upload_dir = $conf->workstation->multidir_output[isset($object->entity) ? $object->entity : 1];
84 
85 // Security check
86 $isdraft = 0;
87 restrictedArea($user, $object->element, $object->id, $object->table_element, 'workstation', 'fk_soc', 'rowid', $isdraft);
88 
89 
90 /*
91  * Actions
92  */
93 
94 $parameters = array();
95 $reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks
96 if ($reshook < 0) {
97  setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
98 }
99 
100 if (empty($reshook)) {
101  $error = 0;
102 
103  $backurlforlist = dol_buildpath('/workstation/workstation_list.php', 1);
104 
105  if (empty($backtopage) || ($cancel && empty($id))) {
106  if (empty($backtopage) || ($cancel && strpos($backtopage, '__ID__'))) {
107  if (empty($id) && (($action != 'add' && $action != 'create') || $cancel)) {
108  $backtopage = $backurlforlist;
109  } else {
110  $backtopage = dol_buildpath('/workstation/workstation_card.php', 1).'?id='.($id > 0 ? $id : '__ID__');
111  }
112  }
113  }
114 
115  $triggermodname = 'WORKSTATION_WORKSTATION_MODIFY'; // Name of trigger action code to execute when we modify record
116 
117  // Actions cancel, add, update, update_extras, confirm_validate, confirm_delete, confirm_deleteline, confirm_clone, confirm_close, confirm_setdraft, confirm_reopen
118  include DOL_DOCUMENT_ROOT.'/core/actions_addupdatedelete.inc.php';
119 
120  // Actions when linking object each other
121  include DOL_DOCUMENT_ROOT.'/core/actions_dellink.inc.php';
122 
123  // Actions when printing a doc from card
124  include DOL_DOCUMENT_ROOT.'/core/actions_printing.inc.php';
125 
126  // Action to move up and down lines of object
127  //include DOL_DOCUMENT_ROOT.'/core/actions_lineupdown.inc.php';
128 
129  // Action to build doc
130  include DOL_DOCUMENT_ROOT.'/core/actions_builddoc.inc.php';
131 
132  if ($action == 'confirm_enable' && $confirm == "yes" && $permissiontoadd) {
133  if (!empty($object->id)) {
134  $object->setStatus(1);
135  }
136  } elseif ($action == 'confirm_disable' && $confirm == "yes" && $permissiontoadd) {
137  if (!empty($object->id)) {
138  $object->setStatus(0);
139  }
140  }
141 }
142 
143 
144 
145 
146 /*
147  * View
148  *
149  * Put here all code to build page
150  */
151 
152 $form = new Form($db);
153 $formfile = new FormFile($db);
154 $formresource = new FormResource($db);
155 
156 $title = $langs->trans("Workstation");
157 $help_url = 'EN:Module_Workstation';
158 
159 llxHeader('', $title, $help_url);
160 
161 // jquery code
162 ?>
163  <script type="text/javascript">
164 
165  jQuery(document).ready(function() {
166  jQuery("#type").change(function() {
167  if($(this).val() === 'MACHINE') {
168  $('#usergroups').hide();
169  $('#nb_operators_required').parent('td').parent('tr').hide();
170  $('#wsresources').show();
171  } else if($(this).val() === 'HUMAN') {
172  $('#wsresources').hide();
173  $('#nb_operators_required').parent('td').parent('tr').show();
174  $('#usergroups').show();
175  }
176  else {
177  $('#usergroups').show();
178  $('#wsresources').show();
179  $('#nb_operators_required').parent('td').parent('tr').show();
180  }
181  });
182  jQuery("#type").trigger('change');
183  });
184 
185  </script>
186 <?php
187 
188 // Part to create
189 if ($action == 'create') {
190  print load_fiche_titre($langs->trans("NewObject", $langs->transnoentitiesnoconv("Workstation")), '', 'object_'.$object->picto);
191 
192  print '<form method="POST" action="'.$_SERVER["PHP_SELF"].'">';
193  print '<input type="hidden" name="token" value="'.newToken().'">';
194  print '<input type="hidden" name="action" value="add">';
195  if ($backtopage) {
196  print '<input type="hidden" name="backtopage" value="'.$backtopage.'">';
197  }
198  if ($backtopageforcancel) {
199  print '<input type="hidden" name="backtopageforcancel" value="'.$backtopageforcancel.'">';
200  }
201 
202  print dol_get_fiche_head(array(), '');
203 
204  print '<table class="border centpercent tableforfieldcreate">'."\n";
205 
206  // Common attributes
207  include DOL_DOCUMENT_ROOT.'/core/tpl/commonfields_add.tpl.php';
208 
209  print '<tr id="usergroups"';
210  print ' ><td>';
211  print $langs->trans('Groups');
212  print '</td>';
213  print '<td>';
214  print img_picto('', 'group');
215  print $form->select_dolgroups($groups, 'groups', 1, '', 0, '', '', $object->entity, true, 'quatrevingtpercent widthcentpercentminusx');
216  print '</td></tr>';
217 
218  print '<tr id="wsresources"><td>';
219  print $langs->trans('Machines');
220  print '</td>';
221  print '<td>';
222  print img_picto('', 'resource');
223  print $formresource->select_resource_list($resources, 'resources', '', '', 0, '', '', $object->entity, true, 0, 'quatrevingtpercent widthcentpercentminusx', true);
224  print '</td></tr>';
225 
226  // Other attributes
227  //include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_add.tpl.php';
228 
229  print '</table>'."\n";
230 
231  print dol_get_fiche_end();
232 
233  print $form->buttonsSaveCancel("Create");
234 
235  print '</form>';
236 
237  //dol_set_focus('input[name="ref"]');
238 }
239 
240 // Part to edit record
241 if (($id || $ref) && $action == 'edit') {
242  print load_fiche_titre($langs->trans("Workstation"), '', 'object_'.$object->picto);
243 
244  print '<form method="POST" action="'.$_SERVER["PHP_SELF"].'">';
245  print '<input type="hidden" name="token" value="'.newToken().'">';
246  print '<input type="hidden" name="action" value="update">';
247  print '<input type="hidden" name="id" value="'.$object->id.'">';
248  if ($backtopage) {
249  print '<input type="hidden" name="backtopage" value="'.$backtopage.'">';
250  }
251  if ($backtopageforcancel) {
252  print '<input type="hidden" name="backtopageforcancel" value="'.$backtopageforcancel.'">';
253  }
254 
255  print dol_get_fiche_head();
256 
257  print '<table class="border centpercent tableforfieldedit">'."\n";
258 
259  // Common attributes
260  include DOL_DOCUMENT_ROOT.'/core/tpl/commonfields_edit.tpl.php';
261 
262  print '<tr id="usergroups"';
263  print '><td>';
264  print $langs->trans('Groups');
265  print '</td>';
266  print '<td>';
267  print img_picto('', 'group');
268  print $form->select_dolgroups(empty($groups) ? $object->usergroups : $groups, 'groups', 1, '', 0, '', '', $object->entity, true, 'quatrevingtpercent widthcentpercentminusx');
269  print '</td></tr>';
270 
271  print '<tr id="wsresources"><td>';
272  print $langs->trans('Machines');
273  print '</td>';
274  print '<td>';
275  print img_picto('', 'resource');
276  print $formresource->select_resource_list(empty($resources) ? $object->resources : $resources, 'resources', '', '', 0, '', '', $object->entity, true, 0, 'quatrevingtpercent widthcentpercentminusx', true);
277  print '</td></tr>';
278 
279  // Other attributes
280  //include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_edit.tpl.php';
281 
282  print '</table>';
283 
284  print dol_get_fiche_end();
285 
286  print $form->buttonsSaveCancel();
287 
288  print '</form>';
289 }
290 
291 // Part to show record
292 if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'create'))) {
293  $res = $object->fetch_optionals();
294 
295  $head = workstationPrepareHead($object);
296  print dol_get_fiche_head($head, 'card', $langs->trans("Workstation"), -1, $object->picto);
297 
298  $formconfirm = '';
299 
300  // Confirmation to delete
301  if ($action == 'delete') {
302  $formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('DeleteWorkstation'), $langs->trans('ConfirmDeleteObject'), 'confirm_delete', '', 0, 1);
303  }
304  // Clone confirmation
305  if ($action == 'clone') {
306  // Create an array for form
307  $formquestion = array();
308  $formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('ToClone'), $langs->trans('ConfirmCloneAsk', $object->ref), 'confirm_clone', $formquestion, 'yes', 1);
309  }
310 
311  // Confirmation of action xxxx
312  if ($action == 'enable') {
313  $formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('EnableAWorkstation'), $langs->trans("ConfirmEnableWorkstation", $object->ref), 'confirm_enable', $formquestion, 0, 1, 220);
314  } elseif ($action == 'disable') {
315  $formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('DisableAWorkstation'), $langs->trans("ConfirmDisableWorkstation", $object->ref), 'confirm_disable', $formquestion, 0, 1, 220);
316  }
317 
318  // Call Hook formConfirm
319  $parameters = array('formConfirm' => $formconfirm, 'lineid' => $lineid);
320  $reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
321  if (empty($reshook)) {
322  $formconfirm .= $hookmanager->resPrint;
323  } elseif ($reshook > 0) {
324  $formconfirm = $hookmanager->resPrint;
325  }
326 
327  // Print form confirm
328  print $formconfirm;
329 
330 
331  // Object card
332  // ------------------------------------------------------------
333  $linkback = '<a href="'.dol_buildpath('/workstation/workstation_list.php', 1).'?restore_lastsearch_values=1">'.$langs->trans("BackToList").'</a>';
334 
335  $morehtmlref = '<div class="refidno">';
336  /*
337  // Ref customer
338  $morehtmlref.=$form->editfieldkey("RefCustomer", 'ref_client', $object->ref_client, $object, 0, 'string', '', 0, 1);
339  $morehtmlref.=$form->editfieldval("RefCustomer", 'ref_client', $object->ref_client, $object, 0, 'string', '', null, null, '', 1);
340  // Thirdparty
341  $morehtmlref.='<br>'.$langs->trans('ThirdParty') . ' : ' . (is_object($object->thirdparty) ? $object->thirdparty->getNomUrl(1) : '');
342  // Project
343  if (! empty($conf->project->enabled)) {
344  $langs->load("projects");
345  $morehtmlref .= '<br>'.$langs->trans('Project') . ' ';
346  if ($permissiontoadd) {
347  //if ($action != 'classify') $morehtmlref.='<a class="editfielda" href="' . $_SERVER['PHP_SELF'] . '?action=classify&token='.newToken().'&id=' . $object->id . '">' . img_edit($langs->transnoentitiesnoconv('SetProject')) . '</a> ';
348  $morehtmlref .= ' : ';
349  if ($action == 'classify') {
350  //$morehtmlref .= $form->form_project($_SERVER['PHP_SELF'] . '?id=' . $object->id, $object->socid, $object->fk_project, 'projectid', 0, 0, 1, 1);
351  $morehtmlref .= '<form method="post" action="'.$_SERVER['PHP_SELF'].'?id='.$object->id.'">';
352  $morehtmlref .= '<input type="hidden" name="action" value="classin">';
353  $morehtmlref .= '<input type="hidden" name="token" value="'.newToken().'">';
354  $morehtmlref .= $formproject->select_projects($object->socid, $object->fk_project, 'projectid', $maxlength, 0, 1, 0, 1, 0, 0, '', 1);
355  $morehtmlref .= '<input type="submit" class="button valignmiddle" value="'.$langs->trans("Modify").'">';
356  $morehtmlref .= '</form>';
357  } else {
358  $morehtmlref.=$form->form_project($_SERVER['PHP_SELF'] . '?id=' . $object->id, $object->socid, $object->fk_project, 'none', 0, 0, 0, 1);
359  }
360  } else {
361  if (! empty($object->fk_project)) {
362  $proj = new Project($db);
363  $proj->fetch($object->fk_project);
364  $morehtmlref .= ': '.$proj->getNomUrl();
365  } else {
366  $morehtmlref .= '';
367  }
368  }
369  }*/
370  $morehtmlref .= '</div>';
371 
372 
373  dol_banner_tab($object, 'ref', $linkback, 1, 'ref', 'ref', $morehtmlref);
374 
375 
376  print '<div class="fichecenter">';
377  print '<div class="fichehalfleft">';
378  print '<div class="underbanner clearboth"></div>';
379  print '<table class="border centpercent tableforfield">'."\n";
380 
381  // Common attributes
382  //$keyforbreak='fieldkeytoswitchonsecondcolumn'; // We change column just before this field
383  //unset($object->fields['fk_project']); // Hide field already shown in banner
384  //unset($object->fields['fk_soc']); // Hide field already shown in banner
385  if ($object->type === 'MACHINE') {
386  $object->fields['nb_operators_required']['visible'] = 0;
387  }
388 
389  include DOL_DOCUMENT_ROOT.'/core/tpl/commonfields_view.tpl.php';
390 
391  // Groups
392  if ($object->type !== 'MACHINE') {
393  $toprint = array();
394  $g = new UserGroup($db);
395  foreach ($object->usergroups as $id_group) {
396  $g->fetch($id_group);
397  $toprint[] = '<li class="select2-search-choice-dolibarr noborderoncategories" style="background: #bbb">' . $g->getNomUrl(1, '', 0, 'categtextwhite') . '</li>';
398  }
399 
400  print '<tr><td>' . $langs->trans('Groups') . '</td><td>';
401  print '<div class="select2-container-multi-dolibarr"><ul class="select2-choices-dolibarr">' . implode(' ', $toprint) . '</ul></div>';
402  print '</td></tr>';
403  }
404 
405  // Resources
406  if ($object->type !== 'HUMAN') {
407  $toprint = array();
408  $r = new Dolresource($db);
409  foreach ($object->resources as $id_resource) {
410  $r->fetch($id_resource);
411  $toprint[] = '<li class="select2-search-choice-dolibarr noborderoncategories" style="background: #bbb">' . $r->getNomUrl(1, '', '', 0, 'categtextwhite') . '</li>';
412  }
413 
414  print '<tr><td>' . $langs->trans('Machines') . '</td><td>';
415  print '<div class="select2-container-multi-dolibarr"><ul class="select2-choices-dolibarr">' . implode(' ', $toprint) . '</ul></div>';
416  print '</td></tr>';
417  }
418 
419  // Other attributes. Fields from hook formObjectOptions and Extrafields.
420  include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_view.tpl.php';
421 
422  print '</table>';
423  print '</div>';
424  print '</div>';
425 
426  print '<div class="clearboth"></div>';
427 
428  print dol_get_fiche_end();
429 
430 
431  // Buttons for actions
432 
433  if ($action != 'presend' && $action != 'editline') {
434  print '<div class="tabsAction">'."\n";
435  $parameters = array();
436  $reshook = $hookmanager->executeHooks('addMoreActionsButtons', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
437  if ($reshook < 0) {
438  setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
439  }
440 
441  if (empty($reshook)) {
442  // Modify
443  if ($permissiontoadd) {
444  print '<a class="butAction" href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=edit&token='.newToken().'">'.$langs->trans("Modify").'</a>'."\n";
445  } else {
446  print '<a class="butActionRefused classfortooltip" href="#" title="'.dol_escape_htmltag($langs->trans("NotEnoughPermissions")).'">'.$langs->trans('Modify').'</a>'."\n";
447  }
448 
449  // Clone
450  if ($permissiontoadd) {
451  print '<a class="butAction" href="'.$_SERVER['PHP_SELF'].'?id='.$object->id.'&action=clone&token='.newToken().'&object=workstation">'.$langs->trans("ToClone").'</a>'."\n";
452  }
453 
454 
455  if ($permissiontoadd) {
456  if ($object->status == $object::STATUS_ENABLED) {
457  print '<a class="butActionDelete" href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=disable&token='.newToken().'">'.$langs->trans("Disable").'</a>'."\n";
458  } else {
459  print '<a class="butAction" href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=enable&token='.newToken().'">'.$langs->trans("Enable").'</a>'."\n";
460  }
461  }
462 
463 
464  // Delete (need delete permission, or if draft, just need create/modify permission)
465  if ($permissiontodelete) {
466  print '<a class="butActionDelete" href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=delete&token='.newToken().'">'.$langs->trans('Delete').'</a>'."\n";
467  } else {
468  print '<a class="butActionRefused classfortooltip" href="#" title="'.dol_escape_htmltag($langs->trans("NotEnoughPermissions")).'">'.$langs->trans('Delete').'</a>'."\n";
469  }
470  }
471  print '</div>'."\n";
472  }
473 }
474 
475 // End of page
476 llxFooter();
477 $db->close();
restrictedArea
restrictedArea($user, $features, $objectid=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.
Definition: security.lib.php:234
llxFooter
llxFooter()
Empty footer.
Definition: wrapper.php:73
Workstation
Class for Workstation.
Definition: workstation.class.php:33
load_fiche_titre
load_fiche_titre($titre, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
Definition: functions.lib.php:5204
GETPOST
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
Definition: functions.lib.php:484
UserGroup
Class to manage user groups.
Definition: usergroup.class.php:39
dol_buildpath
dol_buildpath($path, $type=0, $returnemptyifnotfound=0)
Return path of url or filesystem.
Definition: functions.lib.php:1062
$form
if($cancel &&! $id) if($action=='add' &&! $cancel) if($action=='delete') if($id) $form
Actions.
Definition: card.php:142
dol_banner_tab
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.
Definition: functions.lib.php:2046
$help_url
if(GETPOST('button_removefilter_x', 'alpha')||GETPOST('button_removefilter.x', 'alpha')||GETPOST('button_removefilter', 'alpha')) if(GETPOST('button_search_x', 'alpha')||GETPOST('button_search.x', 'alpha')||GETPOST('button_search', 'alpha')) if($action=="save" &&empty($cancel)) $help_url
View.
Definition: agenda.php:116
workstationPrepareHead
workstationPrepareHead($object)
Prepare array of tabs for Workstation.
Definition: workstation_workstation.lib.php:30
img_picto
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
Definition: functions.lib.php:3880
$formconfirm
$formconfirm
if ($action == 'delbookkeepingyear') {
Definition: listbyaccount.php:576
Dolresource
DAO Resource object.
Definition: dolresource.class.php:30
FormFile
Class to offer components to list and upload files.
Definition: html.formfile.class.php:36
dol_get_fiche_head
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='')
Show tabs of a record.
Definition: functions.lib.php:1822
newToken
newToken()
Return the value of token currently saved into session with name 'newtoken'.
Definition: functions.lib.php:10878
dol_get_fiche_end
dol_get_fiche_end($notab=0)
Return tab footer of a card.
Definition: functions.lib.php:2018
Form
Class to manage generation of HTML components Only common components must be here.
Definition: html.form.class.php:52
setEventMessages
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='')
Set event messages in dol_events session object.
Definition: functions.lib.php:8137
type
if(preg_match('/crypted:/i', $dolibarr_main_db_pass)||!empty($dolibarr_main_db_encrypted_pass)) $conf db type
Definition: repair.php:119
FormResource
Class to manage forms for the module resource.
Definition: html.formresource.class.php:36
llxHeader
if(!defined('NOREQUIRESOC')) if(!defined('NOREQUIRETRAN')) if(!defined('NOCSRFCHECK')) if(!defined('NOTOKENRENEWAL')) if(!defined('NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined('NOREQUIREAJAX')) llxHeader()
Empty header.
Definition: wrapper.php:59