dolibarr 18.0.6
modAgenda.class.php
Go to the documentation of this file.
1<?php
2/* Copyright (C) 2003,2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
3 * Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org>
4 * Copyright (C) 2004-2014 Laurent Destailleur <eldy@users.sourceforge.net>
5 * Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org>
6 * Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
7 * Copyright (C) 2009-2011 Regis Houssin <regis.houssin@inodbox.com>
8 * Copyright (C) 2013 Cedric Gross <c.gross@kreiz-it.fr>
9 * Copyright (C) 2015 Bahfir Abbes <bafbes@gmail.com>
10 * Copyright (C) 2017 Juanjo Menent <jmenent@2byte.es>
11 *
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 3 of the License, or
15 * (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program. If not, see <https://www.gnu.org/licenses/>.
24 */
25
33include_once DOL_DOCUMENT_ROOT.'/core/modules/DolibarrModules.class.php';
34
39{
40
46 public function __construct($db)
47 {
48 global $conf, $user;
49
50 $this->db = $db;
51 $this->numero = 2400;
52
53 $this->family = "projects";
54 $this->module_position = '16';
55 // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
56 $this->name = preg_replace('/^mod/i', '', get_class($this));
57 $this->description = "Follow events or rendez-vous. Record manual events into Agendas or let application record automatic events for log tracking.";
58 // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
59 $this->version = 'dolibarr';
60 // Key used in llx_const table to save module status enabled/disabled (where MYMODULE is value of property name of module in uppercase)
61 $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
62 $this->picto = 'action';
63
64 // Data directories to create when module is enabled
65 $this->dirs = array("/agenda/temp");
66
67 // Config pages
68 $this->config_page_url = array("agenda_other.php");
69
70 // Dependencies
71 $this->hidden = false; // A condition to hide module
72 $this->depends = array(); // List of module class names as string that must be enabled if this module is enabled
73 $this->requiredby = array(); // List of module ids to disable if this one is disabled
74 $this->conflictwith = array(); // List of module class names as string this module is in conflict with
75 $this->langfiles = array("companies");
76 $this->phpmin = array(7, 0); // Minimum version of PHP required by module
77
78 // Module parts
79 $this->module_parts = array();
80
81 // Constants
82 //-----------
83 // List of particular constants to add when module is enabled (key, 'chaine', value, desc, visible, 'current' or 'allentities', deleteonunactive)
84 // Example: $this->const=array(0=>array('MYMODULE_MYNEWCONST1','chaine','myvalue','This is a constant to add',1),
85 // 1=>array('MYMODULE_MYNEWCONST2','chaine','myvalue','This is another constant to add',0, 'current', 1)
86 // );
87 $this->const = array();
88 //$this->const[] = array('AGENDA_DEFAULT_FILTER_TYPE', 'chaine', 'AC_NON_AUTO', 'Default filter for type of event on agenda', 0, 'current');
89 $sqlreadactions = "SELECT code, label, description FROM ".MAIN_DB_PREFIX."c_action_trigger ORDER by rang";
90 $resql = $this->db->query($sqlreadactions);
91 if ($resql) {
92 while ($obj = $this->db->fetch_object($resql)) {
93 //if (preg_match('/_CREATE$/',$obj->code) && (! in_array($obj->code, array('COMPANY_CREATE','PRODUCT_CREATE','TASK_CREATE')))) continue; // We don't track such events (*_CREATE) by default, we prefer validation (except thirdparty/product/task creation because there is no validation).
94 if (preg_match('/^TASK_/', $obj->code)) {
95 continue; // We don't track such events by default.
96 }
97 //if (preg_match('/^_MODIFY/',$obj->code)) continue; // We don't track such events by default.
98 $this->const[] = array('MAIN_AGENDA_ACTIONAUTO_'.$obj->code, "chaine", "1", '', 0, 'current');
99 }
100 } else {
101 dol_print_error($this->db->lasterror());
102 }
103
104 // New pages on tabs
105 // -----------------
106 $this->tabs = array();
107
108 // Boxes
109 //------
110 $this->boxes = array(
111 0=>array('file'=>'box_actions.php', 'enabledbydefaulton'=>'Home'),
112 1=>array('file'=>'box_actions_future.php', 'enabledbydefaulton'=>'Home')
113 );
114
115 // Cronjobs
116 //------------
117 $datestart = dol_now();
118 $this->cronjobs = array(
119 0=>array('label'=>'SendEmailsReminders', 'jobtype'=>'method', 'class'=>'comm/action/class/actioncomm.class.php', 'objectname'=>'ActionComm', 'method'=>'sendEmailsReminder', 'parameters'=>'', 'comment'=>'SendEMailsReminder', 'frequency'=>5, 'unitfrequency'=>60, 'priority'=>10, 'status'=>1, 'test'=>'isModEnabled("agenda")', 'datestart'=>$datestart),
120 );
121
122 // Permissions
123 //------------
124 $this->rights = array();
125 $this->rights_class = 'agenda';
126 $r = 0;
127
128 // $this->rights[$r][0] Id permission (unique tous modules confondus)
129 // $this->rights[$r][1] Libelle par defaut si traduction de cle "PermissionXXX" non trouvee (XXX = Id permission)
130 // $this->rights[$r][2] Non utilise
131 // $this->rights[$r][3] 1=Permis par defaut, 0=Non permis par defaut
132 // $this->rights[$r][4] Niveau 1 pour nommer permission dans code
133 // $this->rights[$r][5] Niveau 2 pour nommer permission dans code
134 // $r++;
135
136 $this->rights[$r][0] = 2401;
137 $this->rights[$r][1] = 'Read actions/tasks linked to his account';
138 $this->rights[$r][2] = 'r';
139 $this->rights[$r][3] = 0;
140 $this->rights[$r][4] = 'myactions';
141 $this->rights[$r][5] = 'read';
142 $r++;
143
144 $this->rights[$r][0] = 2402;
145 $this->rights[$r][1] = 'Create/modify actions/tasks linked to his account';
146 $this->rights[$r][2] = 'w';
147 $this->rights[$r][3] = 0;
148 $this->rights[$r][4] = 'myactions';
149 $this->rights[$r][5] = 'create';
150 $r++;
151
152 $this->rights[$r][0] = 2403;
153 $this->rights[$r][1] = 'Delete actions/tasks linked to his account';
154 $this->rights[$r][2] = 'w';
155 $this->rights[$r][3] = 0;
156 $this->rights[$r][4] = 'myactions';
157 $this->rights[$r][5] = 'delete';
158 $r++;
159
160 $this->rights[$r][0] = 2411;
161 $this->rights[$r][1] = 'Read actions/tasks of others';
162 $this->rights[$r][2] = 'r';
163 $this->rights[$r][3] = 0;
164 $this->rights[$r][4] = 'allactions';
165 $this->rights[$r][5] = 'read';
166 $r++;
167
168 $this->rights[$r][0] = 2412;
169 $this->rights[$r][1] = 'Create/modify actions/tasks of others';
170 $this->rights[$r][2] = 'w';
171 $this->rights[$r][3] = 0;
172 $this->rights[$r][4] = 'allactions';
173 $this->rights[$r][5] = 'create';
174 $r++;
175
176 $this->rights[$r][0] = 2413;
177 $this->rights[$r][1] = 'Delete actions/tasks of others';
178 $this->rights[$r][2] = 'w';
179 $this->rights[$r][3] = 0;
180 $this->rights[$r][4] = 'allactions';
181 $this->rights[$r][5] = 'delete';
182 $r++;
183
184 $this->rights[$r][0] = 2414;
185 $this->rights[$r][1] = 'Export actions/tasks of others';
186 $this->rights[$r][2] = 'w';
187 $this->rights[$r][3] = 0;
188 $this->rights[$r][4] = 'export';
189
190 // Main menu entries
191 $this->menu = array(); // List of menus to add
192 $r = 0;
193
194 // Add here entries to declare new menus
195 // Example to declare the Top Menu entry:
196 // $this->menu[$r]=array( 'fk_menu'=>0, // Put 0 if this is a top menu
197 // 'type'=>'top', // This is a Top menu entry
198 // 'titre'=>'MyModule top menu',
199 // 'mainmenu'=>'mymodule',
200 // 'url'=>'/mymodule/pagetop.php',
201 // 'langs'=>'mylangfile', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
202 // 'position'=>100,
203 // 'enabled'=>'1', // Define condition to show or hide menu entry. Use '$conf->mymodule->enabled' if entry must be visible if module is enabled.
204 // 'perms'=>'1', // Use 'perms'=>'$user->rights->mymodule->level1->level2' if you want your menu with a permission rules
205 // 'target'=>'',
206 // 'user'=>2); // 0=Menu for internal users, 1=external users, 2=both
207 // $r++;
208 $this->menu[$r] = array(
209 'fk_menu'=>0,
210 'type'=>'top',
211 'titre'=>'TMenuAgenda',
212 'prefix' => img_picto('', $this->picto, 'class="paddingright pictofixedwidth"'),
213 'mainmenu'=>'agenda',
214 'url'=>'/comm/action/index.php',
215 'langs'=>'agenda',
216 'position'=>86,
217 'perms'=>'$user->rights->agenda->myactions->read || $user->rights->resource->read',
218 'enabled'=>'isModEnabled("agenda") || isModEnabled("resource")',
219 'target'=>'',
220 'user'=>2,
221 );
222 $r++;
223
224 $this->menu[$r] = array(
225 'fk_menu'=>'r=0',
226 'type'=>'left',
227 'titre'=>'Actions',
228 'prefix' => img_picto('', $this->picto, 'class="paddingright pictofixedwidth"'),
229 'mainmenu'=>'agenda',
230 'url'=>'/comm/action/index.php?mainmenu=agenda&amp;leftmenu=agenda',
231 'langs'=>'agenda',
232 'position'=>100,
233 'perms'=>'$user->rights->agenda->myactions->read',
234 'enabled'=>'isModEnabled("agenda")',
235 'target'=>'',
236 'user'=>2,
237 );
238 $r++;
239 $this->menu[$r] = array(
240 'fk_menu'=>'r=1',
241 'type'=>'left',
242 'titre'=>'NewAction',
243 'mainmenu'=>'agenda',
244 'url'=>'/comm/action/card.php?mainmenu=agenda&amp;leftmenu=agenda&amp;action=create',
245 'langs'=>'commercial',
246 'position'=>101,
247 'perms'=>'($user->hasRight("agenda", "myactions", "create")||$user->hasRight("agenda", "allactions", "create"))',
248 'enabled'=>'isModEnabled("agenda")',
249 'target'=>'',
250 'user'=>2
251 );
252 $r++;
253 // Calendar
254 $this->menu[$r] = array(
255 'fk_menu'=>'r=1',
256 'type'=>'left',
257 'titre'=>'Calendar',
258 'mainmenu'=>'agenda',
259 'url'=>'/comm/action/index.php?action=default&amp;mainmenu=agenda&amp;leftmenu=agenda',
260 'langs'=>'agenda',
261 'position'=>140,
262 'perms'=>'$user->rights->agenda->myactions->read',
263 'enabled'=>'isModEnabled("agenda")',
264 'target'=>'',
265 'user'=>2
266 );
267 $r++;
268 $this->menu[$r] = array(
269 'fk_menu'=>'r=3',
270 'type'=>'left',
271 'titre'=>'MenuToDoMyActions',
272 'mainmenu'=>'agenda',
273 'url'=>'/comm/action/index.php?action=default&amp;mainmenu=agenda&amp;leftmenu=agenda&amp;status=todo&amp;filter=mine',
274 'langs'=>'agenda',
275 'position'=>141,
276 'perms'=>'$user->rights->agenda->myactions->read',
277 'enabled'=>'isModEnabled("agenda")',
278 'target'=>'',
279 'user'=>2
280 );
281 $r++;
282 $this->menu[$r] = array(
283 'fk_menu'=>'r=3',
284 'type'=>'left',
285 'titre'=>'MenuDoneMyActions',
286 'mainmenu'=>'agenda',
287 'url'=>'/comm/action/index.php?action=default&amp;mainmenu=agenda&amp;leftmenu=agenda&amp;status=done&amp;filter=mine',
288 'langs'=>'agenda',
289 'position'=>142,
290 'perms'=>'$user->rights->agenda->myactions->read',
291 'enabled'=>'isModEnabled("agenda")',
292 'target'=>'',
293 'user'=>2
294 );
295 $r++;
296 $this->menu[$r] = array(
297 'fk_menu'=>'r=3',
298 'type'=>'left',
299 'titre'=>'MenuToDoActions',
300 'mainmenu'=>'agenda',
301 'url'=>'/comm/action/index.php?action=default&amp;mainmenu=agenda&amp;leftmenu=agenda&amp;status=todo&amp;filtert=-1',
302 'langs'=>'agenda',
303 'position'=>143,
304 'perms'=>'$user->rights->agenda->allactions->read',
305 'enabled'=>'$user->rights->agenda->allactions->read',
306 'target'=>'',
307 'user'=>2
308 );
309 $r++;
310 $this->menu[$r] = array(
311 'fk_menu'=>'r=3',
312 'type'=>'left',
313 'titre'=>'MenuDoneActions',
314 'mainmenu'=>'agenda',
315 'url'=>'/comm/action/index.php?action=default&amp;mainmenu=agenda&amp;leftmenu=agenda&amp;status=done&amp;filtert=-1',
316 'langs'=>'agenda',
317 'position'=>144,
318 'perms'=>'$user->rights->agenda->allactions->read',
319 'enabled'=>'$user->rights->agenda->allactions->read',
320 'target'=>'',
321 'user'=>2
322 );
323
324 // List
325 $r++;
326 $this->menu[$r] = array(
327 'fk_menu'=>'r=1',
328 'type'=>'left',
329 'titre'=>'List',
330 'mainmenu'=>'agenda',
331 'url'=>'/comm/action/list.php?mode=show_list&amp;mainmenu=agenda&amp;leftmenu=agenda',
332 'langs'=>'agenda',
333 'position'=>110,
334 'perms'=>'$user->rights->agenda->myactions->read',
335 'enabled'=>'isModEnabled("agenda")',
336 'target'=>'',
337 'user'=>2
338 );
339 $r++;
340 $this->menu[$r] = array(
341 'fk_menu'=>'r=8',
342 'type'=>'left',
343 'titre'=>'MenuToDoMyActions',
344 'mainmenu'=>'agenda',
345 'url'=>'/comm/action/list.php?mode=show_list&amp;mainmenu=agenda&amp;leftmenu=agenda&amp;status=todo&amp;filter=mine',
346 'langs'=>'agenda',
347 'position'=>111,
348 'perms'=>'$user->rights->agenda->myactions->read',
349 'enabled'=>'isModEnabled("agenda")',
350 'target'=>'',
351 'user'=>2
352 );
353 $r++;
354 $this->menu[$r] = array(
355 'fk_menu'=>'r=8',
356 'type'=>'left',
357 'titre'=>'MenuDoneMyActions',
358 'mainmenu'=>'agenda',
359 'url'=>'/comm/action/list.php?mode=show_list&amp;mainmenu=agenda&amp;leftmenu=agenda&amp;status=done&amp;filter=mine',
360 'langs'=>'agenda',
361 'position'=>112,
362 'perms'=>'$user->rights->agenda->myactions->read',
363 'enabled'=>'isModEnabled("agenda")',
364 'target'=>'',
365 'user'=>2
366 );
367 $r++;
368 $this->menu[$r] = array(
369 'fk_menu'=>'r=8',
370 'type'=>'left',
371 'titre'=>'MenuToDoActions',
372 'mainmenu'=>'agenda',
373 'url'=>'/comm/action/list.php?mode=show_list&amp;mainmenu=agenda&amp;leftmenu=agenda&amp;status=todo&amp;filtert=-1',
374 'langs'=>'agenda',
375 'position'=>113,
376 'perms'=>'$user->rights->agenda->allactions->read',
377 'enabled'=>'$user->rights->agenda->allactions->read',
378 'target'=>'',
379 'user'=>2
380 );
381 $r++;
382 $this->menu[$r] = array(
383 'fk_menu'=>'r=8',
384 'type'=>'left',
385 'titre'=>'MenuDoneActions',
386 'mainmenu'=>'agenda',
387 'url'=>'/comm/action/list.php?mode=show_list&amp;mainmenu=agenda&amp;leftmenu=agenda&amp;status=done&amp;filtert=-1',
388 'langs'=>'agenda',
389 'position'=>114,
390 'perms'=>'$user->rights->agenda->allactions->read',
391 'enabled'=>'$user->rights->agenda->allactions->read',
392 'target'=>'',
393 'user'=>2
394 );
395 $r++;
396 // Reports
397 $this->menu[$r] = array(
398 'fk_menu'=>'r=1',
399 'type'=>'left',
400 'titre'=>'Reportings',
401 'mainmenu'=>'agenda',
402 'url'=>'/comm/action/rapport/index.php?mainmenu=agenda&amp;leftmenu=agenda',
403 'langs'=>'agenda',
404 'position'=>160,
405 'perms'=>'$user->rights->agenda->allactions->read',
406 'enabled'=>'isModEnabled("agenda")',
407 'target'=>'',
408 'user'=>2
409 );
410 $r++;
411 // Categories
412 $this->menu[$r] = array(
413 'fk_menu' => 'r=1',
414 'type' => 'left',
415 'titre' => 'Categories',
416 'mainmenu' => 'agenda',
417 'url'=>'/categories/index.php?mainmenu=agenda&amp;leftmenu=agenda&type=10',
418 'langs' => 'agenda',
419 'position' => 170,
420 'perms' => '$user->rights->agenda->allactions->read',
421 'enabled' => '$conf->categorie->enabled',
422 'target' => '',
423 'user' => 2
424 );
425 $r++;
426
427
428 // Exports
429 //--------
430 $r = 0;
431
432 $r++;
433 $this->export_code[$r] = $this->rights_class.'_'.$r;
434 $this->export_label[$r] = "ExportDataset_event1";
435 $this->export_permission[$r] = array(array("agenda", "export"));
436 $this->export_fields_array[$r] = array('ac.id'=>"IdAgenda", 'ac.ref_ext'=>"ExternalRef", 'ac.datec'=>"DateCreation", 'ac.datep'=>"DateActionBegin",
437 'ac.datep2'=>"DateActionEnd", 'ac.label'=>"Title", 'ac.note'=>"Note", 'ac.percent'=>"Percent", 'ac.durationp'=>"Duration",
438 'cac.libelle'=>"ActionType",
439 's.rowid'=>"IdCompany", 's.nom'=>'CompanyName', 's.address'=>'Address', 's.zip'=>'Zip', 's.town'=>'Town',
440 'co.code'=>'CountryCode', 's.phone'=>'Phone', 's.siren'=>'ProfId1', 's.siret'=>'ProfId2', 's.ape'=>'ProfId3', 's.idprof4'=>'ProfId4', 's.idprof5'=>'ProfId5', 's.idprof6'=>'ProfId6',
441 's.code_compta'=>'CustomerAccountancyCode', 's.code_compta_fournisseur'=>'SupplierAccountancyCode', 's.tva_intra'=>'VATIntra',
442 'p.ref' => 'ProjectRef',
443 );
444 $this->export_TypeFields_array[$r] = array('ac.ref_ext'=>"Text", 'ac.datec'=>"Date", 'ac.datep'=>"Date",
445 'ac.datep2'=>"Date", 'ac.label'=>"Text", 'ac.note'=>"Text", 'ac.percent'=>"Numeric",
446 'ac.durationp'=>"Duree",
447 'cac.libelle'=>"List:c_actioncomm:libelle:libelle",
448 's.nom'=>'Text', 's.address'=>'Text', 's.zip'=>'Text', 's.town'=>'Text',
449 'co.code'=>'Text', 's.phone'=>'Text', 's.siren'=>'Text', 's.siret'=>'Text', 's.ape'=>'Text', 's.idprof4'=>'Text', 's.idprof5'=>'Text', 's.idprof6'=>'Text',
450 's.code_compta'=>'Text', 's.code_compta_fournisseur'=>'Text', 's.tva_intra'=>'Text',
451 'p.ref' => 'Text',
452 );
453 $this->export_entities_array[$r] = array('ac.id'=>"action", 'ac.ref_ext'=>"action", 'ac.datec'=>"action", 'ac.datep'=>"action",
454 'ac.datep2'=>"action", 'ac.label'=>"action", 'ac.note'=>"action", 'ac.percent'=>"action", 'ac.durationp'=>"action",
455 'cac.libelle'=>"action",
456 's.rowid'=>"company", 's.nom'=>'company', 's.address'=>'company', 's.zip'=>'company', 's.town'=>'company',
457 'co.code'=>'company', 's.phone'=>'company', 's.siren'=>'company', 's.siret'=>'company', 's.ape'=>'company', 's.idprof4'=>'company', 's.idprof5'=>'company', 's.idprof6'=>'company',
458 's.code_compta'=>'company', 's.code_compta_fournisseur'=>'company', 's.tva_intra'=>'company',
459 'p.ref' => 'project',
460 );
461
462 $keyforselect = 'actioncomm'; $keyforelement = 'action'; $keyforaliasextra = 'extra';
463 include DOL_DOCUMENT_ROOT.'/core/extrafieldsinexport.inc.php';
464
465 $this->export_sql_start[$r] = 'SELECT DISTINCT ';
466 $this->export_sql_end[$r] = ' FROM '.MAIN_DB_PREFIX.'actioncomm as ac';
467 $this->export_sql_end[$r] .= ' LEFT JOIN '.MAIN_DB_PREFIX.'actioncomm_extrafields as extra ON ac.id = extra.fk_object';
468 $this->export_sql_end[$r] .= ' LEFT JOIN '.MAIN_DB_PREFIX.'c_actioncomm as cac on ac.fk_action = cac.id';
469 if (!empty($user) && !$user->hasRight('agenda', 'allactions', 'read')) {
470 $this->export_sql_end[$r] .= ' LEFT JOIN '.MAIN_DB_PREFIX.'actioncomm_resources acr on ac.id = acr.fk_actioncomm';
471 }
472 $this->export_sql_end[$r] .= ' LEFT JOIN '.MAIN_DB_PREFIX.'socpeople as sp on ac.fk_contact = sp.rowid';
473 $this->export_sql_end[$r] .= ' LEFT JOIN '.MAIN_DB_PREFIX.'societe as s on ac.fk_soc = s.rowid';
474 if (!empty($user) && !$user->hasRight('societe', 'client', 'voir')) {
475 $this->export_sql_end[$r] .= ' LEFT JOIN '.MAIN_DB_PREFIX.'societe_commerciaux as sc ON sc.fk_soc = s.rowid';
476 }
477 $this->export_sql_end[$r] .= ' LEFT JOIN '.MAIN_DB_PREFIX.'c_country as co on s.fk_pays = co.rowid';
478 $this->export_sql_end[$r] .= " LEFT JOIN ".MAIN_DB_PREFIX."projet as p ON p.rowid = ac.fk_project";
479 $this->export_sql_end[$r] .= ' WHERE ac.entity IN ('.getEntity('agenda').')';
480 if (empty($user->rights->societe->client->voir)) {
481 $this->export_sql_end[$r] .= ' AND (sc.fk_user = '.(empty($user) ? 0 : $user->id).' OR ac.fk_soc IS NULL)';
482 }
483 if (!empty($user) && !$user->hasRight('agenda', 'allactions', 'read')) {
484 $this->export_sql_end[$r] .= ' AND acr.fk_element = '.(empty($user) ? 0 : $user->id);
485 }
486 $this->export_sql_order[$r] = ' ORDER BY ac.datep';
487 }
488}
Class DolibarrModules.
Class to describe and enable/disable module Agenda.
__construct($db)
Constructor.
print $script_file $mode $langs defaultlang(is_numeric($duration_value) ? " delay=". $duration_value :"").(is_numeric($duration_value2) ? " after cd cd cd description as description
Only used if Module[ID]Desc translation string is not found.
dol_print_error($db='', $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
dol_now($mode='auto')
Return date for now.
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
$conf db name
Only used if Module[ID]Name translation string is not found.
Definition repair.php:123