Modifications esthétiques des boxes. Le titre des boxes n'est plus compressé sur la première colonne mais s'étend sur toutes les colonnes.
On laisse de plus le navigateur régler les largeurs des colonnes. En effet la première colonne à 30% selon les boxes contient du long text alors que la deuxieme du cours texte. Le ratio 30%-70% génère alors des retours à la ligne non esthétiques.
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 '<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++)
|
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',
|
$info_box_contents[$i][0] = array('align' => 'left',
|
||||||
'text' => $objp->ref,
|
'text' => $objp->ref,
|
||||||
'width' => '30%',
|
|
||||||
'url' => DOL_URL_ROOT."/commande/fiche.php?id=".$objp->rowid);
|
'url' => DOL_URL_ROOT."/commande/fiche.php?id=".$objp->rowid);
|
||||||
|
|
||||||
$info_box_contents[$i][1] = array('align' => 'left',
|
$info_box_contents[$i][1] = array('align' => 'left',
|
||||||
'text' => $objp->nom,
|
'text' => $objp->nom,
|
||||||
'width' => '70%',
|
|
||||||
'url' => DOL_URL_ROOT."/comm/fiche.php?socid=".$objp->idp);
|
'url' => DOL_URL_ROOT."/comm/fiche.php?socid=".$objp->idp);
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -24,7 +24,7 @@ if ($user->rights->facture->lire)
|
|||||||
{
|
{
|
||||||
|
|
||||||
$info_box_head = array();
|
$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();
|
$info_box_contents = array();
|
||||||
|
|
||||||
@ -51,12 +51,10 @@ if ($user->rights->facture->lire)
|
|||||||
|
|
||||||
$info_box_contents[$i][0] = array('align' => 'left',
|
$info_box_contents[$i][0] = array('align' => 'left',
|
||||||
'text' => $objp->facnumber,
|
'text' => $objp->facnumber,
|
||||||
'width' => '30%',
|
|
||||||
'url' => DOL_URL_ROOT."/compta/facture.php?facid=".$objp->facid);
|
'url' => DOL_URL_ROOT."/compta/facture.php?facid=".$objp->facid);
|
||||||
|
|
||||||
$info_box_contents[$i][1] = array('align' => 'left',
|
$info_box_contents[$i][1] = array('align' => 'left',
|
||||||
'text' => $objp->nom,
|
'text' => $objp->nom,
|
||||||
'width' => '70%',
|
|
||||||
'url' => DOL_URL_ROOT."/comm/fiche.php?socid=".$objp->idp);
|
'url' => DOL_URL_ROOT."/comm/fiche.php?socid=".$objp->idp);
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -49,12 +49,10 @@ if ($user->rights->facture->lire)
|
|||||||
|
|
||||||
$info_box_contents[$i][0] = array('align' => 'left',
|
$info_box_contents[$i][0] = array('align' => 'left',
|
||||||
'text' => $objp->facnumber,
|
'text' => $objp->facnumber,
|
||||||
'width' => '30%',
|
|
||||||
'url' => DOL_URL_ROOT."/compta/facture.php?facid=".$objp->facid);
|
'url' => DOL_URL_ROOT."/compta/facture.php?facid=".$objp->facid);
|
||||||
|
|
||||||
$info_box_contents[$i][1] = array('align' => 'left',
|
$info_box_contents[$i][1] = array('align' => 'left',
|
||||||
'text' => $objp->nom,
|
'text' => $objp->nom,
|
||||||
'width' => '70%',
|
|
||||||
'url' => DOL_URL_ROOT."/comm/fiche.php?socid=".$objp->idp);
|
'url' => DOL_URL_ROOT."/comm/fiche.php?socid=".$objp->idp);
|
||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
if ($user->rights->produit->lire)
|
if ($user->rights->produit->lire)
|
||||||
{
|
{
|
||||||
$info_box_head = array();
|
$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();
|
$info_box_contents = array();
|
||||||
|
|
||||||
|
|||||||
@ -50,12 +50,10 @@ if ($user->rights->propale->lire)
|
|||||||
|
|
||||||
$info_box_contents[$i][0] = array('align' => 'left',
|
$info_box_contents[$i][0] = array('align' => 'left',
|
||||||
'text' => $objp->ref,
|
'text' => $objp->ref,
|
||||||
'width' => '30%',
|
|
||||||
'url' => DOL_URL_ROOT."/comm/propal.php?propalid=".$objp->rowid);
|
'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,
|
'text' => $objp->nom,
|
||||||
'width' => '70%',
|
|
||||||
'url' => DOL_URL_ROOT."/comm/fiche.php?socid=".$objp->idp);
|
'url' => DOL_URL_ROOT."/comm/fiche.php?socid=".$objp->idp);
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -21,7 +21,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
$info_box_head = array();
|
$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();
|
$info_box_contents = array();
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user