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

Source for file fill-sortform.php

Documentation is available at fill-sortform.php

  1. <?php
  2. require_once 'HTML/QuickForm.php';
  3.  
  4. // Create an empty form with your settings
  5. $form = new HTML_QuickForm('myForm''POST');
  6.  
  7. // Customize it, add a header, text field, etc..
  8. $form->addElement('header'null'Search & Sort Form Example');
  9. $form->addElement('text''my_search''Search for:');
  10.  
  11. // Let the datagrid add sort fields, radio style
  12. $options = array('directionStyle' => 'radio');
  13. $datagrid->fill($form$options'HTMLSortForm');
  14.  
  15. // You must add a submit button. fill() never does this
  16. $form->addElement('submit'null'Submit');
  17.  
  18. // Use the native HTML_QuickForm::display() to print your form
  19. $form->display();
  20.  
  21. ?>

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