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. * 
  9. * $Id: using_I18Nv2_DecoratedList.php,v 1.1 2004/05/03 15:02:17 mike Exp $
  10. */
  11.  
  12. require_once 'I18Nv2/Country.php';
  13. require_once 'I18Nv2/DecoratedList/HtmlSelect.php';
  14. require_once 'I18Nv2/DecoratedList/HtmlEntities.php';
  15.  
  16. $c = &new I18Nv2_Country('it', 'iso-8859-1');
  17.  
  18. // set some attributes
  19. $s->attributes['select']['name'] = 'CountrySelect';
  20. $s->attributes['select']['onchange'] = 'this.form.submit()';
  21.  
  22. // set a selected entry
  23. $s->selected['DE'] = true;
  24.  
  25. // print a HTML safe select box
  26. echo $s->getAllCodes();
  27. ?>

Documentation generated on Mon, 11 Mar 2019 13:56:39 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.