mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Update device_vendor_functions.php
Add label to the functions list and order by the name.
This commit is contained in:
@@ -42,7 +42,7 @@
|
|||||||
$sql = "select count(*) as num_rows from v_device_vendor_functions ";
|
$sql = "select count(*) as num_rows from v_device_vendor_functions ";
|
||||||
$sql .= "where device_vendor_uuid = '$device_vendor_uuid' ";
|
$sql .= "where device_vendor_uuid = '$device_vendor_uuid' ";
|
||||||
$sql .= $sql_search;
|
$sql .= $sql_search;
|
||||||
if (strlen($order_by)> 0) { $sql .= "order by $order_by $order "; }
|
if (strlen($order_by) == 0) { $sql .= "order by name asc "; } else { $sql .= "order by $order_by $order "; }
|
||||||
$prep_statement = $db->prepare($sql);
|
$prep_statement = $db->prepare($sql);
|
||||||
if ($prep_statement) {
|
if ($prep_statement) {
|
||||||
$prep_statement->execute();
|
$prep_statement->execute();
|
||||||
@@ -67,7 +67,7 @@
|
|||||||
$sql = "select * from v_device_vendor_functions ";
|
$sql = "select * from v_device_vendor_functions ";
|
||||||
$sql .= "where device_vendor_uuid = '$device_vendor_uuid' ";
|
$sql .= "where device_vendor_uuid = '$device_vendor_uuid' ";
|
||||||
$sql .= $sql_search;
|
$sql .= $sql_search;
|
||||||
if (strlen($order_by)> 0) { $sql .= "order by $order_by $order "; }
|
if (strlen($order_by) == 0) { $sql .= "order by name asc "; } else { $sql .= "order by $order_by $order "; }
|
||||||
$sql .= "limit $rows_per_page offset $offset ";
|
$sql .= "limit $rows_per_page offset $offset ";
|
||||||
$prep_statement = $db->prepare(check_sql($sql));
|
$prep_statement = $db->prepare(check_sql($sql));
|
||||||
$prep_statement->execute();
|
$prep_statement->execute();
|
||||||
@@ -94,6 +94,7 @@
|
|||||||
|
|
||||||
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||||
echo "<tr>\n";
|
echo "<tr>\n";
|
||||||
|
echo "<th>".$text['label-label']."</th>\n";
|
||||||
echo th_order_by('name', $text['label-name'], $order_by, $order);
|
echo th_order_by('name', $text['label-name'], $order_by, $order);
|
||||||
echo th_order_by('value', $text['label-value'], $order_by, $order);
|
echo th_order_by('value', $text['label-value'], $order_by, $order);
|
||||||
echo "<th>".$text['label-groups']."</th>\n";
|
echo "<th>".$text['label-groups']."</th>\n";
|
||||||
@@ -145,8 +146,8 @@
|
|||||||
}
|
}
|
||||||
//show the row of data
|
//show the row of data
|
||||||
echo "<tr ".$tr_link.">\n";
|
echo "<tr ".$tr_link.">\n";
|
||||||
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['label']." </td>\n";
|
echo " <td valign='top' class='".$row_style[$c]."'>".$text['label-'.$row['name']]." </td>\n";
|
||||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row['name']." </td>\n";
|
echo " <td valign='top' class='".$row_style[$c]."'>".$row['name']." </td>\n";
|
||||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row['value']." </td>\n";
|
echo " <td valign='top' class='".$row_style[$c]."'>".$row['value']." </td>\n";
|
||||||
echo " <td valign='top' class='".$row_style[$c]."'>".$group_list." </td>\n";
|
echo " <td valign='top' class='".$row_style[$c]."'>".$group_list." </td>\n";
|
||||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row['enabled']." </td>\n";
|
echo " <td valign='top' class='".$row_style[$c]."'>".$row['enabled']." </td>\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user