update with html5 compliant code
This commit is contained in:
parent
2624865632
commit
e7f2b92eca
@ -101,8 +101,8 @@ function pt($db, $sql, $date)
|
||||
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td class="nowrap">'.$date.'</td>';
|
||||
print '<td align="right">'.$langs->trans("ClaimedForThisPeriod").'</td>';
|
||||
print '<td align="right">'.$langs->trans("PaidDuringThisPeriod").'</td>';
|
||||
print '<td class="right">'.$langs->trans("ClaimedForThisPeriod").'</td>';
|
||||
print '<td class="right">'.$langs->trans("PaidDuringThisPeriod").'</td>';
|
||||
print "</tr>\n";
|
||||
|
||||
$totalclaimed = 0;
|
||||
@ -122,8 +122,8 @@ function pt($db, $sql, $date)
|
||||
{
|
||||
print '<tr class="oddeven">';
|
||||
print '<td class="nowrap">'.$previousmonth."</td>\n";
|
||||
print '<td class="nowrap" align="right">'.price($amountclaimed)."</td>\n";
|
||||
print '<td class="nowrap" align="right">'.price($amountpaid)."</td>\n";
|
||||
print '<td class="nowrap right">'.price($amountclaimed)."</td>\n";
|
||||
print '<td class="nowrap right">'.price($amountpaid)."</td>\n";
|
||||
print "</tr>\n";
|
||||
|
||||
$amountclaimed = 0;
|
||||
@ -145,8 +145,8 @@ function pt($db, $sql, $date)
|
||||
{
|
||||
print '<tr class="oddeven">';
|
||||
print '<td class="nowrap">'.$obj->dm."</td>\n";
|
||||
print '<td class="nowrap" align="right">'.price($amountclaimed)."</td>\n";
|
||||
print '<td class="nowrap" align="right">'.price($amountpaid)."</td>\n";
|
||||
print '<td class="nowrap right">'.price($amountclaimed)."</td>\n";
|
||||
print '<td class="nowrap right">'.price($amountpaid)."</td>\n";
|
||||
print "</tr>\n";
|
||||
$amountclaimed = 0;
|
||||
$amountpaid = 0;
|
||||
@ -166,8 +166,8 @@ function pt($db, $sql, $date)
|
||||
{
|
||||
print '<tr class="oddeven">';
|
||||
print '<td class="nowrap">'.$previousmonth."</td>\n";
|
||||
print '<td class="nowrap" align="right">'.price($amountclaimed)."</td>\n";
|
||||
print '<td class="nowrap" align="right">'.price($amountpaid)."</td>\n";
|
||||
print '<td class="nowrap right">'.price($amountclaimed)."</td>\n";
|
||||
print '<td class="nowrap right">'.price($amountpaid)."</td>\n";
|
||||
print "</tr>\n";
|
||||
|
||||
$amountclaimed = 0;
|
||||
@ -175,9 +175,9 @@ function pt($db, $sql, $date)
|
||||
}
|
||||
|
||||
print '<tr class="liste_total">';
|
||||
print '<td align="right">'.$langs->trans("Total").'</td>';
|
||||
print '<td class="nowrap" align="right">'.price($totalclaimed).'</td>';
|
||||
print '<td class="nowrap" align="right">'.price($totalpaid).'</td>';
|
||||
print '<td class="right">'.$langs->trans("Total").'</td>';
|
||||
print '<td class="nowrap right">'.price($totalclaimed).'</td>';
|
||||
print '<td class="nowrap right">'.price($totalpaid).'</td>';
|
||||
print "</tr>";
|
||||
|
||||
print "</table>";
|
||||
@ -249,16 +249,16 @@ print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td width="30%">'.$langs->trans("Year")." ".$y."</td>";
|
||||
if($CalcLT==0) {
|
||||
print "<td align=\"right\">".$langs->transcountry($LTCustomer, $mysoc->country_code)."</td>";
|
||||
print "<td align=\"right\">".$langs->transcountry($LTSupplier, $mysoc->country_code)."</td>";
|
||||
print '<td class="right">'.$langs->transcountry($LTCustomer, $mysoc->country_code).'</td>';
|
||||
print '<td class="right">'.$langs->transcountry($LTSupplier, $mysoc->country_code).'</td>';
|
||||
}
|
||||
if($CalcLT==1) {
|
||||
print "<td align=\"right\">".$langs->transcountry($LTSupplier, $mysoc->country_code)."</td><td></td>";
|
||||
print '<td class="right">'.$langs->transcountry($LTSupplier, $mysoc->country_code).'</td><td></td>';
|
||||
}
|
||||
if($CalcLT==2) {
|
||||
print "<td align=\"right\">".$langs->transcountry($LTCustomer, $mysoc->country_code)."</td><td></td>";
|
||||
print '<td class="right">'.$langs->transcountry($LTCustomer, $mysoc->country_code).'</td><td></td>';
|
||||
}
|
||||
print "<td align=\"right\">".$langs->trans("TotalToPay")."</td>";
|
||||
print '<td class="right">'.$langs->trans("TotalToPay").'</td>';
|
||||
print "<td> </td>\n";
|
||||
print "</tr>\n";
|
||||
|
||||
@ -475,7 +475,7 @@ while ((($y < $yend) || ($y == $yend && $m <= $mend)) && $mcursor < 1000) // $mc
|
||||
$x_coll_sum += $temp_vat;
|
||||
}
|
||||
}
|
||||
print "<td class=\"nowrap\" align=\"right\">".price(price2num($x_coll_sum, 'MT'))."</td>";
|
||||
print '<td class="nowrap right">'.price(price2num($x_coll_sum, 'MT')).'</td>';
|
||||
|
||||
$x_paye_sum = 0;
|
||||
foreach (array_keys($x_paye) as $rate)
|
||||
@ -519,7 +519,7 @@ while ((($y < $yend) || ($y == $yend && $m <= $mend)) && $mcursor < 1000) // $mc
|
||||
$x_paye_sum += $temp_vat;
|
||||
}
|
||||
}
|
||||
print "<td class=\"nowrap\" align=\"right\">".price(price2num($x_paye_sum, 'MT'))."</td>";
|
||||
print '<td class="nowrap right">'.price(price2num($x_paye_sum, 'MT')).'</td>';
|
||||
|
||||
$subtotalcoll = $subtotalcoll + $x_coll_sum;
|
||||
$subtotalpaye = $subtotalpaye + $x_paye_sum;
|
||||
@ -528,7 +528,7 @@ while ((($y < $yend) || ($y == $yend && $m <= $mend)) && $mcursor < 1000) // $mc
|
||||
$total = $total + $diff;
|
||||
$subtotal = price2num($subtotal + $diff, 'MT');
|
||||
|
||||
print "<td class=\"nowrap\" align=\"right\">".price(price2num($diff, 'MT'))."</td>\n";
|
||||
print '<td class="nowrap right">'.price(price2num($diff, 'MT')).'</td>\n';
|
||||
print "<td> </td>\n";
|
||||
print "</tr>\n";
|
||||
|
||||
@ -536,16 +536,16 @@ while ((($y < $yend) || ($y == $yend && $m <= $mend)) && $mcursor < 1000) // $mc
|
||||
if ($i > 2)
|
||||
{
|
||||
print '<tr class="liste_total">';
|
||||
print '<td align="right"><a href="quadri_detail.php?leftmenu=tax_vat&q='.round($m/3).'&year='.$y.'">'.$langs->trans("SubTotal").'</a>:</td>';
|
||||
print '<td class="nowrap" align="right">'.price(price2num($subtotalcoll, 'MT')).'</td>';
|
||||
print '<td class="nowrap" align="right">'.price(price2num($subtotalpaye, 'MT')).'</td>';
|
||||
print '<td class="nowrap" align="right">'.price(price2num($subtotal, 'MT')).'</td>';
|
||||
print '<td class="right"><a href="quadri_detail.php?leftmenu=tax_vat&q='.round($m/3).'&year='.$y.'">'.$langs->trans("SubTotal").'</a>:</td>';
|
||||
print '<td class="nowrap right">'.price(price2num($subtotalcoll, 'MT')).'</td>';
|
||||
print '<td class="nowrap right">'.price(price2num($subtotalpaye, 'MT')).'</td>';
|
||||
print '<td class="nowrap right">'.price(price2num($subtotal, 'MT')).'</td>';
|
||||
print '<td> </td></tr>';
|
||||
$i = 0;
|
||||
$subtotalcoll=0; $subtotalpaye=0; $subtotal=0;
|
||||
}
|
||||
}
|
||||
print '<tr class="liste_total"><td align="right" colspan="3">'.$langs->trans("TotalToPay").':</td><td class="nowrap" align="right">'.price(price2num($total, 'MT')).'</td>';
|
||||
print '<tr class="liste_total"><td class="right" colspan="3">'.$langs->trans("TotalToPay").':</td><td class="nowrap right">'.price(price2num($total, 'MT')).'</td>';
|
||||
print "<td> </td>\n";
|
||||
print '</tr>';
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user