diff --git a/ChangeLog b/ChangeLog
index af90978b7a7..e2060cda330 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -18,6 +18,7 @@ For developers:
- More comments in code.
- Uniformize some code.
- First delete of useless pre.inc.php files.
+- Fix W3C errors in page forging.
***** ChangeLog for 2.8 compared to 2.7 *****
diff --git a/htdocs/admin/tools/dolibarr_export.php b/htdocs/admin/tools/dolibarr_export.php
index 01f4e7b0509..899fb6d1cfc 100644
--- a/htdocs/admin/tools/dolibarr_export.php
+++ b/htdocs/admin/tools/dolibarr_export.php
@@ -181,7 +181,7 @@ if ($db->label == 'MySQL')
{
$fullpathofmysqldump=$conf->global->SYSTEMTOOLS_MYSQLDUMP;
}
- ?>
+ ?>
@@ -240,7 +240,7 @@ if ($db->label == 'MySQL')
-
+
@@ -259,32 +259,32 @@ if ($db->label == 'MySQL')
id="checkbox_dump_showcolumns"
/>
+ trans("NameColumn"); ?>
+ trans("ExtendedInsert"); ?>
+ trans("DelayedInsert"); ?>
+ Ignorer les erreurs de doublons (INSERT IGNORE)
+ trans("EncodeBinariesInHexa"); ?>
@@ -308,7 +308,7 @@ if ($db->label == 'PostgreSQL')
{
$fullpathofpgdump=$conf->global->SYSTEMTOOLS_POSTGRESQLDUMP;
}
- ?>
+ ?>
@@ -359,7 +359,7 @@ if ($db->label == 'PostgreSQL')
id="checkbox_dump_showcolumns"
/>
+ trans("NameColumn"); ?>
@@ -437,7 +437,7 @@ if ($db->label == 'PostgreSQL')
id="ch_latex_showcolumns"
checked="checked" />
+ Nom des colonnes
|
diff --git a/htdocs/admin/tools/eaccelerator.php b/htdocs/admin/tools/eaccelerator.php
index 22e09339f3f..ee44c42734f 100644
--- a/htdocs/admin/tools/eaccelerator.php
+++ b/htdocs/admin/tools/eaccelerator.php
@@ -332,10 +332,10 @@ if (function_exists('eaccelerator_get'))
create_key_table($res);
}
-print "
";
+print "
";
print "
";
print '";
diff --git a/htdocs/boutique/commande/fiche.php b/htdocs/boutique/commande/fiche.php
index b16102db243..19e6f47b126 100644
--- a/htdocs/boutique/commande/fiche.php
+++ b/htdocs/boutique/commande/fiche.php
@@ -1,6 +1,6 @@
- * Copyright (C) 2003-2005 Éric Seigne
+ * Copyright (C) 2003-2005 �ric Seigne
* Copyright (C) 2004-2006 Laurent Destailleur
*
* This program is free software; you can redistribute it and/or modify
@@ -58,7 +58,7 @@ if ($_GET['id'])
print "
";
- print "
";
+ print "
";
/*
* Produits
@@ -108,7 +108,7 @@ if ($_GET['id'])
*
*
*/
- print "
";
+ print "
";
print '';
print "";
diff --git a/htdocs/cashdesk/templates/liste_articles.tpl.php b/htdocs/cashdesk/templates/liste_articles.tpl.php
index 70b146c466e..4079ba529a0 100644
--- a/htdocs/cashdesk/templates/liste_articles.tpl.php
+++ b/htdocs/cashdesk/templates/liste_articles.tpl.php
@@ -68,7 +68,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
$obj_facturation->calculTotaux();
$total_ttc = $obj_facturation->prix_total_ttc();
- echo (''.$langs->trans("Total").' : '.price2num($total_ttc, 'MT').' '.$conf->monnaie.'
'."\n");
+ echo (''.$langs->trans("Total").' : '.price2num($total_ttc, 'MT').' '.$conf->monnaie.'
'."\n");
} else {
diff --git a/htdocs/cashdesk/templates/ticket.tpl.php b/htdocs/cashdesk/templates/ticket.tpl.php
index 5c9c0741282..ca7ba5a98d7 100644
--- a/htdocs/cashdesk/templates/ticket.tpl.php
+++ b/htdocs/cashdesk/templates/ticket.tpl.php
@@ -95,8 +95,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
logo_small).'">'; ?>
-
nom; ?>
- adresse; ?>
+
nom; ?>
+ adresse; ?>
cp.' '.$mysoc->ville; ?>
-
trans("Notes"); ?>
+
trans("Notes"); ?>
" />
trans("RestartSelling"); ?>
diff --git a/htdocs/categories/photos.php b/htdocs/categories/photos.php
index d7a48b3e65f..2dd08098762 100644
--- a/htdocs/categories/photos.php
+++ b/htdocs/categories/photos.php
@@ -136,7 +136,7 @@ if ($_GET["id"] || $_GET["ref"])
print '
'.$langs->trans("Root").' >> ';
foreach ($ways as $way)
{
- print $way."
\n";
+ print $way."
\n";
}
print '
';
diff --git a/htdocs/categories/viewcat.php b/htdocs/categories/viewcat.php
index e7a4f766fa3..0fd6a979135 100644
--- a/htdocs/categories/viewcat.php
+++ b/htdocs/categories/viewcat.php
@@ -123,7 +123,7 @@ print $langs->trans("Ref").'';
print ''.$langs->trans("Root").' >> ';
foreach ($ways as $way)
{
- print $way." \n";
+ print $way." \n";
}
print ' | ';
diff --git a/htdocs/comm/index.php b/htdocs/comm/index.php
index d0dcfa947ed..3bbd0a6eb04 100644
--- a/htdocs/comm/index.php
+++ b/htdocs/comm/index.php
@@ -113,7 +113,7 @@ if ($conf->propal->enabled && $user->rights->propale->lire)
print '| '.$langs->trans("Other").': | | ';
print '
';
print "
\n";
- print "
\n";
+ print "
\n";
}
/*
diff --git a/htdocs/comm/mailing/fiche.php b/htdocs/comm/mailing/fiche.php
index 4284563eb36..e9d1ad7e6bd 100644
--- a/htdocs/comm/mailing/fiche.php
+++ b/htdocs/comm/mailing/fiche.php
@@ -713,7 +713,7 @@ else
print ''.$langs->trans("DeleteMailing").'';
}
- print '
';
+ print '
';
}
// Affichage formulaire de TEST
diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php
index 715c8ddf6ef..fb33613f950 100644
--- a/htdocs/comm/propal.php
+++ b/htdocs/comm/propal.php
@@ -1687,7 +1687,7 @@ if ($id > 0 || ! empty($ref))
else print ' ';
print '';
print '';
- print '
| ';
+ print '
';
print '' . "\n";
/*
if ($conf->service->enabled)
diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php
index 509a563cb80..8858d974fa7 100644
--- a/htdocs/commande/fiche.php
+++ b/htdocs/commande/fiche.php
@@ -1042,7 +1042,7 @@ if ($_GET['action'] == 'create' && $user->rights->commande->creer)
print '' ."\n";
print '';
print '';
-
+
if (isset($_GET["origin"]) && $_GET["origin"] != 'project' && isset($_GET["originid"]))
{
print '';
@@ -1123,7 +1123,7 @@ if ($_GET['action'] == 'create' && $user->rights->commande->creer)
{
$projectid = 0;
if (isset($_GET["origin"]) && $_GET["origin"] == 'project') $projectid = ($_GET["originid"]?$_GET["originid"]:0);
-
+
print '| '.$langs->trans('Project').' | ';
$numprojet=select_projects($soc->id,$projectid);
if ($numprojet==0)
@@ -1892,7 +1892,7 @@ else
else print ' ';
print ' | ';
print '';
- print '
| ';
+ print '
';
print '
';
// Added by Matelli (See http://matelli.fr/showcases/patchs-dolibarr/add-dates-in-order-lines.html)
diff --git a/htdocs/compta/export/index.php b/htdocs/compta/export/index.php
index 0fb644c9e39..96206f993aa 100644
--- a/htdocs/compta/export/index.php
+++ b/htdocs/compta/export/index.php
@@ -49,17 +49,17 @@ $dir = $conf->compta->dir_output."/export/".$year."/";
/*
* Actions
*/
-
+
if ($_GET["action"] == 'export')
{
$modulename='Poivre';
-
+
include_once DOL_DOCUMENT_ROOT.'/compta/export/modules/compta.export.class.php';
-
+
create_exdir($dir);
-
+
$exc = new ComptaExport($db, $user, $modulename);
-
+
if($_GET["id"] > 0)
{
$exc->Export($_GET["id"], $dir);
@@ -68,14 +68,14 @@ if ($_GET["action"] == 'export')
{
$exc->Export(0, $dir);
}
-
- /* Génération du journal des Paiements */
-
+
+ /* G�n�ration du journal des Paiements */
+
$jp= new ComptaJournalPaiement($db);
$jp->GeneratePdf($user, $dir, $exc->id, $exc->ref);
-
- /* Génération du journal des Ventes */
-
+
+ /* G�n�ration du journal des Ventes */
+
$jp= new ComptaJournalVente($db);
$jp->GeneratePdf($user, $dir, $exc->id, $exc->ref);
}
@@ -83,7 +83,7 @@ if ($_GET["action"] == 'export')
/*
* Affichage page
*/
-
+
llxHeader('','Compta - Export');
print_fiche_titre($langs->trans("AccountancyExport"));
@@ -125,7 +125,7 @@ $var=false;
print '| '.$langs->trans("Invoices").' | '.$nbfac.' |
';
$var=!$var;
print '| '.$langs->trans("Payments").' | '.$nbp.' |
';
-print "
\n";
+print "
\n";
print '';
print '';
@@ -164,7 +164,7 @@ if ($handle)
{
if (is_readable($dir.$file) && is_file($dir.$file))
{
- print '
| '.$file.' | ';
+ print ' |
| '.$file.' | ';
print ' |
';
}
}
diff --git a/htdocs/compta/paiement/cheque/fiche.php b/htdocs/compta/paiement/cheque/fiche.php
index 124b36c3b62..edb093977fc 100644
--- a/htdocs/compta/paiement/cheque/fiche.php
+++ b/htdocs/compta/paiement/cheque/fiche.php
@@ -227,7 +227,7 @@ if ($_GET['action'] == 'new')
print '';
print '| '.$langs->trans('Date').' | '.dol_print_date($now,'day').' |
';
- print '
';
+ print '
';
$sql = "SELECT ba.rowid as bid, ".$db->pdate("b.dateo")." as date,";
$sql.= " b.amount, ba.label, b.emetteur, b.num_chq, b.banque";
@@ -303,7 +303,7 @@ if ($_GET['action'] == 'new')
{
print ''.$langs->trans('NewCheckDepositOn',$account_label).'';
}
- print '
';
+ print '
';
}
}
@@ -343,7 +343,7 @@ else
print $remisecheque->getLibStatut(4);
print '';
- print '
';
+ print '
';
// Liste des cheques
diff --git a/htdocs/compta/prelevement/bon.php b/htdocs/compta/prelevement/bon.php
index 4609c5ab57b..b55ca9e8a3e 100644
--- a/htdocs/compta/prelevement/bon.php
+++ b/htdocs/compta/prelevement/bon.php
@@ -16,11 +16,11 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-
+
/**
\file htdocs/compta/prelevement/bon.php
\ingroup prelevement
- \brief Fiche aperçu du bon de prelevement
+ \brief Fiche aper�u du bon de prelevement
\version $Id$
*/
@@ -29,41 +29,41 @@ require("./pre.inc.php");
$langs->load("bills");
/*
- * Sécurité accés client
+ * S�curit� acc�s client
*/
if (!$user->rights->prelevement->bons->lire) accessforbidden();
-llxHeader('','Bon de prélèvement');
+llxHeader('','Bon de pr�l�vement');
$h = 0;
$head[$h][0] = DOL_URL_ROOT.'/compta/prelevement/fiche.php?id='.$_GET["id"];
$head[$h][1] = $langs->trans("Card");
-$h++;
+$h++;
if ($conf->use_preview_tabs)
{
$head[$h][0] = DOL_URL_ROOT.'/compta/prelevement/bon.php?id='.$_GET["id"];
$head[$h][1] = $langs->trans("Preview");
$hselected = $h;
- $h++;
+ $h++;
}
$head[$h][0] = DOL_URL_ROOT.'/compta/prelevement/lignes.php?id='.$_GET["id"];
$head[$h][1] = $langs->trans("Lines");
-$h++;
+$h++;
$head[$h][0] = DOL_URL_ROOT.'/compta/prelevement/factures.php?id='.$_GET["id"];
$head[$h][1] = $langs->trans("Bills");
-$h++;
+$h++;
$head[$h][0] = DOL_URL_ROOT.'/compta/prelevement/fiche-rejet.php?id='.$_GET["id"];
$head[$h][1] = $langs->trans("Rejets");
-$h++;
+$h++;
$head[$h][0] = DOL_URL_ROOT.'/compta/prelevement/fiche-stat.php?id='.$_GET["id"];
$head[$h][1] = $langs->trans("Statistics");
-$h++;
+$h++;
$prev_id = $_GET["id"];
@@ -75,7 +75,7 @@ if ($_GET["id"])
if ($bon->fetch($_GET["id"]) == 0)
{
- dol_fiche_head($head, $hselected, 'Prélèvement : '. $bon->ref);
+ dol_fiche_head($head, $hselected, 'Pr�l�vement : '. $bon->ref);
print '';
@@ -88,7 +88,7 @@ if ($_GET["id"])
print ''.$bon->ref.'';
print '';
- print '
';
+ print '
';
$fileimage = $conf->prelevement->dir_output.'/receipts/'.$bon->ref.'.ps.png.0';
$fileps = $conf->prelevement->dir_output.'/receipts/'.$bon->ref.'.ps';
@@ -101,25 +101,25 @@ if ($_GET["id"])
{
$handle = imagick_readimage( $fileps ) ;
-
+
if ( imagick_iserror( $handle ) )
{
$reason = imagick_failedreason( $handle ) ;
$description = imagick_faileddescription( $handle ) ;
-
+
print "handle failed!
\nReason: $reason
\nDescription: $description
\n";
}
-
+
imagick_convert( $handle, "PNG" ) ;
-
+
if ( imagick_iserror( $handle ) )
{
$reason = imagick_failedreason( $handle ) ;
$description = imagick_faileddescription( $handle ) ;
-
+
print "handle failed!
\nReason: $reason
\nDescription: $description
\n";
}
-
+
imagick_writeimage( $handle, $fileps .".png");
}
else
@@ -131,7 +131,7 @@ if ($_GET["id"])
if (file_exists($fileimage))
{
print '
';
-
+
}
}
else
diff --git a/htdocs/compta/prelevement/demandes.php b/htdocs/compta/prelevement/demandes.php
index 1844bb23636..9a11086ae74 100644
--- a/htdocs/compta/prelevement/demandes.php
+++ b/htdocs/compta/prelevement/demandes.php
@@ -20,7 +20,7 @@
/**
\file htdocs/compta/prelevement/demandes.php
- \brief Page de la liste des demandes de prélèvements
+ \brief Page de la liste des demandes de pr�l�vements
\version $Id$
*/
@@ -153,7 +153,7 @@ if ( $db->query($sql) )
$i++;
}
- print "
";
+ print "
";
}
else
diff --git a/htdocs/compta/prelevement/fiche.php b/htdocs/compta/prelevement/fiche.php
index 1bc8bedcb31..67e7b8ba71b 100644
--- a/htdocs/compta/prelevement/fiche.php
+++ b/htdocs/compta/prelevement/fiche.php
@@ -190,7 +190,7 @@ if ($_GET["id"])
print '';
}
- print '
';
+ print '
';
if($bon->date_trans == 0)
{
@@ -206,7 +206,7 @@ if ($_GET["id"])
print '';
print '| '.$langs->trans("File").' | ';
print '';
- print ' ';
+ print ' ';
print ' |
';
print '';
print '';
diff --git a/htdocs/compta/prelevement/ligne.php b/htdocs/compta/prelevement/ligne.php
index 5485a43bd1f..4fdc6b6ceb6 100644
--- a/htdocs/compta/prelevement/ligne.php
+++ b/htdocs/compta/prelevement/ligne.php
@@ -129,7 +129,7 @@ if ($_GET["id"])
}
- print ' ';
+ print ' ';
}
else
{
diff --git a/htdocs/compta/prelevement/stats.php b/htdocs/compta/prelevement/stats.php
index b0c95ea11bc..031d0190698 100644
--- a/htdocs/compta/prelevement/stats.php
+++ b/htdocs/compta/prelevement/stats.php
@@ -135,7 +135,7 @@ else
* Stats sur les rejets
*
*/
-print ' ';
+print ' ';
print_titre($langs->trans("WithdrawRejectStatistics"));
diff --git a/htdocs/contrat/fiche.php b/htdocs/contrat/fiche.php
index 77b6f8c578c..58c9ea78e6f 100644
--- a/htdocs/contrat/fiche.php
+++ b/htdocs/contrat/fiche.php
@@ -831,7 +831,7 @@ else
print '';
print img_object($langs->trans("ShowService"),"service").' '.$objp->ref.'';
print $objp->label?' - '.$objp->label:'';
- if ($objp->description) print ' '.nl2br($objp->description);
+ if ($objp->description) print ' '.nl2br($objp->description);
print ' | ';
}
else
@@ -985,7 +985,6 @@ else
*/
if ($_REQUEST["action"] == 'move' && ! $_REQUEST["cancel"] && $user->rights->contrat->creer && $contrat->lignes[$cursorline-1]->id == $_GET["rowid"])
{
- //print '
';
$arraycontractid=array();
foreach($arrayothercontracts as $contractcursor)
{
@@ -1006,7 +1005,6 @@ else
*/
if ($_REQUEST["action"] == 'active' && ! $_REQUEST["cancel"] && $user->rights->contrat->activer && $contrat->lignes[$cursorline-1]->id == $_GET["ligne"])
{
- //print '
';
$dateactstart = dol_mktime(12, 0 , 0, $_POST["remonth"], $_POST["reday"], $_POST["reyear"]);
$dateactend = dol_mktime(12, 0 , 0, $_POST["endmonth"], $_POST["endday"], $_POST["endyear"]);
$comment = $_POST["comment"];
@@ -1019,7 +1017,6 @@ else
*/
if ($_REQUEST["action"] == 'closeline' && ! $_REQUEST["cancel"] && $user->rights->contrat->activer && $contrat->lignes[$cursorline-1]->id == $_GET["ligne"])
{
- //print '
';
$dateactstart = dol_mktime(12, 0 , 0, $_POST["remonth"], $_POST["reday"], $_POST["reyear"]);
$dateactend = dol_mktime(12, 0 , 0, $_POST["endmonth"], $_POST["endday"], $_POST["endyear"]);
$comment = $_POST["comment"];
diff --git a/htdocs/core/photos_resize.php b/htdocs/core/photos_resize.php
index 0e6bad3b114..984ff6f8234 100644
--- a/htdocs/core/photos_resize.php
+++ b/htdocs/core/photos_resize.php
@@ -107,8 +107,8 @@ print '
-
+
{if $error_message}
{$langs->trans('BackToLoginPage')}
-
-
+
+
|