From 7539244e49c36c398ca100c3a07abd8f37963a90 Mon Sep 17 00:00:00 2001 From: markjcrane Date: Tue, 23 Feb 2016 17:53:21 -0700 Subject: [PATCH] Additional work to get the CDR to allow the show all to work with the regular search and advanced search. --- app/xml_cdr/xml_cdr.php | 12 +++++++--- app/xml_cdr/xml_cdr_search.php | 40 ++++++++++++++++++++-------------- 2 files changed, 33 insertions(+), 19 deletions(-) diff --git a/app/xml_cdr/xml_cdr.php b/app/xml_cdr/xml_cdr.php index 816ed04e6b..506d1e852a 100644 --- a/app/xml_cdr/xml_cdr.php +++ b/app/xml_cdr/xml_cdr.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - 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 " \n"; echo " \n"; if (permission_exists('xml_cdr_all')) { - if ($_REQUEST['showall'] != 'true') { + if ($_REQUEST['showall'] == 'true') { + echo " \n"; + } + else { echo " \n"; } } if (permission_exists('xml_cdr_search_advanced')) { - echo " \n"; + if ($_REQUEST['showall'] == 'true') { + $query_string = "showall=true"; + } + echo " \n"; } if ($_GET['missed'] != 'true') { echo " \n"; diff --git a/app/xml_cdr/xml_cdr_search.php b/app/xml_cdr/xml_cdr_search.php index 7a85e3900b..8b79a0251d 100644 --- a/app/xml_cdr/xml_cdr_search.php +++ b/app/xml_cdr/xml_cdr_search.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Copyright (C) 2008-2012 + Copyright (C) 2008-2016 All Rights Reserved. Contributor(s): @@ -34,11 +34,11 @@ else { exit; } - //add multi-lingual support $language = new text; $text = $language->get(); +//send the header require_once "resources/header.php"; //javascript to toggle input/select boxes @@ -54,6 +54,7 @@ echo " }"; echo " }"; echo ""; +//start the html form if (strlen(check_str($_GET['redirect'])) > 0) { echo "
\n"; } else { @@ -216,20 +217,27 @@ echo " "; echo " ".$text['label-mos_score'].""; echo " "; echo " \n"; -echo " "; -echo " "; -echo " "; -echo "
"; -echo " "; -echo ""; +echo " \n"; +echo " "; +echo " \n"; + +echo " \n"; +echo "
\n"; +if (permission_exists('xml_cdr_all') && $_REQUEST['showall'] == "true") { + echo " \n"; +} +echo " \n"; +echo " \n"; +echo " \n"; +echo "\n"; echo " "; echo " "; @@ -240,4 +248,4 @@ echo "
"; require_once "resources/footer.php"; -?> +?> \ No newline at end of file