Conditions | 4 |
Paths | 4 |
Total Lines | 23 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
31 | private function buildOptions() |
||
32 | { |
||
33 | $sql = "SELECT"; |
||
34 | $sql .= " t.rowid,"; |
||
35 | $sql .= " t.immat,"; |
||
36 | $sql .= " t.is_disable"; |
||
37 | $sql .= " FROM llx_bbc_ballons as t"; |
||
38 | $sql .= " WHERE t.is_disable = 0"; |
||
39 | $sql .= " ORDER BY t.immat"; |
||
40 | |||
41 | $resql = $this->db->query($sql); |
||
42 | if ($resql) { |
||
43 | $num = $this->db->num_rows($resql); |
||
44 | $i = 0; |
||
45 | if ($num) { |
||
46 | while ($i < $num) { |
||
47 | $obj = $this->db->fetch_object($resql); |
||
48 | $this->addValueOption($obj->rowid, $obj->immat); |
||
49 | $i++; |
||
50 | } |
||
51 | } |
||
52 | } |
||
53 | } |
||
54 | } |