1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
| <!DOCTYPE html>
<html>
<head>
<title></title>
<link href="styles/kendo.common.min.css" rel="stylesheet" /><link href="styles/kendo.default.min.css" rel="stylesheet" />
<script src="js/jquery.min.js"></script>
<script src="js/kendo.all.min.js"></script>
</head>
<body>
<?php include("menu.php"); ?>
<?php include("connexionbdd.php"); // query for the definition, type of this problem
?>
<?php
$sql_pb="SELECT * from problem where id_Pb=1";
$res_pb=mysql_query($sql_pb);
$rows_pb=mysql_fetch_assoc($res_pb);
?></br></br></br></br>Definition:<?php echo $rows_pb['def_Pb'];
$var=$rows_pb['id_Pb_Type']
?> </br></br>
<script src="people.js"></script>
<div id="example" class="k-content">
<div id="clientsDb">
<div id="grid" style="height:580px"></div>
</div>
<style scoped>
<?php //tableau: placement ?>
#clientsDb {
width:1200px;
margin-left:5px;
padding:0px 40px 0px 0px;
}
</style>
<div id="grid"></div>
<div id="grid"></div>
<?php
$sql_inc="SELECT date_Inc AS date , name_Inc AS name, desc_Inc AS description , id_Loc AS id
FROM incident
WHERE id_Pb = 1
ORDER BY date_Inc DESC";
$res_inc=mysql_query($sql_inc);
$data_row = array();
while($rows_inc=mysql_fetch_assoc($res_inc)){
$data_row[] = $rows_inc;
}$data_set = json_encode($data_row);
?>
<script>
var dataSource = new kendo.data.DataSource({
data: <?php echo $data_set; ?>
});
$("#grid").kendoGrid({
columns: [
{width:150, field: "date" },
{ width:300,field: "name" },
{ width:500,field: "description" },
{ width:200,field: "location" }
],
dataSource: dataSource,
groupable: true,
sortable: true,
pageable: {
refresh: true,
pageSizes: true
},
});
var grid = $("#grid").data("kendoGrid");
grid.setDataSource(dataSource);
</script>
</div>
</body>
</html> |
Partager