From 86fc2fc69c4cc157c1854abb29a356634bbaea34 Mon Sep 17 00:00:00 2001 From: chriskl Date: Thu, 21 Aug 2003 04:54:54 +0000 Subject: [PATCH] add encoding to html dump, and use crlf line endings --- tblexport.php | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/tblexport.php b/tblexport.php index d7729ec0..3431a6ae 100644 --- a/tblexport.php +++ b/tblexport.php @@ -3,7 +3,7 @@ /** * Does an export to the screen or as a download * - * $Id: tblexport.php,v 1.11 2003/08/21 04:49:36 chriskl Exp $ + * $Id: tblexport.php,v 1.12 2003/08/21 04:54:54 chriskl Exp $ */ $extensions = array( @@ -99,10 +99,13 @@ echo "\n"; } elseif ($_REQUEST['format'] == 'html') { - echo "\n"; - echo "\n"; - echo "\n"; - echo "\t\n\t\t"; + echo "\r\n"; + echo "\r\n"; + echo "\tcodemap[$dbEncoding]}\" />\r\n"; + echo "\r\n"; + echo "\r\n"; + echo "
\r\n"; + echo "\t\r\n\t\t"; if (!$rs->EOF) { // Output header row $j = 0; @@ -111,20 +114,20 @@ echo ""; } } - echo "\n\t\n"; + echo "\r\n\t\r\n"; while (!$rs->EOF) { - echo "\t\n\t\t"; + echo "\t\r\n\t\t"; foreach ($rs->f as $k => $v) { if ($k == $localData->id && !isset($_REQUEST['oids'])) continue; $finfo = $rs->fetchField($j++); echo ""; } - echo "\n\t\n"; + echo "\r\n\t\r\n"; $rs->moveNext(); } - echo "
", $misc->printVal($k, true), "
", $misc->printVal($v, true, $finfo->type), "
\n"; - echo "\n"; - echo "\n"; + echo "\r\n"; + echo "\r\n"; + echo "\r\n"; } elseif ($_REQUEST['format'] == 'sql') { $data->fieldClean($_REQUEST['table']); -- 2.39.5