\n";
echo " \n";
diff --git a/app/devices/devices.php b/app/devices/devices.php
index 56ede3e22e..73c84de8d9 100644
--- a/app/devices/devices.php
+++ b/app/devices/devices.php
@@ -135,7 +135,7 @@ else {
$row_style["1"] = "row_style1";
echo "\n";
- echo "
\n";
+ echo "\n";
echo "\n";
//echo th_order_by('device_uuid', $text['label-device_uuid'], $order_by, $order);
echo th_order_by('device_mac_address', $text['label-device_mac_address'], $order_by, $order);
@@ -164,7 +164,8 @@ else {
$device_mac_address = $row[device_mac_address];
$device_mac_address = substr($device_mac_address, 0,2).'-'.substr($device_mac_address, 2,2).'-'.substr($device_mac_address, 4,2).'-'.substr($device_mac_address, 6,2).'-'.substr($device_mac_address, 8,2).'-'.substr($device_mac_address, 10,2);
- echo " \n";
+ $tr_link = (permission_exists('device_edit')) ? " onclick=\"document.location.href='device_edit.php?id=".$row['device_uuid']."';\"" : null;
+ echo " \n";
//echo " ".$row['device_uuid']." \n";
echo " ";
if (permission_exists('device_edit')) {
diff --git a/app/extensions/extensions.php b/app/extensions/extensions.php
index 20bbccd720..5697ea7b63 100644
--- a/app/extensions/extensions.php
+++ b/app/extensions/extensions.php
@@ -136,7 +136,7 @@ require_once "resources/paging.php";
$row_style["1"] = "row_style1";
echo "\n";
- echo "
\n";
+ echo "\n";
echo "\n";
echo th_order_by('extension', $text['label-extension'], $order_by, $order);
echo th_order_by('call_group', $text['label-call_group'], $order_by, $order);
@@ -152,7 +152,7 @@ require_once "resources/paging.php";
if ($result_count > 0) {
foreach($result as $row) {
- $tr_link = (permission_exists('extension_edit')) ? "style='cursor: pointer;' onclick=\"document.location.href='extension_edit.php?id=".$row['extension_uuid']."';\"" : null;
+ $tr_link = (permission_exists('extension_edit')) ? " onclick=\"document.location.href='extension_edit.php?id=".$row['extension_uuid']."';\"" : null;
echo " \n";
echo " ";
if (permission_exists('extension_edit')) {
@@ -164,7 +164,7 @@ require_once "resources/paging.php";
echo " \n";
echo " ".$row['call_group']." \n";
//echo " ".$row['voicemail_mail_to']." \n";
- echo " ".$row['enabled']." \n";
+ echo " ".ucwords($row['enabled'])." \n";
echo " ".$row['description']." \n";
echo " ";
if (permission_exists('extension_edit')) {
diff --git a/app/gateways/gateways.php b/app/gateways/gateways.php
index 381804923f..5492b79c87 100644
--- a/app/gateways/gateways.php
+++ b/app/gateways/gateways.php
@@ -144,7 +144,7 @@ else {
$row_style["1"] = "row_style1";
echo "\n";
- echo "
\n";
+ echo "\n";
echo "\n";
echo th_order_by('gateway', $text['label-gateway'], $order_by, $order);
echo th_order_by('context', $text['label-context'], $order_by, $order);
@@ -164,7 +164,8 @@ else {
if ($num_rows > 0) {
foreach($result as $row) {
- echo " \n";
+ $tr_link = (permission_exists('gateway_edit')) ? " onclick=\"document.location.href='gateway_edit.php?id=".$row['gateway_uuid']."';\"" : null;
+ echo " \n";
echo " ";
if (permission_exists('gateway_edit')) {
echo "".$row["gateway"]." ";
diff --git a/app/modules/module_edit.php b/app/modules/module_edit.php
index 7826d0859f..c8dae7bb7b 100644
--- a/app/modules/module_edit.php
+++ b/app/modules/module_edit.php
@@ -246,19 +246,18 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo " \n";
echo "\n";
echo " \n";
- echo " \n";
- if ($module_enabled == "true") {
- echo " ".$text['option-true']." \n";
- }
- else {
- echo " ".$text['option-true']." \n";
- }
if ($module_enabled == "false") {
echo " ".$text['option-false']." \n";
}
else {
echo " ".$text['option-false']." \n";
}
+ if ($module_enabled == "true") {
+ echo " ".$text['option-true']." \n";
+ }
+ else {
+ echo " ".$text['option-true']." \n";
+ }
echo " \n";
echo " \n";
echo "\n";
@@ -271,19 +270,18 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo " \n";
echo "\n";
echo " \n";
- echo " \n";
- if ($module_default_enabled == "true") {
- echo " ".$text['option-true']." \n";
- }
- else {
- echo " ".$text['option-true']." \n";
- }
if ($module_default_enabled == "false") {
- echo " ".$text['option-false']." \n";
+ echo " ".$text['option-false']." \n";
}
else {
echo " ".$text['option-false']." \n";
}
+ if ($module_default_enabled == "true") {
+ echo " ".$text['option-true']." \n";
+ }
+ else {
+ echo " ".$text['option-true']." \n";
+ }
echo " \n";
echo " \n";
echo "\n";
diff --git a/app/modules/modules.php b/app/modules/modules.php
index cabb66f9cb..974f1b024f 100644
--- a/app/modules/modules.php
+++ b/app/modules/modules.php
@@ -114,7 +114,7 @@ if (strlen($_GET["a"]) > 0) {
$row_style["1"] = "row_style1";
echo "\n";
- echo "
\n";
+ echo "\n";
$tmp_module_header = "\n";
$tmp_module_header .= "\n";
$tmp_module_header .= "".$text['label-label']." \n";
@@ -156,7 +156,8 @@ if (strlen($_GET["a"]) > 0) {
echo $tmp_module_header;
}
- echo " \n";
+ $tr_link = (permission_exists('module_edit')) ? " onclick=\"document.location.href='module_edit.php?id=".$row["module_uuid"]."';\"" : null;
+ echo " \n";
echo " ";
if (permission_exists('module_edit')) {
echo "".$row["module_label"]." ";
diff --git a/app/vars/vars.php b/app/vars/vars.php
index 12bc03f313..c8847de66a 100644
--- a/app/vars/vars.php
+++ b/app/vars/vars.php
@@ -81,7 +81,7 @@ else {
$row_style["1"] = "row_style1";
echo "\n";
- echo "
\n";
+ echo "\n";
$tmp_var_header = '';
$tmp_var_header .= "\n";
@@ -127,7 +127,8 @@ else {
echo $tmp_var_header;
}
- echo " \n";
+ $tr_link = (permission_exists('var_edit')) ? " onclick=\"document.location.href='var_edit.php?id=".$row['var_uuid']."';\"" : null;
+ echo " \n";
echo " ";
if (permission_exists('var_edit')) {
echo "".substr($row['var_name'],0,32)." ";
diff --git a/app/xmpp/profile_list.php b/app/xmpp/profile_list.php
index b8ad96ad0e..01879f88ea 100644
--- a/app/xmpp/profile_list.php
+++ b/app/xmpp/profile_list.php
@@ -9,7 +9,7 @@
-
+
@@ -29,12 +29,22 @@ $row_style["0"] = "row_style0";
$row_style["1"] = "row_style1";
foreach($profiles_array as $profile){
-?>
-
-
+ $tr_link = (permission_exists('xmpp_edit')) ? " onclick=\"document.location.href='xmpp_profile_edit.php?id=".$profile['xmpp_profile_uuid']."';\"" : null;
+ ?>
+ >
+
+ '>
+
-
+
\n";
- echo "\n";
+ echo "\n";
echo "\n";
echo th_order_by('menu_name', $text['label-name'], $order_by, $order);
echo th_order_by('menu_language', $text['label-language'], $order_by, $order);
@@ -117,7 +117,8 @@ require_once "resources/paging.php";
if ($result_count > 0) {
foreach($result as $row) {
- echo " \n";
+ $tr_link = " onclick=\"document.location.href='menu_edit.php?id=".$row['menu_uuid']."';\"";
+ echo " \n";
echo " ".$row['menu_name']." \n";
echo " ".$row['menu_language']." \n";
echo " ".$row['menu_description']." \n";
diff --git a/core/menu/menu_edit.php b/core/menu/menu_edit.php
index 4bc8934edf..22634e1771 100644
--- a/core/menu/menu_edit.php
+++ b/core/menu/menu_edit.php
@@ -204,7 +204,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo " \n";
echo "\n";
- echo "\n";
+ echo " \n";
echo " ".$text['label-name'].":\n";
echo " \n";
echo "\n";
@@ -215,7 +215,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo " \n";
echo "\n";
- echo "\n";
+ echo " \n";
echo " ".$text['label-language'].":\n";
echo " \n";
echo "\n";
diff --git a/core/menu/menu_item_edit.php b/core/menu/menu_item_edit.php
index 6f73e07f21..0fcdc32f32 100644
--- a/core/menu/menu_item_edit.php
+++ b/core/menu/menu_item_edit.php
@@ -399,6 +399,7 @@ else {
}
echo " \n";
echo " \n";
+ $assigned_groups[] = $field['group_name'];
}
}
echo "
\n";
@@ -412,15 +413,14 @@ else {
echo " \n";
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
foreach($result as $field) {
- if ($field['group_name'] == "superadmin") {
- //only show the superadmin group to other users in the superadmin group
- if (if_group("superadmin")) {
+ if (!in_array($field['group_name'], $assigned_groups)) {
+ if ($field['group_name'] == "superadmin" && if_group("superadmin")) {
+ echo "".$field['group_name']." \n"; //only show the superadmin group to other users in the superadmin group
+ }
+ else {
echo "".$field['group_name']." \n";
}
}
- else {
- echo "".$field['group_name']." \n";
- }
}
echo "";
echo " \n";
@@ -434,19 +434,18 @@ else {
echo "\n";
echo "\n";
echo " \n";
- echo " \n";
- if ($menu_item_protected == "true") {
- echo " ".$text['label-true']." \n";
- }
- else {
- echo " ".$text['label-true']." \n";
- }
if ($menu_item_protected == "false") {
echo " ".$text['label-false']." \n";
}
else {
echo " ".$text['label-false']." \n";
}
+ if ($menu_item_protected == "true") {
+ echo " ".$text['label-true']." \n";
+ }
+ else {
+ echo " ".$text['label-true']." \n";
+ }
echo " \n";
echo $text['description-protected']." \n";
echo "\n";
diff --git a/core/menu/menu_item_list.php b/core/menu/menu_item_list.php
index 333557c945..a7c7767fec 100644
--- a/core/menu/menu_item_list.php
+++ b/core/menu/menu_item_list.php
@@ -101,7 +101,8 @@ function build_db_child_menu_list ($db, $menu_item_level, $menu_item_uuid, $c) {
}
//display the content of the list
- echo " \n";
+ $tr_link = (permission_exists('menu_edit')) ? " onclick=\"document.location.href='menu_item_edit.php?id=".$menu_uuid."&menu_item_uuid=".$row2['menu_item_uuid']."&menu_item_parent_uuid=".$row2['menu_item_parent_uuid']."';\"" : null;
+ echo " \n";
echo "";
echo " ";
echo " ";
@@ -117,16 +118,16 @@ function build_db_child_menu_list ($db, $menu_item_level, $menu_item_uuid, $c) {
echo " ";
echo "
";
echo " ";
- //echo " ".$menu_item_link." ";
- echo " ".$group_list." ";
- echo " ".$menu_item_category." ";
+ //echo "".$menu_item_link." ";
+ echo "".$group_list." ";
+ echo "".$menu_item_category." ";
//echo "".$row[menu_item_description]." ";
- //echo " ".$row[menu_item_order]." ";
+ //echo "".$row[menu_item_order]." ";
if ($menu_item_protected == "true") {
- echo " ".$text['label-true']." ";
+ echo "".$text['label-true']." ";
}
else {
- echo " ".$text['label-false']." ";
+ echo "".$text['label-false']." ";
}
echo "";
echo " ";
@@ -203,7 +204,7 @@ $order = $_GET["order"];
$row_style["1"] = "row_style0";
echo "\n";
- echo "
\n";
+ echo "\n";
if ($result_count == 0) {
//no results
@@ -211,11 +212,11 @@ $order = $_GET["order"];
}
else {
echo "";
- echo " ".$text['label-title']." ";
- echo " ".$text['label-groups']." ";
- echo " ".$text['label-category']." ";
- echo " ".$text['label-protected']." ";
- echo " ".$text['label-menu_order']." ";
+ echo "".$text['label-title']." ";
+ echo "".$text['label-groups']." ";
+ echo "".$text['label-category']." ";
+ echo "".$text['label-protected']." ";
+ echo "".$text['label-menu_order']." ";
echo "";
if (permission_exists('menu_add')) {
echo "$v_link_label_add ";
@@ -232,8 +233,7 @@ $order = $_GET["order"];
$menu_item_protected = $row['menu_item_protected'];
//get the groups that have been assigned to the menu
- $sql = "";
- $sql .= "select group_name from v_menu_item_groups ";
+ $sql = "select group_name from v_menu_item_groups ";
$sql .= "where menu_uuid = '$menu_uuid' ";
$sql .= "and menu_item_uuid = '$menu_item_uuid' ";
$sub_prep_statement = $db->prepare(check_sql($sql));
@@ -269,23 +269,24 @@ $order = $_GET["order"];
}
//display the content of the list
- echo " \n";
- echo " ".$menu_item_title." ";
- echo " ".$group_list." ";
- //echo " ".$menu_item_link." ";
- echo " ".$menu_item_category." ";
+ $tr_link = (permission_exists('menu_edit')) ? " onclick=\"document.location.href='menu_item_edit.php?id=".$menu_uuid."&menu_item_uuid=".$row['menu_item_uuid']."&menu_uuid=".$menu_uuid."';\"" : null;
+ echo " \n";
+ echo "".$menu_item_title." ";
+ echo "".$group_list." ";
+ //echo "".$menu_item_link." ";
+ echo "".$menu_item_category." ";
//echo "".$row[menu_item_description]." ";
- //echo " ".$row['menu_item_parent_uuid']." ";
- //echo " ".$row['menu_item_order']." ";
+ //echo "".$row['menu_item_parent_uuid']." ";
+ //echo "".$row['menu_item_order']." ";
if ($menu_item_protected == "true") {
- echo " ".$text['label-true']." ";
+ echo "".$text['label-true']." ";
}
else {
- echo " ".$text['label-false']." ";
+ echo "".$text['label-false']." ";
}
- echo "";
+ echo " ";
echo " ".$row[menu_item_order]." ";
echo " ";
diff --git a/core/users/users.php b/core/users/users.php
index cad464d42a..f72982984e 100644
--- a/core/users/users.php
+++ b/core/users/users.php
@@ -132,7 +132,7 @@ echo " \n";
//show the data
echo "\n";
- echo "
\n";
+ echo "\n";
echo "\n";
echo th_order_by('username', $text['label-username'], $order_by, $order);
@@ -149,7 +149,8 @@ echo " \n";
if (if_superadmin($superadmins, $row['user_uuid']) && !if_group("superadmin")) {
//hide
} else {
- echo " \n";
+ $tr_link = (permission_exists('user_edit')) ? " onclick=\"document.location.href='usersupdate.php?id=".$row['user_uuid']."';\"" : null;
+ echo " \n";
echo " ";
if (permission_exists('user_edit')) {
echo "".$row['username']." ";
diff --git a/themes/enhanced/template.php b/themes/enhanced/template.php
index be7b83080f..803a324663 100644
--- a/themes/enhanced/template.php
+++ b/themes/enhanced/template.php
@@ -278,6 +278,16 @@ input[type=text]::-ms-clear {
padding: 4px 16px 4px 6px;
}
+table.tr_hover tr {
+ background-color: transparent;
+ cursor: default;
+ }
+
+table.tr_hover tr:hover td,
+table.tr_hover tr:hover td a {
+ color: #5082ca;
+ }
+
.row_style0 {
border-bottom: 1px solid #c5d1e5;
background-color: #e5e9f0;
@@ -286,7 +296,6 @@ input[type=text]::-ms-clear {
padding: 5px 7px;
}
-
.row_style1 {
border-bottom: 1px solid #c5d1e5;
background-color: #fff;