![]() |
Xataface 2.0
Xataface Application Framework
|
00001 <?php 00002 class dataface_actions_load_grid { 00003 function handle(&$params){ 00004 import('Dataface/dhtmlxGrid/activegrid.php'); 00005 $app =& Dataface_Application::getInstance(); 00006 $grid =& Dataface_dhtmlxGrid_activegrid::getGrid($_REQUEST['-gridid']); 00007 if ( stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml+xml") ) { 00008 header("Content-type: application/xhtml+xml"); } else { 00009 header("Content-type: text/xml"); 00010 } 00011 echo("<?xml version=\"1.0\" encoding=\"{$app->_conf['oe']}\"?>\n"); 00012 echo $grid->toXML(); 00013 exit; 00014 } 00015 } 00016 00017 ?>