#This will be a core component and thus just show within scire.
include('.lib/common.php');
$clients = array();
if ($_POST['group']) {
print $_POST['group'];
$clients = get_group_clients($_POST['group']);
} else {
print "ALL";
$clients = get_all_clients();
}
if ($_POST['ExportToCSV']) {
print "This is a fake CSV. It has no header row.
";
foreach ($clients as $client) {
for ($i=0;$i< count($client);$i++) {
print "$client[$i],";
}
print "
";
}
}
elseif ($_POST['ExportToXML']) {
}
elseif ($_POST['ExportToTXT']) {
print "This is a fake tab-delimited TXT. It has no header row.
"; foreach ($clients as $client) { for ($i=0;$i< count($client);$i++) { print "$client[$i]\t"; } print ""; } ?>
"; } print "