mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 19:53:56 +00:00
Update xml_cdr.php
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
The Initial Developer of the Original Code is
|
The Initial Developer of the Original Code is
|
||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
Portions created by the Initial Developer are Copyright (C) 2008-2019
|
Portions created by the Initial Developer are Copyright (C) 2008-2020
|
||||||
the Initial Developer. All Rights Reserved.
|
the Initial Developer. All Rights Reserved.
|
||||||
|
|
||||||
Contributor(s):
|
Contributor(s):
|
||||||
@@ -137,6 +137,9 @@
|
|||||||
echo " <input type='hidden' name='network_addr' value='".escape($network_addr)."'>\n";
|
echo " <input type='hidden' name='network_addr' value='".escape($network_addr)."'>\n";
|
||||||
echo " <input type='hidden' name='bridge_uuid' value='".escape($bridge_uuid)."'>\n";
|
echo " <input type='hidden' name='bridge_uuid' value='".escape($bridge_uuid)."'>\n";
|
||||||
echo " <input type='hidden' name='leg' value='".escape($leg)."'>\n";
|
echo " <input type='hidden' name='leg' value='".escape($leg)."'>\n";
|
||||||
|
if (permission_exists('xml_cdr_all') && $_REQUEST['show'] == 'all') {
|
||||||
|
echo "<input type='hidden' name='show' value='all'>\n";
|
||||||
|
}
|
||||||
if (is_array($_SESSION['cdr']['field'])) {
|
if (is_array($_SESSION['cdr']['field'])) {
|
||||||
foreach ($_SESSION['cdr']['field'] as $field) {
|
foreach ($_SESSION['cdr']['field'] as $field) {
|
||||||
$array = explode(",", $field);
|
$array = explode(",", $field);
|
||||||
@@ -154,7 +157,7 @@
|
|||||||
echo button::create(['type'=>'button','label'=>$text['button-delete'],'icon'=>$_SESSION['theme']['button_icon_delete'],'onclick'=>"if (confirm('".$text['confirm-delete']."')) { list_action_set('delete'); list_form_submit('form_list'); } else { this.blur(); return false; }"]);
|
echo button::create(['type'=>'button','label'=>$text['button-delete'],'icon'=>$_SESSION['theme']['button_icon_delete'],'onclick'=>"if (confirm('".$text['confirm-delete']."')) { list_action_set('delete'); list_form_submit('form_list'); } else { this.blur(); return false; }"]);
|
||||||
}
|
}
|
||||||
if (permission_exists('xml_cdr_all')) {
|
if (permission_exists('xml_cdr_all')) {
|
||||||
if (!$_REQUEST['show'] == 'all') {
|
if ($_REQUEST['show'] !== 'all') {
|
||||||
echo button::create(['type'=>'button','label'=>$text['button-show_all'],'icon'=>$_SESSION['theme']['button_icon_all'],'link'=>'?show=all']);
|
echo button::create(['type'=>'button','label'=>$text['button-show_all'],'icon'=>$_SESSION['theme']['button_icon_all'],'link'=>'?show=all']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user