Structures_DataGrid
[ class tree: Structures_DataGrid ] [ index: Structures_DataGrid ] [ all elements ]

Source for file xul.php

Documentation is available at xul.php

  1. <?php 
  2. require_once 'Structures/DataGrid.php';    
  3.  
  4. $datagrid =new Structures_DataGrid(10);
  5. $options = array('dsn' => 'mysql://username@localhost/mydatabase');
  6. $datagrid->bind("SELECT * FROM mytable"$options);
  7.  
  8. header('Content-type: application/vnd.mozilla.xul+xml')
  9.  
  10. echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n";
  11. echo "<?xml-stylesheet href=\"myStyle.css\" type=\"text/css\"?>\n";
  12.  
  13. echo "<window title=\"MyDataGrid\" 
  14.        xmlns=\"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul\">\n";
  15.        
  16. $datagrid->render('XUL');
  17.  
  18. echo "</window>\n";
  19. ?>

Documentation generated on Mon, 11 Mar 2019 15:47:20 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.