mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-03-20 23:42:14 +00:00
Add CDR column_overflow default setting (#7314)
* Add cdr column_overflow default setting * Update app_config.php * Update xml_cdr.php * Update default_setting_edit.php * Update template.php * Update app_languages.php * Update css.php
This commit is contained in:
@@ -413,6 +413,14 @@
|
||||
$apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
|
||||
$apps[$x]['default_settings'][$y]['default_setting_description'] = "Limit allowed range of addresses for CDR over HTTP POST.";
|
||||
$y++;
|
||||
$apps[$x]['default_settings'][$y]['default_setting_uuid'] = "4750feaf-70d0-4425-af37-036060ce7d37";
|
||||
$apps[$x]['default_settings'][$y]['default_setting_category'] = "cdr";
|
||||
$apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "column_overflow";
|
||||
$apps[$x]['default_settings'][$y]['default_setting_name'] = "text";
|
||||
$apps[$x]['default_settings'][$y]['default_setting_value'] = "hidden";
|
||||
$apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
|
||||
$apps[$x]['default_settings'][$y]['default_setting_description'] = "Hide overflowing columns or use horizontal scroll bar";
|
||||
$y++;
|
||||
$apps[$x]['default_settings'][$y]['default_setting_uuid'] = "7b9a5a95-a964-4fa1-b1b6-7641ca478405";
|
||||
$apps[$x]['default_settings'][$y]['default_setting_category'] = "cdr";
|
||||
$apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "summary_style";
|
||||
|
||||
@@ -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-2024
|
||||
Portions created by the Initial Developer are Copyright (C) 2008-2025
|
||||
the Initial Developer. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
@@ -658,6 +658,22 @@
|
||||
$param = substr($param, 1); //remove leading '&'
|
||||
$param = substr($param, 0, strrpos($param, '&order_by=')); //remove trailing order by
|
||||
|
||||
//column overflow setting
|
||||
echo "<style>\n";
|
||||
if ($settings->get('cdr', 'column_overflow', 'hidden') == 'scroll') {
|
||||
echo ".hide-sm-dn, .hide-md-dn, .hide-lg-dn {\n";
|
||||
echo " all: revert;\n";
|
||||
echo "}\n";
|
||||
echo ".list {\n";
|
||||
echo " overflow-x: scroll;\n";
|
||||
echo "}\n";
|
||||
} else {
|
||||
echo ".list {\n";
|
||||
echo " overflow-x: hidden;\n";
|
||||
echo "}\n";
|
||||
}
|
||||
echo "</style>\n";
|
||||
|
||||
//show the results
|
||||
echo "<form id='form_list' method='post'>\n";
|
||||
echo "<input type='hidden' id='action' name='action' value=''>\n";
|
||||
|
||||
Reference in New Issue
Block a user