Dialable Leads for Scripts
Posted: Sat Oct 26, 2013 5:15 pm
My agents will be spending most of their time in the script window working with our CRM. The current "Dialable Leads: " position only makes it possible for the agents to see it when they are in the main "VICIdial" tab. I made some very quick and easy changes to vicidial.php moving "Dialable Leads: " to the bottom panel where it will be seen even from the script tab. The bottom panel now looks like this
I wanted to share the code for anyone else that needs this change or in case it may be useful in a future release.
To do it all I did was delete out the original placement of the "Dialable Leads:" code
Edit a line in the function DiaLableLeaDsCounT() code to the following ( all I did here was remove the <BR> code)
then I change the "<!-- END ********* Here is the main VICIDIAL display panel -->" with the following code
- Code: Select all
VERSION: 2.8-381c BUILD: 131007-1348 Server: XXX.XXX.XXX.XXX
Show conference call channel information Dialable Leads: XXX
I wanted to share the code for anyone else that needs this change or in case it may be useful in a future release.
To do it all I did was delete out the original placement of the "Dialable Leads:" code
- Code: Select all
<font class="body_small"><span style="position:absolute;left:200px;top:<?php echo $CBheight ?>px;z-index:<?php $zi++; echo $zi ?>;" id="dialableleadsspan">
<?php
if ($agent_display_dialable_leads > 0)
{
echo "Dialable Leads:<br /> \n";
}
?>
</span></font>
Edit a line in the function DiaLableLeaDsCounT() code to the following ( all I did here was remove the <BR> code)
- Code: Select all
document.getElementById("dialableleadsspan").innerHTML ="Dialable Leads: " + DLcounT;
then I change the "<!-- END ********* Here is the main VICIDIAL display panel -->" with the following code
- Code: Select all
<span style="position:absolute;left:0px;top:<?php echo $PBheight ?>px;z-index:<?php $zi++; echo $zi ?>;" id="MaiNfooterspan">
<span id="blind_monitor_notice_span"><b><font color="red"> <span id="blind_monitor_notice_span_contents"></span></font></b></span>
<table bgcolor="<?php echo $MAIN_COLOR ?>" id="MaiNfooter" width="<?php echo $MNwidth ?>px"><tr height="32px"><td height="32px"><font face="Arial,Helvetica" size="1">VERSION: <?php echo $version ?> BUILD: <?php echo $build ?> Server: <?php echo $server_ip ?> </font><br />
<font class="body_small">
<span id="busycallsdisplay"><a href="#" onclick="conf_channels_detail('SHOW');">Show conference call channel information</a> <span id="dialableleadsspan">
<?php
if ($agent_display_dialable_leads > 0)
{
echo "Dialable Leads: \n";
}
?></span>
<br /><br /> </span></font></td><td align="right" height="32px">
</td></tr>
<tr><td colspan="3"><span id="outboundcallsspan"></span></td></tr>
<tr><td colspan="3"><font class="body_small"><span id="AgentAlertSpan">
<?php
if ( (preg_match('/ON/',$VU_alert_enabled)) and ($AgentAlert_allowed > 0) )
{echo "<a href=\"#\" onclick=\"alert_control('OFF');return false;\">Alert is ON</a>";}
else
{echo "<a href=\"#\" onclick=\"alert_control('ON');return false;\">Alert is OFF</a>";}
?>
</span></font></td></tr>
<tr><td colspan="3">
<font class="body_small">
</font>
</td></tr></table>
</span>