Look: Alignement à droite des totaux de propal par status
This commit is contained in:
parent
03f9a8fbbe
commit
11d9018435
@ -41,7 +41,6 @@ if ($user->societe_id > 0)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
llxHeader();
|
|
||||||
|
|
||||||
function valeur($sql)
|
function valeur($sql)
|
||||||
{
|
{
|
||||||
@ -57,10 +56,13 @@ function valeur($sql)
|
|||||||
return $valeur;
|
return $valeur;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
* Affichage zone prospect
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
llxHeader();
|
||||||
|
|
||||||
print_fiche_titre($langs->trans("ProspectionArea"));
|
print_fiche_titre($langs->trans("ProspectionArea"));
|
||||||
|
|
||||||
print '<table border="0" width="100%" class="notopnoleftnoright">';
|
print '<table border="0" width="100%" class="notopnoleftnoright">';
|
||||||
@ -97,27 +99,27 @@ $sql .= " ORDER BY st.id";
|
|||||||
$resql=$db->query($sql);
|
$resql=$db->query($sql);
|
||||||
if ($resql)
|
if ($resql)
|
||||||
{
|
{
|
||||||
$num = $db->num_rows($resql);
|
$num = $db->num_rows($resql);
|
||||||
$i = 0;
|
$i = 0;
|
||||||
if ($num > 0 )
|
if ($num > 0 )
|
||||||
{
|
|
||||||
$var=true;
|
|
||||||
|
|
||||||
print '<table class="noborder" width="100%">';
|
|
||||||
print '<tr class="liste_titre">';
|
|
||||||
print '<td colspan="2">'.$langs->trans("ProspectsByStatus").'</td></tr>';
|
|
||||||
while ($i < $num)
|
|
||||||
{
|
{
|
||||||
$obj = $db->fetch_object($resql);
|
$var=true;
|
||||||
$var=!$var;
|
|
||||||
print "<tr $bc[$var]><td><a href=\"prospects.php?page=0&stcomm=".$obj->id."\">";
|
print '<table class="noborder" width="100%">';
|
||||||
print img_action($langs->trans("Show"),$obj->id).' ';
|
print '<tr class="liste_titre">';
|
||||||
print $langs->trans("StatusProspect".$obj->id);
|
print '<td colspan="2">'.$langs->trans("ProspectsByStatus").'</td></tr>';
|
||||||
print "</a></td><td>".$obj->cc."</td></tr>";
|
while ($i < $num)
|
||||||
$i++;
|
{
|
||||||
|
$obj = $db->fetch_object($resql);
|
||||||
|
$var=!$var;
|
||||||
|
print "<tr $bc[$var]><td><a href=\"prospects.php?page=0&stcomm=".$obj->id."\">";
|
||||||
|
print img_action($langs->trans("Show"),$obj->id).' ';
|
||||||
|
print $langs->trans("StatusProspect".$obj->id);
|
||||||
|
print '</a></td><td align="right">'.$obj->cc.'</td></tr>';
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
print "</table><br>";
|
||||||
}
|
}
|
||||||
print "</table><br>";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user