PageRenderTime 53ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 1ms

/htdocs/admin/propale.php

https://github.com/asterix14/dolibarr
PHP | 611 lines | 431 code | 95 blank | 85 comment | 76 complexity | 84416934f2d46edf09938602657746d0 MD5 | raw file
Possible License(s): LGPL-2.0
  1. <?php
  2. /* Copyright (C) 2003-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
  3. * Copyright (C) 2004-2011 Laurent Destailleur <eldy@users.sourceforge.net>
  4. * Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org>
  5. * Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
  6. * Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
  7. * Copyright (C) 2005-2011 Regis Houssin <regis@dolibarr.fr>
  8. * Copyright (C) 2008 Raphael Bertrand (Resultic) <raphael.bertrand@resultic.fr>
  9. * Copyright (C) 2011 Juanjo Menent <jmenent@2byte.es>
  10. *
  11. * This program is free software; you can redistribute it and/or modify
  12. * it under the terms of the GNU General Public License as published by
  13. * the Free Software Foundation; either version 2 of the License, or
  14. * (at your option) any later version.
  15. *
  16. * This program is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. *
  21. * You should have received a copy of the GNU General Public License
  22. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  23. */
  24. /**
  25. * \file htdocs/admin/propale.php
  26. * \ingroup propale
  27. * \brief Page d'administration/configuration du module Propale
  28. */
  29. require("../main.inc.php");
  30. require_once(DOL_DOCUMENT_ROOT."/core/lib/admin.lib.php");
  31. require_once(DOL_DOCUMENT_ROOT."/comm/propal/class/propal.class.php");
  32. $langs->load("admin");
  33. $langs->load("errors");
  34. if (!$user->admin)
  35. accessforbidden();
  36. $action =GETPOST("action");
  37. $value = GETPOST("value");
  38. /*
  39. * Actions
  40. */
  41. if ($action == 'updateMask')
  42. {
  43. $maskconstpropal=GETPOST("maskconstpropal");
  44. $maskpropal=GETPOST("maskpropal");
  45. if ($maskconstpropal) $res = dolibarr_set_const($db,$maskconstpropal,$maskpropal,'chaine',0,'',$conf->entity);
  46. if (! $res > 0) $error++;
  47. if (! $error)
  48. {
  49. $mesg = "<font class=\"ok\">".$langs->trans("SetupSaved")."</font>";
  50. }
  51. else
  52. {
  53. $mesg = "<font class=\"error\">".$langs->trans("Error")."</font>";
  54. }
  55. }
  56. if ($action == 'specimen')
  57. {
  58. $modele=GETPOST("module");
  59. $propal = new Propal($db);
  60. $propal->initAsSpecimen();
  61. // Charge le modele
  62. $dir = "/core/modules/propale/";
  63. $file = "pdf_propale_".$modele.".modules.php";
  64. $file = dol_buildpath($dir.$file);
  65. if (file_exists($file))
  66. {
  67. $classname = "pdf_propale_".$modele;
  68. require_once($file);
  69. $module = new $classname($db);
  70. if ($module->write_file($propal,$langs) > 0)
  71. {
  72. header("Location: ".DOL_URL_ROOT."/document.php?modulepart=propal&file=SPECIMEN.pdf");
  73. return;
  74. }
  75. else
  76. {
  77. $mesg='<font class="error">'.$module->error.'</font>';
  78. dol_syslog($module->error, LOG_ERR);
  79. }
  80. }
  81. else
  82. {
  83. $mesg='<font class="error">'.$langs->trans("ErrorModuleNotFound").'</font>';
  84. dol_syslog($langs->trans("ErrorModuleNotFound"), LOG_ERR);
  85. }
  86. }
  87. if ($action == 'set_PROPALE_DRAFT_WATERMARK')
  88. {
  89. $draft = GETPOST("PROPALE_DRAFT_WATERMARK");
  90. $res = dolibarr_set_const($db, "PROPALE_DRAFT_WATERMARK",trim($draft),'chaine',0,'',$conf->entity);
  91. if (! $res > 0) $error++;
  92. if (! $error)
  93. {
  94. $mesg = "<font class=\"ok\">".$langs->trans("SetupSaved")."</font>";
  95. }
  96. else
  97. {
  98. $mesg = "<font class=\"error\">".$langs->trans("Error")."</font>";
  99. }
  100. }
  101. if ($action == 'set_PROPALE_FREE_TEXT')
  102. {
  103. $freetext = GETPOST("PROPALE_FREE_TEXT");
  104. $res = dolibarr_set_const($db, "PROPALE_FREE_TEXT",$freetext,'chaine',0,'',$conf->entity);
  105. if (! $res > 0) $error++;
  106. if (! $error)
  107. {
  108. $mesg = "<font class=\"ok\">".$langs->trans("SetupSaved")."</font>";
  109. }
  110. else
  111. {
  112. $mesg = "<font class=\"error\">".$langs->trans("Error")."</font>";
  113. }
  114. }
  115. if ($action == 'setdefaultduration')
  116. {
  117. $res = dolibarr_set_const($db, "PROPALE_VALIDITY_DURATION",$value,'chaine',0,'',$conf->entity);
  118. if (! $res > 0) $error++;
  119. if (! $error)
  120. {
  121. $mesg = "<font class=\"ok\">".$langs->trans("SetupSaved")."</font>";
  122. }
  123. else
  124. {
  125. $mesg = "<font class=\"error\">".$langs->trans("Error")."</font>";
  126. }
  127. }
  128. if ($action == 'setclassifiedinvoiced')
  129. {
  130. $res = dolibarr_set_const($db, "PROPALE_CLASSIFIED_INVOICED_WITH_ORDER",$value,'chaine',0,'',$conf->entity);
  131. if (! $res > 0) $error++;
  132. if (! $error)
  133. {
  134. $mesg = "<font class=\"ok\">".$langs->trans("SetupSaved")."</font>";
  135. }
  136. else
  137. {
  138. $mesg = "<font class=\"error\">".$langs->trans("Error")."</font>";
  139. }
  140. }
  141. /*if ($action == 'setusecustomercontactasrecipient')
  142. {
  143. dolibarr_set_const($db, "PROPALE_USE_CUSTOMER_CONTACT_AS_RECIPIENT",$_POST["value"],'chaine',0,'',$conf->entity);
  144. }*/
  145. if ($action == 'set')
  146. {
  147. $label = GETPOST("label");
  148. $scandir = GETPOST("scandir");
  149. $type='propal';
  150. $sql = "INSERT INTO ".MAIN_DB_PREFIX."document_model (nom, type, entity, libelle, description)";
  151. $sql.= " VALUES ('".$db->escape($value)."','".$type."',".$conf->entity.", ";
  152. $sql.= ($label?"'".$db->escape($label)."'":'null').", ";
  153. $sql.= (! empty($scandir)?"'".$db->escape($scandir)."'":"null");
  154. $sql.= ")";
  155. $resql=$db->query($sql);
  156. }
  157. if ($action == 'del')
  158. {
  159. $type='propal';
  160. $sql = "DELETE FROM ".MAIN_DB_PREFIX."document_model";
  161. $sql.= " WHERE nom = '".$db->escape($value)."'";
  162. $sql.= " AND type = '".$type."'";
  163. $sql.= " AND entity = ".$conf->entity;
  164. if ($db->query($sql))
  165. {
  166. if ($conf->global->PROPALE_ADDON_PDF == "$value") dolibarr_del_const($db, 'PROPALE_ADDON_PDF',$conf->entity);
  167. }
  168. }
  169. if ($action == 'setdoc')
  170. {
  171. $label = GETPOST("label");
  172. $scandir = GETPOST("scandir");
  173. $db->begin();
  174. if (dolibarr_set_const($db, "PROPALE_ADDON_PDF",$value,'chaine',0,'',$conf->entity))
  175. {
  176. $conf->global->PROPALE_ADDON_PDF = $value;
  177. }
  178. // On active le modele
  179. $type='propal';
  180. $sql_del = "DELETE FROM ".MAIN_DB_PREFIX."document_model";
  181. $sql_del.= " WHERE nom = '".$db->escape($value)."'";
  182. $sql_del.= " AND type = '".$type."'";
  183. $sql_del.= " AND entity = ".$conf->entity;
  184. $result1=$db->query($sql_del);
  185. $sql = "INSERT INTO ".MAIN_DB_PREFIX."document_model (nom, type, entity, libelle, description)";
  186. $sql.= " VALUES ('".$db->escape($value)."', '".$type."', ".$conf->entity.", ";
  187. $sql.= ($value?"'".$db->escape($label)."'":'null').", ";
  188. $sql.= (! empty($value)?"'".$db->escape($scandir)."'":"null");
  189. $sql.= ")";
  190. $result2=$db->query($sql);
  191. if ($result1 && $result2)
  192. {
  193. $db->commit();
  194. }
  195. else
  196. {
  197. $db->rollback();
  198. }
  199. }
  200. if ($action == 'setmod')
  201. {
  202. // TODO Verifier si module numerotation choisi peut etre active
  203. // par appel methode canBeActivated
  204. dolibarr_set_const($db, "PROPALE_ADDON",$value,'chaine',0,'',$conf->entity);
  205. }
  206. /*
  207. * Affiche page
  208. */
  209. llxHeader('',$langs->trans("PropalSetup"));
  210. $form=new Form($db);
  211. //if ($mesg) print $mesg;
  212. $linkback='<a href="'.DOL_URL_ROOT.'/admin/modules.php">'.$langs->trans("BackToModuleList").'</a>';
  213. print_fiche_titre($langs->trans("PropalSetup"),$linkback,'setup');
  214. /*
  215. * Module numerotation
  216. */
  217. print "<br>";
  218. print_titre($langs->trans("ProposalsNumberingModules"));
  219. print '<table class="noborder" width="100%">';
  220. print '<tr class="liste_titre">';
  221. print '<td>'.$langs->trans("Name")."</td>\n";
  222. print '<td>'.$langs->trans("Description")."</td>\n";
  223. print '<td nowrap>'.$langs->trans("Example")."</td>\n";
  224. print '<td align="center" width="60">'.$langs->trans("Status").'</td>';
  225. print '<td align="center" width="16">'.$langs->trans("Infos").'</td>';
  226. print '</tr>'."\n";
  227. clearstatcache();
  228. foreach ($conf->file->dol_document_root as $dirroot)
  229. {
  230. $dir = $dirroot . "/core/modules/propale/";
  231. if (is_dir($dir))
  232. {
  233. $handle = opendir($dir);
  234. if (is_resource($handle))
  235. {
  236. $var=true;
  237. while (($file = readdir($handle))!==false)
  238. {
  239. if (substr($file, 0, 12) == 'mod_propale_' && substr($file, dol_strlen($file)-3, 3) == 'php')
  240. {
  241. $file = substr($file, 0, dol_strlen($file)-4);
  242. require_once($dir.$file.".php");
  243. $module = new $file;
  244. // Show modules according to features level
  245. if ($module->version == 'development' && $conf->global->MAIN_FEATURES_LEVEL < 2) continue;
  246. if ($module->version == 'experimental' && $conf->global->MAIN_FEATURES_LEVEL < 1) continue;
  247. if ($module->isEnabled())
  248. {
  249. $var=!$var;
  250. print '<tr '.$bc[$var].'><td>'.$module->nom."</td><td>\n";
  251. print $module->info();
  252. print '</td>';
  253. // Show example of numbering module
  254. print '<td nowrap="nowrap">';
  255. $tmp=$module->getExample();
  256. if (preg_match('/^Error/',$tmp)) { $langs->load("errors"); print '<div class="error">'.$langs->trans($tmp).'</div>'; }
  257. elseif ($tmp=='NotConfigured') print $langs->trans($tmp);
  258. else print $tmp;
  259. print '</td>'."\n";
  260. print '<td align="center">';
  261. if ($conf->global->PROPALE_ADDON == "$file")
  262. {
  263. print img_picto($langs->trans("Activated"),'switch_on');
  264. }
  265. else
  266. {
  267. print '<a href="'.$_SERVER["PHP_SELF"].'?action=setmod&amp;value='.$file.'">';
  268. print img_picto($langs->trans("Disabled"),'switch_off');
  269. print '</a>';
  270. }
  271. print '</td>';
  272. $propale=new Propal($db);
  273. $propale->initAsSpecimen();
  274. // Info
  275. $htmltooltip='';
  276. $htmltooltip.=''.$langs->trans("Version").': <b>'.$module->getVersion().'</b><br>';
  277. $facture->type=0;
  278. $nextval=$module->getNextValue($mysoc,$propale);
  279. if ("$nextval" != $langs->trans("NotAvailable")) // Keep " on nextval
  280. {
  281. $htmltooltip.=''.$langs->trans("NextValue").': ';
  282. if ($nextval)
  283. {
  284. $htmltooltip.=$nextval.'<br>';
  285. }
  286. else
  287. {
  288. $htmltooltip.=$langs->trans($module->error).'<br>';
  289. }
  290. }
  291. print '<td align="center">';
  292. print $form->textwithpicto('',$htmltooltip,1,0);
  293. print '</td>';
  294. print "</tr>\n";
  295. }
  296. }
  297. }
  298. closedir($handle);
  299. }
  300. }
  301. }
  302. print "</table><br>\n";
  303. /*
  304. * Modeles de documents
  305. */
  306. print_titre($langs->trans("ProposalsPDFModules"));
  307. // Defini tableau def de modele propal
  308. $def = array();
  309. $sql = "SELECT nom";
  310. $sql.= " FROM ".MAIN_DB_PREFIX."document_model";
  311. $sql.= " WHERE type = 'propal'";
  312. $sql.= " AND entity = ".$conf->entity;
  313. $resql=$db->query($sql);
  314. if ($resql)
  315. {
  316. $i = 0;
  317. $num_rows=$db->num_rows($resql);
  318. while ($i < $num_rows)
  319. {
  320. $array = $db->fetch_array($resql);
  321. array_push($def, $array[0]);
  322. $i++;
  323. }
  324. }
  325. else
  326. {
  327. dol_print_error($db);
  328. }
  329. print "<table class=\"noborder\" width=\"100%\">\n";
  330. print "<tr class=\"liste_titre\">\n";
  331. print " <td width=\"140\">".$langs->trans("Name")."</td>\n";
  332. print " <td>".$langs->trans("Description")."</td>\n";
  333. print '<td align="center" width="40">'.$langs->trans("Status")."</td>\n";
  334. print '<td align="center" width="40">'.$langs->trans("Default")."</td>\n";
  335. print '<td align="center" width="40">'.$langs->trans("Infos").'</td>';
  336. print '<td align="center" width="40">'.$langs->trans("Preview").'</td>';
  337. print "</tr>\n";
  338. clearstatcache();
  339. foreach ($conf->file->dol_document_root as $dirroot)
  340. {
  341. $dir = $dirroot . "/core/modules/propale/";
  342. if (is_dir($dir))
  343. {
  344. $var=true;
  345. $handle=opendir($dir);
  346. if (is_resource($handle))
  347. {
  348. while (($file = readdir($handle))!==false)
  349. {
  350. if (substr($file, dol_strlen($file) -12) == '.modules.php' && substr($file,0,12) == 'pdf_propale_')
  351. {
  352. $name = substr($file, 12, dol_strlen($file) - 24);
  353. $classname = substr($file, 0, dol_strlen($file) -12);
  354. $var=!$var;
  355. print "<tr ".$bc[$var].">\n <td>";
  356. print $name;
  357. print "</td>\n <td>\n";
  358. require_once($dir.$file);
  359. $module = new $classname($db);
  360. print $module->description;
  361. print '</td>';
  362. // Activate
  363. print '<td align="center">'."\n";
  364. if (in_array($name, $def))
  365. {
  366. //if ($conf->global->PROPALE_ADDON_PDF != "$name")
  367. //{
  368. print '<a href="'.$_SERVER["PHP_SELF"].'?action=del&amp;value='.$name.'&amp;scandir='.$module->scandir.'&amp;label='.urlencode($module->name).'">';
  369. print img_picto($langs->trans("Activated"),'switch_on');
  370. print '</a>';
  371. //}
  372. //else
  373. //{
  374. // print img_picto($langs->trans("Activated"),'switch_on');
  375. //}
  376. }
  377. else
  378. {
  379. print '<a href="'.$_SERVER["PHP_SELF"].'?action=set&amp;value='.$name.'&amp;scandir='.$module->scandir.'&amp;label='.urlencode($module->name).'">';
  380. print img_picto($langs->trans("Disabled"),'switch_off');
  381. print '</a>';
  382. }
  383. print "</td>";
  384. // Default
  385. print '<td align="center">';
  386. if ($conf->global->PROPALE_ADDON_PDF == "$name")
  387. {
  388. print img_picto($langs->trans("Yes"),'on');
  389. }
  390. else
  391. {
  392. print '<a href="'.$_SERVER["PHP_SELF"].'?action=setdoc&amp;value='.$name.'&amp;scandir='.$module->scandir.'&amp;label='.urlencode($module->name).'">';
  393. print img_picto($langs->trans("No"),'off');
  394. print '</a>';
  395. }
  396. print '</td>';
  397. // Info
  398. $htmltooltip = ''.$langs->trans("Name").': '.$module->name;
  399. $htmltooltip.='<br>'.$langs->trans("Type").': '.($module->type?$module->type:$langs->trans("Unknown"));
  400. if ($module->type == 'pdf')
  401. {
  402. $htmltooltip.='<br>'.$langs->trans("Width").'/'.$langs->trans("Height").': '.$module->page_largeur.'/'.$module->page_hauteur;
  403. }
  404. $htmltooltip.='<br><br><u>'.$langs->trans("FeaturesSupported").':</u>';
  405. $htmltooltip.='<br>'.$langs->trans("Logo").': '.yn($module->option_logo,1,1);
  406. $htmltooltip.='<br>'.$langs->trans("PaymentMode").': '.yn($module->option_modereg,1,1);
  407. $htmltooltip.='<br>'.$langs->trans("PaymentConditions").': '.yn($module->option_condreg,1,1);
  408. $htmltooltip.='<br>'.$langs->trans("MultiLanguage").': '.yn($module->option_multilang,1,1);
  409. //$htmltooltip.='<br>'.$langs->trans("Escompte").': '.yn($module->option_escompte,1,1);
  410. //$htmltooltip.='<br>'.$langs->trans("CreditNote").': '.yn($module->option_credit_note,1,1);
  411. $htmltooltip.='<br>'.$langs->trans("WatermarkOnDraftProposal").': '.yn($module->option_draft_watermark,1,1);
  412. print '<td align="center">';
  413. print $form->textwithpicto('',$htmltooltip,1,0);
  414. print '</td>';
  415. print '<td align="center">';
  416. print '<a href="'.$_SERVER["PHP_SELF"].'?action=specimen&module='.$name.'">'.img_object($langs->trans("Preview"),'propal').'</a>';
  417. print '</td>';
  418. print "</tr>\n";
  419. }
  420. }
  421. closedir($handle);
  422. }
  423. }
  424. }
  425. print '</table>';
  426. print '<br>';
  427. /*
  428. * Other options
  429. *
  430. */
  431. print_titre($langs->trans("OtherOptions"));
  432. $var=true;
  433. print "<table class=\"noborder\" width=\"100%\">";
  434. print "<tr class=\"liste_titre\">";
  435. print "<td>".$langs->trans("Parameter")."</td>\n";
  436. print '<td width="60" align="center">'.$langs->trans("Value")."</td>\n";
  437. print "<td>&nbsp;</td>\n";
  438. print "</tr>";
  439. $var=!$var;
  440. print "<form method=\"post\" action=\"".$_SERVER["PHP_SELF"]."\">";
  441. print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
  442. print "<input type=\"hidden\" name=\"action\" value=\"setdefaultduration\">";
  443. print "<tr ".$bc[$var].">";
  444. print '<td>'.$langs->trans("DefaultProposalDurationValidity").'</td>';
  445. print '<td width="60" align="center">'."<input size=\"3\" class=\"flat\" type=\"text\" name=\"value\" value=\"".$conf->global->PROPALE_VALIDITY_DURATION."\"></td>";
  446. print '<td align="right"><input type="submit" class="button" value="'.$langs->trans("Modify").'"></td>';
  447. print '</tr>';
  448. print '</form>';
  449. /*
  450. $var=! $var;
  451. print '<form action="'.$_SERVER["PHP_SELF"].'" method="post">';
  452. print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
  453. print '<input type="hidden" name="action" value="setusecustomercontactasrecipient">';
  454. print '<tr '.$bc[$var].'><td>';
  455. print $langs->trans("UseCustomerContactAsPropalRecipientIfExist");
  456. print '</td><td width="60" align="center">';
  457. print $form->selectyesno("value",$conf->global->PROPALE_USE_CUSTOMER_CONTACT_AS_RECIPIENT,1);
  458. print '</td><td align="right">';
  459. print '<input type="submit" class="button" value="'.$langs->trans("Modify").'">';
  460. print "</td></tr>\n";
  461. print '</form>';
  462. */
  463. if ($conf->commande->enabled)
  464. {
  465. $var=!$var;
  466. print "<form method=\"post\" action=\"".$_SERVER["PHP_SELF"]."\">";
  467. print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
  468. print "<input type=\"hidden\" name=\"action\" value=\"setclassifiedinvoiced\">";
  469. print "<tr ".$bc[$var].">";
  470. print '<td>'.$langs->trans("ClassifiedInvoicedWithOrder").'</td>';
  471. print '<td width="60" align="center">';
  472. print $form->selectyesno('value',$conf->global->PROPALE_CLASSIFIED_INVOICED_WITH_ORDER,1);
  473. print "</td>";
  474. print '<td align="right"><input type="submit" class="button" value="'.$langs->trans("Modify").'"></td>';
  475. print '</tr>';
  476. print '</form>';
  477. }
  478. $var=! $var;
  479. print '<form action="'.$_SERVER["PHP_SELF"].'" method="post">';
  480. print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
  481. print '<input type="hidden" name="action" value="set_PROPALE_FREE_TEXT">';
  482. print '<tr '.$bc[$var].'><td colspan="2">';
  483. print $langs->trans("FreeLegalTextOnProposal").' ('.$langs->trans("AddCRIfTooLong").')<br>';
  484. print '<textarea name="PROPALE_FREE_TEXT" class="flat" cols="120">'.$conf->global->PROPALE_FREE_TEXT.'</textarea>';
  485. print '</td><td align="right">';
  486. print '<input type="submit" class="button" value="'.$langs->trans("Modify").'">';
  487. print "</td></tr>\n";
  488. print '</form>';
  489. $var=!$var;
  490. print "<form method=\"post\" action=\"".$_SERVER["PHP_SELF"]."\">";
  491. print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
  492. print "<input type=\"hidden\" name=\"action\" value=\"set_PROPALE_DRAFT_WATERMARK\">";
  493. print '<tr '.$bc[$var].'><td colspan="2">';
  494. print $langs->trans("WatermarkOnDraftProposal").'<br>';
  495. print '<input size="50" class="flat" type="text" name="PROPALE_DRAFT_WATERMARK" value="'.$conf->global->PROPALE_DRAFT_WATERMARK.'">';
  496. print '</td><td align="right">';
  497. print '<input type="submit" class="button" value="'.$langs->trans("Modify").'">';
  498. print "</td></tr>\n";
  499. print '</form>';
  500. print '</table>';
  501. /*
  502. * Directory
  503. */
  504. print '<br>';
  505. print_titre($langs->trans("PathToDocuments"));
  506. print "<table class=\"noborder\" width=\"100%\">\n";
  507. print "<tr class=\"liste_titre\">\n";
  508. print " <td>".$langs->trans("Name")."</td>\n";
  509. print " <td>".$langs->trans("Value")."</td>\n";
  510. print "</tr>\n";
  511. print "<tr ".$bc[false].">\n <td width=\"140\">".$langs->trans("PathDirectory")."</td>\n <td>".$conf->propale->dir_output."</td>\n</tr>\n";
  512. print "</table>\n<br>";
  513. dol_htmloutput_mesg($mesg);
  514. $db->close();
  515. llxFooter();
  516. ?>