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

Source for file using_I18Nv2_DecoratedList.php

Documentation is available at using_I18Nv2_DecoratedList.php

  1. <?php
  2.  
  3. /**
  4. * Using I18Nv2_DecoratedList
  5. * ==========================
  6. *
  7. * I18Nv2 provides decorated classes for country and language lists.
  8. * $Id: using_I18Nv2_DecoratedList.php,v 1.1 2004/05/03 15:02:17 mike Exp $
  9. */
  10.  
  11. require_once 'I18Nv2/Country.php';
  12. require_once 'I18Nv2/DecoratedList/HtmlSelect.php';
  13. require_once 'I18Nv2/DecoratedList/HtmlEntities.php';
  14.  
  15. $c &new I18Nv2_Country('it''iso-8859-1');
  16.  
  17. // set some attributes
  18. $s->attributes['select']['name''CountrySelect';
  19. $s->attributes['select']['onchange''this.form.submit()';
  20.  
  21. // set a selected entry
  22. $s->selected['DE'= true;
  23.  
  24. // print a HTML safe select box
  25. echo $s->getAllCodes();
  26. ?>

Documentation generated on Mon, 11 Mar 2019 14:38:22 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.