forked from indowebit/Ext-PHP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
icon.php
44 lines (39 loc) · 956 Bytes
/
icon.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
40
41
42
43
44
<?php
include_once("config_sistem.php");
include_once("class/class.msDB.php");
include_once("class/class.grid.php");
$grid = new grid(true);
$task = $_REQUEST['task'];
switch($task) {
case 'getIcon':
$grid->setTable("iconcls");
$grid->addField(
array(
"field"=>"id",
"name"=>"id"
));
$grid->addField(
array(
"field"=>"title",
"name"=>"title"
));
$grid->addField(
array(
"field"=>"clsname",
"name"=>"clsname"
));
$grid->addField(
array(
"field"=>"icon",
"name"=>"icon"
));
$result = $grid->doRead($_REQUEST);
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . 'GMT');
header('Cache-Control: no-cache, must-revalidate');
header('Pragma: no-cache');
header('Content-Type: application/json');
echo $result;
break;
}
?>