$row["id_vue"], "date_consolidation" => $row["date_consolidation"], "nom_vue" => $row["nom_vue"], "comment" => $row["comment"], ); } return $result; } else { return array(); } } function getView($id_view) { global $dbh; global $msg; $result = array(); $id_view += 0; if (!$id_view) throw new Exception("Missing parameter: id_view"); if (SESSrights & ADMINISTRATION_AUTH) { $requete = "SELECT id_vue, date_consolidation, nom_vue, comment FROM statopac_vues where id_vue=".$id_view; $res = mysql_query($requete, $dbh); while ($row = mysql_fetch_assoc($res)) { $result[] = array( "id_vue" => $row["id_vue"], "date_consolidation" => $row["date_consolidation"], "nom_vue" => $row["nom_vue"], "comment" => $row["comment"], ); } return $result; } else { return array(); } } function getStatopacView($id_view) { global $dbh; if (SESSrights & ADMINISTRATION_AUTH) { $result = array(); $query = "select * from statopac_vue_".$id_view; $res = mysql_query($query, $dbh); if ($res) { while ($row = mysql_fetch_assoc($res)) { $result[] = $row; } } return $result; } else { return array(); } } function makeConsolidation($conso,$date_deb,$date_fin,$date_ech, $list_ck) { if (SESSrights & ADMINISTRATION_AUTH) { $consolidation = new consolidation($conso,$date_deb,$date_fin,$date_ech, $list_ck); $consolidation->make_consolidation(); } return ""; } } ?>