Boxes area output is now in a function.
Contracts boxes show status of each services (status of contracts is deprecated).
This commit is contained in:
parent
e1c01ac3c8
commit
3f4590e5b6
@ -80,18 +80,17 @@ class box_contracts extends ModeleBoxes {
|
||||
$sql.= " ORDER BY c.date_contrat DESC, c.ref DESC ";
|
||||
$sql.= $db->plimit($max, 0);
|
||||
|
||||
$result = $db->query($sql);
|
||||
|
||||
if ($result)
|
||||
$resql = $db->query($sql);
|
||||
if ($resql)
|
||||
{
|
||||
$num = $db->num_rows($result);
|
||||
$num = $db->num_rows($resql);
|
||||
$now=gmmktime();
|
||||
|
||||
$i = 0;
|
||||
|
||||
while ($i < $num)
|
||||
{
|
||||
$objp = $db->fetch_object($result);
|
||||
$objp = $db->fetch_object($resql);
|
||||
$datec=$db->jdate($objp->datec);
|
||||
$dateterm=$db->jdate($objp->fin_validite);
|
||||
$dateclose=$db->jdate($objp->date_cloture);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user