Browse Source

Add links to certain column text in a list view.
Add ability to edit Call Block number.

Nate Jones 11 years ago
parent
commit
2e34a9940e
2 changed files with 11 additions and 4 deletions
  1. 3 3
      core/menu/menu.php
  2. 8 1
      core/users/users.php

+ 3 - 3
core/menu/menu.php

@@ -118,9 +118,9 @@ require_once "resources/paging.php";
 	if ($result_count > 0) {
 		foreach($result as $row) {
 			echo "<tr >\n";
-			echo "	<td valign='top' class='".$row_style[$c]."'>".$row['menu_name']."&nbsp;</td>\n";
-			echo "	<td valign='top' class='".$row_style[$c]."'>".$row['menu_language']."&nbsp;</td>\n";
-			echo "	<td valign='top' class='".$row_style[$c]."'>".$row['menu_description']."&nbsp;</td>\n";
+			echo "	<td valign='top' class='".$row_style[$c]."'><a href='menu_edit.php?id=".$row['menu_uuid']."'>".$row['menu_name']."</a></td>\n";
+			echo "	<td valign='top' class='".$row_style[$c]."'>".$row['menu_language']."</td>\n";
+			echo "	<td valign='top' class='".$row_style[$c]."'>".$row['menu_description']."</td>\n";
 			echo "	<td class='list_control_icons'>";
 			echo 		"<a href='menu_edit.php?id=".$row['menu_uuid']."' alt='".$text['button-edit']."'>$v_link_label_edit</a>";
 			echo 		"<a href='menu_delete.php?id=".$row['menu_uuid']."&menu_uuid=".$row['menu_uuid']."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>";

+ 8 - 1
core/users/users.php

@@ -150,7 +150,14 @@ echo "	<td align=\"center\">\n";
 				//hide
 			} else {
 				echo "<tr >\n";
-				echo "	<td valign='top' class='".$row_style[$c]."'>".$row['username']."&nbsp;</td>\n";
+				echo "	<td valign='top' class='".$row_style[$c]."'>";
+				if (permission_exists('user_edit')) {
+					echo "<a href='usersupdate.php?id=".$row['user_uuid']."'>".$row['username']."</a>";
+				}
+				else {
+					echo $row['username'];
+				}
+				echo "	</td>\n";
 				echo "	<td valign='top' class='".$row_style[$c]."'>";
 				if ($row['user_enabled'] == 'true') {
 					echo $text['option-true'];