Additional work to get the CDR to allow the show all to work with the regular search and advanced search.

This commit is contained in:
markjcrane
2016-02-23 17:53:21 -07:00
parent 6108009850
commit 7539244e49
2 changed files with 33 additions and 19 deletions
+9 -3
View File
@@ -17,7 +17,7 @@
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2008-2014
Portions created by the Initial Developer are Copyright (C) 2008-2016
the Initial Developer. All Rights Reserved.
Contributor(s):
@@ -113,12 +113,18 @@ else {
echo " <tr>\n";
echo " <td style='vertical-align: top;'>\n";
if (permission_exists('xml_cdr_all')) {
if ($_REQUEST['showall'] != 'true') {
if ($_REQUEST['showall'] == 'true') {
echo " <input type='hidden' name='showall' value='true'>\n";
}
else {
echo " <input type='button' class='btn' value='".$text['button-show_all']."' onclick=\"window.location='xml_cdr.php?showall=true';\">\n";
}
}
if (permission_exists('xml_cdr_search_advanced')) {
echo " <input type='button' class='btn' value='".$text['button-advanced_search']."' onclick=\"window.location='xml_cdr_search.php';\">\n";
if ($_REQUEST['showall'] == 'true') {
$query_string = "showall=true";
}
echo " <input type='button' class='btn' value='".$text['button-advanced_search']."' onclick=\"window.location='xml_cdr_search.php?$query_string';\">\n";
}
if ($_GET['missed'] != 'true') {
echo " <input type='button' class='btn' value='".$text['button-missed']."' onclick=\"document.location.href='xml_cdr.php?missed=true';\">\n";