Add links to certain column text in a list view.

Misc bug fixes.
This commit is contained in:
Nate Jones
2014-06-21 03:42:09 +00:00
parent d5a9796e0f
commit 632fd2cb39
28 changed files with 203 additions and 74 deletions
+9 -5
View File
@@ -40,6 +40,10 @@ else {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
//echo PROJECT_PATH."/themes/".$_SESSION['domain']['template']['name']."/config.php";
//exit;
include_once("themes/".$_SESSION['domain']['template']['name']."/config.php");
$switch_cmd = 'fifo list';
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);
if ($fp) {
@@ -79,7 +83,7 @@ if ($fp) {
echo "<th>".$text['label-caller_count']."</th>\n";
echo "<th>".$text['label-waiting_count']."</th>\n";
echo "<th>".$text['label-importance']."</th>\n";
echo "<th>&nbsp;</th>\n";
echo "<td class='list_control_icons'></td>\n";
echo "</tr>\n";
foreach ($xml->fifo as $row) {
@@ -97,24 +101,24 @@ if ($fp) {
if (if_group("superadmin")) {
//show all fifo queues
echo "<tr>\n";
echo "<td valign='top' class='".$row_style[$c]."'>".$tmp_name."</td>\n";
echo "<td valign='top' class='".$row_style[$c]."'><a href='fifo_interactive.php?c=".$name."'>".$tmp_name."</a></td>\n";
echo "<td valign='top' class='".$row_style[$c]."'>".$consumer_count."</td>\n";
echo "<td valign='top' class='".$row_style[$c]."'>".$caller_count."</td>\n";
echo "<td valign='top' class='".$row_style[$c]."'>".$waiting_count."</td>\n";
echo "<td valign='top' class='".$row_style[$c]."'>".$importance."</td>\n";
echo "<td valign='top' class='".$row_style[$c]."'><a href='fifo_interactive.php?c=".$name."'>".$text['label-view']."</a></td>\n";
echo "<td valign='top' class='list_control_icons'><a href='fifo_interactive.php?c=".$name."' alt='".$text['button-view']."'>$v_link_label_view</a></td>\n";
echo "</tr>\n";
}
else {
//show only the fifo queues that match the domain_name
if (stripos($name, $_SESSION['domain_name']) !== false) {
echo "<tr>\n";
echo "<td valign='top' class='".$row_style[$c]."'>".$tmp_name."</td>\n";
echo "<td valign='top' class='".$row_style[$c]."'><a href='fifo_interactive.php?c=".$name."'>".$tmp_name."</a></td>\n";
echo "<td valign='top' class='".$row_style[$c]."'>".$consumer_count."</td>\n";
echo "<td valign='top' class='".$row_style[$c]."'>".$caller_count."</td>\n";
echo "<td valign='top' class='".$row_style[$c]."'>".$waiting_count."</td>\n";
echo "<td valign='top' class='".$row_style[$c]."'>".$importance."</td>\n";
echo "<td valign='top' class='".$row_style[$c]."'><a href='fifo_interactive.php?c=".$name."'>".$text['label-view']."</a></td>\n";
echo "<td valign='top' class='list_control_icons'><a href='fifo_interactive.php?c=".$name."' alt='".$text['button-view']."'>$v_link_label_view</a></td>\n";
echo "</tr>\n";
}
}