Qual: Uniformize code
This commit is contained in:
parent
5723bce76a
commit
d5d9291449
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2004-2008 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2005-2009 Regis Houssin <regis@dolibarr.fr>
|
* Copyright (C) 2005-2009 Regis Houssin <regis@dolibarr.fr>
|
||||||
* Copyright (C) 2006 Andre Cianfarani <acianfa@free.fr>
|
* Copyright (C) 2006 Andre Cianfarani <acianfa@free.fr>
|
||||||
*
|
*
|
||||||
@ -19,11 +19,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/admin/confexped.php
|
* \file htdocs/admin/confexped.php
|
||||||
\ingroup produit
|
* \ingroup produit
|
||||||
\brief Page d'administration/configuration du module Expedition
|
* \brief Page to setup sending module
|
||||||
\version $Id$
|
* \version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
||||||
@ -112,28 +112,22 @@ print '<table class="noborder" width="100%">';
|
|||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td>'.$langs->trans("Feature").'</td>';
|
print '<td>'.$langs->trans("Feature").'</td>';
|
||||||
print '<td align="center" width="20"> </td>';
|
print '<td align="center" width="20"> </td>';
|
||||||
print '<td align="center" width="100">'.$langs->trans("Action").'</td>';
|
print '<td align="center" width="100">'.$langs->trans("Status").'</td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
print "<input type=\"hidden\" name=\"action\" value=\"sending\">";
|
print "<input type=\"hidden\" name=\"action\" value=\"sending\">";
|
||||||
print "<tr ".$bc[$var].">";
|
print "<tr ".$bc[$var].">";
|
||||||
print '<td>'.$langs->trans("SendingsAbility").'</td>';
|
print '<td>'.$langs->trans("SendingsAbility").'</td>';
|
||||||
print '<td align="center" width="20">';
|
print '<td align="center" width="20">';
|
||||||
|
|
||||||
if($conf->global->MAIN_SUBMODULE_EXPEDITION == 1)
|
|
||||||
{
|
|
||||||
print img_tick();
|
|
||||||
}
|
|
||||||
|
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td align="center" width="100">';
|
print '<td align="center" width="100">';
|
||||||
|
|
||||||
if($conf->global->MAIN_SUBMODULE_EXPEDITION == 0)
|
if($conf->global->MAIN_SUBMODULE_EXPEDITION == 0)
|
||||||
{
|
{
|
||||||
print '<a href="confexped.php?action=activate_sending">'.$langs->trans("Activate").'</a>';
|
print '<a href="confexped.php?action=activate_sending">'.img_picto($langs->trans("Disabled"),'off').'</a>';
|
||||||
}
|
}
|
||||||
else if($conf->global->MAIN_SUBMODULE_EXPEDITION == 1)
|
else if($conf->global->MAIN_SUBMODULE_EXPEDITION == 1)
|
||||||
{
|
{
|
||||||
print '<a href="confexped.php?action=disable_sending">'.$langs->trans("Disable").'</a>';
|
print '<a href="confexped.php?action=disable_sending">'.img_picto($langs->trans("Enabled"),'on').'</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
print "</td>";
|
print "</td>";
|
||||||
@ -150,22 +144,16 @@ print "<input type=\"hidden\" name=\"action\" value=\"delivery\">";
|
|||||||
print "<tr ".$bc[$var].">";
|
print "<tr ".$bc[$var].">";
|
||||||
print '<td>'.$langs->trans("DeliveriesOrderAbility").'</td>';
|
print '<td>'.$langs->trans("DeliveriesOrderAbility").'</td>';
|
||||||
print '<td align="center" width="20">';
|
print '<td align="center" width="20">';
|
||||||
|
|
||||||
if($conf->global->MAIN_SUBMODULE_LIVRAISON == 1)
|
|
||||||
{
|
|
||||||
print img_tick();
|
|
||||||
}
|
|
||||||
|
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td align="center" width="100">';
|
print '<td align="center" width="100">';
|
||||||
|
|
||||||
if($conf->global->MAIN_SUBMODULE_LIVRAISON == 0)
|
if($conf->global->MAIN_SUBMODULE_LIVRAISON == 0)
|
||||||
{
|
{
|
||||||
print '<a href="confexped.php?action=activate_delivery">'.$langs->trans("Activate").'</a>';
|
print '<a href="confexped.php?action=activate_delivery">'.img_picto($langs->trans("Disabled"),'off').'</a>';
|
||||||
}
|
}
|
||||||
else if($conf->global->MAIN_SUBMODULE_LIVRAISON == 1)
|
else if($conf->global->MAIN_SUBMODULE_LIVRAISON == 1)
|
||||||
{
|
{
|
||||||
print '<a href="confexped.php?action=disable_delivery">'.$langs->trans("Disable").'</a>';
|
print '<a href="confexped.php?action=disable_delivery">'.img_picto($langs->trans("Enabled"),'on').'</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
print "</td>";
|
print "</td>";
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2005-2009 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2005-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -122,7 +122,7 @@ if ($_GET["action"] == 'del')
|
|||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Affiche page
|
* View
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$dir = "../includes/modules/dons/";
|
$dir = "../includes/modules/dons/";
|
||||||
@ -207,20 +207,20 @@ while (($file = readdir($handle))!==false)
|
|||||||
print "<td align=\"center\">\n";
|
print "<td align=\"center\">\n";
|
||||||
if ($conf->global->DON_ADDON_MODEL == $name)
|
if ($conf->global->DON_ADDON_MODEL == $name)
|
||||||
{
|
{
|
||||||
print img_tick($langs->trans("Enabled"));
|
print img_picto($langs->trans("Enabled"),'on');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print ' ';
|
print ' ';
|
||||||
print '</td><td align="center">';
|
print '</td><td align="center">';
|
||||||
print '<a href="dons.php?action=setdoc&value='.$name.'">'.$langs->trans("Activate").'</a>';
|
print '<a href="dons.php?action=setdoc&value='.$name.'">'.img_picto($langs->trans("Enabled"),'on').'</a>';
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print "<td align=\"center\">\n";
|
print "<td align=\"center\">\n";
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=set&value='.$name.'">'.$langs->trans("Activate").'</a>';
|
print '<a href="'.$_SERVER["PHP_SELF"].'?action=set&value='.$name.'">'.img_picto($langs->trans("Disabled"),'off').'</a>';
|
||||||
print "</td>";
|
print "</td>";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -228,11 +228,11 @@ while (($file = readdir($handle))!==false)
|
|||||||
print "<td align=\"center\">";
|
print "<td align=\"center\">";
|
||||||
if ($conf->global->DON_ADDON_MODEL == "$name")
|
if ($conf->global->DON_ADDON_MODEL == "$name")
|
||||||
{
|
{
|
||||||
print img_tick($langs->trans("Default"));
|
print img_picto($langs->trans("Default"),'on');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setdoc&value='.$name.'" alt="'.$langs->trans("Default").'">'.$langs->trans("Default").'</a>';
|
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setdoc&value='.$name.'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"),'off').'</a>';
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2003-2008 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2003-2008 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2009 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org>
|
* Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org>
|
||||||
* Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
* Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||||
* Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
|
* Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
|
||||||
@ -22,10 +22,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/admin/expedition.php
|
* \file htdocs/admin/expedition.php
|
||||||
\ingroup expedition
|
* \ingroup expedition
|
||||||
\brief Page d'administration/configuration du module Expedition
|
* \brief Page d'administration/configuration du module Expedition
|
||||||
\version $Id$
|
* \version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
@ -97,7 +97,7 @@ if ($_GET["action"] == 'del')
|
|||||||
$sql.= " WHERE nom = '".$_GET["value"]."'";
|
$sql.= " WHERE nom = '".$_GET["value"]."'";
|
||||||
$sql.= " AND type = '".$type."'";
|
$sql.= " AND type = '".$type."'";
|
||||||
$sql.= " AND entity = ".$conf->entity;
|
$sql.= " AND entity = ".$conf->entity;
|
||||||
|
|
||||||
if ($db->query($sql))
|
if ($db->query($sql))
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -146,7 +146,7 @@ if ($_GET["action"] == 'setmethod' || $_GET["action"] == 'setmod')
|
|||||||
|
|
||||||
$sql = "SELECT rowid FROM ".MAIN_DB_PREFIX."expedition_methode";
|
$sql = "SELECT rowid FROM ".MAIN_DB_PREFIX."expedition_methode";
|
||||||
$sql.= " WHERE rowid = ".$moduleid;
|
$sql.= " WHERE rowid = ".$moduleid;
|
||||||
|
|
||||||
$resql = $db->query($sql);
|
$resql = $db->query($sql);
|
||||||
if ($resql && ($statut == 1 || $_GET["action"] == 'setmod'))
|
if ($resql && ($statut == 1 || $_GET["action"] == 'setmod'))
|
||||||
{
|
{
|
||||||
@ -155,7 +155,7 @@ if ($_GET["action"] == 'setmethod' || $_GET["action"] == 'setmod')
|
|||||||
$sqlu = "UPDATE ".MAIN_DB_PREFIX."expedition_methode";
|
$sqlu = "UPDATE ".MAIN_DB_PREFIX."expedition_methode";
|
||||||
$sqlu.= " SET statut=1";
|
$sqlu.= " SET statut=1";
|
||||||
$sqlu.= " WHERE rowid=".$moduleid;
|
$sqlu.= " WHERE rowid=".$moduleid;
|
||||||
|
|
||||||
$result=$db->query($sqlu);
|
$result=$db->query($sqlu);
|
||||||
if ($result)
|
if ($result)
|
||||||
{
|
{
|
||||||
@ -288,7 +288,7 @@ print '<table class="noborder" width="100%">';
|
|||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td width="140">'.$langs->trans("Name").'</td>';
|
print '<td width="140">'.$langs->trans("Name").'</td>';
|
||||||
print '<td>'.$langs->trans("Description").'</td>';
|
print '<td>'.$langs->trans("Description").'</td>';
|
||||||
print '<td align="center" width="60">'.$langs->trans("Activated").'</td>';
|
print '<td align="center" width="60">'.$langs->trans("Status").'</td>';
|
||||||
print '<td align="center" width="60">'.$langs->trans("Default").'</td>';
|
print '<td align="center" width="60">'.$langs->trans("Default").'</td>';
|
||||||
print '<td align="center" width="32" colspan="2">'.$langs->trans("Infos").'</td>';
|
print '<td align="center" width="32" colspan="2">'.$langs->trans("Infos").'</td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
@ -319,26 +319,26 @@ if(is_dir($dir))
|
|||||||
print $module->description;
|
print $module->description;
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
// Activ
|
// Active
|
||||||
if (in_array($name, $def))
|
if (in_array($name, $def))
|
||||||
{
|
{
|
||||||
print "<td align=\"center\">\n";
|
print "<td align=\"center\">\n";
|
||||||
if ($conf->global->EXPEDITION_ADDON_PDF != $name)
|
if ($conf->global->EXPEDITION_ADDON_PDF != $name)
|
||||||
{
|
{
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=del&value='.$name.'">';
|
print '<a href="'.$_SERVER["PHP_SELF"].'?action=del&value='.$name.'">';
|
||||||
print img_tick($langs->trans("Disable"));
|
print img_picto($langs->trans("Activated"),'on');
|
||||||
print '</a>';
|
print '</a>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print img_tick($langs->trans("Activated"));
|
print img_picto($langs->trans("Activated"),'on');
|
||||||
}
|
}
|
||||||
print "</td>";
|
print "</td>";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print "<td align=\"center\">\n";
|
print "<td align=\"center\">\n";
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=set&value='.$name.'">'.$langs->trans("Activate").'</a>';
|
print '<a href="'.$_SERVER["PHP_SELF"].'?action=set&value='.$name.'">'.img_picto($langs->trans("Disabled"),'off').'</a>';
|
||||||
print "</td>";
|
print "</td>";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -346,11 +346,11 @@ if(is_dir($dir))
|
|||||||
print "<td align=\"center\">";
|
print "<td align=\"center\">";
|
||||||
if ($conf->global->EXPEDITION_ADDON_PDF == $name)
|
if ($conf->global->EXPEDITION_ADDON_PDF == $name)
|
||||||
{
|
{
|
||||||
print img_tick($langs->trans("Default"));
|
print img_picto($langs->trans("Default"),'on');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setdoc&value='.$name.'" alt="'.$langs->trans("Default").'">'.$langs->trans("Default").'</a>';
|
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setdoc&value='.$name.'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"),'off').'</a>';
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
@ -378,10 +378,6 @@ else
|
|||||||
}
|
}
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
|
||||||
/*
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
/**
|
/**
|
||||||
* \file htdocs/admin/facture.php
|
* \file htdocs/admin/facture.php
|
||||||
* \ingroup facture
|
* \ingroup facture
|
||||||
* \brief Page d'administration/configuration du module Facture
|
* \brief Page to setup invoice module
|
||||||
* \version $Id$
|
* \version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -223,7 +223,7 @@ print '<tr class="liste_titre">';
|
|||||||
print '<td>'.$langs->trans("Name").'</td>';
|
print '<td>'.$langs->trans("Name").'</td>';
|
||||||
print '<td>'.$langs->trans("Description").'</td>';
|
print '<td>'.$langs->trans("Description").'</td>';
|
||||||
print '<td nowrap>'.$langs->trans("Example").'</td>';
|
print '<td nowrap>'.$langs->trans("Example").'</td>';
|
||||||
print '<td align="center" width="60">'.$langs->trans("Default").'</td>';
|
print '<td align="center" width="60">'.$langs->trans("Status").'</td>';
|
||||||
print '<td align="center" width="16">'.$langs->trans("Infos").'</td>';
|
print '<td align="center" width="16">'.$langs->trans("Infos").'</td>';
|
||||||
print '</tr>'."\n";
|
print '</tr>'."\n";
|
||||||
|
|
||||||
@ -273,11 +273,11 @@ foreach ($conf->file->dol_document_root as $dirroot)
|
|||||||
print '<td align="center">';
|
print '<td align="center">';
|
||||||
if ($conf->global->FACTURE_ADDON == "$file")
|
if ($conf->global->FACTURE_ADDON == "$file")
|
||||||
{
|
{
|
||||||
print img_tick($langs->trans("Activated"));
|
print img_picto($langs->trans("Activated"),'on');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setmod&value='.$file.'" alt="'.$langs->trans("Default").'">'.$langs->trans("Default").'</a>';
|
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setmod&value='.$file.'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"),'off').'</a>';
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
@ -367,7 +367,7 @@ print '<table class="noborder" width="100%">';
|
|||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td>'.$langs->trans("Name").'</td>';
|
print '<td>'.$langs->trans("Name").'</td>';
|
||||||
print '<td>'.$langs->trans("Description").'</td>';
|
print '<td>'.$langs->trans("Description").'</td>';
|
||||||
print '<td align="center" width="60">'.$langs->trans("Activated").'</td>';
|
print '<td align="center" width="60">'.$langs->trans("Status").'</td>';
|
||||||
print '<td align="center" width="60">'.$langs->trans("Default").'</td>';
|
print '<td align="center" width="60">'.$langs->trans("Default").'</td>';
|
||||||
print '<td align="center" width="32" colspan="2">'.$langs->trans("Infos").'</td>';
|
print '<td align="center" width="32" colspan="2">'.$langs->trans("Infos").'</td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
@ -409,19 +409,19 @@ foreach ($conf->file->dol_document_root as $dirroot)
|
|||||||
if ($conf->global->FACTURE_ADDON_PDF != "$name")
|
if ($conf->global->FACTURE_ADDON_PDF != "$name")
|
||||||
{
|
{
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=del&value='.$name.'">';
|
print '<a href="'.$_SERVER["PHP_SELF"].'?action=del&value='.$name.'">';
|
||||||
print img_tick($langs->trans("Disable"));
|
print img_picto($langs->trans("Enabled"),'on');
|
||||||
print '</a>';
|
print '</a>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print img_tick($langs->trans("Enabled"));
|
print img_picto($langs->trans("Enabled"),'on');
|
||||||
}
|
}
|
||||||
print "</td>";
|
print "</td>";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print "<td align=\"center\">\n";
|
print "<td align=\"center\">\n";
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=set&value='.$name.'">'.$langs->trans("Activate").'</a>';
|
print '<a href="'.$_SERVER["PHP_SELF"].'?action=set&value='.$name.'">'.img_picto($langs->trans("Disabled"),'off').'</a>';
|
||||||
print "</td>";
|
print "</td>";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -429,11 +429,11 @@ foreach ($conf->file->dol_document_root as $dirroot)
|
|||||||
print "<td align=\"center\">";
|
print "<td align=\"center\">";
|
||||||
if ($conf->global->FACTURE_ADDON_PDF == "$name")
|
if ($conf->global->FACTURE_ADDON_PDF == "$name")
|
||||||
{
|
{
|
||||||
print img_tick($langs->trans("Default"));
|
print img_picto($langs->trans("Default"),'on');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setdoc&value='.$name.'" alt="'.$langs->trans("Default").'">'.$langs->trans("Default").'</a>';
|
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setdoc&value='.$name.'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"),'off').'</a>';
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2003-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2003-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2008 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org>
|
* Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org>
|
||||||
* Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
* Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||||
* Copyright (C) 2005-2009 Regis Houssin <regis@dolibarr.fr>
|
* Copyright (C) 2005-2009 Regis Houssin <regis@dolibarr.fr>
|
||||||
@ -190,7 +190,7 @@ print '<tr class="liste_titre">';
|
|||||||
print '<td width="100">'.$langs->trans("Name").'</td>';
|
print '<td width="100">'.$langs->trans("Name").'</td>';
|
||||||
print '<td>'.$langs->trans("Description").'</td>';
|
print '<td>'.$langs->trans("Description").'</td>';
|
||||||
print '<td>'.$langs->trans("Example").'</td>';
|
print '<td>'.$langs->trans("Example").'</td>';
|
||||||
print '<td align="center" width="60">'.$langs->trans("Activated").'</td>';
|
print '<td align="center" width="60">'.$langs->trans("Status").'</td>';
|
||||||
print '<td align="center" width="16">'.$langs->trans("Infos").'</td>';
|
print '<td align="center" width="16">'.$langs->trans("Infos").'</td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
@ -229,11 +229,11 @@ if ($handle)
|
|||||||
print '<td align="center">';
|
print '<td align="center">';
|
||||||
if ($conf->global->FICHEINTER_ADDON == $className)
|
if ($conf->global->FICHEINTER_ADDON == $className)
|
||||||
{
|
{
|
||||||
print img_tick($langs->trans("Activated"));
|
print img_picto($langs->trans("Activated"),'on');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setmod&value='.$className.'" alt="'.$langs->trans("Default").'">'.$langs->trans("Default").'</a>';
|
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setmod&value='.$className.'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"),'off').'</a>';
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
@ -294,7 +294,7 @@ print '<table class="noborder" width="100%">';
|
|||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td>'.$langs->trans("Name").'</td>';
|
print '<td>'.$langs->trans("Name").'</td>';
|
||||||
print '<td>'.$langs->trans("Description").'</td>';
|
print '<td>'.$langs->trans("Description").'</td>';
|
||||||
print '<td align="center" width="60">'.$langs->trans("Activated")."</td>\n";
|
print '<td align="center" width="60">'.$langs->trans("Status")."</td>\n";
|
||||||
print '<td align="center" width="60">'.$langs->trans("Default")."</td>\n";
|
print '<td align="center" width="60">'.$langs->trans("Default")."</td>\n";
|
||||||
print '<td align="center" width="32" colspan="2">'.$langs->trans("Infos").'</td>';
|
print '<td align="center" width="32" colspan="2">'.$langs->trans("Infos").'</td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
@ -328,19 +328,19 @@ while (($file = readdir($handle))!==false)
|
|||||||
if ($conf->global->FICHEINTER_ADDON_PDF != "$name")
|
if ($conf->global->FICHEINTER_ADDON_PDF != "$name")
|
||||||
{
|
{
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=del&value='.$name.'">';
|
print '<a href="'.$_SERVER["PHP_SELF"].'?action=del&value='.$name.'">';
|
||||||
print img_tick($langs->trans("Disable"));
|
print img_picto($langs->trans("Enabled"),'on');
|
||||||
print '</a>';
|
print '</a>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print img_tick($langs->trans("Enabled"));
|
print img_picto($langs->trans("Enabled"),'on');
|
||||||
}
|
}
|
||||||
print "</td>";
|
print "</td>";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print "<td align=\"center\">\n";
|
print "<td align=\"center\">\n";
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=set&value='.$name.'">'.$langs->trans("Activate").'</a>';
|
print '<a href="'.$_SERVER["PHP_SELF"].'?action=set&value='.$name.'">'.img_picto($langs->trans("Disabled"),'off').'</a>';
|
||||||
print "</td>";
|
print "</td>";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -348,11 +348,11 @@ while (($file = readdir($handle))!==false)
|
|||||||
print "<td align=\"center\">";
|
print "<td align=\"center\">";
|
||||||
if ($conf->global->FICHEINTER_ADDON_PDF == "$name")
|
if ($conf->global->FICHEINTER_ADDON_PDF == "$name")
|
||||||
{
|
{
|
||||||
print img_tick($langs->trans("Default"));
|
print img_picto($langs->trans("Default"),'on');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setdoc&value='.$name.'" alt="'.$langs->trans("Default").'">'.$langs->trans("Default").'</a>';
|
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setdoc&value='.$name.'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"),'off').'</a>';
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
|
|||||||
@ -71,8 +71,8 @@ if ($_GET["action"] == 'specimen')
|
|||||||
|
|
||||||
if ($obj->write_file($commande,$langs) > 0)
|
if ($obj->write_file($commande,$langs) > 0)
|
||||||
{
|
{
|
||||||
header("Location: ".DOL_URL_ROOT."/document.php?modulepart=commande_fournisseur&file=SPECIMEN.pdf");
|
header("Location: ".DOL_URL_ROOT."/document.php?modulepart=commande_fournisseur&file=SPECIMEN.pdf");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -177,7 +177,7 @@ print '<tr class="liste_titre">';
|
|||||||
print '<td width="100">'.$langs->trans("Name").'</td>';
|
print '<td width="100">'.$langs->trans("Name").'</td>';
|
||||||
print '<td>'.$langs->trans("Description").'</td>';
|
print '<td>'.$langs->trans("Description").'</td>';
|
||||||
print '<td>'.$langs->trans("Example").'</td>';
|
print '<td>'.$langs->trans("Example").'</td>';
|
||||||
print '<td align="center" width="60">'.$langs->trans("Activated").'</td>';
|
print '<td align="center" width="60">'.$langs->trans("Status").'</td>';
|
||||||
print '<td align="center" width="16">'.$langs->trans("Info").'</td>';
|
print '<td align="center" width="16">'.$langs->trans("Info").'</td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
@ -215,11 +215,11 @@ if ($handle)
|
|||||||
print '<td align="center">';
|
print '<td align="center">';
|
||||||
if ($conf->global->COMMANDE_SUPPLIER_ADDON == "$file")
|
if ($conf->global->COMMANDE_SUPPLIER_ADDON == "$file")
|
||||||
{
|
{
|
||||||
print img_tick($langs->trans("Activated"));
|
print img_picto($langs->trans("Activated"),'on');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setmod&value='.$file.'" alt="'.$langs->trans("Default").'">'.$langs->trans("Activate").'</a>';
|
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setmod&value='.$file.'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"),'off').'</a>';
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
@ -296,7 +296,7 @@ print "<table class=\"noborder\" width=\"100%\">\n";
|
|||||||
print "<tr class=\"liste_titre\">\n";
|
print "<tr class=\"liste_titre\">\n";
|
||||||
print ' <td width="100">'.$langs->trans("Name")."</td>\n";
|
print ' <td width="100">'.$langs->trans("Name")."</td>\n";
|
||||||
print " <td>".$langs->trans("Description")."</td>\n";
|
print " <td>".$langs->trans("Description")."</td>\n";
|
||||||
print '<td align="center" width="60">'.$langs->trans("Activated")."</td>\n";
|
print '<td align="center" width="60">'.$langs->trans("Status")."</td>\n";
|
||||||
print '<td align="center" width="60">'.$langs->trans("Default")."</td>\n";
|
print '<td align="center" width="60">'.$langs->trans("Default")."</td>\n";
|
||||||
print '<td align="center" width="32" colspan="2">'.$langs->trans("Info").'</td>';
|
print '<td align="center" width="32" colspan="2">'.$langs->trans("Info").'</td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
@ -324,35 +324,35 @@ while (($file = readdir($handle))!==false)
|
|||||||
// Active
|
// Active
|
||||||
if (in_array($name, $def))
|
if (in_array($name, $def))
|
||||||
{
|
{
|
||||||
print "<td align=\"center\">\n";
|
print "<td align=\"center\">\n";
|
||||||
if ($conf->global->COMMANDE_SUPPLIER_ADDON_PDF != "$name")
|
if ($conf->global->COMMANDE_SUPPLIER_ADDON_PDF != "$name")
|
||||||
{
|
{
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=del&value='.$name.'">';
|
print '<a href="'.$_SERVER["PHP_SELF"].'?action=del&value='.$name.'">';
|
||||||
print img_tick($langs->trans("Disable"));
|
print img_picto($langs->trans("Enabled"),'on');
|
||||||
print '</a>';
|
print '</a>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print img_tick($langs->trans("Enabled"));
|
print img_picto($langs->trans("Enabled"),'on');
|
||||||
}
|
}
|
||||||
print "</td>";
|
print "</td>";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print "<td align=\"center\">\n";
|
print "<td align=\"center\">\n";
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=set&value='.$name.'">'.$langs->trans("Activate").'</a>';
|
print '<a href="'.$_SERVER["PHP_SELF"].'?action=set&value='.$name.'">'.$langs->trans("Activate").'</a>';
|
||||||
print "</td>";
|
print "</td>";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Defaut
|
// Defaut
|
||||||
print "<td align=\"center\">";
|
print "<td align=\"center\">";
|
||||||
if ($conf->global->COMMANDE_SUPPLIER_ADDON_PDF == "$name")
|
if ($conf->global->COMMANDE_SUPPLIER_ADDON_PDF == "$name")
|
||||||
{
|
{
|
||||||
print img_tick($langs->trans("Default"));
|
print img_picto($langs->trans("Default"),'on');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setdoc&value='.$name.'" alt="'.$langs->trans("Default").'">'.$langs->trans("Default").'</a>';
|
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setdoc&value='.$name.'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"),'on').'</a>';
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2003-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2003-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2008 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org>
|
* Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org>
|
||||||
* Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
* Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||||
* Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
|
* Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
|
||||||
@ -22,11 +22,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/admin/livraison.php
|
* \file htdocs/admin/livraison.php
|
||||||
\ingroup livraison
|
* \ingroup livraison
|
||||||
\brief Page d'administration/configuration du module Livraison
|
* \brief Page d'administration/configuration du module Livraison
|
||||||
\version $Id$
|
* \version $Id$
|
||||||
*/
|
*/
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
||||||
require_once(DOL_DOCUMENT_ROOT."/livraison/livraison.class.php");
|
require_once(DOL_DOCUMENT_ROOT."/livraison/livraison.class.php");
|
||||||
@ -197,7 +197,7 @@ print '<tr class="liste_titre">';
|
|||||||
print '<td width="100">'.$langs->trans("Name").'</td>';
|
print '<td width="100">'.$langs->trans("Name").'</td>';
|
||||||
print '<td>'.$langs->trans("Description").'</td>';
|
print '<td>'.$langs->trans("Description").'</td>';
|
||||||
print '<td nowrap>'.$langs->trans("Example").'</td>';
|
print '<td nowrap>'.$langs->trans("Example").'</td>';
|
||||||
print '<td align="center" width="60">'.$langs->trans("Activated").'</td>';
|
print '<td align="center" width="60">'.$langs->trans("Status").'</td>';
|
||||||
print '<td align="center" width="16">'.$langs->trans("Infos").'</td>';
|
print '<td align="center" width="16">'.$langs->trans("Infos").'</td>';
|
||||||
print '</tr>'."\n";
|
print '</tr>'."\n";
|
||||||
|
|
||||||
@ -236,11 +236,11 @@ if ($handle)
|
|||||||
print '<td align="center">';
|
print '<td align="center">';
|
||||||
if ($conf->global->LIVRAISON_ADDON == "$file")
|
if ($conf->global->LIVRAISON_ADDON == "$file")
|
||||||
{
|
{
|
||||||
print img_tick($langs->trans("Activated"));
|
print img_picto($langs->trans("Activated"),'on');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setmod&value='.$file.'" alt="'.$langs->trans("Default").'">'.$langs->trans("Default").'</a>';
|
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setmod&value='.$file.'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"),'off').'</a>';
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
@ -314,7 +314,7 @@ print '<table class="noborder" width="100%">';
|
|||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td width="140">'.$langs->trans("Name").'</td>';
|
print '<td width="140">'.$langs->trans("Name").'</td>';
|
||||||
print '<td>'.$langs->trans("Description").'</td>';
|
print '<td>'.$langs->trans("Description").'</td>';
|
||||||
print '<td align="center" width="60">'.$langs->trans("Action").'</td>';
|
print '<td align="center" width="60">'.$langs->trans("Status").'</td>';
|
||||||
print '<td align="center" width="60">'.$langs->trans("Default").'</td>';
|
print '<td align="center" width="60">'.$langs->trans("Default").'</td>';
|
||||||
print '<td align="center" width="32" colspan="2">'.$langs->trans("Infos").'</td>';
|
print '<td align="center" width="32" colspan="2">'.$langs->trans("Infos").'</td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
@ -352,19 +352,19 @@ if(is_dir($dir))
|
|||||||
if ($conf->global->LIVRAISON_ADDON_PDF != "$name")
|
if ($conf->global->LIVRAISON_ADDON_PDF != "$name")
|
||||||
{
|
{
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=del&value='.$name.'">';
|
print '<a href="'.$_SERVER["PHP_SELF"].'?action=del&value='.$name.'">';
|
||||||
print img_tick($langs->trans("Disable"));
|
print img_picto($langs->trans("Enabled"),'on');
|
||||||
print '</a>';
|
print '</a>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print img_tick($langs->trans("Enabled"));
|
print img_picto($langs->trans("Enabled"),'on');
|
||||||
}
|
}
|
||||||
print "</td>";
|
print "</td>";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print "<td align=\"center\">\n";
|
print "<td align=\"center\">\n";
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=set&value='.$name.'">'.$langs->trans("Activate").'</a>';
|
print '<a href="'.$_SERVER["PHP_SELF"].'?action=set&value='.$name.'">'.img_picto($langs->trans("Disabled"),'off').'</a>';
|
||||||
print "</td>";
|
print "</td>";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -372,11 +372,11 @@ if(is_dir($dir))
|
|||||||
print "<td align=\"center\">";
|
print "<td align=\"center\">";
|
||||||
if ($conf->global->LIVRAISON_ADDON_PDF == "$name")
|
if ($conf->global->LIVRAISON_ADDON_PDF == "$name")
|
||||||
{
|
{
|
||||||
print img_tick($langs->trans("Default"));
|
print img_picto($langs->trans("Default"),'on');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setdoc&value='.$name.'" alt="'.$langs->trans("Default").'">'.$langs->trans("Default").'</a>';
|
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setdoc&value='.$name.'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"),'off').'</a>';
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
|
|||||||
@ -204,11 +204,11 @@ if ($handle)
|
|||||||
print '<td align="center">';
|
print '<td align="center">';
|
||||||
if ($conf->global->PROJECT_ADDON == "$file")
|
if ($conf->global->PROJECT_ADDON == "$file")
|
||||||
{
|
{
|
||||||
print img_tick($langs->trans("Activated"));
|
print img_picto($langs->trans("Activated"),'on');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setmod&value='.$file.'" alt="'.$langs->trans("Default").'">'.$langs->trans("Activate").'</a>';
|
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setmod&value='.$file.'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"),'off').'</a>';
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
@ -316,19 +316,19 @@ while (($file = readdir($handle))!==false)
|
|||||||
if ($conf->global->PROJECT_ADDON_PDF != "$name")
|
if ($conf->global->PROJECT_ADDON_PDF != "$name")
|
||||||
{
|
{
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=del&value='.$name.'">';
|
print '<a href="'.$_SERVER["PHP_SELF"].'?action=del&value='.$name.'">';
|
||||||
print img_tick($langs->trans("Disable"));
|
print img_picto($langs->trans("Enabled"),'on');
|
||||||
print '</a>';
|
print '</a>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print img_tick($langs->trans("Enabled"));
|
print img_picto($langs->trans("Enabled"),'on');
|
||||||
}
|
}
|
||||||
print "</td>";
|
print "</td>";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print "<td align=\"center\">\n";
|
print "<td align=\"center\">\n";
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=set&value='.$name.'">'.$langs->trans("Activate").'</a>';
|
print '<a href="'.$_SERVER["PHP_SELF"].'?action=set&value='.$name.'">'.img_picto($langs->trans("Disabled"),'off').'</a>';
|
||||||
print "</td>";
|
print "</td>";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -336,11 +336,11 @@ while (($file = readdir($handle))!==false)
|
|||||||
print "<td align=\"center\">";
|
print "<td align=\"center\">";
|
||||||
if ($conf->global->PROJECT_ADDON_PDF == "$name")
|
if ($conf->global->PROJECT_ADDON_PDF == "$name")
|
||||||
{
|
{
|
||||||
print img_tick($langs->trans("Default"));
|
print img_picto($langs->trans("Default"),'on');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setdoc&value='.$name.'" alt="'.$langs->trans("Default").'">'.$langs->trans("Default").'</a>';
|
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setdoc&value='.$name.'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"),'off').'</a>';
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
|
|||||||
@ -78,10 +78,11 @@ if ($_POST["action"] == 'usesearchtoselectcompany')
|
|||||||
}
|
}
|
||||||
|
|
||||||
// define constants for tigre model
|
// define constants for tigre model
|
||||||
if ($_POST["action"] == 'updateMask')
|
if ($_POST["action"] == 'setModuleOptions')
|
||||||
{
|
{
|
||||||
dolibarr_set_const($db, "COMPANY_ELEPHANT_MASK_CUSTOMER",$_POST["maskcustomer"],'chaine',0,'',$conf->entity);
|
$param=$_POST["param1"];
|
||||||
dolibarr_set_const($db, "COMPANY_ELEPHANT_MASK_SUPPLIER",$_POST["masksupplier"],'chaine',0,'',$conf->entity);
|
$value=$_POST["value1"];
|
||||||
|
dolibarr_set_const($db,$param,$value,'chaine',0,'',$conf->entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($_GET["action"] == 'set')
|
if ($_GET["action"] == 'set')
|
||||||
@ -345,19 +346,19 @@ foreach ($conf->file->dol_document_root as $dirroot)
|
|||||||
if ($conf->global->COMPANY_ADDON_PDF != "$name")
|
if ($conf->global->COMPANY_ADDON_PDF != "$name")
|
||||||
{
|
{
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=del&value='.$name.'">';
|
print '<a href="'.$_SERVER["PHP_SELF"].'?action=del&value='.$name.'">';
|
||||||
print img_tick($langs->trans("Disable"));
|
print img_picto($langs->trans("Enabled"),'on');
|
||||||
print '</a>';
|
print '</a>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print img_tick($langs->trans("Enabled"));
|
print img_picto($langs->trans("Enabled"),'on');
|
||||||
}
|
}
|
||||||
print "</td>";
|
print "</td>";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print "<td align=\"center\">\n";
|
print "<td align=\"center\">\n";
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=set&value='.$name.'">'.$langs->trans("Activate").'</a>';
|
print '<a href="'.$_SERVER["PHP_SELF"].'?action=set&value='.$name.'">'.img_picto($langs->trans("Disabled"),'off').'</a>';
|
||||||
print "</td>";
|
print "</td>";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -365,11 +366,11 @@ foreach ($conf->file->dol_document_root as $dirroot)
|
|||||||
print "<td align=\"center\">";
|
print "<td align=\"center\">";
|
||||||
if ($conf->global->COMPANY_ADDON_PDF == "$name")
|
if ($conf->global->COMPANY_ADDON_PDF == "$name")
|
||||||
{
|
{
|
||||||
print img_tick($langs->trans("Default"));
|
print img_picto($langs->trans("Default"),'on');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setdoc&value='.$name.'" alt="'.$langs->trans("Default").'">'.$langs->trans("Default").'</a>';
|
print '<a href="'.$_SERVER["PHP_SELF"].'?action=setdoc&value='.$name.'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"),'off').'</a>';
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
@ -392,7 +393,10 @@ foreach ($conf->file->dol_document_root as $dirroot)
|
|||||||
{
|
{
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=specimen&module='.$name.'">'.img_object($langs->trans("Preview"),'bill').'</a>';
|
print '<a href="'.$_SERVER["PHP_SELF"].'?action=specimen&module='.$name.'">'.img_object($langs->trans("Preview"),'bill').'</a>';
|
||||||
}
|
}
|
||||||
else print ' ';
|
else
|
||||||
|
{
|
||||||
|
print '<a href="#">'.img_object($langs->trans("PreviewNotAvailable"),'generic').'</a>';
|
||||||
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
@ -406,6 +410,8 @@ print '</table>';
|
|||||||
|
|
||||||
print '<br>';
|
print '<br>';
|
||||||
|
|
||||||
|
print_titre($langs->trans("Other"));
|
||||||
|
|
||||||
// Autres options
|
// Autres options
|
||||||
$html=new Form($db);
|
$html=new Form($db);
|
||||||
$var=true;
|
$var=true;
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2008-2009 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2008-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2008 Regis Houssin <regis@dolibarr.fr>
|
* Copyright (C) 2008 Regis Houssin <regis@dolibarr.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@ -157,7 +157,7 @@ if ($_GET["action"] == 'create')
|
|||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
|
|
||||||
// Label
|
// Label
|
||||||
print '<tr><td>'.$langs->trans("Label").'</td><td><input name="label" size="40" maxlength="32" value="'.$ecmdir->label.'"></td></tr>'."\n";
|
print '<tr><td class="fieldrequired">'.$langs->trans("Label").'</td><td><input name="label" size="40" maxlength="32" value="'.$ecmdir->label.'"></td></tr>'."\n";
|
||||||
|
|
||||||
print '<tr><td>'.$langs->trans ("AddIn").'</td><td>';
|
print '<tr><td>'.$langs->trans ("AddIn").'</td><td>';
|
||||||
print $formecm->select_all_sections(! empty($_GET["catParent"])?$_GET["catParent"]:$ecmdir->fk_parent,'catParent');
|
print $formecm->select_all_sections(! empty($_GET["catParent"])?$_GET["catParent"]:$ecmdir->fk_parent,'catParent');
|
||||||
@ -170,13 +170,15 @@ if ($_GET["action"] == 'create')
|
|||||||
print '</textarea>';
|
print '</textarea>';
|
||||||
print '</td></tr>'."\n";
|
print '</td></tr>'."\n";
|
||||||
|
|
||||||
print '<tr><td colspan="3" align="center">';
|
print '</td></tr>'."\n";
|
||||||
|
|
||||||
|
print '</table><br>';
|
||||||
|
|
||||||
|
print '<center>';
|
||||||
print '<input type="submit" class="button" name="create" value="'.$langs->trans("Create").'">';
|
print '<input type="submit" class="button" name="create" value="'.$langs->trans("Create").'">';
|
||||||
print ' ';
|
print ' ';
|
||||||
print '<input type="submit" class="button" name="cancel" value="'.$langs->trans("Cancel").'">';
|
print '<input type="submit" class="button" name="cancel" value="'.$langs->trans("Cancel").'">';
|
||||||
print '</td></tr>'."\n";
|
print '</center>';
|
||||||
|
|
||||||
print '</table>';
|
|
||||||
print '</form>';
|
print '</form>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -50,7 +50,7 @@ class odt_generic extends ModeleDocProjects
|
|||||||
$langs->load("companies");
|
$langs->load("companies");
|
||||||
|
|
||||||
$this->db = $db;
|
$this->db = $db;
|
||||||
$this->name = "Generic";
|
$this->name = "Generic ODT";
|
||||||
$this->description = $langs->trans("DocumentModelOdt");
|
$this->description = $langs->trans("DocumentModelOdt");
|
||||||
|
|
||||||
// Dimension page pour format A4
|
// Dimension page pour format A4
|
||||||
@ -66,8 +66,6 @@ class odt_generic extends ModeleDocProjects
|
|||||||
// Recupere emmetteur
|
// Recupere emmetteur
|
||||||
$this->emetteur=$mysoc;
|
$this->emetteur=$mysoc;
|
||||||
if (! $this->emetteur->pays_code) $this->emetteur->pays_code=substr($langs->defaultlang,-2); // Par defaut, si n'<27>tait pas d<>fini
|
if (! $this->emetteur->pays_code) $this->emetteur->pays_code=substr($langs->defaultlang,-2); // Par defaut, si n'<27>tait pas d<>fini
|
||||||
|
|
||||||
$this->params=array('COMPANY_ADDON_PDF_ODT'=>array('type'=>'TEXTAREA','default'=>''));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** \brief Renvoi la description du module
|
/** \brief Renvoi la description du module
|
||||||
@ -78,25 +76,41 @@ class odt_generic extends ModeleDocProjects
|
|||||||
global $conf,$langs;
|
global $conf,$langs;
|
||||||
|
|
||||||
$langs->load("companies");
|
$langs->load("companies");
|
||||||
|
$langs->load("errors");
|
||||||
|
|
||||||
$form = new Form($db);
|
$form = new Form($db);
|
||||||
|
|
||||||
$texte = $this->description."<br>\n";
|
$texte = $this->description.".<br>\n";
|
||||||
$texte.= '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
|
$texte.= '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
|
||||||
$texte.= '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
$texte.= '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||||
$texte.= '<input type="hidden" name="action" value="updateModule">';
|
$texte.= '<input type="hidden" name="action" value="setModuleOptions">';
|
||||||
|
$texte.= '<input type="hidden" name="param1" value="COMPANY_ADDON_PDF_ODTPATH">';
|
||||||
$texte.= '<table class="nobordernopadding" width="100%">';
|
$texte.= '<table class="nobordernopadding" width="100%">';
|
||||||
|
|
||||||
// List of directories area
|
// List of directories area
|
||||||
$texte.= '<tr><td>'.$langs->trans("ListOfDirectories").':<br>';
|
$texte.= '<tr><td>'.$langs->trans("ListOfDirectoriesForModelGenODT").' : ';
|
||||||
$texte.= '<textarea class="flat" cols="80" name="COMPANY_ADDON_PDF_ODTPATH">';
|
|
||||||
|
$listofdir=explode(',',preg_replace('/\r\n/',',',$conf->global->COMPANY_ADDON_PDF_ODTPATH));
|
||||||
|
foreach($listofdir as $tmpdir)
|
||||||
|
{
|
||||||
|
$tmpdir=preg_replace('/DOL_DATA_ROOT/',DOL_DATA_ROOT,$tmpdir);
|
||||||
|
if (! is_dir($tmpdir)) $texte.=img_warning($langs->trans("ErrorDirNotFound",$tmpdir),0);
|
||||||
|
}
|
||||||
|
//var_dump($listofdir);
|
||||||
|
|
||||||
|
$texte.= '<br>';
|
||||||
|
|
||||||
|
$texte.= '<textarea class="flat" cols="80" name="value1">';
|
||||||
$texte.=$conf->global->COMPANY_ADDON_PDF_ODTPATH;
|
$texte.=$conf->global->COMPANY_ADDON_PDF_ODTPATH;
|
||||||
$texte.= '</textarea>';
|
$texte.= '</textarea></td><td valign="top" rowspan="2">';
|
||||||
|
$texte.= $langs->trans("ExampleOfDirectoriesForModelGen");
|
||||||
|
$texte.= '</td>';
|
||||||
$texte.= '</tr>';
|
$texte.= '</tr>';
|
||||||
|
|
||||||
// Example
|
// Example
|
||||||
$texte.= '<tr><td>'.$langs->trans("ExampleOfDirectories").':';
|
$texte.= '<tr><td align="center">';
|
||||||
$texte.= '</br>';
|
$texte.= '<input type="submit" class="button" value="'.$langs->trans("Modify").'" name="Button">';
|
||||||
|
$texte.= '</td>';
|
||||||
$texte.= '</tr>';
|
$texte.= '</tr>';
|
||||||
|
|
||||||
$texte.= '</table>';
|
$texte.= '</table>';
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -19,20 +19,18 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/includes/modules/societe/mod_codecompta_panicum.class.php
|
* \file htdocs/includes/modules/societe/mod_codecompta_panicum.class.php
|
||||||
\ingroup societe
|
* \ingroup societe
|
||||||
\brief Fichier de la classe des gestion panicum des codes compta des societes clientes
|
* \brief Fichier de la classe des gestion panicum des codes compta des societes clientes
|
||||||
\version $Id$
|
* \version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once(DOL_DOCUMENT_ROOT."/includes/modules/societe/modules_societe.class.php");
|
require_once(DOL_DOCUMENT_ROOT."/includes/modules/societe/modules_societe.class.php");
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\class mod_codecompta_panicum
|
* \class mod_codecompta_panicum
|
||||||
\brief Classe permettant la gestion panicum des codes compta des societes clients
|
* \brief Classe permettant la gestion panicum des codes compta des societes clients
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class mod_codecompta_panicum extends ModeleAccountancyCode
|
class mod_codecompta_panicum extends ModeleAccountancyCode
|
||||||
{
|
{
|
||||||
var $nom;
|
var $nom;
|
||||||
@ -49,17 +47,25 @@ class mod_codecompta_panicum extends ModeleAccountancyCode
|
|||||||
return $langs->trans("ModuleCompanyCode".$this->nom);
|
return $langs->trans("ModuleCompanyCode".$this->nom);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Renvoi code
|
* \brief Return example
|
||||||
* \param DB Handler d'acc<EFBFBD>s base
|
*/
|
||||||
* \param societe Objet societe
|
function getExample()
|
||||||
*/
|
{
|
||||||
function get_code($DB, $societe)
|
return '';
|
||||||
{
|
}
|
||||||
// Renvoie toujours ok
|
|
||||||
$this->code = $societe->code_compta;
|
/**
|
||||||
return 0;
|
* \brief Renvoi code
|
||||||
}
|
* \param DB Handler d'acc<EFBFBD>s base
|
||||||
|
* \param societe Objet societe
|
||||||
|
*/
|
||||||
|
function get_code($DB, $societe)
|
||||||
|
{
|
||||||
|
// Renvoie toujours ok
|
||||||
|
$this->code = $societe->code_compta;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -52,6 +52,7 @@ JavascriptDisabled=JavaScript disabled
|
|||||||
UsePopupCalendar=Use popup for dates input
|
UsePopupCalendar=Use popup for dates input
|
||||||
UsePreviewTabs=Use preview tabs
|
UsePreviewTabs=Use preview tabs
|
||||||
ShowPreview=Show preview
|
ShowPreview=Show preview
|
||||||
|
PreviewNotAvailable=Preview not available
|
||||||
ThemeCurrentlyActive=Theme currently active
|
ThemeCurrentlyActive=Theme currently active
|
||||||
CurrentTimeZone=PHP server TimeZone
|
CurrentTimeZone=PHP server TimeZone
|
||||||
Space=Space
|
Space=Space
|
||||||
@ -265,6 +266,8 @@ ConfirmPurge=Are you sure you want to execute this purge ?<br>This will delete d
|
|||||||
MinLength=Minimum length
|
MinLength=Minimum length
|
||||||
LanguageFilesCachedIntoShmopSharedMemory=Files .lang loaded in shared memory
|
LanguageFilesCachedIntoShmopSharedMemory=Files .lang loaded in shared memory
|
||||||
ExamplesWithCurrentSetup=Examples with current running setup
|
ExamplesWithCurrentSetup=Examples with current running setup
|
||||||
|
ListOfDirectoriesForModelGenODT=List of directories contenaining models files with OpenDocument format
|
||||||
|
ExampleOfDirectoriesForModelGen=Examples of syntax:<br>c:\mydir<br>/home/mydir<br>DOL_DATA_ROOT/ecm/ecmdir
|
||||||
|
|
||||||
# Modules
|
# Modules
|
||||||
Module0Name=Users & groups
|
Module0Name=Users & groups
|
||||||
|
|||||||
@ -37,6 +37,7 @@ ErrorFeatureNeedJavascript=This feature need javascript to be activated to work.
|
|||||||
ErrorTopMenuMustHaveAParentWithId0=A menu of type 'Top' can't have a parent menu. Put 0 in parent menu or choose a menu of type 'Left'.
|
ErrorTopMenuMustHaveAParentWithId0=A menu of type 'Top' can't have a parent menu. Put 0 in parent menu or choose a menu of type 'Left'.
|
||||||
ErrorLeftMenuMustHaveAParentId=A menu of type 'Left' must have a parent id.
|
ErrorLeftMenuMustHaveAParentId=A menu of type 'Left' must have a parent id.
|
||||||
ErrorFileNotFound=File <b>%s</b> not found (Bad path, wrong permissions or access denied by PHP openbasedir or safe_mode parameter)
|
ErrorFileNotFound=File <b>%s</b> not found (Bad path, wrong permissions or access denied by PHP openbasedir or safe_mode parameter)
|
||||||
|
ErrorDirNotFound=Directory <b>%s</b> not found (Bad path, wrong permissions or access denied by PHP openbasedir or safe_mode parameter)
|
||||||
ErrorFunctionNotAvailableInPHP=Function <b>%s</b> is required for this feature but is not available in this version/setup of PHP.
|
ErrorFunctionNotAvailableInPHP=Function <b>%s</b> is required for this feature but is not available in this version/setup of PHP.
|
||||||
ErrorDirAlreadyExists=A directory with this name already exists.
|
ErrorDirAlreadyExists=A directory with this name already exists.
|
||||||
ErrorFieldCanNotContainSpecialCharacters=Field <b>%s</b> must not contains special characters.
|
ErrorFieldCanNotContainSpecialCharacters=Field <b>%s</b> must not contains special characters.
|
||||||
|
|||||||
@ -52,6 +52,7 @@ JavascriptDisabled = Javascript désactivé
|
|||||||
UsePopupCalendar = Utiliser les popups pour la saisie des dates
|
UsePopupCalendar = Utiliser les popups pour la saisie des dates
|
||||||
UsePreviewTabs = Afficher les onglets "Aperçu"
|
UsePreviewTabs = Afficher les onglets "Aperçu"
|
||||||
ShowPreview = Afficher aperçu
|
ShowPreview = Afficher aperçu
|
||||||
|
PreviewNotAvailable=Aperçu non disponible
|
||||||
ThemeCurrentlyActive = Theme actuellement actif
|
ThemeCurrentlyActive = Theme actuellement actif
|
||||||
CurrentTimeZone = Time Zone serveur PHP
|
CurrentTimeZone = Time Zone serveur PHP
|
||||||
Space = Espace
|
Space = Espace
|
||||||
@ -265,6 +266,8 @@ ConfirmPurge=Etes vous sur de vouloir réaliser cette purge ?<br>Ceci effacera d
|
|||||||
MinLength=Longueur minimale
|
MinLength=Longueur minimale
|
||||||
LanguageFilesCachedIntoShmopSharedMemory=Fichiers .lang en mémoire partagée
|
LanguageFilesCachedIntoShmopSharedMemory=Fichiers .lang en mémoire partagée
|
||||||
ExamplesWithCurrentSetup=Exemples avec le paramétrage actif courant
|
ExamplesWithCurrentSetup=Exemples avec le paramétrage actif courant
|
||||||
|
ListOfDirectoriesForModelGenODT=Liste des répertoires contenant des documents modèles OpenDocument
|
||||||
|
ExampleOfDirectoriesForModelGen=Exemples de syntaxe:<br>c:\mydir<br>/home/mydir<br>DOL_DATA_ROOT/ecm/ecmdir
|
||||||
|
|
||||||
# Modules = undefined
|
# Modules = undefined
|
||||||
Module0Name = Utilisateurs & groupes
|
Module0Name = Utilisateurs & groupes
|
||||||
@ -780,7 +783,7 @@ ModuleCompanyCodeDigitaria = Renvoie un code compta composé suivant le code tie
|
|||||||
UseNotifications = Utiliser les notifications
|
UseNotifications = Utiliser les notifications
|
||||||
NotificationsDesc = La fonction des notifications par emails permet d'envoyer automatiquement un email, pour certains évênement Dolibarr, aux tiers (sociétés clients, prospects ou fournisseurs) configurés pour. Le choix des notifications et contacts destinataires se fait tiers par tiers.
|
NotificationsDesc = La fonction des notifications par emails permet d'envoyer automatiquement un email, pour certains évênement Dolibarr, aux tiers (sociétés clients, prospects ou fournisseurs) configurés pour. Le choix des notifications et contacts destinataires se fait tiers par tiers.
|
||||||
ModelModules=Modèle de documents
|
ModelModules=Modèle de documents
|
||||||
DocumentModelOdt=Genérateur depuis des modèles au format .ODT (OpenOffice...)
|
DocumentModelOdt=Genération depuis des modèles au format .ODT (OpenOffice...)
|
||||||
WatermarkOnDraft=Filigrame sur les documents brouillons
|
WatermarkOnDraft=Filigrame sur les documents brouillons
|
||||||
##### Webcal setup ##### = undefined
|
##### Webcal setup ##### = undefined
|
||||||
WebCalSetup = Configuration du lien vers le calendrier Webcalendar
|
WebCalSetup = Configuration du lien vers le calendrier Webcalendar
|
||||||
|
|||||||
@ -38,6 +38,7 @@ ErrorFeatureNeedJavascript=Cette fonctionnalité a besoin de javascript activé
|
|||||||
ErrorTopMenuMustHaveAParentWithId0=Un menu de type 'Top' ne peut avoir de menu père. Mettre 0 dans l'id père ou choisir un menu de type 'Left'.
|
ErrorTopMenuMustHaveAParentWithId0=Un menu de type 'Top' ne peut avoir de menu père. Mettre 0 dans l'id père ou choisir un menu de type 'Left'.
|
||||||
ErrorLeftMenuMustHaveAParentId=Un menu de type 'Left' doit avoir un id de père.
|
ErrorLeftMenuMustHaveAParentId=Un menu de type 'Left' doit avoir un id de père.
|
||||||
ErrorFileNotFound=Fichier <b>%s</b> introuvable (Mauvais chemin, permissions incorrectes ou accès interdit par le paramètre PHP openbasedir ou safe_mode)
|
ErrorFileNotFound=Fichier <b>%s</b> introuvable (Mauvais chemin, permissions incorrectes ou accès interdit par le paramètre PHP openbasedir ou safe_mode)
|
||||||
|
ErrorDirNotFound=Répertoire <b>%s</b> introuvable (Mauvais chemin, permissions incorrectes ou accès interdit par le paramètre PHP openbasedir ou safe_mode)
|
||||||
ErrorFunctionNotAvailableInPHP=La fonction <b>%s</b> est requise pour cette fonctionnalité mais n'est pas disponible dans cette version/installation de PHP.
|
ErrorFunctionNotAvailableInPHP=La fonction <b>%s</b> est requise pour cette fonctionnalité mais n'est pas disponible dans cette version/installation de PHP.
|
||||||
ErrorDirAlreadyExists=Un répertoire portant ce nom existe déjà.
|
ErrorDirAlreadyExists=Un répertoire portant ce nom existe déjà.
|
||||||
ErrorFieldCanNotContainSpecialCharacters=Le champ <b>%s</b> ne peut contenir de caractères spéciaux.
|
ErrorFieldCanNotContainSpecialCharacters=Le champ <b>%s</b> ne peut contenir de caractères spéciaux.
|
||||||
|
|||||||
@ -193,7 +193,7 @@ function dol_escape_js($stringtoescape)
|
|||||||
function dol_escape_htmltag($stringtoescape)
|
function dol_escape_htmltag($stringtoescape)
|
||||||
{
|
{
|
||||||
// escape quotes and backslashes, newlines, etc.
|
// escape quotes and backslashes, newlines, etc.
|
||||||
return strtr($stringtoescape, array('"'=>'',"\r"=>'\\r',"\n"=>'\\n'));
|
return strtr($stringtoescape, array('"'=>'',"\r"=>'\\r',"\n"=>'\\n',"<b>"=>'','</b>'=>''));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user