mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 09:03:49 +00:00
Update extensions.php
Move extension registered before enabled and description which are always last.
This commit is contained in:
@@ -74,10 +74,10 @@
|
||||
$sql_mod .= ") ";
|
||||
}
|
||||
|
||||
require_once "resources/header.php";
|
||||
$document['title'] = $text['title-extensions'];
|
||||
|
||||
require_once "resources/paging.php";
|
||||
//additional includes
|
||||
require_once "resources/header.php";
|
||||
$document['title'] = $text['title-extensions'];
|
||||
require_once "resources/paging.php";
|
||||
|
||||
//get total extension count from the database
|
||||
$sql = "select ";
|
||||
@@ -167,11 +167,12 @@ require_once "resources/paging.php";
|
||||
echo th_order_by('call_group', $text['label-call_group'], $order_by, $order);
|
||||
//echo th_order_by('voicemail_mail_to', $text['label-voicemail_mail_to'], $order_by, $order);
|
||||
echo th_order_by('user_context', $text['label-user_context'], $order_by, $order);
|
||||
echo th_order_by('enabled', $text['label-enabled'], $order_by, $order);
|
||||
echo th_order_by('description', $text['label-description'], $order_by, $order);
|
||||
if (permission_exists('extension_registered')) {
|
||||
echo th_order_by('description', $text['label-is_registered'], $order_by, $order);
|
||||
}
|
||||
echo th_order_by('enabled', $text['label-enabled'], $order_by, $order);
|
||||
echo th_order_by('description', $text['label-description'], $order_by, $order);
|
||||
|
||||
echo "<td class='list_control_icon'>\n";
|
||||
if (permission_exists('extension_add')) {
|
||||
if ($_SESSION['limit']['extensions']['numeric'] == '' || ($_SESSION['limit']['extensions']['numeric'] != '' && $total_extensions < $_SESSION['limit']['extensions']['numeric'])) {
|
||||
@@ -206,8 +207,7 @@ require_once "resources/paging.php";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row['call_group']." </td>\n";
|
||||
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['voicemail_mail_to']." </td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row['user_context']."</td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".ucwords($row['enabled'])."</td>\n";
|
||||
echo " <td valign='top' class='row_stylebg' width='30%'>".$row['description']." </td>\n";
|
||||
|
||||
if (permission_exists('extension_registered')) {
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>";
|
||||
$found = false;
|
||||
@@ -226,6 +226,9 @@ require_once "resources/paging.php";
|
||||
echo " </td>\n";
|
||||
}
|
||||
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".ucwords($row['enabled'])."</td>\n";
|
||||
echo " <td valign='top' class='row_stylebg' width='30%'>".$row['description']." </td>\n";
|
||||
|
||||
echo " <td class='list_control_icons'>";
|
||||
if (permission_exists('extension_edit')) {
|
||||
echo "<a href='extension_edit.php?id=".$row['extension_uuid']."' alt='".$text['button-edit']."'>$v_link_label_edit</a>";
|
||||
|
||||
Reference in New Issue
Block a user