Suppression du résumé
This commit is contained in:
parent
4a7d66527a
commit
1062a6c820
@ -81,49 +81,6 @@ print '<table border="0" width="100%" cellspacing="0" cellpadding="3">';
|
|||||||
print '<tr><td valign="top" width="30%">';
|
print '<tr><td valign="top" width="30%">';
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Résumé
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
$sql = "SELECT count(s.idp) as nb, client";
|
|
||||||
$sql .= " FROM ".MAIN_DB_PREFIX."societe as s";
|
|
||||||
$sql .= " WHERE client in (1,2)";
|
|
||||||
$sql .= " GROUP BY client";
|
|
||||||
$nb = array();
|
|
||||||
if ( $db->query($sql) )
|
|
||||||
{
|
|
||||||
$i=0;
|
|
||||||
$num = $db->num_rows();
|
|
||||||
while ($i < $num)
|
|
||||||
{
|
|
||||||
$obj = $db->fetch_object( $i);
|
|
||||||
$nb[$obj->client]=$obj->nb;
|
|
||||||
$i++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
print $db->error();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
print '<table class="noborder" cellspacing="0" cellpadding="3" width="100%">';
|
|
||||||
print "<tr class=\"liste_titre\">";
|
|
||||||
print "<td colspan=\"2\">Résumé</td>";
|
|
||||||
print "</tr>\n";
|
|
||||||
$var = false;
|
|
||||||
$type_client_id = array(1,2);
|
|
||||||
$type_client[1]="Clients";
|
|
||||||
$type_client[2]="Prospects";
|
|
||||||
foreach ($type_client_id as $type) {
|
|
||||||
print "<tr $bc[$var]>";
|
|
||||||
print '<td>Nombre de '.$type_client[$type].'</td>';
|
|
||||||
print '<td align="right">'.round($nb[$type]).'</td>';
|
|
||||||
print '</tr>';
|
|
||||||
$var=!$var;
|
|
||||||
}
|
|
||||||
print "</table><br>\n";
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Recherche Propal
|
* Recherche Propal
|
||||||
@ -335,7 +292,8 @@ if ($conf->propal->enabled) {
|
|||||||
{
|
{
|
||||||
$num = $db->num_rows();
|
$num = $db->num_rows();
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
if ($num > 0)
|
||||||
|
{
|
||||||
print '<table class="noborder" cellspacing="0" cellpadding="3" width="100%">';
|
print '<table class="noborder" cellspacing="0" cellpadding="3" width="100%">';
|
||||||
print '<tr class="liste_titre"><td colspan="4">Les 5 dernières propositions commerciales ouvertes</td></tr>';
|
print '<tr class="liste_titre"><td colspan="4">Les 5 dernières propositions commerciales ouvertes</td></tr>';
|
||||||
$var=false;
|
$var=false;
|
||||||
@ -353,6 +311,7 @@ if ($conf->propal->enabled) {
|
|||||||
}
|
}
|
||||||
print "</table><br>";
|
print "</table><br>";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user