Mise aux normes W3C
This commit is contained in:
parent
a399e0369d
commit
1901f4c8c9
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2003-2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (c) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (c) 2004-2006 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
|
||||||
@ -51,7 +51,7 @@ $data = $stats->getNbByMonthWithPrevYear($year);
|
|||||||
create_exdir($conf->facture->dir_temp);
|
create_exdir($conf->facture->dir_temp);
|
||||||
|
|
||||||
$filename = $conf->facture->dir_temp."/nbfacture2year-".$year.".png";
|
$filename = $conf->facture->dir_temp."/nbfacture2year-".$year.".png";
|
||||||
$fileurl = DOL_URL_ROOT.'/viewimage.php?modulepart=billstats&file=nbfacture2year-'.$year.'.png';
|
$fileurl = DOL_URL_ROOT.'/viewimage.php?modulepart=billstats&file=nbfacture2year-'.$year.'.png';
|
||||||
|
|
||||||
$px = new DolGraph();
|
$px = new DolGraph();
|
||||||
$mesg = $px->isGraphKo();
|
$mesg = $px->isGraphKo();
|
||||||
@ -74,7 +74,7 @@ if ($socid)
|
|||||||
{
|
{
|
||||||
$sql .= " AND fk_soc=$socid";
|
$sql .= " AND fk_soc=$socid";
|
||||||
}
|
}
|
||||||
$sql .= " GROUP BY dm DESC ";
|
$sql.= " GROUP BY dm DESC;";
|
||||||
$resql=$db->query($sql);
|
$resql=$db->query($sql);
|
||||||
if ($resql)
|
if ($resql)
|
||||||
{
|
{
|
||||||
@ -86,27 +86,25 @@ if ($resql)
|
|||||||
if ($mesg) { print $mesg; }
|
if ($mesg) { print $mesg; }
|
||||||
else { print '<img src="'.$fileurl.'" alt="Nombre de factures par mois">'; }
|
else { print '<img src="'.$fileurl.'" alt="Nombre de factures par mois">'; }
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
$i = 0;
|
|
||||||
while ($i < $num)
|
while ($obj = $db->fetch_object($resql))
|
||||||
{
|
{
|
||||||
$obj = $db->fetch_object($resql);
|
|
||||||
$nbproduct = $obj->nb;
|
$nbproduct = $obj->nb;
|
||||||
$year = $obj->dm;
|
$year = $obj->dm;
|
||||||
$total = price($obj->total);
|
$total = price($obj->total);
|
||||||
print "<tr>";
|
print "<tr>";
|
||||||
print '<td align="center"><a href="month.php?year='.$year.'">'.$year.'</a></td><td align="center">'.$nbproduct.'</td><td align="center">'.$total.'</td></tr>';
|
print '<td align="center"><a href="month.php?year='.$year.'">'.$year.'</a></td><td align="center">'.$nbproduct.'</td><td align="center">'.$total.'</td></tr>';
|
||||||
$i++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
print '</table>';
|
print '</table>';
|
||||||
$db->free();
|
$db->free($resql);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
dolibarr_print_error($db);
|
dolibarr_print_error($db);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|
||||||
llxFooter('$Date$ - $Revision$');
|
llxFooter('$Date$ - $Revision$');
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2003-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2003-2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2006 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
|
||||||
@ -20,7 +20,8 @@
|
|||||||
* $Source$
|
* $Source$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** \file htdocs/compta/paiement/rapport.php
|
/**
|
||||||
|
\file htdocs/compta/paiement/rapport.php
|
||||||
\ingroup facture
|
\ingroup facture
|
||||||
\brief Rapports de paiements
|
\brief Rapports de paiements
|
||||||
\version $Revision$
|
\version $Revision$
|
||||||
@ -31,7 +32,6 @@ require_once(DOL_DOCUMENT_ROOT."/includes/modules/rapport/pdf_paiement.class.php
|
|||||||
|
|
||||||
$user->getrights("facture");
|
$user->getrights("facture");
|
||||||
|
|
||||||
|
|
||||||
// Sécurité accés
|
// Sécurité accés
|
||||||
if (! $user->rights->facture->lire)
|
if (! $user->rights->facture->lire)
|
||||||
accessforbidden();
|
accessforbidden();
|
||||||
@ -46,14 +46,9 @@ if ($user->societe_id > 0)
|
|||||||
$dir = DOL_DATA_ROOT.'/private/'.$user->id.'/compta';
|
$dir = DOL_DATA_ROOT.'/private/'.$user->id.'/compta';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$year = $_GET["year"];
|
$year = $_GET["year"];
|
||||||
if (! $year) { $year=date("Y"); }
|
if (! $year) { $year=date("Y"); }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Action générer fichier rapport paiements
|
* Action générer fichier rapport paiements
|
||||||
*/
|
*/
|
||||||
@ -65,8 +60,6 @@ if ($_POST["action"] == 'gen')
|
|||||||
$year = $_POST["reyear"];
|
$year = $_POST["reyear"];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -82,7 +75,6 @@ print '<input type="hidden" name="action" value="gen">';
|
|||||||
$cmonth = date("n", time());
|
$cmonth = date("n", time());
|
||||||
$syear = date("Y", time());
|
$syear = date("Y", time());
|
||||||
|
|
||||||
|
|
||||||
print '<select name="remonth">';
|
print '<select name="remonth">';
|
||||||
for ($month = 1 ; $month < 13 ; $month++)
|
for ($month = 1 ; $month < 13 ; $month++)
|
||||||
{
|
{
|
||||||
@ -96,7 +88,6 @@ for ($month = 1 ; $month < 13 ; $month++)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
print "</select>";
|
print "</select>";
|
||||||
|
|
||||||
print '<select name="reyear">';
|
print '<select name="reyear">';
|
||||||
|
|
||||||
for ($formyear = $syear - 2; $formyear < $syear +1 ; $formyear++)
|
for ($formyear = $syear - 2; $formyear < $syear +1 ; $formyear++)
|
||||||
@ -113,7 +104,6 @@ for ($formyear = $syear - 2; $formyear < $syear +1 ; $formyear++)
|
|||||||
print "</select>\n";
|
print "</select>\n";
|
||||||
print '<input type="submit" class="button" value="'.$langs->trans("Create").'">';
|
print '<input type="submit" class="button" value="'.$langs->trans("Create").'">';
|
||||||
print '</form>';
|
print '</form>';
|
||||||
|
|
||||||
print '<br>';
|
print '<br>';
|
||||||
|
|
||||||
clearstatcache();
|
clearstatcache();
|
||||||
@ -142,7 +132,6 @@ if ($year)
|
|||||||
|
|
||||||
if ($found) print '<br>';
|
if ($found) print '<br>';
|
||||||
print '<br>';
|
print '<br>';
|
||||||
|
|
||||||
print '<table width="100%" class="noborder">';
|
print '<table width="100%" class="noborder">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td>'.$langs->trans("Reporting").'</td>';
|
print '<td>'.$langs->trans("Reporting").'</td>';
|
||||||
@ -157,7 +146,7 @@ if ($year)
|
|||||||
$var=!$var;
|
$var=!$var;
|
||||||
$tfile = $dir . '/'.$year.'/'.$file;
|
$tfile = $dir . '/'.$year.'/'.$file;
|
||||||
$relativepath = $year.'/'.$file;
|
$relativepath = $year.'/'.$file;
|
||||||
print "<tr $bc[$var]>".'<td><a href="'.DOL_URL_ROOT . '/document.php?modulepart=facture_paiement&file='.urlencode($relativepath).'">'.img_pdf().' '.$file.'</a></td>';
|
print "<tr $bc[$var]>".'<td><a href="'.DOL_URL_ROOT . '/document.php?modulepart=facture_paiement&file='.urlencode($relativepath).'">'.img_pdf().' '.$file.'</a></td>';
|
||||||
print '<td align="right">'.filesize($tfile). ' '.$langs->trans("Bytes").'</td>';
|
print '<td align="right">'.filesize($tfile). ' '.$langs->trans("Bytes").'</td>';
|
||||||
print '<td align="right">'.dolibarr_print_date(filemtime($tfile),"%d %b %Y %H:%M:%S").'</td></tr>';
|
print '<td align="right">'.dolibarr_print_date(filemtime($tfile),"%d %b %Y %H:%M:%S").'</td></tr>';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user