Bugfix
This commit is contained in:
parent
206470bf8b
commit
104d8becb9
@ -32,7 +32,7 @@ class GraphLignesActives extends GraphLine {
|
|||||||
$this->file = $file;
|
$this->file = $file;
|
||||||
|
|
||||||
$this->client = 0;
|
$this->client = 0;
|
||||||
$this->titre = "Lignes Actives";
|
$this->titre = "Lignes en présélections";
|
||||||
|
|
||||||
$this->barcolor = "green";
|
$this->barcolor = "green";
|
||||||
$this->showframe = true;
|
$this->showframe = true;
|
||||||
@ -48,10 +48,10 @@ class GraphLignesActives extends GraphLine {
|
|||||||
$sql .= " WHERE statut = 3";
|
$sql .= " WHERE statut = 3";
|
||||||
$sql .= " ORDER BY dates ASC";
|
$sql .= " ORDER BY dates ASC";
|
||||||
|
|
||||||
$result = $this->db->query($sql);
|
$resql = $this->db->query($sql);
|
||||||
if ($result)
|
if ($resql)
|
||||||
{
|
{
|
||||||
$num = $this->db->num_rows();
|
$num = $this->db->num_rows($resql);
|
||||||
$i = 0;
|
$i = 0;
|
||||||
$j = -1;
|
$j = -1;
|
||||||
$attente = array();
|
$attente = array();
|
||||||
@ -62,18 +62,15 @@ class GraphLignesActives extends GraphLine {
|
|||||||
|
|
||||||
while ($i < $num)
|
while ($i < $num)
|
||||||
{
|
{
|
||||||
$row = $this->db->fetch_row($i);
|
$row = $this->db->fetch_row($resql);
|
||||||
|
|
||||||
if ($last <> $row[0])
|
$j++;
|
||||||
{
|
$labels[$j] = substr($row[0],5,2)."/".substr($row[0],2,2);
|
||||||
$j++;
|
$attente[$j] = 0;
|
||||||
$labels[$j] = substr($row[0],5,2)."/".substr($row[0],2,2);
|
$acommander[$j] = 0;
|
||||||
$attente[$j] = 0;
|
$commandee[$j] = 0;
|
||||||
$acommander[$j] = 0;
|
$active[$j] = 0;
|
||||||
$commandee[$j] = 0;
|
$last = substr($row[0],5,2)."/".substr($row[0],2,2);
|
||||||
$active[$j] = 0;
|
|
||||||
$last = $row[0];
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($row[1] == 3)
|
if ($row[1] == 3)
|
||||||
{
|
{
|
||||||
@ -100,9 +97,6 @@ class GraphLignesActives extends GraphLine {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->GraphDraw($this->file, $active, $labels);
|
$this->GraphDraw($this->file, $active, $labels);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user