Add optional new optional columns destination_trunk_prefix and destination_area_code.

This commit is contained in:
FusionPBX
2020-08-26 22:05:11 -06:00
committed by GitHub
parent 0218f3be0c
commit d1981a77cc

View File

@@ -226,6 +226,12 @@
}
echo th_order_by('destination_type', $text['label-destination_type'], $order_by, $order, $param, "class='shrink'");
echo th_order_by('destination_prefix', $text['label-destination_prefix'], $order_by, $order, $param, "class='shrink'");
if (permission_exists('destination_trunk_prefix')) {
echo th_order_by('destination_trunk_prefix', '', $order_by, $order, $param, "class='shrink'");
}
if (permission_exists('destination_area_code')) {
echo th_order_by('destination_area_code', '', $order_by, $order, $param, "class='shrink'");
}
echo th_order_by('destination_number', $text['label-destination_number'], $order_by, $order, $param, "class='shrink'");
if (!$_GET['show'] == "all") {
echo "<th>". $text['label-detail_action']."</th>";
@@ -267,7 +273,14 @@
echo " <td>".escape($domain)."</td>\n";
}
echo " <td>".escape($row['destination_type'])."&nbsp;</td>\n";
echo " <td>".escape($row['destination_prefix'])."&nbsp;</td>\n";
if (permission_exists('destination_trunk_prefix')) {
echo " <td>".escape($row['destination_trunk_prefix'])."&nbsp;</td>\n";
}
if (permission_exists('destination_area_code')) {
echo " <td>".escape($row['destination_area_code'])."&nbsp;</td>\n";
}
echo " <td class='no-wrap'>\n";
if (permission_exists('destination_edit')) {