46 |
Function Graph($datas='', $labels='') |
Function Graph($datas='', $labels='') |
47 |
{ |
{ |
48 |
$this->GetDatas(); |
$this->GetDatas(); |
49 |
|
$this->width = 360; |
50 |
if (sizeof($this->datas)) |
if (sizeof($this->datas)) |
51 |
{ |
{ |
52 |
$this->GraphDraw($this->file, $this->datas, $this->labels); |
$this->GraphDraw($this->file, $this->datas, $this->labels); |
88 |
$sql .= " GROUP BY date_format(td.date,'%Y%m') ASC "; |
$sql .= " GROUP BY date_format(td.date,'%Y%m') ASC "; |
89 |
} |
} |
90 |
|
|
|
|
|
91 |
if ($this->db->query($sql)) |
if ($this->db->query($sql)) |
92 |
{ |
{ |
93 |
$num = $this->db->num_rows(); |
$num = $this->db->num_rows(); |