supplier_order.php 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591
  1. <?php
  2. /* Copyright (C) 2003-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
  3. * Copyright (C) 2004-2011 Laurent Destailleur <eldy@users.sourceforge.net>
  4. * Copyright (C) 2005-2011 Regis Houssin <regis.houssin@capnetworks.com>
  5. * Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org>
  6. * Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
  7. * Copyright (C) 2010-2013 Juanjo Menent <jmenent@2byte.es>
  8. * Copyright (C) 2011-2017 Philippe Grand <philippe.grand@atoo-net.com>
  9. *
  10. * This program is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License as published by
  12. * the Free Software Foundation; either version 3 of the License, or
  13. * (at your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU General Public License
  21. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  22. */
  23. /**
  24. * \file htdocs/admin/supplier_order.php
  25. * \ingroup fournisseur
  26. * \brief Page d'administration-configuration du module Fournisseur
  27. */
  28. require '../main.inc.php';
  29. require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
  30. require_once DOL_DOCUMENT_ROOT.'/core/lib/pdf.lib.php';
  31. require_once DOL_DOCUMENT_ROOT.'/core/lib/fourn.lib.php';
  32. require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.class.php';
  33. require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.commande.class.php';
  34. $langs->load("admin");
  35. $langs->load("other");
  36. $langs->load("orders");
  37. if (!$user->admin)
  38. accessforbidden();
  39. $type=GETPOST('type', 'alpha');
  40. $value=GETPOST('value', 'alpha');
  41. $label = GETPOST('label','alpha');
  42. $action=GETPOST('action', 'alpha');
  43. $scandir = GETPOST('scandir','alpha');
  44. $specimenthirdparty=new Societe($db);
  45. $specimenthirdparty->initAsSpecimen();
  46. /*
  47. * Actions
  48. */
  49. if ($action == 'updateMask')
  50. {
  51. $maskconstorder=GETPOST('maskconstorder','alpha');
  52. $maskvalue=GETPOST('maskorder','alpha');
  53. if ($maskconstorder) $res = dolibarr_set_const($db,$maskconstorder,$maskvalue,'chaine',0,'',$conf->entity);
  54. if (! $res > 0) $error++;
  55. if (! $error)
  56. {
  57. setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
  58. }
  59. else
  60. {
  61. setEventMessages($langs->trans("Error"), null, 'errors');
  62. }
  63. }
  64. else if ($action == 'specimen') // For orders
  65. {
  66. $modele=GETPOST('module','alpha');
  67. $commande = new CommandeFournisseur($db);
  68. $commande->initAsSpecimen();
  69. $commande->thirdparty=$specimenthirdparty;
  70. // Search template files
  71. $file=''; $classname=''; $filefound=0;
  72. $dirmodels=array_merge(array('/'),(array) $conf->modules_parts['models']);
  73. foreach($dirmodels as $reldir)
  74. {
  75. $file=dol_buildpath($reldir."core/modules/supplier_order/pdf/pdf_".$modele.".modules.php",0);
  76. if (file_exists($file))
  77. {
  78. $filefound=1;
  79. $classname = "pdf_".$modele;
  80. break;
  81. }
  82. }
  83. if ($filefound)
  84. {
  85. require_once $file;
  86. $module = new $classname($db,$commande);
  87. if ($module->write_file($commande,$langs) > 0)
  88. {
  89. header("Location: ".DOL_URL_ROOT."/document.php?modulepart=commande_fournisseur&file=SPECIMEN.pdf");
  90. return;
  91. }
  92. else
  93. {
  94. setEventMessages($module->error, $module->errors, 'errors');
  95. dol_syslog($module->error, LOG_ERR);
  96. }
  97. }
  98. else
  99. {
  100. setEventMessages($langs->trans("ErrorModuleNotFound"), null, 'errors');
  101. dol_syslog($langs->trans("ErrorModuleNotFound"), LOG_ERR);
  102. }
  103. }
  104. // Activate a model
  105. else if ($action == 'set')
  106. {
  107. $ret = addDocumentModel($value, $type, $label, $scandir);
  108. }
  109. else if ($action == 'del')
  110. {
  111. $ret = delDocumentModel($value, $type);
  112. if ($ret > 0)
  113. {
  114. if ($conf->global->COMMANDE_SUPPLIER_ADDON_PDF == "$value") dolibarr_del_const($db, 'COMMANDE_SUPPLIER_ADDON_PDF',$conf->entity);
  115. }
  116. }
  117. // Set default model
  118. else if ($action == 'setdoc')
  119. {
  120. if (dolibarr_set_const($db, "COMMANDE_SUPPLIER_ADDON_PDF",$value,'chaine',0,'',$conf->entity))
  121. {
  122. // La constante qui a ete lue en avant du nouveau set
  123. // on passe donc par une variable pour avoir un affichage coherent
  124. $conf->global->COMMANDE_SUPPLIER_ADDON_PDF = $value;
  125. }
  126. // On active le modele
  127. $ret = delDocumentModel($value, $type);
  128. if ($ret > 0)
  129. {
  130. $ret = addDocumentModel($value, $type, $label, $scandir);
  131. }
  132. }
  133. else if ($action == 'setmod')
  134. {
  135. // TODO Verifier si module numerotation choisi peut etre active
  136. // par appel methode canBeActivated
  137. dolibarr_set_const($db, "COMMANDE_SUPPLIER_ADDON_NUMBER",$value,'chaine',0,'',$conf->entity);
  138. }
  139. else if ($action == 'addcat')
  140. {
  141. $fourn = new Fournisseur($db);
  142. $fourn->CreateCategory($user,$_POST["cat"]);
  143. }
  144. else if ($action == 'set_SUPPLIER_ORDER_OTHER')
  145. {
  146. $freetext = GETPOST('SUPPLIER_ORDER_FREE_TEXT'); // No alpha here, we want exact string
  147. $doubleapproval = GETPOST('SUPPLIER_ORDER_3_STEPS_TO_BE_APPROVED','alpha');
  148. $doubleapproval = price2num($doubleapproval );
  149. $res1 = dolibarr_set_const($db, "SUPPLIER_ORDER_FREE_TEXT",$freetext,'chaine',0,'',$conf->entity);
  150. $res2 = dolibarr_set_const($db, "SUPPLIER_ORDER_3_STEPS_TO_BE_APPROVED",$doubleapproval,'chaine',0,'',$conf->entity);
  151. // TODO We add/delete permission here until permission can have a condition on a global var
  152. include_once DOL_DOCUMENT_ROOT.'/core/modules/modFournisseur.class.php';
  153. $newmodule=new modFournisseur($db);
  154. // clear default rights array
  155. $newmodule->rights=array();
  156. // add new right
  157. $r=0;
  158. $newmodule->rights[$r][0] = 1190;
  159. $newmodule->rights[$r][1] = $langs->trans("Permission1190");
  160. $newmodule->rights[$r][2] = 'w';
  161. $newmodule->rights[$r][3] = 0;
  162. $newmodule->rights[$r][4] = 'commande';
  163. $newmodule->rights[$r][5] = 'approve2';
  164. if ($conf->global->SUPPLIER_ORDER_3_STEPS_TO_BE_APPROVED)
  165. {
  166. $newmodule->insert_permissions(1);
  167. }
  168. else
  169. {
  170. $newmodule->delete_permissions();
  171. }
  172. }
  173. // Activate ask for payment bank
  174. else if ($action == 'set_BANK_ASK_PAYMENT_BANK_DURING_SUPPLIER_ORDER')
  175. {
  176. $res = dolibarr_set_const($db, "BANK_ASK_PAYMENT_BANK_DURING_SUPPLIER_ORDER",$value,'chaine',0,'',$conf->entity);
  177. if (! $res > 0) $error++;
  178. if (! $error)
  179. {
  180. setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
  181. }
  182. else
  183. {
  184. setEventMessages($langs->trans("Error"), null, 'errors');
  185. }
  186. }
  187. /*
  188. * View
  189. */
  190. $form=new Form($db);
  191. $dirmodels=array_merge(array('/'),(array) $conf->modules_parts['models']);
  192. llxHeader("","");
  193. $linkback='<a href="'.DOL_URL_ROOT.'/admin/modules.php">'.$langs->trans("BackToModuleList").'</a>';
  194. print load_fiche_titre($langs->trans("SuppliersSetup"),$linkback,'title_setup');
  195. print "<br>";
  196. $head = supplierorder_admin_prepare_head();
  197. dol_fiche_head($head, 'order', $langs->trans("Suppliers"), -1, 'company');
  198. // Supplier order numbering module
  199. print load_fiche_titre($langs->trans("OrdersNumberingModules"),'','');
  200. print '<table class="noborder" width="100%">';
  201. print '<tr class="liste_titre">';
  202. print '<td width="100">'.$langs->trans("Name").'</td>';
  203. print '<td>'.$langs->trans("Description").'</td>';
  204. print '<td>'.$langs->trans("Example").'</td>';
  205. print '<td align="center" width="60">'.$langs->trans("Status").'</td>';
  206. print '<td align="center" width="16">'.$langs->trans("ShortInfo").'</td>';
  207. print "</tr>\n";
  208. clearstatcache();
  209. foreach ($dirmodels as $reldir)
  210. {
  211. $dir = dol_buildpath($reldir."core/modules/supplier_order/");
  212. if (is_dir($dir))
  213. {
  214. $handle = opendir($dir);
  215. if (is_resource($handle))
  216. {
  217. $var=true;
  218. while (($file = readdir($handle))!==false)
  219. {
  220. if (substr($file, 0, 25) == 'mod_commande_fournisseur_' && substr($file, dol_strlen($file)-3, 3) == 'php')
  221. {
  222. $file = substr($file, 0, dol_strlen($file)-4);
  223. require_once $dir.$file.'.php';
  224. $module = new $file;
  225. if ($module->isEnabled())
  226. {
  227. // Show modules according to features level
  228. if ($module->version == 'development' && $conf->global->MAIN_FEATURES_LEVEL < 2) continue;
  229. if ($module->version == 'experimental' && $conf->global->MAIN_FEATURES_LEVEL < 1) continue;
  230. print '<tr class="oddeven"><td>'.$module->nom."</td><td>\n";
  231. print $module->info();
  232. print '</td>';
  233. // Show example of numbering module
  234. print '<td class="nowrap">';
  235. $tmp=$module->getExample();
  236. if (preg_match('/^Error/',$tmp)) {
  237. $langs->load("errors"); print '<div class="error">'.$langs->trans($tmp).'</div>';
  238. }
  239. elseif ($tmp=='NotConfigured') print $langs->trans($tmp);
  240. else print $tmp;
  241. print '</td>'."\n";
  242. print '<td align="center">';
  243. if ($conf->global->COMMANDE_SUPPLIER_ADDON_NUMBER == "$file")
  244. {
  245. print img_picto($langs->trans("Activated"),'switch_on');
  246. }
  247. else
  248. {
  249. print '<a href="'.$_SERVER["PHP_SELF"].'?action=setmod&amp;value='.$file.'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"),'switch_off').'</a>';
  250. }
  251. print '</td>';
  252. $commande=new CommandeFournisseur($db);
  253. $commande->initAsSpecimen();
  254. // Info
  255. $htmltooltip='';
  256. $htmltooltip.=''.$langs->trans("Version").': <b>'.$module->getVersion().'</b><br>';
  257. $nextval=$module->getNextValue($mysoc,$commande);
  258. if ("$nextval" != $langs->trans("NotAvailable")) { // Keep " on nextval
  259. $htmltooltip.=''.$langs->trans("NextValue").': ';
  260. if ($nextval) {
  261. if (preg_match('/^Error/',$nextval) || $nextval=='NotConfigured')
  262. $nextval = $langs->trans($nextval);
  263. $htmltooltip.=$nextval.'<br>';
  264. } else {
  265. $htmltooltip.=$langs->trans($module->error).'<br>';
  266. }
  267. }
  268. print '<td align="center">';
  269. print $form->textwithpicto('',$htmltooltip,1,0);
  270. print '</td>';
  271. print '</tr>';
  272. }
  273. }
  274. }
  275. closedir($handle);
  276. }
  277. }
  278. }
  279. print '</table><br>';
  280. /*
  281. * Documents models for supplier orders
  282. */
  283. print load_fiche_titre($langs->trans("OrdersModelModule"),'','');
  284. // Defini tableau def de modele
  285. $def = array();
  286. $sql = "SELECT nom";
  287. $sql.= " FROM ".MAIN_DB_PREFIX."document_model";
  288. $sql.= " WHERE type = 'order_supplier'";
  289. $sql.= " AND entity = ".$conf->entity;
  290. $resql=$db->query($sql);
  291. if ($resql)
  292. {
  293. $i = 0;
  294. $num_rows=$db->num_rows($resql);
  295. while ($i < $num_rows)
  296. {
  297. $array = $db->fetch_array($resql);
  298. array_push($def, $array[0]);
  299. $i++;
  300. }
  301. }
  302. else
  303. {
  304. dol_print_error($db);
  305. }
  306. print '<table class="noborder" width="100%">'."\n";
  307. print '<tr class="liste_titre">'."\n";
  308. print '<td width="100">'.$langs->trans("Name").'</td>'."\n";
  309. print '<td>'.$langs->trans("Description").'</td>'."\n";
  310. print '<td align="center" width="60">'.$langs->trans("Status").'</td>'."\n";
  311. print '<td align="center" width="60">'.$langs->trans("Default").'</td>'."\n";
  312. print '<td align="center" width="40">'.$langs->trans("ShortInfo").'</td>';
  313. print '<td align="center" width="40">'.$langs->trans("Preview").'</td>';
  314. print '</tr>'."\n";
  315. clearstatcache();
  316. foreach ($dirmodels as $reldir)
  317. {
  318. $dir = dol_buildpath($reldir."core/modules/supplier_order/pdf/");
  319. if (is_dir($dir))
  320. {
  321. $handle=opendir($dir);
  322. if (is_resource($handle))
  323. {
  324. while (($file = readdir($handle))!==false)
  325. {
  326. if (preg_match('/\.modules\.php$/i',$file) && preg_match('/^(pdf_|doc_)/',$file))
  327. {
  328. $name = substr($file, 4, dol_strlen($file) -16);
  329. $classname = substr($file, 0, dol_strlen($file) -12);
  330. require_once $dir.'/'.$file;
  331. $module = new $classname($db, new CommandeFournisseur($db));
  332. print "<tr class=\"oddeven\">\n";
  333. print "<td>";
  334. print (empty($module->name)?$name:$module->name);
  335. print "</td>\n";
  336. print "<td>\n";
  337. require_once $dir.$file;
  338. $module = new $classname($db,$specimenthirdparty);
  339. if (method_exists($module,'info')) print $module->info($langs);
  340. else print $module->description;
  341. print "</td>\n";
  342. // Active
  343. if (in_array($name, $def))
  344. {
  345. print '<td align="center">'."\n";
  346. if ($conf->global->COMMANDE_SUPPLIER_ADDON_PDF != "$name")
  347. {
  348. print '<a href="'.$_SERVER["PHP_SELF"].'?action=del&amp;value='.$name.'&amp;scandir='.$module->scandir.'&amp;label='.urlencode($module->name).'&amp;type=order_supplier">';
  349. print img_picto($langs->trans("Enabled"),'switch_on');
  350. print '</a>';
  351. }
  352. else
  353. {
  354. print img_picto($langs->trans("Enabled"),'switch_on');
  355. }
  356. print "</td>";
  357. }
  358. else
  359. {
  360. print '<td align="center">'."\n";
  361. print '<a href="'.$_SERVER["PHP_SELF"].'?action=set&amp;value='.$name.'&amp;scandir='.$module->scandir.'&amp;label='.urlencode($module->name).'&amp;type=order_supplier">'.img_picto($langs->trans("Disabled"),'switch_off').'</a>';
  362. print "</td>";
  363. }
  364. // Default
  365. print '<td align="center">';
  366. if ($conf->global->COMMANDE_SUPPLIER_ADDON_PDF == "$name")
  367. {
  368. print img_picto($langs->trans("Default"),'on');
  369. }
  370. else
  371. {
  372. print '<a href="'.$_SERVER["PHP_SELF"].'?action=setdoc&amp;value='.$name.'&amp;scandir='.$module->scandir.'&amp;label='.urlencode($module->name).'&amp;type=order_supplier"" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"),'off').'</a>';
  373. }
  374. print '</td>';
  375. // Info
  376. $htmltooltip = ''.$langs->trans("Name").': '.$module->name;
  377. $htmltooltip.='<br>'.$langs->trans("Type").': '.($module->type?$module->type:$langs->trans("Unknown"));
  378. $htmltooltip.='<br>'.$langs->trans("Width").'/'.$langs->trans("Height").': '.$module->page_largeur.'/'.$module->page_hauteur;
  379. $htmltooltip.='<br><br><u>'.$langs->trans("FeaturesSupported").':</u>';
  380. $htmltooltip.='<br>'.$langs->trans("Logo").': '.yn($module->option_logo,1,1);
  381. $htmltooltip.='<br>'.$langs->trans("PaymentMode").': '.yn($module->option_modereg,1,1);
  382. $htmltooltip.='<br>'.$langs->trans("PaymentConditions").': '.yn($module->option_condreg,1,1);
  383. print '<td align="center">';
  384. print $form->textwithpicto('',$htmltooltip,1,0);
  385. print '</td>';
  386. print '<td align="center">';
  387. print '<a href="'.$_SERVER["PHP_SELF"].'?action=specimen&amp;module='.$name.'">'.img_object($langs->trans("Preview"),'order').'</a>';
  388. print '</td>';
  389. print "</tr>\n";
  390. }
  391. }
  392. closedir($handle);
  393. }
  394. }
  395. }
  396. print '</table><br>';
  397. /*
  398. * Other options
  399. */
  400. print '<form action="'.$_SERVER["PHP_SELF"].'" method="post">';
  401. print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
  402. print '<input type="hidden" name="action" value="set_SUPPLIER_ORDER_OTHER">';
  403. print load_fiche_titre($langs->trans("OtherOptions"),'','');
  404. print '<table class="noborder" width="100%">';
  405. print '<tr class="liste_titre">';
  406. print '<td>'.$langs->trans("Parameter").'</td>';
  407. print '<td align="center" width="60">'.$langs->trans("Value").'</td>';
  408. print '<td width="80">&nbsp;</td>';
  409. print "</tr>\n";
  410. $var=false;
  411. //if ($conf->global->MAIN_FEATURES_LEVEL > 0)
  412. //{
  413. print '<tr class="oddeven"><td>';
  414. print $form->textwithpicto($langs->trans("UseDoubleApproval"), $langs->trans("Use3StepsApproval"), 1, 'help').'<br>';
  415. print $langs->trans("IfSetToYesDontForgetPermission");
  416. print '</td><td>';
  417. print '<input type="text" size="6" name="SUPPLIER_ORDER_3_STEPS_TO_BE_APPROVED" value="'.$conf->global->SUPPLIER_ORDER_3_STEPS_TO_BE_APPROVED.'">';
  418. print '</td><td align="right">';
  419. print '<input type="submit" class="button" value="'.$langs->trans("Modify").'">';
  420. print "</td></tr>\n";
  421. //}
  422. // Ask for payment bank during supplier order
  423. /* Kept as hidden for the moment
  424. if ($conf->banque->enabled)
  425. {
  426. print '<tr class="oddeven"><td>';
  427. print $langs->trans("BANK_ASK_PAYMENT_BANK_DURING_SUPPLIER_ORDER").'</td><td>&nbsp</td><td align="center">';
  428. if (! empty($conf->use_javascript_ajax))
  429. {
  430. print ajax_constantonoff('BANK_ASK_PAYMENT_BANK_DURING_SUPPLIER_ORDER');
  431. }
  432. else
  433. {
  434. if (empty($conf->global->BANK_ASK_PAYMENT_BANK_DURING_ORDER))
  435. {
  436. print '<a href="'.$_SERVER['PHP_SELF'].'?action=set_BANK_ASK_PAYMENT_BANK_DURING_SUPPLIER_ORDER&amp;value=1">'.img_picto($langs->trans("Disabled"),'switch_off').'</a>';
  437. }
  438. else
  439. {
  440. print '<a href="'.$_SERVER['PHP_SELF'].'?action=set_BANK_ASK_PAYMENT_BANK_DURING_SUPPLIER_ORDER&amp;value=0">'.img_picto($langs->trans("Enabled"),'switch_on').'</a>';
  441. }
  442. }
  443. print '</td></tr>';
  444. }
  445. else
  446. {
  447. print '<tr class="oddeven"><td>';
  448. print $langs->trans("BANK_ASK_PAYMENT_BANK_DURING_SUPPLIER_ORDER").'</td><td>&nbsp;</td><td align="center">'.$langs->trans('NotAvailable').'</td></tr>';
  449. }
  450. */
  451. $substitutionarray=pdf_getSubstitutionArray($langs);
  452. $substitutionarray['__(AnyTranslationKey)__']=$langs->trans("Translation");
  453. $htmltext = '<i>'.$langs->trans("AvailableVariables").':<br>';
  454. foreach($substitutionarray as $key => $val) $htmltext.=$key.'<br>';
  455. $htmltext.='</i>';
  456. print '<tr class="oddeven"><td colspan="2">';
  457. print $form->textwithpicto($langs->trans("FreeLegalTextOnOrders"), $langs->trans("AddCRIfTooLong").'<br><br>'.$htmltext).'<br>';
  458. $variablename='SUPPLIER_ORDER_FREE_TEXT';
  459. if (empty($conf->global->PDF_ALLOW_HTML_FOR_FREE_TEXT))
  460. {
  461. print '<textarea name="'.$variablename.'" class="flat" cols="120">'.$conf->global->$variablename.'</textarea>';
  462. }
  463. else
  464. {
  465. include_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php';
  466. $doleditor=new DolEditor($variablename, $conf->global->$variablename,'',80,'dolibarr_details');
  467. print $doleditor->Create();
  468. }
  469. print '</td><td align="right">';
  470. print '<input type="submit" class="button" value="'.$langs->trans("Modify").'">';
  471. print "</td></tr>\n";
  472. print '</table><br>';
  473. print '</form>';
  474. /*
  475. * Notifications
  476. */
  477. print load_fiche_titre($langs->trans("Notifications"),'','');
  478. print '<table class="noborder" width="100%">';
  479. print '<tr class="liste_titre">';
  480. print '<td>'.$langs->trans("Parameter").'</td>';
  481. print '<td align="center" width="60"></td>';
  482. print '<td width="80">&nbsp;</td>';
  483. print "</tr>\n";
  484. print '<tr class="oddeven"><td colspan="2">';
  485. print $langs->trans("YouMayFindNotificationsFeaturesIntoModuleNotification").'<br>';
  486. print '</td><td align="right">';
  487. print "</td></tr>\n";
  488. print '</table>';
  489. llxFooter();
  490. $db->close();