diff --git a/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.4.txt b/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.4.txt index 8a48a6f8..23220dc1 100644 --- a/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.4.txt +++ b/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.4.txt @@ -84,8 +84,10 @@ EXTENSION GROUP ENTRY DELETION COMPLETED|| EXTENSION GROUP LISTINGS|| Extension Group|| If set to something other than NONE or empty this will override the External Extension field and use the Extension Group entries that have the same extension group ID. Default is NONE for deactivated|| +Click here to see agents logged in to this inbound group|| +AST_VICIDIAL_ingrouplist.php ############################################################ CLIENT VIEW CALL LOG|| click to dial|| diff --git a/agc_2-X/trunk/www/vicidial/AST_VICIDIAL_hopperlist.php b/agc_2-X/trunk/www/vicidial/AST_VICIDIAL_hopperlist.php index 3efb562f..8bc67cf3 100644 --- a/agc_2-X/trunk/www/vicidial/AST_VICIDIAL_hopperlist.php +++ b/agc_2-X/trunk/www/vicidial/AST_VICIDIAL_hopperlist.php @@ -19,12 +19,14 @@ require("dbconnect.php"); $PHP_AUTH_USER=$_SERVER['PHP_AUTH_USER']; $PHP_AUTH_PW=$_SERVER['PHP_AUTH_PW']; $PHP_SELF=$_SERVER['PHP_SELF']; +if (isset($_GET["DB"])) {$DB=$_GET["DB"];} + elseif (isset($_POST["DB"])) {$DB=$_POST["DB"];} if (isset($_GET["group"])) {$group=$_GET["group"];} elseif (isset($_POST["group"])) {$group=$_POST["group"];} if (isset($_GET["submit"])) {$submit=$_GET["submit"];} - elseif (isset($_POST["submit"])) {$submit=$_POST["submit"];} + elseif (isset($_POST["submit"])) {$submit=$_POST["submit"];} if (isset($_GET["SUBMIT"])) {$SUBMIT=$_GET["SUBMIT"];} - elseif (isset($_POST["SUBMIT"])) {$SUBMIT=$_POST["SUBMIT"];} + elseif (isset($_POST["SUBMIT"])) {$SUBMIT=$_POST["SUBMIT"];} $PHP_AUTH_USER = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_USER); $PHP_AUTH_PW = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_PW); @@ -79,8 +81,6 @@ while ($i < $campaigns_to_print) echo "\n"; echo "Hopper List Report\n"; echo "
\n"; -#echo "\n"; -#echo "\n"; echo "\n"; +$o=0; +while ($ingroups_to_print > $o) + { + if ($group_id[$o] == $group) + { + echo "\n"; + $selected_name=$group_name[$o]; + } + else + { + echo "\n"; + } + $o++; + } +echo "\n"; +echo "\n"; +echo "           MODIFY \n"; +echo "
\n\n"; + +echo "
\n\n";
+
+
+if (!$group)
+	{
+	echo "\n\n";
+	echo "PLEASE SELECT A IN-GROUP ABOVE AND CLICK SUBMIT\n";
+	}
+
+else
+	{
+	echo "Live Current Agents logged in to take calls from $group - $selected_name         $NOW_TIME\n";
+
+	echo "\n";
+
+	$stmt="select count(*) from vicidial_live_agents where closer_campaigns LIKE\"% " . mysql_real_escape_string($group) . " %\";";
+	$rslt=mysql_query($stmt, $link);
+	if ($DB) {echo "$stmt\n";}
+	$row=mysql_fetch_row($rslt);
+
+	$TOTALagents =	sprintf("%10s", $row[0]);
+
+	echo "Total agents:       $TOTALagents\n";
+
+
+	##############################
+	#########  AGENT STATS
+
+	echo "\n";
+	echo "---------- LIVE AGENTS IN IN-GROUP\n";
+	echo "+------+--------------------------------+----------------------+--------+---------------------+\n";
+	echo "| #    | USER                           | CAMPAIGN             | STATUS | LAST ACTIVITY       |\n";
+	echo "+------+--------------------------------+----------------------+--------+---------------------+\n";
+
+	$stmt="select vla.user,vu.full_name,vla.campaign_id,vla.status,vla.last_state_change from vicidial_live_agents vla,vicidial_users vu where vla.closer_campaigns LIKE\"% " . mysql_real_escape_string($group) . " %\" and vla.user=vu.user order by vla.user limit 1000;";
+	$rslt=mysql_query($stmt, $link);
+	if ($DB) {echo "$stmt\n";}
+	$users_to_print = mysql_num_rows($rslt);
+	$i=0;
+	while ($i < $users_to_print)
+		{
+		$row=mysql_fetch_row($rslt);
+
+		$i++;
+
+		$FMT_i =		sprintf("%-4s", $i);
+		$user =			sprintf("%-30s", "$row[0] - $row[1]");
+			while(strlen($user)>30) {$user = substr("$user", 0, -1);}
+		$campaign_id =	sprintf("%-8s", $row[2]);
+		$status =		sprintf("%-6s", $row[3]);
+		$time =			sprintf("%-19s", $row[4]);
+
+		echo "| $FMT_i | $user | $campaign_id   Real-Time | $status | $time |\n";
+		}
+
+	echo "+------+--------------------------------+----------------------+--------+---------------------+\n";
+	}
+
+
+?>
+
+ + diff --git a/agc_2-X/trunk/www/vicidial/admin.php b/agc_2-X/trunk/www/vicidial/admin.php index a35c6899..f477f085 100644 --- a/agc_2-X/trunk/www/vicidial/admin.php +++ b/agc_2-X/trunk/www/vicidial/admin.php @@ -20286,6 +20286,8 @@ if ($ADD==3111) echo "Click here to see a report for this inbound group

\n"; + echo "Click here to see agents logged in to this inbound group

\n"; + echo "
\n"; echo "DIDS USING THIS IN-GROUP:
\n";