[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dolibarr-bugtrack] [bug #15805] Tableau des "autres informations" n'es
From: |
LO Vieng Nong |
Subject: |
[Dolibarr-bugtrack] [bug #15805] Tableau des "autres informations" n'est pas complété par des colonnes vide. |
Date: |
Sun, 19 Feb 2006 20:01:01 +0100 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1 |
URL:
<http://savannah.nongnu.org/bugs/?func=detailitem&item_id=15805>
Summary: Tableau des "autres informations" n'est pas
complété par des colonnes vide.
Project: Dolibarr
Submitted by: bugblaster
Submitted on: dim 19.02.2006 à 20:01
Severity: 3 - Normal
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Release: None
Platform Version: GNU/Linux
_______________________________________________________
Details:
Un erreur dans l'affichage des autres Informations fait que les
dernières colones de la derniere ligne ne sont pas complétée par des
<td> </td>
De plus j'ai modifié le code pour permettre l'adaptation du "with" lorsque
l'on modifie "$NBCOLS"
for ($ii=0, $ni=sizeof($boxes); $ii<$ni; $ii++)
{
if ($ii % $NBCOLS == 0) print "<tr>\n";
if ($ii % $NBCOLS == ($NBCOLS-1))
{
print '<td valign="top"
width="'.(round(100/$NBCOLS)+(100%$NBCOLS)).'%">';
}
else
{
print '<td valign="top" width="'.round(100/$NBCOLS).'%">';
}
// Affichage boite ii
include_once(DOL_DOCUMENT_ROOT."/includes/boxes/".$boxes[$ii].".php");
$box=new $boxes[$ii]();
$box->loadBox();
$box->showBox();
print "</td>";
if ($ii % $NBCOLS == ($NBCOLS-1)) print "</tr>\n";
}
if (sizeof($boxes))
{
// Complete par des boîtes vides
if ( sizeof($boxes) % $NBCOLS < $NBCOLS )
{
for ($jj=0; $jj<($NBCOLS - sizeof($boxes) % $NBCOLS); $jj++)
{
if ($jj == ($NBCOLS - sizeof($boxes) % $NBCOLS)-1 )
{
print '<td valign="top"
width="'.(round(100/$NBCOLS)+(100%$NBCOLS)).'%"> </td>';
}
else
{
print '<td valign="top"
width="'.round(100/$NBCOLS).'%"> </td>';
}
}
print "</tr>\n";
}
print "</table>";
}
for ($ii=0, $ni=sizeof($boxes); $ii<$ni; $ii++)
{
if ($ii % $NBCOLS == 0) print "<tr>\n";
if ($ii % $NBCOLS == ($NBCOLS-1))
{
print '<td valign="top"
width="'.(round(100/$NBCOLS)+(100%$NBCOLS)).'%">';
}
else
{
print '<td valign="top" width="'.round(100/$NBCOLS).'%">';
}
// Affichage boite ii
include_once(DOL_DOCUMENT_ROOT."/includes/boxes/".$boxes[$ii].".php");
$box=new $boxes[$ii]();
$box->loadBox();
$box->showBox();
print "</td>";
if ($ii % $NBCOLS == ($NBCOLS-1)) print "</tr>\n";
}
if (sizeof($boxes))
{
// Complete par des boîtes vides
if ( sizeof($boxes) % $NBCOLS < $NBCOLS )
{
for ($jj=0; $jj<($NBCOLS - sizeof($boxes) % $NBCOLS); $jj++)
{
print "<td> </td>";
}
print "</tr>\n";
}
print "</table>";
}
-------------
Version: 2.1-alpha
Server: Apache/2.0.51 (Fedora)
Url: /index.php?mainmenu=home&leftmenu=
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?func=detailitem&item_id=15805>
_______________________________________________
Message posté via/par Savannah
http://savannah.nongnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dolibarr-bugtrack] [bug #15805] Tableau des "autres informations" n'est pas complété par des colonnes vide.,
LO Vieng Nong <=