From 5b37c7b0408c186ac1bd57485cb2f4d0fdb71e27 Mon Sep 17 00:00:00 2001 From: Nate Jones Date: Tue, 31 Mar 2015 03:16:20 +0000 Subject: [PATCH] CDR & Devices: Hide Show All buttons after showing all. --- app/devices/app_languages.php | 5 ----- app/devices/devices.php | 8 +++++--- app/xml_cdr/app_languages.php | 8 ++++---- app/xml_cdr/xml_cdr.php | 6 ++++-- app/xml_cdr/xml_cdr_statistics.php | 4 +++- 5 files changed, 16 insertions(+), 15 deletions(-) diff --git a/app/devices/app_languages.php b/app/devices/app_languages.php index 0637cbd332..f1eca2eb45 100644 --- a/app/devices/app_languages.php +++ b/app/devices/app_languages.php @@ -975,11 +975,6 @@ $text['button-show_all']['pt-pt'] = "Mostrar Todos"; $text['button-show_all']['fr-fr'] = "Montrer Tout"; - $text['label-domain-name']['en-us'] = "Domain Name"; - $text['label-domain-name']['es-cl'] = "Nombre de Dominio"; - $text['label-domain-name']['pt-pt'] = "Nome de Domínio"; - $text['label-domain-name']['fr-fr'] = "Nom de Domaine"; - $text['message-maximum_devices']['en-us'] = "Maximum Devices:"; $text['message-maximum_devices']['es-cl'] = "Dispositivos Máximo Permitido:"; $text['message-maximum_devices']['pt-pt'] = "Dispositivos Máximo Permitido:"; diff --git a/app/devices/devices.php b/app/devices/devices.php index 667acd96e4..3a1104c038 100644 --- a/app/devices/devices.php +++ b/app/devices/devices.php @@ -59,9 +59,11 @@ else { echo " \n"; echo "
\n"; if (permission_exists('device_all')) { - echo " \n"; if ($_GET['showall'] == 'true') { - echo " "; + echo " "; + } + else { + echo " \n"; } } if (permission_exists('device_profile_view')) { @@ -179,7 +181,7 @@ else { echo "\n"; echo "\n"; if ($_GET['showall'] && permission_exists('device_all')) { - echo th_order_by('domain_name', $text['label-domain-name'], $order_by, $order, $param); + echo th_order_by('domain_name', $text['label-domain'], $order_by, $order, $param); } echo th_order_by('device_mac_address', $text['label-device_mac_address'], $order_by, $order); echo th_order_by('device_label', $text['label-device_label'], $order_by, $order); diff --git a/app/xml_cdr/app_languages.php b/app/xml_cdr/app_languages.php index c6eda215b0..a283b7e0f3 100644 --- a/app/xml_cdr/app_languages.php +++ b/app/xml_cdr/app_languages.php @@ -613,8 +613,8 @@ $text['button-show_all']['pt-pt'] = "Mostrar Todos"; $text['button-show_all']['fr-fr'] = "Montrer Tout"; - $text['label-domain-name']['en-us'] = "Domain Name"; - $text['label-domain-name']['es-cl'] = "Nombre de Dominio"; - $text['label-domain-name']['pt-pt'] = "Nome de Domínio"; - $text['label-domain-name']['fr-fr'] = "Nom de Domaine"; + $text['label-domain']['en-us'] = "Domain"; + $text['label-domain']['es-cl'] = "Dominio"; + $text['label-domain']['pt-pt'] = "Domínio"; + $text['label-domain']['fr-fr'] = "Domaine"; ?> \ No newline at end of file diff --git a/app/xml_cdr/xml_cdr.php b/app/xml_cdr/xml_cdr.php index f9869e7cd6..948ae55781 100644 --- a/app/xml_cdr/xml_cdr.php +++ b/app/xml_cdr/xml_cdr.php @@ -113,7 +113,9 @@ else { echo " \n"; echo " \n"; if ($_GET['showall'] && permission_exists('xml_cdr_all')) { - echo th_order_by('domain_name', $text['label-domain-name'], $order_by, $order, null, null, $param); + echo th_order_by('domain_name', $text['label-domain'], $order_by, $order, null, null, $param); } echo th_order_by('caller_id_name', $text['label-cid-name'], $order_by, $order, null, null, $param); echo th_order_by('caller_id_number', $text['label-source'], $order_by, $order, null, null, $param); diff --git a/app/xml_cdr/xml_cdr_statistics.php b/app/xml_cdr/xml_cdr_statistics.php index cd2f9ad1e4..c274f921ab 100644 --- a/app/xml_cdr/xml_cdr_statistics.php +++ b/app/xml_cdr/xml_cdr_statistics.php @@ -48,7 +48,9 @@ else { echo " \n"; echo "
\n"; if (permission_exists('xml_cdr_all')) { - echo " \n"; + if ($_GET['showall'] != 'true') { + echo " \n"; + } } if (permission_exists('xml_cdr_search_advanced')) { echo " \n"; @@ -317,7 +319,7 @@ else { } echo " ".$text['label-call-statistics']."\n"; if (permission_exists('xml_cdr_all')) { - echo " \n"; + if ($_GET['showall'] != 'true') { + echo "\n"; + } } echo " \n"; echo " \n";