--- astcc-admin-orig.cgi 2005-03-15 09:04:46.409327778 +0800
+++ astcc-admin.cgi 2005-03-15 09:30:06.408736508 +0800
@@ -451,7 +451,8 @@
$body .= "
";
$body .= "" . $status . "
\n";
if ($cardinfo->{'number'}) {
- $body .= "Caller*ID | Called Number | Trunk | Disposition | Billable Seconds | Billed Cost |
\n";
+ $body .= "Start Time | Caller*ID | Called Number | Trunk | Disposition | Billable Seconds | Billed Cost |
\n";
+# my $sth = $dbh->prepare("SELECT * FROM cdrs WHERE cardnum=" . $dbh->quote($cardinfo->{'number'}) . " ORDER BY callstart");
my $sth = $dbh->prepare("SELECT * FROM cdrs WHERE cardnum=" . $dbh->quote($cardinfo->{'number'}));
my $res;
my $count;
@@ -466,7 +467,7 @@
} else {
$color = "#ffffcc";
}
- $body .= "$callerid | $res->{callednum} | $res->{trunk} | " .
+ $body .= "
$res->{callstart} | $callerid | $res->{callednum} | $res->{trunk} | " .
"$res->{disposition} | $res->{billseconds} | $res->{billcost} |
";
}
}
@@ -1360,7 +1361,7 @@
$msg = "Database unavailable -- please check configuration" unless $dbh;
print "Asterisk™ Calling Card manager: $mode\n";
- print "\n";
+ print "\n";
print " ![](\"/_astcc/astcc.png\") | Asterisk™ Calling Card Admin: $mode" .
" $msg |
";
print " $menu | $body |
";