csvpage.class.inc.php 873 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. require_once("../application/webpage.class.inc.php");
  3. /**
  4. * Simple web page with no includes or fancy formatting, useful to generateXML documents
  5. * The page adds the content-type text/XML and the encoding into the headers
  6. */
  7. class CSVPage extends web_page
  8. {
  9. function __construct($s_title)
  10. {
  11. parent::__construct($s_title);
  12. $this->add_header("Content-type: text/html; charset=iso-8859-1");
  13. $this->add_header("Cache-control: no-cache");
  14. }
  15. public function output()
  16. {
  17. $this->add_header("Content-Length: ".strlen(trim($this->s_content)));
  18. foreach($this->a_headers as $s_header)
  19. {
  20. header($s_header);
  21. }
  22. echo trim($this->s_content);
  23. }
  24. public function small_p($sText)
  25. {
  26. }
  27. public function table($aConfig, $aData, $aParams = array())
  28. {
  29. }
  30. }
  31. ?>