blob: 622f7380966127d8b561631518734ed903ec611a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
<?
#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.<br>";
foreach ($clients as $client) {
for ($i=0;$i< count($client);$i++) {
print "$client[$i],";
}
print "<br>";
}
}
elseif ($_POST['ExportToXML']) {
}
elseif ($_POST['ExportToTXT']) {
print "This is a fake tab-delimited TXT. It has no header row.<br><pre>";
foreach ($clients as $client) {
for ($i=0;$i< count($client);$i++) {
print "$client[$i]\t";
}
print "<br>";
}
print "</pre>";
}
?>
|