Xataface  2.0alpha2
Xataface Application Framework
 All Data Structures Namespaces Files Functions Variables Groups Pages
load_grid.php
Go to the documentation of this file.
1 <?php
3  function handle(&$params){
4  import('Dataface/dhtmlxGrid/activegrid.php');
6  $grid =& Dataface_dhtmlxGrid_activegrid::getGrid($_REQUEST['-gridid']);
7  if ( stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml+xml") ) {
8  header("Content-type: application/xhtml+xml"); } else {
9  header("Content-type: text/xml");
10  }
11  echo("<?xml version=\"1.0\" encoding=\"{$app->_conf['oe']}\"?>\n");
12  echo $grid->toXML();
13  exit;
14  }
15 }
16 
17 ?>