Update xml_cdr_extension_summary.php

Add a download csv button to the Extension Summary.
This commit is contained in:
FusionPBX
2016-08-23 03:05:56 -06:00
committed by GitHub
parent 2d53130a4a
commit 4d35df9c3d

View File

@@ -108,6 +108,14 @@
echo " <b>".$text['title-extension_summary']."</b><br><br>\n";
echo " </td>\n";
echo " <td align='right' width='100%' style='vertical-align: top;'>";
echo " <input type='button' class='btn' value='".$text['button-download_csv']."' ";
echo "onclick=\"window.location='xml_cdr_extension_summary.php?";
if (strlen($_SERVER["QUERY_STRING"]) > 0) {
echo $_SERVER["QUERY_STRING"]."&csv=true';\">\n";
} else {
echo "csv=true';\">\n";
}
if (permission_exists('xml_cdr_all') && $_GET['showall'] != 'true') {
echo " <input type='button' class='btn' value='".$text['button-show_all']."' onclick=\"window.location='xml_cdr_extension_summary.php?showall=true';\">\n";
}