ablgrid-ajax
Het grid start je op deze manier:
Code (php)
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
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
<?php
include("grid.class.php");
include("mysql.class.php");
$grid = new ablgrid;
$db = new db;
$grid->start($db, "host", "username", "wachtwoord", "database");
$grid->set_query("SELECT * FROM tabel");
$grid->set_table("tabel");
$grid->set_key("id");
$grid->set_limit(20);
$grid->enable_edit("TRUE");
include("ajax_functions.php");
include_once('agent.php');
?>
<html>
<head>
<?php
$agent->init();
?>
<title>ABL_GRID beta 1.0</title>
<script src='grid.js'>
</script>
<link rel='stylesheet' href='gridlayout.css' />
</head>
<body>
<?php
echo $grid->display();
?>
</body>
</html>
include("grid.class.php");
include("mysql.class.php");
$grid = new ablgrid;
$db = new db;
$grid->start($db, "host", "username", "wachtwoord", "database");
$grid->set_query("SELECT * FROM tabel");
$grid->set_table("tabel");
$grid->set_key("id");
$grid->set_limit(20);
$grid->enable_edit("TRUE");
include("ajax_functions.php");
include_once('agent.php');
?>
<html>
<head>
<?php
$agent->init();
?>
<title>ABL_GRID beta 1.0</title>
<script src='grid.js'>
</script>
<link rel='stylesheet' href='gridlayout.css' />
</head>
<body>
<?php
echo $grid->display();
?>
</body>
</html>