Add links to certain column text in a list view.
Misc bug fixes.
This commit is contained in:
@@ -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> </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";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user