Modifications esthtiques des boxes. Le titre des boxes n'est plus compress sur la premire colonne mais s'tend sur toutes les colonnes.
On laisse de plus le navigateur rgler les largeurs des colonnes. En effet la premire colonne 30% selon les boxes contient du long text alors que la deuxieme du cours texte. Le ratio 30%-70% gnre alors des retours la ligne non esthtiques.
This commit is contained in:
parent
f04ec2b370
commit
6629344b39
@ -31,7 +31,7 @@ class infoBox
|
||||
|
||||
print '<table width="100%" cellpadding="3" cellspacing="0" border="0">';
|
||||
|
||||
print '<tr class="box_titre"><td colspan="2">'.$head[0]['text']."</td></tr>";
|
||||
print '<tr class="box_titre"><td colspan='.sizeof($contents).'>'.$head[0]['text']."</td></tr>";
|
||||
|
||||
for ($i=0, $n=sizeof($contents); $i<$n; $i++)
|
||||
{
|
||||
|
||||
@ -50,12 +50,10 @@ if ($user->rights->commande->lire)
|
||||
|
||||
$info_box_contents[$i][0] = array('align' => 'left',
|
||||
'text' => $objp->ref,
|
||||
'width' => '30%',
|
||||
'url' => DOL_URL_ROOT."/commande/fiche.php?id=".$objp->rowid);
|
||||
|
||||
$info_box_contents[$i][1] = array('align' => 'left',
|
||||
'text' => $objp->nom,
|
||||
'width' => '70%',
|
||||
'url' => DOL_URL_ROOT."/comm/fiche.php?socid=".$objp->idp);
|
||||
$i++;
|
||||
}
|
||||
|
||||
@ -24,7 +24,7 @@ if ($user->rights->facture->lire)
|
||||
{
|
||||
|
||||
$info_box_head = array();
|
||||
$info_box_head[] = array('text' => "Les 5 dernières factures");
|
||||
$info_box_head[] = array('text' => "Les 5 dernières factures enregistrées");
|
||||
|
||||
$info_box_contents = array();
|
||||
|
||||
@ -51,12 +51,10 @@ if ($user->rights->facture->lire)
|
||||
|
||||
$info_box_contents[$i][0] = array('align' => 'left',
|
||||
'text' => $objp->facnumber,
|
||||
'width' => '30%',
|
||||
'url' => DOL_URL_ROOT."/compta/facture.php?facid=".$objp->facid);
|
||||
|
||||
$info_box_contents[$i][1] = array('align' => 'left',
|
||||
'text' => $objp->nom,
|
||||
'width' => '70%',
|
||||
'url' => DOL_URL_ROOT."/comm/fiche.php?socid=".$objp->idp);
|
||||
$i++;
|
||||
}
|
||||
|
||||
@ -49,12 +49,10 @@ if ($user->rights->facture->lire)
|
||||
|
||||
$info_box_contents[$i][0] = array('align' => 'left',
|
||||
'text' => $objp->facnumber,
|
||||
'width' => '30%',
|
||||
'url' => DOL_URL_ROOT."/compta/facture.php?facid=".$objp->facid);
|
||||
|
||||
$info_box_contents[$i][1] = array('align' => 'left',
|
||||
'text' => $objp->nom,
|
||||
'width' => '70%',
|
||||
'url' => DOL_URL_ROOT."/comm/fiche.php?socid=".$objp->idp);
|
||||
|
||||
$i++;
|
||||
|
||||
@ -22,7 +22,7 @@
|
||||
if ($user->rights->produit->lire)
|
||||
{
|
||||
$info_box_head = array();
|
||||
$info_box_head[] = array('text' => "Les 5 derniers produits");
|
||||
$info_box_head[] = array('text' => "Les 5 derniers produits enregistrés");
|
||||
|
||||
$info_box_contents = array();
|
||||
|
||||
|
||||
@ -50,12 +50,10 @@ if ($user->rights->propale->lire)
|
||||
|
||||
$info_box_contents[$i][0] = array('align' => 'left',
|
||||
'text' => $objp->ref,
|
||||
'width' => '30%',
|
||||
'url' => DOL_URL_ROOT."/comm/propal.php?propalid=".$objp->rowid);
|
||||
|
||||
$info_box_contents[$i][1] = array('align' => 'left',
|
||||
$info_box_contents[$i][1] = array('align' => 'center',
|
||||
'text' => $objp->nom,
|
||||
'width' => '70%',
|
||||
'url' => DOL_URL_ROOT."/comm/fiche.php?socid=".$objp->idp);
|
||||
$i++;
|
||||
}
|
||||
|
||||
@ -21,7 +21,7 @@
|
||||
*/
|
||||
|
||||
$info_box_head = array();
|
||||
$info_box_head[] = array('text' => "Les 5 derniers services vendus");
|
||||
$info_box_head[] = array('text' => "Les 5 derniers produits/services contractés");
|
||||
|
||||
$info_box_contents = array();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user