supplier_order.php 20 KB

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