db = $db;
$this->options = $options;
}
function createHeader($field_info) {
$header = "\n\n"
. "
\n"
. ""
. "Export Data\n"
. "\n"
. "\n\n\t";
$header .= "\n\t\n\t\n";
return $header;
}
function createFooter($field_info) {
return "
\n\n";
}
function createLine($row, $field_info) {
$x = count($row);
$res = "\t\t\n\t\t\t";
for($i=0; $i<$x; $i++) {
$res .= "
";
if ($row[$i] === NULL)
$res .= "NULL";
else if ($field_info[$i]->numeric == 1)
$res .= $row[$i];
else
$res .= htmlspecialchars($row[$i]);
$res .= "
";
}
$res .= "\n\t\t
\n";
return $res;
}
}
?>