mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Update xml_cdr_extension_summary.php
Add a download csv button to the Extension Summary.
This commit is contained in:
@@ -108,6 +108,14 @@
|
|||||||
echo " <b>".$text['title-extension_summary']."</b><br><br>\n";
|
echo " <b>".$text['title-extension_summary']."</b><br><br>\n";
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " <td align='right' width='100%' style='vertical-align: top;'>";
|
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') {
|
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";
|
echo " <input type='button' class='btn' value='".$text['button-show_all']."' onclick=\"window.location='xml_cdr_extension_summary.php?showall=true';\">\n";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user