mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Extension Summary: List domain on Show All, change Quick Select 'Default' label to 'Last 7 Days', update Description column style to be consistent.
This commit is contained in:
@@ -160,6 +160,14 @@ $text['option-last_hour']['pt-br'] = "Próxima hora";
|
||||
$text['option-last_hour']['pl'] = "W ostatniej godzinie";
|
||||
$text['option-last_hour']['sv-se'] = "Senaste Timman";
|
||||
|
||||
$text['option-last_seven_days']['en-us'] = "Last 7 Days";
|
||||
$text['option-last_seven_days']['es-cl'] = "Últimos 7 días";
|
||||
$text['option-last_seven_days']['pt-pt'] = "Nos últimos 7 Dias";
|
||||
$text['option-last_seven_days']['fr-fr'] = "Les 7 Derniers Jours";
|
||||
$text['option-last_seven_days']['pt-br'] = "Nos últimos 7 Dias";
|
||||
$text['option-last_seven_days']['pl'] = "Ostatnie 7 Dni";
|
||||
$text['option-last_seven_days']['sv-se'] = "Senaste 7 Dagarna";
|
||||
|
||||
$text['option-false']['en-us'] = "False";
|
||||
$text['option-false']['es-cl'] = "Falso";
|
||||
$text['option-false']['pt-pt'] = "Não";
|
||||
@@ -798,15 +806,7 @@ $text['description_search']['pt-br'] = "Atenção: origem, destino e identifica
|
||||
$text['description_search']['pl'] = "Uwaga: Następujące pola: numer dzwoniącego i odbiorcy rozmowy, prezentacja numeru oraz nazwy wspierają gwiazdkę (‘*’) jako symbol wieloznaczny.";
|
||||
$text['description_search']['sv-se'] = "Notera : Källa, Destination och Nummerpresentation ( CID ) Namn fält stödjer användningen av en asterisk ( ' * ' ) som jokertecken.";
|
||||
|
||||
$text['description-extension_summary']['en-us'] = "Default View: Last 7 Days";
|
||||
$text['description-extension_summary']['es-cl'] = "Vista predeterminada: Últimos 7 días";
|
||||
$text['description-extension_summary']['pt-pt'] = "Exibição padrão: nos últimos 7 dias";
|
||||
$text['description-extension_summary']['fr-fr'] = "Vue par défaut: Les 7 derniers jours";
|
||||
$text['description-extension_summary']['pt-br'] = "Exibição padrão: Nos últimos 7 dias";
|
||||
$text['description-extension_summary']['pl'] = "Widok domyślny. Ostatnie 7 dni";
|
||||
$text['description-extension_summary']['sv-se'] = "Standard Vy: Senaste 7 Dagarna";
|
||||
|
||||
$text['description-7']['en-us'] = "call variables, call flow, timing information, and other useful call details.";
|
||||
$text['description-7']['en-us'] = "Call variables, call flow, timing information, and other useful call details.";
|
||||
$text['description-7']['es-cl'] = "variables de llamada, flujo, información temporal y otros detalles útiles.";
|
||||
$text['description-7']['pt-pt'] = "variáveis de chamada, fluxo da chamada, informações de tempo e outras informações úteis.";
|
||||
$text['description-7']['fr-fr'] = "les variables de l'appel, le chemin, les compteurs et d'autres détails.";
|
||||
|
||||
@@ -53,6 +53,7 @@ require_once "resources/require.php";
|
||||
|
||||
//get current extension info
|
||||
$sql = "select ";
|
||||
$sql .= "domain_uuid, ";
|
||||
$sql .= "extension_uuid, ";
|
||||
$sql .= "extension, ";
|
||||
$sql .= "number_alias, ";
|
||||
@@ -89,6 +90,7 @@ require_once "resources/require.php";
|
||||
$result_count = count($result);
|
||||
if ($result_count > 0) {
|
||||
foreach($result as $row) {
|
||||
$extensions[$row['extension']]['domain_uuid'] = $row['domain_uuid'];
|
||||
$extensions[$row['extension']]['extension'] = $row['extension'];
|
||||
$extensions[$row['extension']]['extension_uuid'] = $row['extension_uuid'];
|
||||
$extensions[$row['extension']]['number_alias'] = $row['number_alias'];
|
||||
@@ -187,7 +189,6 @@ require_once "resources/require.php";
|
||||
echo " <tr>\n";
|
||||
echo " <td align='left' width='50%' nowrap='nowrap' style='vertical-align: top;'>\n";
|
||||
echo " <b>".$text['title-extension_summary']."</b><br><br>\n";
|
||||
echo " ".$text['description-extension_summary']."<br>\n";
|
||||
echo " </td>\n";
|
||||
echo " <td align='right' width='100%' style='vertical-align: top;'>";
|
||||
if (permission_exists('xml_cdr_all') && $_GET['showall'] != 'true') {
|
||||
@@ -256,7 +257,7 @@ require_once "resources/require.php";
|
||||
echo " </td>\n";
|
||||
echo " <td class='vtable' width='70%' align='left' style='white-space: nowrap;'>\n";
|
||||
echo " <select class='formfld' name='quick_select' id='quick_select'>\n";
|
||||
echo " <option value='0'>".$text['option-default']."</option>\n";
|
||||
echo " <option value='0'>".$text['option-last_seven_days']."</option>\n";
|
||||
echo " <option value='1' ".(($quick_select == 1) ? "selected" : null).">".$text['option-last_hour']."</option>\n";
|
||||
echo " <option value='2' ".(($quick_select == 2) ? "selected" : null).">".$text['option-today']."</option>\n";
|
||||
echo " <option value='3' ".(($quick_select == 3) ? "selected" : null).">".$text['option-yesterday']."</option>\n";
|
||||
@@ -283,6 +284,9 @@ require_once "resources/require.php";
|
||||
//show the results
|
||||
echo "<table xclass='tr_hover' width='100%' cellpadding='0' cellspacing='0' border='0'>\n";
|
||||
echo " <tr>\n";
|
||||
if ($_GET['showall'] && permission_exists('xml_cdr_all')) {
|
||||
echo " <th>".$text['label-domain']."</th>\n";
|
||||
}
|
||||
echo " <th>".$text['label-extension']."</th>\n";
|
||||
echo " <th>".$text['label-number_alias']."</th>\n";
|
||||
echo " <th>".$text['label-missed']."</th>\n";
|
||||
@@ -293,7 +297,7 @@ require_once "resources/require.php";
|
||||
echo " <th style='text-align: right;'>".$text['label-inbound_duration']."</th>\n";
|
||||
echo " <th style='text-align: right;'>".$text['label-outbound_calls']."</th>\n";
|
||||
echo " <th style='text-align: right;'>".$text['label-outbound_duration']."</th>\n";
|
||||
echo " <th style='text-align: right;'>".$text['label-description']."</th>\n";
|
||||
echo " <th style='text-align: left;'>".$text['label-description']."</th>\n";
|
||||
echo " </tr>\n";
|
||||
|
||||
$c = 0;
|
||||
@@ -323,6 +327,9 @@ require_once "resources/require.php";
|
||||
|
||||
$tr_link = "xhref='xml_cdr.php?'";
|
||||
echo "<tr ".$tr_link.">\n";
|
||||
if ($_GET['showall'] && permission_exists('xml_cdr_all')) {
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$_SESSION['domains'][$ext['domain_uuid']]['domain_name']."</td>\n";
|
||||
}
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$extension."</td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$ext['number_alias']." </td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$summary[$extension]['missed']." </td>\n";
|
||||
@@ -333,7 +340,7 @@ require_once "resources/require.php";
|
||||
echo " <td valign='top' class='".$row_style[$c]."' style='text-align: right;'>".(($seconds['inbound'] != '') ? gmdate("G:i:s", $seconds['inbound']) : '0:00:00')."</td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."' style='text-align: right;'> ".(($summary[$extension]['outbound']['count'] != '') ? $summary[$extension]['outbound']['count'] : "0")."</td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."' style='text-align: right;'>".(($seconds['outbound'] != '') ? gmdate("G:i:s", $seconds['outbound']) : '0:00:00')."</td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$ext['description']." </td>\n";
|
||||
echo " <td valign='top' class='row_stylebg'>".$ext['description']." </td>\n";
|
||||
echo "</tr>\n";
|
||||
$c = ($c==0) ? 1 : 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user