Added dynamic call routing options content in Call Menus
Re-labeled several scripts to refrect proper names git-svn-id: svn://192.168.202.10@1134 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -74,6 +74,8 @@ NOTE: Upgrading from 1.1.12-3 to 2.0.1 is at the bottom
|
||||
18. Added the HIDE option for Disable Alter Customer Phone field to hide the
|
||||
customer phone number from the agent interface
|
||||
|
||||
19. Added dynamic route options to Call Menus and links to Call Menus and DIDs
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -989,10 +989,6 @@ if ( ($active_asterisk_server =~ /Y/) && ($generate_vicidial_conf =~ /Y/) && ($r
|
||||
|
||||
$i=0;
|
||||
$call_menu_ext = '';
|
||||
$time_check_scheme = '';
|
||||
$time_check_route = '';
|
||||
$time_check_route_value = '';
|
||||
$time_check_route_context = '';
|
||||
while ($sthArows > $i)
|
||||
{
|
||||
$stmtA = "SELECT option_value,option_description,option_route,option_route_value,option_route_value_context FROM vicidial_call_menu_options where menu_id='$menu_id[$i]' order by option_value;";
|
||||
@@ -1001,6 +997,12 @@ if ( ($active_asterisk_server =~ /Y/) && ($generate_vicidial_conf =~ /Y/) && ($r
|
||||
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
|
||||
$sthArowsJ=$sthA->rows;
|
||||
$j=0;
|
||||
$time_check_scheme = '';
|
||||
$time_check_route = '';
|
||||
$time_check_route_value = '';
|
||||
$time_check_route_context = '';
|
||||
$call_menu_timeout_ext = '';
|
||||
$call_menu_invalid_ext = '';
|
||||
$call_menu_options_ext = '';
|
||||
if ($DBX>0) {print "$sthArowsJ|$stmtA\n";}
|
||||
while ($sthArowsJ > $j)
|
||||
@@ -1019,6 +1021,8 @@ if ( ($active_asterisk_server =~ /Y/) && ($generate_vicidial_conf =~ /Y/) && ($r
|
||||
$j=0;
|
||||
while ($sthArowsJ > $j)
|
||||
{
|
||||
$PRI=1;
|
||||
$call_menu_line='';
|
||||
if ( ($option_value[$j] =~ /TIMECHECK/) && ($menu_time_check[$i] > 0) && (length($call_time_id[$i])>0) )
|
||||
{
|
||||
$time_check_scheme = $call_time_id[$i];
|
||||
@@ -1030,39 +1034,57 @@ if ( ($active_asterisk_server =~ /Y/) && ($generate_vicidial_conf =~ /Y/) && ($r
|
||||
{
|
||||
if (length($option_description[$j])>0)
|
||||
{
|
||||
$call_menu_options_ext .= "; $option_description[$j]\n";
|
||||
$call_menu_line .= "; $option_description[$j]\n";
|
||||
}
|
||||
if ($option_value[$j] =~ /TIMEOUT/)
|
||||
{
|
||||
$option_value[$j] = 't';
|
||||
if ( (length($menu_timeout_prompt[$i])>0) && ($menu_timeout_prompt[$i] !~ /NONE/) )
|
||||
{
|
||||
$call_menu_line .= "exten => t,1,Playback($menu_timeout_prompt[$i])\n";
|
||||
$PRI++;
|
||||
}
|
||||
}
|
||||
if ($option_value[$j] =~ /INVALID/)
|
||||
{
|
||||
if ( (length($menu_invalid_prompt[$i])>0) && ($menu_invalid_prompt[$i] !~ /NONE/) )
|
||||
{
|
||||
$call_menu_line .= "exten => i,1,Playback($menu_invalid_prompt[$i])\n";
|
||||
$PRI++;
|
||||
}
|
||||
$option_value[$j] = 'i';
|
||||
}
|
||||
if ($option_route[$j] =~ /AGI/)
|
||||
{
|
||||
$call_menu_options_ext .= "exten => $option_value[$j],1,AGI($option_route_value[$j])\n";
|
||||
$call_menu_line .= "exten => $option_value[$j],$PRI,AGI($option_route_value[$j])\n";
|
||||
}
|
||||
if ($option_route[$j] =~ /CALLMENU/)
|
||||
{
|
||||
$call_menu_options_ext .= "exten => $option_value[$j],1,Goto($option_route_value[$j],s,1)\n";
|
||||
$call_menu_line .= "exten => $option_value[$j],$PRI,Goto($option_route_value[$j],s,1)\n";
|
||||
}
|
||||
if ($option_route[$j] =~ /DID/)
|
||||
{
|
||||
$call_menu_options_ext .= "exten => $option_value[$j],1,Goto(trunkinbound,$option_route_value[$j],1)\n";
|
||||
$call_menu_line .= "exten => $option_value[$j],$PRI,Goto(trunkinbound,$option_route_value[$j],1)\n";
|
||||
}
|
||||
if ($option_route[$j] =~ /EXTENSION/)
|
||||
{
|
||||
if (length($option_route_value_context[$j])>0) {$option_route_value_context[$j] = "$option_route_value_context[$j],";}
|
||||
$call_menu_options_ext .= "exten => $option_value[$j],1,Goto($option_route_value_context[$j]$option_route_value[$j],1)\n";
|
||||
$call_menu_line .= "exten => $option_value[$j],$PRI,Goto($option_route_value_context[$j]$option_route_value[$j],1)\n";
|
||||
}
|
||||
if ($option_route[$j] =~ /VOICEMAIL/)
|
||||
{
|
||||
$call_menu_options_ext .= "exten => $option_value[$j],1,Goto(default,85026666666666$option_route_value[$j],1)\n";
|
||||
$call_menu_line .= "exten => $option_value[$j],$PRI,Goto(default,85026666666666$option_route_value[$j],1)\n";
|
||||
}
|
||||
if ($option_route[$j] =~ /HANGUP/)
|
||||
{
|
||||
if ( (length($option_route_value[$j])>0) && ($option_route_value[$j] !~ /NONE/) )
|
||||
{
|
||||
$call_menu_options_ext .= "exten => $option_value[$j],1,Playback($option_route_value[$j])\n";
|
||||
$call_menu_options_ext .= "exten => $option_value[$j],n,Hangup\n";
|
||||
$call_menu_line .= "exten => $option_value[$j],$PRI,Playback($option_route_value[$j])\n";
|
||||
$call_menu_line .= "exten => $option_value[$j],n,Hangup\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$call_menu_options_ext .= "exten => $option_value[$j],1,Hangup\n";
|
||||
$call_menu_line .= "exten => $option_value[$j],$PRI,Hangup\n";
|
||||
}
|
||||
}
|
||||
if ($option_route[$j] =~ /PHONE/)
|
||||
@@ -1088,10 +1110,23 @@ if ( ($active_asterisk_server =~ /Y/) && ($generate_vicidial_conf =~ /Y/) && ($r
|
||||
$d = leading_zero($4);
|
||||
$DIALstring = "$a$S$b$S$c$S$d$S";
|
||||
}
|
||||
$call_menu_options_ext .= "exten => $option_value[$j],1,Goto(default,$DIALstring$Pdialplan,1)\n";
|
||||
$call_menu_line .= "exten => $option_value[$j],$PRI,Goto(default,$DIALstring$Pdialplan,1)\n";
|
||||
}
|
||||
$sthA->finish();
|
||||
}
|
||||
|
||||
if ($option_value[$j] =~ /t/)
|
||||
{
|
||||
$call_menu_timeout_ext = "$call_menu_line";
|
||||
}
|
||||
if ($option_value[$j] =~ /i/)
|
||||
{
|
||||
$call_menu_invalid_ext = "$call_menu_line";
|
||||
}
|
||||
if ($option_value[$j] !~ /i|t/)
|
||||
{
|
||||
$call_menu_options_ext .= "$call_menu_line";
|
||||
}
|
||||
}
|
||||
if ($DBX>0) {print "$i|$j| $menu_id[$i]|$option_value[$j]\n";}
|
||||
$j++;
|
||||
@@ -1112,30 +1147,45 @@ if ( ($active_asterisk_server =~ /Y/) && ($generate_vicidial_conf =~ /Y/) && ($r
|
||||
$call_menu_ext .= "exten => s,n,WaitExten($menu_timeout[$i])\n";
|
||||
$k++;
|
||||
}
|
||||
$call_menu_ext .= "exten => s,n,Hangup\n";
|
||||
# $call_menu_ext .= "exten => s,n,Hangup\n";
|
||||
$call_menu_ext .= "\n";
|
||||
$call_menu_ext .= "$call_menu_options_ext";
|
||||
$call_menu_ext .= "\n";
|
||||
|
||||
if ( (length($menu_timeout_prompt[$i])>0) && ($menu_timeout_prompt[$i] !~ /NONE/) )
|
||||
if (length($call_menu_timeout_ext) < 1)
|
||||
{
|
||||
$call_menu_ext .= "exten => t,1,Playback($menu_timeout_prompt[$i])\n";
|
||||
$call_menu_ext .= "exten => t,n,Goto(s,2)\n";
|
||||
if ( (length($menu_timeout_prompt[$i])>0) && ($menu_timeout_prompt[$i] !~ /NONE/) )
|
||||
{
|
||||
$call_menu_ext .= "exten => t,1,Playback($menu_timeout_prompt[$i])\n";
|
||||
$call_menu_ext .= "exten => t,n,Goto(s,2)\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$call_menu_ext .= "exten => t,1,Goto(s,2)\n";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$call_menu_ext .= "exten => t,1,Goto(s,2)\n";
|
||||
$call_menu_ext .= "$call_menu_timeout_ext";
|
||||
}
|
||||
if ( (length($menu_invalid_prompt[$i])>0) && ($menu_invalid_prompt[$i] !~ /NONE/) )
|
||||
if (length($call_menu_invalid_ext) < 1)
|
||||
{
|
||||
$call_menu_ext .= "exten => i,1,Playback($menu_invalid_prompt[$i])\n";
|
||||
$call_menu_ext .= "exten => i,n,Goto(s,2)\n";
|
||||
if ( (length($menu_invalid_prompt[$i])>0) && ($menu_invalid_prompt[$i] !~ /NONE/) )
|
||||
{
|
||||
$call_menu_ext .= "exten => i,1,Playback($menu_invalid_prompt[$i])\n";
|
||||
$call_menu_ext .= "exten => i,n,Goto(s,2)\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$call_menu_ext .= "exten => i,1,Goto(s,2)\n";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$call_menu_ext .= "exten => i,1,Goto(s,2)\n";
|
||||
$call_menu_ext .= "$call_menu_invalid_ext";
|
||||
}
|
||||
|
||||
$call_menu_ext .= "; hangup\n";
|
||||
$call_menu_ext .= 'exten => h,1,DeadAGI(agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME})';
|
||||
$call_menu_ext .= "\n\n";
|
||||
|
||||
|
||||
@@ -123,7 +123,7 @@ if ( ($stage == 'login') or ($stage == 'logout') )
|
||||
$VDdisplayMESSAGE = "The user and password you entered are not active in the system<BR>Please try again:";
|
||||
|
||||
echo"<HTML><HEAD>\n";
|
||||
echo"<TITLE>VICIDIAL: Timeclock</TITLE>\n";
|
||||
echo"<TITLE>Agent Timeclock</TITLE>\n";
|
||||
echo"<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
||||
echo"</HEAD>\n";
|
||||
echo "<BODY BGCOLOR=WHITE MARGINHEIGHT=0 MARGINWIDTH=0>\n";
|
||||
@@ -228,7 +228,7 @@ if ( ($stage == 'login') or ($stage == 'logout') )
|
||||
$VDdisplayMESSAGE = "You cannot log in or out within 30 seconds of your last login or logout";
|
||||
|
||||
echo"<HTML><HEAD>\n";
|
||||
echo"<TITLE>VICIDIAL: Timeclock</TITLE>\n";
|
||||
echo"<TITLE>Agent Timeclock</TITLE>\n";
|
||||
echo"<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
||||
echo"</HEAD>\n";
|
||||
echo "<BODY BGCOLOR=WHITE MARGINHEIGHT=0 MARGINWIDTH=0>\n";
|
||||
@@ -343,7 +343,7 @@ if ( ($stage == 'login') or ($stage == 'logout') )
|
||||
{$BACKlink = "<A HREF=\"$welcomeURL\"><font color=\"#003333\">BACK to Welcome Screen</font></A>";}
|
||||
|
||||
echo"<HTML><HEAD>\n";
|
||||
echo"<TITLE>VICIDIAL: Timeclock</TITLE>\n";
|
||||
echo"<TITLE>Agent Timeclock</TITLE>\n";
|
||||
echo"<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
||||
echo"</HEAD>\n";
|
||||
echo "<BODY BGCOLOR=WHITE MARGINHEIGHT=0 MARGINWIDTH=0>\n";
|
||||
@@ -382,7 +382,7 @@ if ( ($stage == 'login') or ($stage == 'logout') )
|
||||
}
|
||||
|
||||
echo"<HTML><HEAD>\n";
|
||||
echo"<TITLE>VICIDIAL: Timeclock</TITLE>\n";
|
||||
echo"<TITLE>Agent Timeclock</TITLE>\n";
|
||||
echo"<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
||||
echo"</HEAD>\n";
|
||||
echo "<BODY BGCOLOR=WHITE MARGINHEIGHT=0 MARGINWIDTH=0>\n";
|
||||
@@ -421,7 +421,7 @@ if ( ($stage == 'login') or ($stage == 'logout') )
|
||||
else
|
||||
{
|
||||
echo"<HTML><HEAD>\n";
|
||||
echo"<TITLE>VICIDIAL: Timeclock</TITLE>\n";
|
||||
echo"<TITLE>Agent Timeclock</TITLE>\n";
|
||||
echo"<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
||||
echo"</HEAD>\n";
|
||||
echo "<BODY BGCOLOR=WHITE MARGINHEIGHT=0 MARGINWIDTH=0>\n";
|
||||
|
||||
@@ -592,7 +592,7 @@ if ($LogiNAJAX > 0)
|
||||
|
||||
if ($relogin == 'YES')
|
||||
{
|
||||
echo "<title>VICIDIAL web client: Re-Login</title>\n";
|
||||
echo "<title>Agent web client: Re-Login</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=WHITE MARGINHEIGHT=0 MARGINWIDTH=0>\n";
|
||||
echo "<A HREF=\"./timeclock.php?referrer=agent&pl=$phone_login&pp=$phone_pass&VD_login=$VD_login&VD_pass=$VD_pass\"> Timeclock</A><BR>\n";
|
||||
@@ -630,7 +630,7 @@ if ($user_login_first == 1)
|
||||
{
|
||||
if ( (strlen($VD_login)<1) or (strlen($VD_pass)<1) or (strlen($VD_campaign)<1) )
|
||||
{
|
||||
echo "<title>VICIDIAL web client: Campaign Login</title>\n";
|
||||
echo "<title>Agent web client: Campaign Login</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=WHITE MARGINHEIGHT=0 MARGINWIDTH=0>\n";
|
||||
echo "<A HREF=\"./timeclock.php?referrer=agent&pl=$phone_login&pp=$phone_pass&VD_login=$VD_login&VD_pass=$VD_pass\"> Timeclock</A><BR>\n";
|
||||
@@ -674,7 +674,7 @@ if ($user_login_first == 1)
|
||||
$phone_login=$row[0];
|
||||
$phone_pass=$row[1];
|
||||
|
||||
echo "<title>VICIDIAL web client: Login</title>\n";
|
||||
echo "<title>Agent web client: Login</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=WHITE MARGINHEIGHT=0 MARGINWIDTH=0>\n";
|
||||
echo "<A HREF=\"./timeclock.php?referrer=agent&pl=$phone_login&pp=$phone_pass&VD_login=$VD_login&VD_pass=$VD_pass\"> Timeclock</A><BR>\n";
|
||||
@@ -713,7 +713,7 @@ if ($user_login_first == 1)
|
||||
|
||||
if ( (strlen($phone_login)<2) or (strlen($phone_pass)<2) )
|
||||
{
|
||||
echo "<title>VICIDIAL web client: Phone Login</title>\n";
|
||||
echo "<title>Agent web client: Phone Login</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=WHITE MARGINHEIGHT=0 MARGINWIDTH=0>\n";
|
||||
echo "<A HREF=\"./timeclock.php?referrer=agent&pl=$phone_login&pp=$phone_pass&VD_login=$VD_login&VD_pass=$VD_pass\"> Timeclock</A><BR>\n";
|
||||
@@ -937,7 +937,7 @@ $VDloginDISPLAY=0;
|
||||
|
||||
if ( (!eregi(" $VD_campaign ",$LOGallowed_campaigns)) and (!eregi("ALL-CAMPAIGNS",$LOGallowed_campaigns)) )
|
||||
{
|
||||
echo "<title>VICIDIAL web client: VICIDIAL Campaign Login</title>\n";
|
||||
echo "<title>Agent web client: Campaign Login</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=WHITE MARGINHEIGHT=0 MARGINWIDTH=0>\n";
|
||||
echo "<A HREF=\"./timeclock.php?referrer=agent&pl=$phone_login&pp=$phone_pass&VD_login=$VD_login&VD_pass=$VD_pass\"> Timeclock</A><BR>\n";
|
||||
@@ -1276,7 +1276,7 @@ $VDloginDISPLAY=0;
|
||||
}
|
||||
if ($VDloginDISPLAY)
|
||||
{
|
||||
echo "<title>VICIDIAL web client: Campaign Login</title>\n";
|
||||
echo "<title>Agent web client: Campaign Login</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=WHITE MARGINHEIGHT=0 MARGINWIDTH=0>\n";
|
||||
echo "<A HREF=\"./timeclock.php?referrer=agent&pl=$phone_login&pp=$phone_pass&VD_login=$VD_login&VD_pass=$VD_pass\"> Timeclock</A><BR>\n";
|
||||
@@ -1364,7 +1364,7 @@ $row=mysql_fetch_row($rslt);
|
||||
$authphone=$row[0];
|
||||
if (!$authphone)
|
||||
{
|
||||
echo "<title>VICIDIAL web client: Phone Login Error</title>\n";
|
||||
echo "<title>Agent web client: Phone Login Error</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=WHITE MARGINHEIGHT=0 MARGINWIDTH=0>\n";
|
||||
echo "<A HREF=\"./timeclock.php?referrer=agent&pl=$phone_login&pp=$phone_pass&VD_login=$VD_login&VD_pass=$VD_pass\"> Timeclock</A><BR>\n";
|
||||
@@ -1450,7 +1450,7 @@ else
|
||||
}
|
||||
echo "<!-- Phones balance selection: $phone_login|$pb_server_ip|$past_minutes_date| |$pb_log -->\n";
|
||||
}
|
||||
echo "<title>VICIDIAL web client</title>\n";
|
||||
echo "<title>Agent web client</title>\n";
|
||||
$stmt="SELECT * from phones where login='$phone_login' and pass='$phone_pass' and active = 'Y';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
@@ -1844,7 +1844,7 @@ else
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<title>VICIDIAL web client: VICIDIAL Campaign Login</title>\n";
|
||||
echo "<title>Agent web client: Campaign Login</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=WHITE MARGINHEIGHT=0 MARGINWIDTH=0>\n";
|
||||
echo "<A HREF=\"./timeclock.php?referrer=agent&pl=$phone_login&pp=$phone_pass&VD_login=$VD_login&VD_pass=$VD_pass\"> Timeclock</A><BR>\n";
|
||||
@@ -1868,7 +1868,7 @@ else
|
||||
}
|
||||
if (strlen($session_id) < 1)
|
||||
{
|
||||
echo "<title>VICIDIAL web client: VICIDIAL Campaign Login</title>\n";
|
||||
echo "<title>Agent web client: Campaign Login</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=WHITE MARGINHEIGHT=0 MARGINWIDTH=0>\n";
|
||||
echo "<A HREF=\"./timeclock.php?referrer=agent&pl=$phone_login&pp=$phone_pass&VD_login=$VD_login&VD_pass=$VD_pass\"> Timeclock</A><BR>\n";
|
||||
@@ -8059,7 +8059,7 @@ echo "</head>\n";
|
||||
<span style="position:absolute;left:0px;top:13px;z-index:1;" id="Tabs">
|
||||
<table border=0 bgcolor="#FFFFFF" width=<?php echo $MNwidth ?> height=30>
|
||||
<TR VALIGN=TOP ALIGN=LEFT>
|
||||
<TD ALIGN=LEFT WIDTH=115><A HREF="#" onclick="MainPanelToFront('NO');"><IMG SRC="./images/vdc_tab_vicidial.gif" ALT="VICIDIAL" WIDTH=115 HEIGHT=30 BORDER=0></A></TD>
|
||||
<TD ALIGN=LEFT WIDTH=115><A HREF="#" onclick="MainPanelToFront('NO');"><IMG SRC="./images/vdc_tab_vicidial.gif" ALT="MAIN" WIDTH=115 HEIGHT=30 BORDER=0></A></TD>
|
||||
<TD ALIGN=LEFT WIDTH=105><A HREF="#" onclick="ScriptPanelToFront();"><IMG SRC="./images/vdc_tab_script.gif" ALT="SCRIPT" WIDTH=105 HEIGHT=30 BORDER=0></A></TD>
|
||||
<TD WIDTH=<?php echo $HSwidth ?> VALIGN=MIDDLE ALIGN=CENTER><font class="body_text"> <span id=status>LIVE</span> session ID: <span id=sessionIDspan></span> <span id=AgentStatusCalls></span></TD>
|
||||
<TD WIDTH=109><IMG SRC="./images/agc_live_call_OFF.gif" NAME=livecall ALT="Live Call" WIDTH=109 HEIGHT=30 BORDER=0></TD>
|
||||
@@ -8069,7 +8069,7 @@ echo "</head>\n";
|
||||
|
||||
|
||||
<span style="position:absolute;left:0px;top:0px;z-index:3;" id="WelcomeBoxA">
|
||||
<table border=0 bgcolor="#FFFFFF" width=<?php echo $CAwidth ?> height=<?php echo $HKwidth ?>><TR><TD align=center><BR><span id="WelcomeBoxAt">VICIDIAL</span></TD></TR></TABLE>
|
||||
<table border=0 bgcolor="#FFFFFF" width=<?php echo $CAwidth ?> height=<?php echo $HKwidth ?>><TR><TD align=center><BR><span id="WelcomeBoxAt">Agent Screen</span></TD></TR></TABLE>
|
||||
</span>
|
||||
|
||||
<span style="position:absolute;left:300px;top:<?php echo $MBheight ?>px;z-index:12;" id="ManuaLDiaLButtons"><font class="body_text">
|
||||
@@ -8438,7 +8438,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
|
||||
|
||||
|
||||
<span style="position:absolute;left:154px;top:65px;z-index:17;" id="ScriptPanel">
|
||||
<table border=0 bgcolor="<?php echo $SCRIPT_COLOR ?>" width=<?php echo $SSwidth ?> height=<?php echo $SSheight ?>><TR><TD align=left valign=top><font class="sb_text"><div class="scroll_script" id="ScriptContents">VICIDIAL SCRIPT</div></font></TD></TR></TABLE>
|
||||
<table border=0 bgcolor="<?php echo $SCRIPT_COLOR ?>" width=<?php echo $SSwidth ?> height=<?php echo $SSheight ?>><TR><TD align=left valign=top><font class="sb_text"><div class="scroll_script" id="ScriptContents">AGENT SCRIPT</div></font></TD></TR></TABLE>
|
||||
</span>
|
||||
|
||||
|
||||
@@ -8448,7 +8448,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
|
||||
|
||||
|
||||
<span style="position:absolute;left:0px;top:<?php echo $HKheight ?>px;z-index:15;" id="MaiNfooterspan">
|
||||
<table BGCOLOR="<?php echo $MAIN_COLOR ?>" id="MaiNfooter" width=<?php echo $MNwidth ?>><tr height=32><td height=32><font face="Arial,Helvetica" size=1>VICIDIAL web-client version: <?php echo $version ?> BUILD: <?php echo $build ?> Server: <?php echo $server_ip ?> </font><BR>
|
||||
<table BGCOLOR="<?php echo $MAIN_COLOR ?>" id="MaiNfooter" width=<?php echo $MNwidth ?>><tr height=32><td height=32><font face="Arial,Helvetica" size=1>Agent web-client 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><BR><BR> </span></font></td><td align=right height=32>
|
||||
</td></tr>
|
||||
<tr><td colspan=3><span id="outboundcallsspan"></span></td></tr>
|
||||
|
||||
@@ -36,7 +36,7 @@ if (!isset($phone_pass))
|
||||
|
||||
$URL = "http://192.168.1.60/agc/vicidial.php?phone_login=$phone_login&phone_pass=$phone_pass&DB=$DB&VD_login=$VD_login&VD_pass=$VD_pass&VD_campaign=$VD_campaign&relogin=$relogin";
|
||||
|
||||
echo"<TITLE>VICIDIAL</TITLE>\n";
|
||||
echo"<TITLE>Agent Redirect</TITLE>\n";
|
||||
echo"<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=iso-8859-1\">\n";
|
||||
echo"<META HTTP-EQUIV=Refresh CONTENT=\"0; URL=$URL\">\n";
|
||||
echo"</HEAD>\n";
|
||||
|
||||
@@ -100,7 +100,7 @@ while ($i < $groups_to_print)
|
||||
|
||||
<?php
|
||||
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
||||
echo "<TITLE>VICIDIAL: VDAD Closer Service Level Stats</TITLE></HEAD><BODY BGCOLOR=WHITE marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
echo "<TITLE>Inbound Service Level Report</TITLE></HEAD><BODY BGCOLOR=WHITE marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
|
||||
$short_header=1;
|
||||
|
||||
@@ -227,7 +227,7 @@ $DURATIONday = intval( ($DURATIONsec / 86400) + 1 );
|
||||
$DURATIONday++;
|
||||
}
|
||||
|
||||
echo "VICIDIAL: Closer Service-Level Stats $NOW_TIME\n";
|
||||
echo "Inbound Service Level Report $NOW_TIME\n";
|
||||
echo "\n";
|
||||
echo "Time range $DURATIONday days: $query_date_BEGIN to $query_date_END\n\n";
|
||||
#echo "Time range day sec: $SQsec - $EQsec Day range in epoch: $SQepoch - $EQepoch Start: $SQepochDAY\n";
|
||||
|
||||
@@ -166,7 +166,7 @@ while ($i < $statcats_to_print)
|
||||
|
||||
<?php
|
||||
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
||||
echo "<TITLE>VICIDIAL: VDAD Closer Stats</TITLE></HEAD><BODY BGCOLOR=WHITE marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
echo "<TITLE>Inbound Stats</TITLE></HEAD><BODY BGCOLOR=WHITE marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
|
||||
$short_header=1;
|
||||
|
||||
@@ -268,7 +268,7 @@ $query_date_END = "$end_date $time_END";
|
||||
|
||||
|
||||
|
||||
echo "VICIDIAL: Auto-dial Closer Stats: $group_string $NOW_TIME\n";
|
||||
echo "Inbound Call Stats: $group_string $NOW_TIME\n";
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -177,7 +177,7 @@ else
|
||||
}
|
||||
|
||||
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
||||
echo "<TITLE>VICIDIAL: IVR Stats</TITLE></HEAD><BODY BGCOLOR=WHITE marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
echo "<TITLE>IVR Stats Report</TITLE></HEAD><BODY BGCOLOR=WHITE marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
|
||||
$short_header=1;
|
||||
|
||||
@@ -258,7 +258,7 @@ else
|
||||
{
|
||||
|
||||
|
||||
echo "VICIDIAL: IVR Stats: $group_string $NOW_TIME\n";
|
||||
echo "IVR Stats Report: $group_string $NOW_TIME\n";
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -149,7 +149,7 @@ while ($i < $statcats_to_print)
|
||||
|
||||
<?php
|
||||
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
||||
echo "<TITLE>VICIDIAL: VDAD Stats</TITLE></HEAD><BODY BGCOLOR=WHITE marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
echo "<TITLE>Outbound Stats</TITLE></HEAD><BODY BGCOLOR=WHITE marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
|
||||
$short_header=1;
|
||||
|
||||
@@ -236,7 +236,7 @@ $query_date_END = "$end_date $time_END";
|
||||
|
||||
|
||||
|
||||
echo "VICIDIAL: Auto-dial Stats $NOW_TIME\n";
|
||||
echo "Outbound Calling Stats $NOW_TIME\n";
|
||||
|
||||
echo "\n";
|
||||
echo "Time range: $query_date_BEGIN to $query_date_END\n\n";
|
||||
|
||||
@@ -76,7 +76,7 @@ while ($i < $campaigns_to_print)
|
||||
|
||||
<?php
|
||||
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
||||
echo "<TITLE>VICIDIAL: Hopper List</TITLE></HEAD><BODY BGCOLOR=WHITE>\n";
|
||||
echo "<TITLE>Hopper List Report</TITLE></HEAD><BODY BGCOLOR=WHITE>\n";
|
||||
echo "<FORM ACTION=\"$PHP_SELF\" METHOD=GET>\n";
|
||||
#echo "<INPUT TYPE=HIDDEN NAME=server_ip VALUE=\"$server_ip\">\n";
|
||||
#echo "<INPUT TYPE=TEXT NAME=query_date SIZE=10 MAXLENGTH=10 VALUE=\"$query_date\">\n";
|
||||
@@ -106,7 +106,7 @@ else
|
||||
{
|
||||
|
||||
|
||||
echo "VICIDIAL: Live Current Hopper List $NOW_TIME\n";
|
||||
echo "Live Current Hopper List $NOW_TIME\n";
|
||||
|
||||
echo "\n";
|
||||
echo "---------- TOTALS\n";
|
||||
|
||||
@@ -161,7 +161,7 @@ if ($file_download < 1)
|
||||
<?php
|
||||
|
||||
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
||||
echo "<TITLE>VICIDIAL: Agent Days Status</TITLE></HEAD><BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
echo "<TITLE>Agent Days Status Report</TITLE></HEAD><BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
echo "<span style=\"position:absolute;left:0px;top:0px;z-index:20;\" id=admin_header>";
|
||||
|
||||
$short_header=1;
|
||||
@@ -209,14 +209,14 @@ else
|
||||
|
||||
if ($file_download < 1)
|
||||
{
|
||||
echo "VICIDIAL: Agent Days Detail: $user $NOW_TIME\n";
|
||||
echo "Agent Days Status Report: $user $NOW_TIME\n";
|
||||
|
||||
echo "Time range: $query_date_BEGIN to $query_date_END\n\n";
|
||||
echo "---------- AGENT Details -------------\n\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$file_output .= "VICIDIAL: Agent Days Detail: $user $NOW_TIME\n";
|
||||
$file_output .= "Agent Days Status Report: $user $NOW_TIME\n";
|
||||
$file_output .= "Time range: $query_date_BEGIN to $query_date_END\n\n";
|
||||
}
|
||||
|
||||
|
||||
@@ -129,7 +129,7 @@ while ($i < $user_groups_to_print)
|
||||
|
||||
<?php
|
||||
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
||||
echo "<TITLE>VICIDIAL: Agent Performance</TITLE></HEAD><BODY BGCOLOR=WHITE marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
echo "<TITLE>Agent Performance Detail</TITLE></HEAD><BODY BGCOLOR=WHITE marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
|
||||
$short_header=1;
|
||||
|
||||
@@ -208,7 +208,7 @@ $query_date_END = "$end_date $time_END";
|
||||
if (strlen($user_group)>0) {$ugSQL="and vicidial_agent_log.user_group='$user_group'";}
|
||||
else {$ugSQL='';}
|
||||
|
||||
echo "VICIDIAL: Agent Performance Detail $NOW_TIME\n";
|
||||
echo "Agent Performance Detail $NOW_TIME\n";
|
||||
|
||||
echo "Time range: $query_date_BEGIN to $query_date_END\n\n";
|
||||
echo "---------- AGENTS Details -------------\n\n";
|
||||
|
||||
@@ -205,7 +205,7 @@ if ($file_download < 1)
|
||||
|
||||
<?php
|
||||
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
||||
echo "<TITLE>VICIDIAL: Agent Days Status</TITLE></HEAD><BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
echo "<TITLE>Agent Status Detail Report</TITLE></HEAD><BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
echo "<span style=\"position:absolute;left:0px;top:0px;z-index:20;\" id=admin_header>";
|
||||
|
||||
$short_header=1;
|
||||
@@ -253,14 +253,14 @@ else
|
||||
|
||||
if ($file_download < 1)
|
||||
{
|
||||
echo "VICIDIAL: Agent Status Detail $NOW_TIME\n";
|
||||
echo "Agent Status Detail Report $NOW_TIME\n";
|
||||
|
||||
echo "Time range: $query_date_BEGIN to $query_date_END\n\n";
|
||||
echo "---------- AGENT Details -------------\n\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$file_output .= "VICIDIAL: Agent Status Detail $NOW_TIME\n";
|
||||
$file_output .= "Agent Status Detail Report $NOW_TIME\n";
|
||||
$file_output .= "Time range: $query_date_BEGIN to $query_date_END\n\n";
|
||||
}
|
||||
|
||||
|
||||
@@ -178,7 +178,7 @@ if ($file_download < 1)
|
||||
|
||||
<?php
|
||||
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
||||
echo "<TITLE>VICIDIAL: Agent Time Detail</TITLE></HEAD><BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
echo "<TITLE>Agent Time Detail</TITLE></HEAD><BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
echo "<span style=\"position:absolute;left:0px;top:0px;z-index:20;\" id=admin_header>";
|
||||
|
||||
$short_header=1;
|
||||
@@ -231,13 +231,13 @@ else
|
||||
|
||||
if ($file_download < 1)
|
||||
{
|
||||
echo "VICIDIAL: Agent Time Detail $NOW_TIME\n";
|
||||
echo "Agent Time Detail $NOW_TIME\n";
|
||||
|
||||
echo "Time range: $query_date_BEGIN to $query_date_END\n\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$file_output .= "VICIDIAL: Agent Time Detail $NOW_TIME\n";
|
||||
$file_output .= "Agent Time Detail $NOW_TIME\n";
|
||||
$file_output .= "Time range: $query_date_BEGIN to $query_date_END\n\n";
|
||||
}
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@ if (!isset($query_date)) {$query_date = $NOW_DATE;}
|
||||
|
||||
<?php
|
||||
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
||||
echo "<TITLE>VICIDIAL: Agent Time Sheet";
|
||||
echo "<TITLE>Agent Time Sheet";
|
||||
|
||||
|
||||
##### BEGIN Set variables to make header show properly #####
|
||||
@@ -142,7 +142,7 @@ if ($DB) {echo "$stmt\n";}
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$full_name = $row[0];
|
||||
|
||||
echo "VICIDIAL: Agent Time Sheet $NOW_TIME\n";
|
||||
echo "Agent Time Sheet $NOW_TIME\n";
|
||||
|
||||
echo "Time range: $query_date_BEGIN to $query_date_END\n\n";
|
||||
echo "---------- AGENT TIME SHEET: $agent - $full_name -------------\n\n";
|
||||
|
||||
@@ -87,7 +87,7 @@ while ($i < $servers_to_print)
|
||||
|
||||
<?php
|
||||
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
||||
echo "<TITLE>VICIDIAL: Server Performance</TITLE></HEAD><BODY BGCOLOR=WHITE marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
echo "<TITLE>Server Performance Report</TITLE></HEAD><BODY BGCOLOR=WHITE marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
|
||||
$short_header=1;
|
||||
|
||||
@@ -128,7 +128,7 @@ $query_date_BEGIN = $begin_query_time;
|
||||
$query_date_END = $end_query_time;
|
||||
|
||||
|
||||
echo "VICIDIAL: Server Performance $NOW_TIME\n";
|
||||
echo "Server Performance Report $NOW_TIME\n";
|
||||
|
||||
echo "Time range: $query_date_BEGIN to $query_date_END\n\n";
|
||||
echo "---------- TOTALS, PEAKS and AVERAGES\n";
|
||||
|
||||
@@ -114,7 +114,7 @@ if ($closer_display>0)
|
||||
<?php
|
||||
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
||||
echo"<META HTTP-EQUIV=Refresh CONTENT=\"4; URL=$PHP_SELF?server_ip=$server_ip&DB=$DB&reset_counter=$reset_counter&closer_display=$closer_display\">\n";
|
||||
echo "<TITLE>VICIDIAL: Time On VDAD</TITLE></HEAD><BODY BGCOLOR=WHITE marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
echo "<TITLE>Server-Specific Real-Time Report</TITLE></HEAD><BODY BGCOLOR=WHITE marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
|
||||
$short_header=1;
|
||||
|
||||
@@ -144,7 +144,7 @@ echo "SERVER: $server_ip\n";
|
||||
if ($closer_display>0) {$closer_display_reverse=0; $closer_reverse_link='DEFAULT';}
|
||||
else {$closer_display_reverse=1; $closer_reverse_link='CLOSER';}
|
||||
|
||||
echo "VICIDIAL: Agents Time On Calls $NOW_TIME <a href=\"$PHP_SELF?server_ip=$server_ip&DB=$DB&reset_counter=$reset_counter&closer_display=$closer_display_reverse\">$closer_reverse_link</a> | <a href=\"./admin.php?ADD=999999\">REPORTS</a>\n\n";
|
||||
echo "Agents Time On Calls $NOW_TIME <a href=\"$PHP_SELF?server_ip=$server_ip&DB=$DB&reset_counter=$reset_counter&closer_display=$closer_display_reverse\">$closer_reverse_link</a> | <a href=\"./admin.php?ADD=999999\">REPORTS</a>\n\n";
|
||||
|
||||
if ($closer_display>0)
|
||||
{
|
||||
@@ -365,7 +365,7 @@ $talking_to_print = mysql_num_rows($rslt);
|
||||
#echo "\n\n";
|
||||
echo "----------------------------------------------------------------------------------------";
|
||||
echo "\n\n";
|
||||
echo "VICIDIAL: Time On VDAD TRUNK SHORT: $balanceSHORT $NOW_TIME\n\n";
|
||||
echo "Server-Specific Real-Time Report TRUNK SHORT: $balanceSHORT $NOW_TIME\n\n";
|
||||
echo "+---------------------+--------+--------------+--------------------+----------+---------+\n";
|
||||
echo "| CHANNEL | STATUS | CAMPAIGN | PHONE NUMBER | CALLTIME | MINUTES |\n";
|
||||
echo "+---------------------+--------+--------------+--------------------+----------+---------+\n";
|
||||
|
||||
@@ -479,7 +479,7 @@ $rslt=mysql_query($stmt, $link);
|
||||
|
||||
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
||||
echo"<META HTTP-EQUIV=Refresh CONTENT=\"$RR; URL=$PHP_SELF?RR=$RR&DB=$DB$groupQS&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone\">\n";
|
||||
echo "<TITLE>VICIDIAL: Time On VDAD Campaign: $group</TITLE></HEAD><BODY BGCOLOR=WHITE marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
echo "<TITLE>Real-Time Report: $group</TITLE></HEAD><BODY BGCOLOR=WHITE marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
|
||||
$short_header=1;
|
||||
|
||||
@@ -501,7 +501,7 @@ echo "<INPUT TYPE=HIDDEN NAME=SERVdisplay VALUE=\"$SERVdisplay\">\n";
|
||||
echo "<INPUT TYPE=HIDDEN NAME=CALLSdisplay VALUE=\"$CALLSdisplay\">\n";
|
||||
echo "<INPUT TYPE=HIDDEN NAME=PHONEdisplay VALUE=\"$PHONEdisplay\">\n";
|
||||
echo "<INPUT TYPE=HIDDEN NAME=CUSTPHONEdisplay VALUE=\"$CUSTPHONEdisplay\">\n";
|
||||
echo "VICIDIAL Real-Time \n";
|
||||
echo "Real-Time Report \n";
|
||||
echo "<span style=\"position:absolute;left:160px;top:27px;z-index:19;\" id=campaign_select_list>\n";
|
||||
echo "<TABLE WIDTH=250 CELLPADDING=0 CELLSPACING=0 BGCOLOR=\"#D9E6FE\"><TR><TD ALIGN=CENTER>\n";
|
||||
echo "<a href=\"#\" onclick=\"openDiv('campaign_select_list');\">Choose Report Display Options</a>";
|
||||
|
||||
@@ -107,7 +107,7 @@ if (!isset($RR)) {$RR=4;}
|
||||
<?php
|
||||
|
||||
echo"<META HTTP-EQUIV=Refresh CONTENT=\"$RR; URL=$PHP_SELF?RR=$RR&DB=$DB&adastats=$adastats\">\n";
|
||||
echo "<TITLE>VICIDIAL: Realtime All Campaigns Summary</TITLE></HEAD><BODY BGCOLOR=WHITE marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
echo "<TITLE>Real-Time All Campaigns Summary</TITLE></HEAD><BODY BGCOLOR=WHITE marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
|
||||
$short_header=1;
|
||||
|
||||
@@ -115,7 +115,7 @@ echo "<TITLE>VICIDIAL: Realtime All Campaigns Summary</TITLE></HEAD><BODY BGCOLO
|
||||
|
||||
echo "<TABLE CELLPADDING=4 CELLSPACING=0><TR><TD>";
|
||||
|
||||
echo "<b>VICIDIAL: Realtime All Campaigns Summary</b> \n";
|
||||
echo "<b>Real-Time All Campaigns Summary</b> \n";
|
||||
echo "<a href=\"$PHP_SELF?group=$group&RR=4000&DB=$DB&adastats=$adastats\">STOP</a> | ";
|
||||
echo "<a href=\"$PHP_SELF?group=$group&RR=40&DB=$DB&adastats=$adastats\">SLOW</a> | ";
|
||||
echo "<a href=\"$PHP_SELF?group=$group&RR=4&DB=$DB&adastats=$adastats\">GO</a> ";
|
||||
|
||||
@@ -1785,11 +1785,12 @@ else
|
||||
# 90528-2055 - Added ViciDial recording limit field in servers and phone_context to phones
|
||||
# 90530-1206 - Changed List Mix to allow for 40 mixes
|
||||
# 90531-1802 - Added auto-generated options for users, campaigns, in-groups, etc..., added option to HIDE custphone
|
||||
# 90531-2339 - Added Dynamic options for Call Menu
|
||||
#
|
||||
# make sure you have added a user to the vicidial_users MySQL table with at least user_level 8 to access this page the first time
|
||||
|
||||
$admin_version = '2.2.0-190';
|
||||
$build = '90531-1802';
|
||||
$admin_version = '2.2.0-191';
|
||||
$build = '90531-2339';
|
||||
|
||||
$STARTtime = date("U");
|
||||
$SQLdate = date("Y-m-d H:i:s");
|
||||
@@ -1821,6 +1822,8 @@ $dtmf[13]='B'; $dtmf_key[13]='B';
|
||||
$dtmf[14]='C'; $dtmf_key[14]='C';
|
||||
$dtmf[15]='D'; $dtmf_key[15]='D';
|
||||
$dtmf[16]='TIMECHECK'; $dtmf_key[16]='TIMECHECK';
|
||||
$dtmf[17]='TIMEOUT'; $dtmf_key[17]='TIMEOUT';
|
||||
$dtmf[18]='INVALID'; $dtmf_key[18]='INVALID';
|
||||
|
||||
if ($force_logout)
|
||||
{
|
||||
@@ -1948,7 +1951,7 @@ header ("Content-type: text/html; charset=utf-8");
|
||||
echo "<html>\n";
|
||||
echo "<head>\n";
|
||||
echo "<!-- VERSION: $admin_version BUILD: $build ADD: $ADD PHP_SELF: $PHP_SELF-->\n";
|
||||
echo "<title>VICIDIAL ADMIN: ";
|
||||
echo "<title>ADMINISTRATION: ";
|
||||
|
||||
if (!isset($ADD)) {$ADD=0;}
|
||||
|
||||
@@ -2715,7 +2718,7 @@ echo "</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
echo "<CENTER>\n";
|
||||
echo "<TABLE WIDTH=98% BGCOLOR=#E6E6E6 cellpadding=2 cellspacing=0><TR><TD ALIGN=LEFT><FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=4><B>VICIDIAL ADMIN: HELP<BR></B></FONT><FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2><BR><BR>\n";
|
||||
echo "<TABLE WIDTH=98% BGCOLOR=#E6E6E6 cellpadding=2 cellspacing=0><TR><TD ALIGN=LEFT><FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=4><B>ADMINISTRATION: HELP<BR></B></FONT><FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2><BR><BR>\n";
|
||||
|
||||
?>
|
||||
<B><FONT SIZE=3>VICIDIAL_USERS TABLE</FONT></B><BR><BR>
|
||||
@@ -11171,7 +11174,7 @@ if ($ADD==4511)
|
||||
|
||||
$h=0;
|
||||
$option_value_list='|';
|
||||
while ($h <= 16)
|
||||
while ($h <= 18)
|
||||
{
|
||||
$option_value=''; $option_description=''; $option_route=''; $option_route_value=''; $option_route_value_context='';
|
||||
|
||||
@@ -11191,7 +11194,7 @@ if ($ADD==4511)
|
||||
$option_value = ereg_replace("[^-\_0-9A-Z]","",$option_value);
|
||||
$option_description = ereg_replace("[^- \:\/\_0-9a-zA-Z]","",$option_description);
|
||||
$option_route = ereg_replace("[^-_0-9a-zA-Z]","",$option_route);
|
||||
$option_route_value = ereg_replace("[^-\_\#\*\,\_0-9a-zA-Z]","",$option_route_value);
|
||||
$option_route_value = ereg_replace("[^-\_\#\*\,\.\_0-9a-zA-Z]","",$option_route_value);
|
||||
$option_route_value_context = ereg_replace("[^-_0-9a-zA-Z]","",$option_route_value_context);
|
||||
}
|
||||
|
||||
@@ -11233,7 +11236,7 @@ if ($ADD==4511)
|
||||
$h++;
|
||||
}
|
||||
## delete existing database records that were not in the submit
|
||||
while ($h <= 16)
|
||||
while ($h <= 18)
|
||||
{
|
||||
if (!preg_match("/\|$dtmf[$h]\|/i",$option_value_list))
|
||||
{
|
||||
@@ -17648,7 +17651,10 @@ if ($ADD==3311)
|
||||
echo "<TABLE><TR><TD>\n";
|
||||
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
||||
|
||||
$stmt="SELECT * from vicidial_inbound_dids where did_id='$did_id';";
|
||||
$didSQL = "did_id='$did_id'";
|
||||
if ( (strlen($did_id)<1) and (strlen($did_pattern)>0) )
|
||||
{$didSQL = "did_pattern='$did_pattern'";}
|
||||
$stmt="SELECT * from vicidial_inbound_dids where $didSQL;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$did_id = $row[0];
|
||||
@@ -17865,15 +17871,27 @@ if ($ADD==3511)
|
||||
while ($menus_to_print > $j)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$option_value = $row[0];
|
||||
$option_description = $row[1];
|
||||
$option_route = $row[2];
|
||||
$option_route_value = $row[3];
|
||||
$option_route_value_context = $row[4];
|
||||
$Aoption_value[$j] = $row[0];
|
||||
$Aoption_description[$j] = $row[1];
|
||||
$Aoption_route[$j] = $row[2];
|
||||
$Aoption_route_value[$j] = $row[3];
|
||||
$Aoption_route_value_context[$j] = $row[4];
|
||||
$j++;
|
||||
}
|
||||
|
||||
$j=0;
|
||||
while ($menus_to_print > $j)
|
||||
{
|
||||
$choose_height = (($j * 40) + 400);
|
||||
$option_value = $Aoption_value[$j];
|
||||
$option_description = $Aoption_description[$j];
|
||||
$option_route = $Aoption_route[$j];
|
||||
$option_route_value = $Aoption_route_value[$j];
|
||||
$option_route_value_context = $Aoption_route_value_context[$j];
|
||||
|
||||
$dtmf_list = "<select size=1 name=option_value_$j>";
|
||||
$h=0;
|
||||
while ($h <= 16)
|
||||
while ($h <= 18)
|
||||
{
|
||||
$dtmf_list .= "<option";
|
||||
if ( (preg_match("/$dtmf[$h]/",$option_value) and (strlen($option_value) == strlen($dtmf[$h])) ) )
|
||||
@@ -17883,34 +17901,107 @@ if ($ADD==3511)
|
||||
}
|
||||
$dtmf_list .= "</select>";
|
||||
|
||||
echo "<tr bgcolor=#B6D3FC><td align=CENTER colspan=2>
|
||||
if (eregi("1$|3$|5$|7$|9$", $j))
|
||||
{$bgcolor='bgcolor="#CCFFFF"';}
|
||||
else
|
||||
{$bgcolor='bgcolor="#99FFCC"';}
|
||||
|
||||
echo "<tr $bgcolor><td align=CENTER colspan=2>
|
||||
Option: $dtmf_list
|
||||
Description: <input type=text name=option_description_$j size=40 maxlength=255 value=\"$option_description\">
|
||||
Route: <select size=1 name=option_route_$j><option>CALLMENU</option><option>HANGUP</option><option>DID</option><option>EXTENSION</option><option>PHONE</option><option>VOICEMAIL</option><option>AGI</option><option value=\"\">* REMOVE *</option><option selected value=\"$option_route\">$option_route</option></select> $NWB#vicidial_call_menu-option_value$NWE <BR>
|
||||
Value: <input type=text name=option_route_value_$j size=40 maxlength=255 value=\"$option_route_value\">
|
||||
Context: <input type=text name=option_route_value_context_$j size=40 maxlength=255 value=\"$option_route_value_context\">
|
||||
Route: <select size=1 name=option_route_$j id=option_route_$j onChange=\"call_menu_option('$j','$option_route','$option_route_value','$option_route_value_context','$choose_height');\">
|
||||
<option>CALLMENU</option>
|
||||
<option>HANGUP</option>
|
||||
<option>DID</option>
|
||||
<option>EXTENSION</option>
|
||||
<option>PHONE</option>
|
||||
<option>VOICEMAIL</option>
|
||||
<option>AGI</option>
|
||||
<option value=\"\">* REMOVE *</option>
|
||||
<option selected value=\"$option_route\">$option_route</option>
|
||||
</select> $NWB#vicidial_call_menu-option_value$NWE <BR>
|
||||
|
||||
<span id=\"option_value_value_context_$j\" name=\"option_value_value_context_$j\">\n";
|
||||
|
||||
if ($option_route=='CALLMENU')
|
||||
{
|
||||
echo "<span name=option_route_link_$j id=option_route_link_$j>";
|
||||
echo "<a href=\"$PHP_SELF?ADD=3511&menu_id=$option_route_value\">Call Menu:</a>";
|
||||
echo "</span>";
|
||||
echo " <select size=1 name=option_route_value_$j id=option_route_value_$j onChange=\"call_menu_link('$j','CALLMENU');\">$call_menu_list<option SELECTED>$option_route_value</option></select>\n";
|
||||
}
|
||||
if ($option_route=='HANGUP')
|
||||
{
|
||||
echo "Audio File: <input type=text name=option_route_value_$j id=option_route_value_$j size=40 maxlength=255 value=\"$option_route_value\"> <a href=\"javascript:launch_chooser('option_route_value_$j','date',$choose_height);\">audio chooser</a>\n";
|
||||
}
|
||||
if ($option_route=='DID')
|
||||
{
|
||||
$stmt="SELECT did_id from vicidial_inbound_dids where did_pattern='$option_route_value';";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$did_id = $row[0];
|
||||
|
||||
echo "<span name=option_route_link_$j id=option_route_link_$j>";
|
||||
echo "<a href=\"$PHP_SELF?ADD=3311&did_id=$did_id\">DID:</a>";
|
||||
echo "</span>";
|
||||
echo " <select size=1 name=option_route_value_$j id=option_route_value_$j onChange=\"call_menu_link('$j','DID');\">$did_list<option SELECTED>$option_route_value</option></select>\n";
|
||||
}
|
||||
if ($option_route=='EXTENSION')
|
||||
{
|
||||
echo "Extension: <input type=text name=option_route_value_$j id=option_route_value_$j size=20 maxlength=255 value=\"$option_route_value\"> Context: <input type=text name=option_route_value_context_$j id=option_route_value_context_$j size=20 maxlength=255 value=\"$option_route_value_context\">\n";
|
||||
}
|
||||
if ($option_route=='PHONE')
|
||||
{
|
||||
echo "Phone: <select size=1 name=option_route_value_$j id=option_route_value_$j>$phone_list<option SELECTED>$option_route_value</option></select>\n";
|
||||
}
|
||||
if ($option_route=='VOICEMAIL')
|
||||
{
|
||||
echo "Voicemail Box: <input type=text name=option_route_value_$j id=option_route_value_$j size=20 maxlength=255 value=\"$option_route_value\">\n";
|
||||
}
|
||||
if ($option_route=='AGI')
|
||||
{
|
||||
echo "AGI: <input type=text name=option_route_value_$j id=option_route_value_$j size=80 maxlength=255 value=\"$option_route_value\">\n";
|
||||
}
|
||||
|
||||
echo "</span>
|
||||
<BR> </td></tr>\n";
|
||||
$j++;
|
||||
}
|
||||
|
||||
while ($j <= 16)
|
||||
while ($j <= 18)
|
||||
{
|
||||
$choose_height = (($j * 40) + 400);
|
||||
$dtmf_list = "<select size=1 name=option_value_$j><option value=\"\"></option>";
|
||||
$h=0;
|
||||
while ($h <= 16)
|
||||
while ($h <= 18)
|
||||
{
|
||||
$dtmf_list .= "<option value=\"$dtmf[$h]\"> $dtmf_key[$h]</option>";
|
||||
$h++;
|
||||
}
|
||||
$dtmf_list .= "</select>";
|
||||
|
||||
echo "<tr bgcolor=#B6D3FC><td align=CENTER colspan=2>
|
||||
if (eregi("1$|3$|5$|7$|9$", $j))
|
||||
{$bgcolor='bgcolor="#B9CBFD"';}
|
||||
else
|
||||
{$bgcolor='bgcolor="#9BB9FB"';}
|
||||
|
||||
echo "<tr $bgcolor><td align=CENTER colspan=2>
|
||||
Option: $dtmf_list
|
||||
Description: <input type=text name=option_description_$j size=40 maxlength=255 value=\"\">
|
||||
Route: <select size=1 name=option_route_$j><option>CALLMENU</option><option>HANGUP</option><option>DID</option><option>EXTENSION</option><option>PHONE</option><option>VOICEMAIL</option><option>AGI</option><option SELECTED value=\"\"> </option></select>
|
||||
Route: <select size=1 name=option_route_$j id=option_route_$j onChange=\"call_menu_option('$j','','','','$choose_height');\">
|
||||
<option>CALLMENU</option>
|
||||
<option>HANGUP</option>
|
||||
<option>DID</option>
|
||||
<option>EXTENSION</option>
|
||||
<option>PHONE</option>
|
||||
<option>VOICEMAIL</option>
|
||||
<option>AGI</option>
|
||||
<option SELECTED value=\"\"> </option>
|
||||
</select>
|
||||
$NWB#vicidial_call_menu-option_value$NWE <BR>
|
||||
Value: <input type=text name=option_route_value_$j size=40 maxlength=255 value=\"\">
|
||||
Context: <input type=text name=option_route_value_context_$j size=40 maxlength=255 value=\"\">
|
||||
|
||||
<span id=\"option_value_value_context_$j\" name=\"option_value_value_context_$j\">\n";
|
||||
echo "</span>
|
||||
<BR> </td></tr>\n";
|
||||
$j++;
|
||||
}
|
||||
@@ -21686,9 +21777,11 @@ if ($ADD==999999)
|
||||
<HEAD>
|
||||
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
|
||||
<TITLE>VICIDIAL: Server Stats and Reports</TITLE></HEAD><BODY BGCOLOR=WHITE>
|
||||
<FONT SIZE=4><B>VICIDIAL: Server Stats and Reports</B></FONT><BR><BR>
|
||||
<TITLE>Server Stats and Reports</TITLE></HEAD><BODY BGCOLOR=WHITE>
|
||||
<FONT SIZE=4><B>Server Stats and Reports</B></FONT><BR><BR>
|
||||
<TABLE BORDER=0 CELLPADDING=5 CELLSPACING=0><TR><TD VALIGN=TOP>
|
||||
|
||||
</TD><TD VALIGN=TOP>
|
||||
<B>Real-Time Reports</B><BR>
|
||||
<UL>
|
||||
<LI><a href="AST_timeonVDADall.php"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=2>Real-Time Main Report</a></FONT>
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
# 90508-0542 - Added Call Menu option, changed script to use long PHP tags
|
||||
# 90514-0605 - Added audio prompt selection functions
|
||||
# 90530-1206 - Changed List Mix to allow for 40 mixes and a default populate option
|
||||
# 90531-2339 - Added Dynamic options for Call Menu
|
||||
#
|
||||
|
||||
|
||||
@@ -84,111 +85,94 @@ echo "var epoch = '" . date("U") . "';\n";
|
||||
|
||||
if ($TCedit_javascript > 0)
|
||||
{
|
||||
?>
|
||||
?>
|
||||
|
||||
function run_submit()
|
||||
{
|
||||
calculate_hours();
|
||||
var go_submit = document.getElementById("go_submit");
|
||||
if (go_submit.disabled == false)
|
||||
function run_submit()
|
||||
{
|
||||
document.edit_log.submit();
|
||||
calculate_hours();
|
||||
var go_submit = document.getElementById("go_submit");
|
||||
if (go_submit.disabled == false)
|
||||
{
|
||||
document.edit_log.submit();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Calculate login time
|
||||
function calculate_hours()
|
||||
{
|
||||
var now_epoch = '<?php echo $StarTtimE ?>';
|
||||
var i=0;
|
||||
var total_percent=0;
|
||||
var SPANlogin_time = document.getElementById("LOGINlogin_time");
|
||||
var LI_date = document.getElementById("LOGINbegin_date");
|
||||
var LO_date = document.getElementById("LOGOUTbegin_date");
|
||||
var LI_datetime = LI_date.value;
|
||||
var LO_datetime = LO_date.value;
|
||||
var LI_datetime_array=LI_datetime.split(" ");
|
||||
var LI_date_array=LI_datetime_array[0].split("-");
|
||||
var LI_time_array=LI_datetime_array[1].split(":");
|
||||
var LO_datetime_array=LO_datetime.split(" ");
|
||||
var LO_date_array=LO_datetime_array[0].split("-");
|
||||
var LO_time_array=LO_datetime_array[1].split(":");
|
||||
|
||||
// Calculate milliseconds since 1970 for each date string and find diff
|
||||
var LI_sec = ( ( (LI_time_array[2] * 1) * 1000) );
|
||||
var LI_min = ( ( ( (LI_time_array[1] * 1) * 1000) * 60 ) );
|
||||
var LI_hour = ( ( ( (LI_time_array[0] * 1) * 1000) * 3600 ) );
|
||||
var LI_date_epoch = Date.parse(LI_date_array[0] + '/' + LI_date_array[1] + '/' + LI_date_array[2]);
|
||||
var LI_epoch = (LI_date_epoch + LI_sec + LI_min + LI_hour);
|
||||
var LO_sec = ( ( (LO_time_array[2] * 1) * 1000) );
|
||||
var LO_min = ( ( ( (LO_time_array[1] * 1) * 1000) * 60 ) );
|
||||
var LO_hour = ( ( ( (LO_time_array[0] * 1) * 1000) * 3600 ) );
|
||||
var LO_date_epoch = Date.parse(LO_date_array[0] + '/' + LO_date_array[1] + '/' + LO_date_array[2]);
|
||||
var LO_epoch = (LO_date_epoch + LO_sec + LO_min + LO_hour);
|
||||
var temp_LI_epoch = (LI_epoch / 1000 );
|
||||
var temp_LO_epoch = (LO_epoch / 1000 );
|
||||
var epoch_diff = ( (LO_epoch - LI_epoch) / 1000 );
|
||||
var temp_diff = epoch_diff;
|
||||
|
||||
document.getElementById("login_time").innerHTML = "ERROR, Please check date fields";
|
||||
|
||||
var go_submit = document.getElementById("go_submit");
|
||||
go_submit.disabled = true;
|
||||
// length is a positive number and no more than 24 hours, datetime is earlier than right now
|
||||
if ( (epoch_diff < 86401) && (epoch_diff > 0) && (temp_LI_epoch < now_epoch) && (temp_LO_epoch < now_epoch) )
|
||||
// Calculate login time
|
||||
function calculate_hours()
|
||||
{
|
||||
go_submit.disabled = false;
|
||||
var now_epoch = '<?php echo $StarTtimE ?>';
|
||||
var i=0;
|
||||
var total_percent=0;
|
||||
var SPANlogin_time = document.getElementById("LOGINlogin_time");
|
||||
var LI_date = document.getElementById("LOGINbegin_date");
|
||||
var LO_date = document.getElementById("LOGOUTbegin_date");
|
||||
var LI_datetime = LI_date.value;
|
||||
var LO_datetime = LO_date.value;
|
||||
var LI_datetime_array=LI_datetime.split(" ");
|
||||
var LI_date_array=LI_datetime_array[0].split("-");
|
||||
var LI_time_array=LI_datetime_array[1].split(":");
|
||||
var LO_datetime_array=LO_datetime.split(" ");
|
||||
var LO_date_array=LO_datetime_array[0].split("-");
|
||||
var LO_time_array=LO_datetime_array[1].split(":");
|
||||
|
||||
hours = Math.floor(temp_diff / (60 * 60));
|
||||
temp_diff -= hours * (60 * 60);
|
||||
// Calculate milliseconds since 1970 for each date string and find diff
|
||||
var LI_sec = ( ( (LI_time_array[2] * 1) * 1000) );
|
||||
var LI_min = ( ( ( (LI_time_array[1] * 1) * 1000) * 60 ) );
|
||||
var LI_hour = ( ( ( (LI_time_array[0] * 1) * 1000) * 3600 ) );
|
||||
var LI_date_epoch = Date.parse(LI_date_array[0] + '/' + LI_date_array[1] + '/' + LI_date_array[2]);
|
||||
var LI_epoch = (LI_date_epoch + LI_sec + LI_min + LI_hour);
|
||||
var LO_sec = ( ( (LO_time_array[2] * 1) * 1000) );
|
||||
var LO_min = ( ( ( (LO_time_array[1] * 1) * 1000) * 60 ) );
|
||||
var LO_hour = ( ( ( (LO_time_array[0] * 1) * 1000) * 3600 ) );
|
||||
var LO_date_epoch = Date.parse(LO_date_array[0] + '/' + LO_date_array[1] + '/' + LO_date_array[2]);
|
||||
var LO_epoch = (LO_date_epoch + LO_sec + LO_min + LO_hour);
|
||||
var temp_LI_epoch = (LI_epoch / 1000 );
|
||||
var temp_LO_epoch = (LO_epoch / 1000 );
|
||||
var epoch_diff = ( (LO_epoch - LI_epoch) / 1000 );
|
||||
var temp_diff = epoch_diff;
|
||||
|
||||
mins = Math.floor(temp_diff / 60);
|
||||
temp_diff -= mins * 60;
|
||||
document.getElementById("login_time").innerHTML = "ERROR, Please check date fields";
|
||||
|
||||
secs = Math.floor(temp_diff);
|
||||
temp_diff -= secs;
|
||||
var go_submit = document.getElementById("go_submit");
|
||||
go_submit.disabled = true;
|
||||
// length is a positive number and no more than 24 hours, datetime is earlier than right now
|
||||
if ( (epoch_diff < 86401) && (epoch_diff > 0) && (temp_LI_epoch < now_epoch) && (temp_LO_epoch < now_epoch) )
|
||||
{
|
||||
go_submit.disabled = false;
|
||||
|
||||
document.getElementById("login_time").innerHTML = hours + ":" + mins;
|
||||
hours = Math.floor(temp_diff / (60 * 60));
|
||||
temp_diff -= hours * (60 * 60);
|
||||
|
||||
var form_LI_epoch = document.getElementById("LOGINepoch");
|
||||
var form_LO_epoch = document.getElementById("LOGOUTepoch");
|
||||
form_LI_epoch.value = (LI_epoch / 1000);
|
||||
form_LO_epoch.value = (LO_epoch / 1000);
|
||||
mins = Math.floor(temp_diff / 60);
|
||||
temp_diff -= mins * 60;
|
||||
|
||||
secs = Math.floor(temp_diff);
|
||||
temp_diff -= secs;
|
||||
|
||||
document.getElementById("login_time").innerHTML = hours + ":" + mins;
|
||||
|
||||
var form_LI_epoch = document.getElementById("LOGINepoch");
|
||||
var form_LO_epoch = document.getElementById("LOGOUTepoch");
|
||||
form_LI_epoch.value = (LI_epoch / 1000);
|
||||
form_LO_epoch.value = (LO_epoch / 1000);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
<?php
|
||||
}
|
||||
######################
|
||||
# ADD=31 or 34 and SUB=29 for list mixes
|
||||
######################
|
||||
if ( ( ($ADD==34) or ($ADD==31) or ($ADD==49) ) and ($SUB==29) and ($LOGmodify_campaigns==1) and ( (eregi("$campaign_id",$LOGallowed_campaigns)) or (eregi("ALL-CAMPAIGNS",$LOGallowed_campaigns)) ) )
|
||||
{
|
||||
|
||||
?>
|
||||
// List Mix status add and remove
|
||||
function mod_mix_status(stage,vcl_id,entry)
|
||||
{
|
||||
if (stage=="ALL")
|
||||
{
|
||||
var count=0;
|
||||
var ROnew_statuses = document.getElementById("ROstatus_X_" + vcl_id);
|
||||
|
||||
while (count < entry)
|
||||
{
|
||||
var old_statuses = document.getElementById("status_" + count + "_" + vcl_id);
|
||||
var ROold_statuses = document.getElementById("ROstatus_" + count + "_" + vcl_id);
|
||||
|
||||
old_statuses.value = ROnew_statuses.value;
|
||||
ROold_statuses.value = ROnew_statuses.value;
|
||||
count++;
|
||||
}
|
||||
}
|
||||
else
|
||||
?>
|
||||
// List Mix status add and remove
|
||||
function mod_mix_status(stage,vcl_id,entry)
|
||||
{
|
||||
if (stage=="EMPTY")
|
||||
if (stage=="ALL")
|
||||
{
|
||||
var count=0;
|
||||
var ROnew_statuses = document.getElementById("ROstatus_X_" + vcl_id);
|
||||
@@ -197,291 +181,461 @@ function mod_mix_status(stage,vcl_id,entry)
|
||||
{
|
||||
var old_statuses = document.getElementById("status_" + count + "_" + vcl_id);
|
||||
var ROold_statuses = document.getElementById("ROstatus_" + count + "_" + vcl_id);
|
||||
|
||||
if (ROold_statuses.value.length < 3)
|
||||
{
|
||||
old_statuses.value = ROnew_statuses.value;
|
||||
ROold_statuses.value = ROnew_statuses.value;
|
||||
}
|
||||
|
||||
old_statuses.value = ROnew_statuses.value;
|
||||
ROold_statuses.value = ROnew_statuses.value;
|
||||
count++;
|
||||
}
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
var mod_status = document.getElementById("dial_status_" + entry + "_" + vcl_id);
|
||||
if (mod_status.value.length < 1)
|
||||
if (stage=="EMPTY")
|
||||
{
|
||||
alert("You must select a status first");
|
||||
var count=0;
|
||||
var ROnew_statuses = document.getElementById("ROstatus_X_" + vcl_id);
|
||||
|
||||
while (count < entry)
|
||||
{
|
||||
var old_statuses = document.getElementById("status_" + count + "_" + vcl_id);
|
||||
var ROold_statuses = document.getElementById("ROstatus_" + count + "_" + vcl_id);
|
||||
|
||||
if (ROold_statuses.value.length < 3)
|
||||
{
|
||||
old_statuses.value = ROnew_statuses.value;
|
||||
ROold_statuses.value = ROnew_statuses.value;
|
||||
}
|
||||
count++;
|
||||
}
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
var old_statuses = document.getElementById("status_" + entry + "_" + vcl_id);
|
||||
var ROold_statuses = document.getElementById("ROstatus_" + entry + "_" + vcl_id);
|
||||
var MODstatus = new RegExp(" " + mod_status.value + " ","g");
|
||||
if (stage=="ADD")
|
||||
var mod_status = document.getElementById("dial_status_" + entry + "_" + vcl_id);
|
||||
if (mod_status.value.length < 1)
|
||||
{
|
||||
if (old_statuses.value.match(MODstatus))
|
||||
{
|
||||
alert("The status " + mod_status.value + " is already present");
|
||||
}
|
||||
else
|
||||
{
|
||||
var new_statuses = " " + mod_status.value + "" + old_statuses.value;
|
||||
old_statuses.value = new_statuses;
|
||||
ROold_statuses.value = new_statuses;
|
||||
mod_status.value = "";
|
||||
}
|
||||
alert("You must select a status first");
|
||||
}
|
||||
if (stage=="REMOVE")
|
||||
else
|
||||
{
|
||||
var old_statuses = document.getElementById("status_" + entry + "_" + vcl_id);
|
||||
var ROold_statuses = document.getElementById("ROstatus_" + entry + "_" + vcl_id);
|
||||
var MODstatus = new RegExp(" " + mod_status.value + " ","g");
|
||||
old_statuses.value = old_statuses.value.replace(MODstatus, " ");
|
||||
ROold_statuses.value = ROold_statuses.value.replace(MODstatus, " ");
|
||||
if (stage=="ADD")
|
||||
{
|
||||
if (old_statuses.value.match(MODstatus))
|
||||
{
|
||||
alert("The status " + mod_status.value + " is already present");
|
||||
}
|
||||
else
|
||||
{
|
||||
var new_statuses = " " + mod_status.value + "" + old_statuses.value;
|
||||
old_statuses.value = new_statuses;
|
||||
ROold_statuses.value = new_statuses;
|
||||
mod_status.value = "";
|
||||
}
|
||||
}
|
||||
if (stage=="REMOVE")
|
||||
{
|
||||
var MODstatus = new RegExp(" " + mod_status.value + " ","g");
|
||||
old_statuses.value = old_statuses.value.replace(MODstatus, " ");
|
||||
ROold_statuses.value = ROold_statuses.value.replace(MODstatus, " ");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// List Mix percent difference calculation and warning message
|
||||
function mod_mix_percent(vcl_id,entries)
|
||||
{
|
||||
var i=0;
|
||||
var total_percent=0;
|
||||
var percent_diff='';
|
||||
while(i < entries)
|
||||
{
|
||||
var mod_percent_field = document.getElementById("percentage_" + i + "_" + vcl_id);
|
||||
temp_percent = mod_percent_field.value * 1;
|
||||
total_percent = (total_percent + temp_percent);
|
||||
i++;
|
||||
}
|
||||
|
||||
var mod_diff_percent = document.getElementById("PCT_DIFF_" + vcl_id);
|
||||
percent_diff = (total_percent - 100);
|
||||
if (percent_diff > 0)
|
||||
{
|
||||
percent_diff = '+' + percent_diff;
|
||||
}
|
||||
var mix_list_submit = document.getElementById("submit_" + vcl_id);
|
||||
if ( (percent_diff > 0) || (percent_diff < 0) )
|
||||
{
|
||||
mix_list_submit.disabled = true;
|
||||
document.getElementById("ERROR_" + vcl_id).innerHTML = "<font color=red><B>The Difference % must be 0</B></font>";
|
||||
}
|
||||
else
|
||||
{
|
||||
mix_list_submit.disabled = false;
|
||||
document.getElementById("ERROR_" + vcl_id).innerHTML = "";
|
||||
}
|
||||
|
||||
mod_diff_percent.value = percent_diff;
|
||||
}
|
||||
|
||||
function submit_mix(vcl_id,entries)
|
||||
{
|
||||
var h=1;
|
||||
var j=1;
|
||||
var list_mix_container='';
|
||||
var mod_list_mix_container_field = document.getElementById("list_mix_container_" + vcl_id);
|
||||
while(h < 41)
|
||||
// List Mix percent difference calculation and warning message
|
||||
function mod_mix_percent(vcl_id,entries)
|
||||
{
|
||||
var i=0;
|
||||
var total_percent=0;
|
||||
var percent_diff='';
|
||||
while(i < entries)
|
||||
{
|
||||
var mod_list_id_field = document.getElementById("list_id_" + i + "_" + vcl_id);
|
||||
var mod_priority_field = document.getElementById("priority_" + i + "_" + vcl_id);
|
||||
var mod_percent_field = document.getElementById("percentage_" + i + "_" + vcl_id);
|
||||
var mod_statuses_field = document.getElementById("status_" + i + "_" + vcl_id);
|
||||
if (mod_priority_field.value==h)
|
||||
{
|
||||
list_mix_container = list_mix_container + mod_list_id_field.value + "|" + j + "|" + mod_percent_field.value + "|" + mod_statuses_field.value + "|:";
|
||||
j++;
|
||||
}
|
||||
temp_percent = mod_percent_field.value * 1;
|
||||
total_percent = (total_percent + temp_percent);
|
||||
i++;
|
||||
}
|
||||
h++;
|
||||
|
||||
var mod_diff_percent = document.getElementById("PCT_DIFF_" + vcl_id);
|
||||
percent_diff = (total_percent - 100);
|
||||
if (percent_diff > 0)
|
||||
{
|
||||
percent_diff = '+' + percent_diff;
|
||||
}
|
||||
var mix_list_submit = document.getElementById("submit_" + vcl_id);
|
||||
if ( (percent_diff > 0) || (percent_diff < 0) )
|
||||
{
|
||||
mix_list_submit.disabled = true;
|
||||
document.getElementById("ERROR_" + vcl_id).innerHTML = "<font color=red><B>The Difference % must be 0</B></font>";
|
||||
}
|
||||
else
|
||||
{
|
||||
mix_list_submit.disabled = false;
|
||||
document.getElementById("ERROR_" + vcl_id).innerHTML = "";
|
||||
}
|
||||
|
||||
mod_diff_percent.value = percent_diff;
|
||||
}
|
||||
mod_list_mix_container_field.value = list_mix_container;
|
||||
var form_to_submit = document.getElementById("" + vcl_id);
|
||||
form_to_submit.submit();
|
||||
|
||||
function submit_mix(vcl_id,entries)
|
||||
{
|
||||
var h=1;
|
||||
var j=1;
|
||||
var list_mix_container='';
|
||||
var mod_list_mix_container_field = document.getElementById("list_mix_container_" + vcl_id);
|
||||
while(h < 41)
|
||||
{
|
||||
var i=0;
|
||||
while(i < entries)
|
||||
{
|
||||
var mod_list_id_field = document.getElementById("list_id_" + i + "_" + vcl_id);
|
||||
var mod_priority_field = document.getElementById("priority_" + i + "_" + vcl_id);
|
||||
var mod_percent_field = document.getElementById("percentage_" + i + "_" + vcl_id);
|
||||
var mod_statuses_field = document.getElementById("status_" + i + "_" + vcl_id);
|
||||
if (mod_priority_field.value==h)
|
||||
{
|
||||
list_mix_container = list_mix_container + mod_list_id_field.value + "|" + j + "|" + mod_percent_field.value + "|" + mod_statuses_field.value + "|:";
|
||||
j++;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
h++;
|
||||
}
|
||||
mod_list_mix_container_field.value = list_mix_container;
|
||||
var form_to_submit = document.getElementById("" + vcl_id);
|
||||
form_to_submit.submit();
|
||||
}
|
||||
<?php
|
||||
}
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
function openNewWindow(url) {
|
||||
window.open (url,"",'width=620,height=300,scrollbars=yes,menubar=yes,address=yes');
|
||||
}
|
||||
function scriptInsertField() {
|
||||
openField = '--A--';
|
||||
closeField = '--B--';
|
||||
var textBox = document.scriptForm.script_text;
|
||||
var scriptIndex = document.getElementById("selectedField").selectedIndex;
|
||||
var insValue = document.getElementById('selectedField').options[scriptIndex].value;
|
||||
if (document.selection) {
|
||||
//IE
|
||||
textBox = document.scriptForm.script_text;
|
||||
insValue = document.scriptForm.selectedField.options[document.scriptForm.selectedField.selectedIndex].text;
|
||||
textBox.focus();
|
||||
sel = document.selection.createRange();
|
||||
sel.text = openField + insValue + closeField;
|
||||
} else if (textBox.selectionStart || textBox.selectionStart == 0) {
|
||||
//Mozilla
|
||||
var startPos = textBox.selectionStart;
|
||||
var endPos = textBox.selectionEnd;
|
||||
textBox.value = textBox.value.substring(0, startPos)
|
||||
+ openField + insValue + closeField
|
||||
+ textBox.value.substring(endPos, textBox.value.length);
|
||||
} else {
|
||||
textBox.value += openField + insValue + closeField;
|
||||
}
|
||||
}
|
||||
function openNewWindow(url) {
|
||||
window.open (url,"",'width=620,height=300,scrollbars=yes,menubar=yes,address=yes');
|
||||
}
|
||||
function scriptInsertField() {
|
||||
openField = '--A--';
|
||||
closeField = '--B--';
|
||||
var textBox = document.scriptForm.script_text;
|
||||
var scriptIndex = document.getElementById("selectedField").selectedIndex;
|
||||
var insValue = document.getElementById('selectedField').options[scriptIndex].value;
|
||||
if (document.selection) {
|
||||
//IE
|
||||
textBox = document.scriptForm.script_text;
|
||||
insValue = document.scriptForm.selectedField.options[document.scriptForm.selectedField.selectedIndex].text;
|
||||
textBox.focus();
|
||||
sel = document.selection.createRange();
|
||||
sel.text = openField + insValue + closeField;
|
||||
} else if (textBox.selectionStart || textBox.selectionStart == 0) {
|
||||
//Mozilla
|
||||
var startPos = textBox.selectionStart;
|
||||
var endPos = textBox.selectionEnd;
|
||||
textBox.value = textBox.value.substring(0, startPos)
|
||||
+ openField + insValue + closeField
|
||||
+ textBox.value.substring(endPos, textBox.value.length);
|
||||
} else {
|
||||
textBox.value += openField + insValue + closeField;
|
||||
}
|
||||
}
|
||||
|
||||
<?php
|
||||
<?php
|
||||
|
||||
#### Javascript for auto-generate of user ID Button
|
||||
if ( ($ADD==1) or ($ADD=="1A") )
|
||||
{
|
||||
?>
|
||||
function user_auto()
|
||||
{
|
||||
var user_toggle = document.getElementById("user_toggle");
|
||||
var user_field = document.getElementById("user");
|
||||
if (user_toggle.value < 1)
|
||||
?>
|
||||
function user_auto()
|
||||
{
|
||||
user_field.value = 'AUTOGENERATEZZZ';
|
||||
user_field.disabled = true;
|
||||
user_toggle.value = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
user_field.value = '';
|
||||
user_field.disabled = false;
|
||||
user_toggle.value = 0;
|
||||
}
|
||||
}
|
||||
|
||||
function user_submit()
|
||||
{
|
||||
var user_field = document.getElementById("user");
|
||||
user_field.disabled = false;
|
||||
document.userform.submit();
|
||||
}
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
#### Javascript for auto-generate of user ID Button
|
||||
else
|
||||
{
|
||||
?>
|
||||
function launch_chooser(fieldname,stage,vposition)
|
||||
{
|
||||
var audiolistURL = "./non_agent_api.php";
|
||||
var audiolistQuery = "source=admin&function=sounds_list&user=" + user + "&pass=" + pass + "&format=selectframe&stage=" + stage + "&comments=" + fieldname;
|
||||
var Iframe_content = '<IFRAME SRC="' + audiolistURL + '?' + audiolistQuery + '" style="width:560;height:440;background-color:white;" scrolling="NO" frameborder="0" allowtransparency="true" id="audio_chooser_frame' + epoch + '" name="audio_chooser_frame" width="560" height="460" STYLE="z-index:2"> </iframe>';
|
||||
|
||||
document.getElementById("audio_chooser_span").style.position = "absolute";
|
||||
document.getElementById("audio_chooser_span").style.left = "300px";
|
||||
document.getElementById("audio_chooser_span").style.top = vposition + "px";
|
||||
document.getElementById("audio_chooser_span").style.visibility = 'visible';
|
||||
document.getElementById("audio_chooser_span").innerHTML = Iframe_content;
|
||||
}
|
||||
|
||||
function close_chooser()
|
||||
{
|
||||
document.getElementById("audio_chooser_span").style.visibility = 'hidden';
|
||||
document.getElementById("audio_chooser_span").innerHTML = '';
|
||||
}
|
||||
|
||||
|
||||
function user_submit()
|
||||
{
|
||||
var user_field = document.getElementById("user");
|
||||
user_field.disabled = false;
|
||||
document.userform.submit();
|
||||
}
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
### Javascript for shift end-time calculation and display
|
||||
if ( ($ADD==131111111) or ($ADD==331111111) or ($ADD==431111111) )
|
||||
{
|
||||
?>
|
||||
function shift_time()
|
||||
{
|
||||
var start_time = document.getElementById("shift_start_time");
|
||||
var end_time = document.getElementById("shift_end_time");
|
||||
var length = document.getElementById("shift_length");
|
||||
|
||||
var st_value = start_time.value;
|
||||
var et_value = end_time.value;
|
||||
while (st_value.length < 4) {st_value = "0" + st_value;}
|
||||
while (et_value.length < 4) {et_value = "0" + et_value;}
|
||||
var st_hour=st_value.substring(0,2);
|
||||
var st_min=st_value.substring(2,4);
|
||||
var et_hour=et_value.substring(0,2);
|
||||
var et_min=et_value.substring(2,4);
|
||||
if (st_hour > 23) {st_hour = 23;}
|
||||
if (et_hour > 23) {et_hour = 23;}
|
||||
if (st_min > 59) {st_min = 59;}
|
||||
if (et_min > 59) {et_min = 59;}
|
||||
start_time.value = st_hour + "" + st_min;
|
||||
end_time.value = et_hour + "" + et_min;
|
||||
|
||||
var start_time_hour=start_time.value.substring(0,2);
|
||||
var start_time_min=start_time.value.substring(2,4);
|
||||
var end_time_hour=end_time.value.substring(0,2);
|
||||
var end_time_min=end_time.value.substring(2,4);
|
||||
start_time_hour=(start_time_hour * 1);
|
||||
start_time_min=(start_time_min * 1);
|
||||
end_time_hour=(end_time_hour * 1);
|
||||
end_time_min=(end_time_min * 1);
|
||||
|
||||
if (start_time.value == end_time.value)
|
||||
{
|
||||
var shift_length = '24:00';
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( (start_time_hour > end_time_hour) || ( (start_time_hour == end_time_hour) && (start_time_min > end_time_min) ) )
|
||||
var user_toggle = document.getElementById("user_toggle");
|
||||
var user_field = document.getElementById("user");
|
||||
if (user_toggle.value < 1)
|
||||
{
|
||||
var shift_hour = ( (24 - start_time_hour) + end_time_hour);
|
||||
var shift_minute = ( (60 - start_time_min) + end_time_min);
|
||||
if (shift_minute >= 60)
|
||||
{
|
||||
shift_minute = (shift_minute - 60);
|
||||
}
|
||||
else
|
||||
{
|
||||
shift_hour = (shift_hour - 1);
|
||||
}
|
||||
user_field.value = 'AUTOGENERATEZZZ';
|
||||
user_field.disabled = true;
|
||||
user_toggle.value = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
var shift_hour = (end_time_hour - start_time_hour);
|
||||
var shift_minute = (end_time_min - start_time_min);
|
||||
user_field.value = '';
|
||||
user_field.disabled = false;
|
||||
user_toggle.value = 0;
|
||||
}
|
||||
if (shift_minute < 0)
|
||||
{
|
||||
shift_minute = (shift_minute + 60);
|
||||
shift_hour = (shift_hour - 1);
|
||||
}
|
||||
|
||||
if (shift_hour < 10) {shift_hour = '0' + shift_hour}
|
||||
if (shift_minute < 10) {shift_minute = '0' + shift_minute}
|
||||
var shift_length = shift_hour + ':' + shift_minute;
|
||||
}
|
||||
// alert(start_time_hour + '|' + start_time_min + '|' + end_time_hour + '|' + end_time_min + '|--|' + shift_hour + ':' + shift_minute + '|' + shift_length + '|');
|
||||
|
||||
length.value = shift_length;
|
||||
function user_submit()
|
||||
{
|
||||
var user_field = document.getElementById("user");
|
||||
user_field.disabled = false;
|
||||
document.userform.submit();
|
||||
}
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
<?php
|
||||
}
|
||||
#### Javascript for auto-generate of user ID Button
|
||||
else
|
||||
{
|
||||
?>
|
||||
function launch_chooser(fieldname,stage,vposition)
|
||||
{
|
||||
var audiolistURL = "./non_agent_api.php";
|
||||
var audiolistQuery = "source=admin&function=sounds_list&user=" + user + "&pass=" + pass + "&format=selectframe&stage=" + stage + "&comments=" + fieldname;
|
||||
var Iframe_content = '<IFRAME SRC="' + audiolistURL + '?' + audiolistQuery + '" style="width:560;height:440;background-color:white;" scrolling="NO" frameborder="0" allowtransparency="true" id="audio_chooser_frame' + epoch + '" name="audio_chooser_frame" width="560" height="460" STYLE="z-index:2"> </iframe>';
|
||||
|
||||
document.getElementById("audio_chooser_span").style.position = "absolute";
|
||||
document.getElementById("audio_chooser_span").style.left = "300px";
|
||||
document.getElementById("audio_chooser_span").style.top = vposition + "px";
|
||||
document.getElementById("audio_chooser_span").style.visibility = 'visible';
|
||||
document.getElementById("audio_chooser_span").innerHTML = Iframe_content;
|
||||
}
|
||||
|
||||
function close_chooser()
|
||||
{
|
||||
document.getElementById("audio_chooser_span").style.visibility = 'hidden';
|
||||
document.getElementById("audio_chooser_span").innerHTML = '';
|
||||
}
|
||||
|
||||
|
||||
function user_submit()
|
||||
{
|
||||
var user_field = document.getElementById("user");
|
||||
user_field.disabled = false;
|
||||
document.userform.submit();
|
||||
}
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
### Javascript for shift end-time calculation and display
|
||||
if ( ($ADD==131111111) or ($ADD==331111111) or ($ADD==431111111) )
|
||||
{
|
||||
?>
|
||||
function shift_time()
|
||||
{
|
||||
var start_time = document.getElementById("shift_start_time");
|
||||
var end_time = document.getElementById("shift_end_time");
|
||||
var length = document.getElementById("shift_length");
|
||||
|
||||
var st_value = start_time.value;
|
||||
var et_value = end_time.value;
|
||||
while (st_value.length < 4) {st_value = "0" + st_value;}
|
||||
while (et_value.length < 4) {et_value = "0" + et_value;}
|
||||
var st_hour=st_value.substring(0,2);
|
||||
var st_min=st_value.substring(2,4);
|
||||
var et_hour=et_value.substring(0,2);
|
||||
var et_min=et_value.substring(2,4);
|
||||
if (st_hour > 23) {st_hour = 23;}
|
||||
if (et_hour > 23) {et_hour = 23;}
|
||||
if (st_min > 59) {st_min = 59;}
|
||||
if (et_min > 59) {et_min = 59;}
|
||||
start_time.value = st_hour + "" + st_min;
|
||||
end_time.value = et_hour + "" + et_min;
|
||||
|
||||
var start_time_hour=start_time.value.substring(0,2);
|
||||
var start_time_min=start_time.value.substring(2,4);
|
||||
var end_time_hour=end_time.value.substring(0,2);
|
||||
var end_time_min=end_time.value.substring(2,4);
|
||||
start_time_hour=(start_time_hour * 1);
|
||||
start_time_min=(start_time_min * 1);
|
||||
end_time_hour=(end_time_hour * 1);
|
||||
end_time_min=(end_time_min * 1);
|
||||
|
||||
if (start_time.value == end_time.value)
|
||||
{
|
||||
var shift_length = '24:00';
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( (start_time_hour > end_time_hour) || ( (start_time_hour == end_time_hour) && (start_time_min > end_time_min) ) )
|
||||
{
|
||||
var shift_hour = ( (24 - start_time_hour) + end_time_hour);
|
||||
var shift_minute = ( (60 - start_time_min) + end_time_min);
|
||||
if (shift_minute >= 60)
|
||||
{
|
||||
shift_minute = (shift_minute - 60);
|
||||
}
|
||||
else
|
||||
{
|
||||
shift_hour = (shift_hour - 1);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
var shift_hour = (end_time_hour - start_time_hour);
|
||||
var shift_minute = (end_time_min - start_time_min);
|
||||
}
|
||||
if (shift_minute < 0)
|
||||
{
|
||||
shift_minute = (shift_minute + 60);
|
||||
shift_hour = (shift_hour - 1);
|
||||
}
|
||||
|
||||
if (shift_hour < 10) {shift_hour = '0' + shift_hour}
|
||||
if (shift_minute < 10) {shift_minute = '0' + shift_minute}
|
||||
var shift_length = shift_hour + ':' + shift_minute;
|
||||
}
|
||||
// alert(start_time_hour + '|' + start_time_min + '|' + end_time_hour + '|' + end_time_min + '|--|' + shift_hour + ':' + shift_minute + '|' + shift_length + '|');
|
||||
|
||||
length.value = shift_length;
|
||||
}
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
|
||||
### Javascript for dynamic call menu option value/context entries
|
||||
if ( ($ADD==3511) or ($ADD==2511) or ($ADD==2611) or ($ADD==4511) or ($ADD==5511) )
|
||||
{
|
||||
$stmt="select menu_id,menu_name from vicidial_call_menu;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$menus_to_print = mysql_num_rows($rslt);
|
||||
$call_menu_list='';
|
||||
$i=0;
|
||||
while ($i < $menus_to_print)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$call_menu_list .= "<option value=\"$row[0]\">$row[0] - $row[1]</option>";
|
||||
$i++;
|
||||
}
|
||||
|
||||
$stmt="select did_pattern,did_description,did_route from vicidial_inbound_dids where did_active='Y';";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$dids_to_print = mysql_num_rows($rslt);
|
||||
$did_list='';
|
||||
$i=0;
|
||||
while ($i < $dids_to_print)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$did_list .= "<option value=\"$row[0]\">$row[0] - $row[1] - $row[2]</option>";
|
||||
$i++;
|
||||
}
|
||||
|
||||
$stmt="select login,server_ip,extension,dialplan_number from phones where active='Y';";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$phones_to_print = mysql_num_rows($rslt);
|
||||
$phone_list='';
|
||||
$i=0;
|
||||
while ($i < $phones_to_print)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$phone_list .= "<option value=\"$row[0]\">$row[0] - $row[1] - $row[2] - $row[3]</option>";
|
||||
$i++;
|
||||
}
|
||||
|
||||
?>
|
||||
function call_menu_option(option,route,value,value_context,chooser_height)
|
||||
{
|
||||
var call_menu_list = '<?php echo $call_menu_list ?>';
|
||||
var did_list = '<?php echo $did_list ?>';
|
||||
var phone_list = '<?php echo $phone_list ?>';
|
||||
var selected_value = '';
|
||||
var selected_context = '';
|
||||
var new_content = '';
|
||||
|
||||
var select_list = document.getElementById("option_route_" + option);
|
||||
var selected_route = select_list.value;
|
||||
var span_to_update = document.getElementById("option_value_value_context_" + option);
|
||||
|
||||
if (selected_route=='CALLMENU')
|
||||
{
|
||||
if (route == selected_route)
|
||||
{
|
||||
selected_value = '<option SELECTED value="' + value + '">' + value + "</option>\n";
|
||||
}
|
||||
new_content = 'Call Menu: <select size=1 name=option_route_value_' + option + ' id=option_route_value_' + option + '>' + call_menu_list + "\n" + selected_value + '</select>';
|
||||
}
|
||||
if (selected_route=='HANGUP')
|
||||
{
|
||||
if (route == selected_route)
|
||||
{
|
||||
selected_value = value;
|
||||
}
|
||||
new_content = "Audio File: <input type=text name=option_route_value_" + option + " id=option_route_value_" + option + " size=40 maxlength=255 value=\"" + selected_value + "\"> <a href=\"javascript:launch_chooser('option_route_value_" + option + "','date'," + chooser_height + ");\">audio chooser</a>";
|
||||
}
|
||||
if (selected_route=='DID')
|
||||
{
|
||||
if (route == selected_route)
|
||||
{
|
||||
selected_value = '<option SELECTED value="' + value + '">' + value + "</option>\n";
|
||||
}
|
||||
new_content = 'DID: <select size=1 name=option_route_value_' + option + ' id=option_route_value_' + option + '>' + did_list + "\n" + selected_value + '</select>';
|
||||
}
|
||||
if (selected_route=='EXTENSION')
|
||||
{
|
||||
if (route == selected_route)
|
||||
{
|
||||
selected_value = value;
|
||||
selected_context = value_context;
|
||||
}
|
||||
new_content = "Extension: <input type=text name=option_route_value_" + option + " id=option_route_value_" + option + " size=20 maxlength=255 value=\"" + selected_value + "\"> Context: <input type=text name=option_route_value_context_" + option + " id=option_route_value_context_" + option + " size=20 maxlength=255 value=\"" + selected_context + "\"> ";
|
||||
}
|
||||
if (selected_route=='PHONE')
|
||||
{
|
||||
if (route == selected_route)
|
||||
{
|
||||
selected_value = '<option SELECTED value="' + value + '">' + value + "</option>\n";
|
||||
}
|
||||
new_content = 'Phone: <select size=1 name=option_route_value_' + option + ' id=option_route_value_' + option + '>' + phone_list + "\n" + selected_value + '</select>';
|
||||
}
|
||||
if (selected_route=='VOICEMAIL')
|
||||
{
|
||||
if (route == selected_route)
|
||||
{
|
||||
selected_value = value;
|
||||
}
|
||||
new_content = "Voicemail Box: <input type=text name=option_route_value_" + option + " id=option_route_value_" + option + " size=20 maxlength=255 value=\"" + selected_value + "\"> ";
|
||||
}
|
||||
if (selected_route=='AGI')
|
||||
{
|
||||
if (route == selected_route)
|
||||
{
|
||||
selected_value = value;
|
||||
}
|
||||
new_content = "AGI: <input type=text name=option_route_value_" + option + " id=option_route_value_" + option + " size=80 maxlength=255 value=\"" + selected_value + "\"> ";
|
||||
}
|
||||
|
||||
if (new_content.length < 1)
|
||||
{new_content = selected_route}
|
||||
|
||||
span_to_update.innerHTML = new_content;
|
||||
}
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
### Javascript for dynamic call menu option value/context entries
|
||||
if ( ($ADD==3511) or ($ADD==2511) or ($ADD==2611) or ($ADD==4511) or ($ADD==5511) )
|
||||
{
|
||||
|
||||
?>
|
||||
function call_menu_link(option,route)
|
||||
{
|
||||
var selected_value = '';
|
||||
var new_content = '';
|
||||
|
||||
var select_list = document.getElementById("option_route_value_" + option);
|
||||
var selected_value = select_list.value;
|
||||
var span_to_update = document.getElementById("option_route_link_" + option);
|
||||
|
||||
if (route=='CALLMENU')
|
||||
{
|
||||
new_content = "<a href=\"admin.php?ADD=3511&menu_id=" + selected_value + "\">Call Menu:</a>";
|
||||
}
|
||||
if (route=='DID')
|
||||
{
|
||||
new_content = "<a href=\"admin.php?ADD=3311&did_pattern=" + selected_value + "\">DID:</a>";
|
||||
}
|
||||
|
||||
if (new_content.length < 1)
|
||||
{new_content = selected_route}
|
||||
|
||||
span_to_update.innerHTML = new_content;
|
||||
}
|
||||
|
||||
<?php
|
||||
}
|
||||
echo "</script>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
@@ -649,21 +803,21 @@ $admin_home_url_LU = $row[0];
|
||||
?>
|
||||
<TR BGCOLOR=<?php echo $ingroups_color ?>><TD ALIGN=LEFT>
|
||||
<a href="<?php echo $ADMIN ?>?ADD=1000"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=<?php echo $subheader_font_size ?>> Show In-Groups </a>
|
||||
</TR><TR BGCOLOR=<?php echo $ingroups_color ?>><TD ALIGN=LEFT>
|
||||
</TD></TR><TR BGCOLOR=<?php echo $ingroups_color ?>><TD ALIGN=LEFT>
|
||||
<a href="<?php echo $ADMIN ?>?ADD=1111"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=<?php echo $subheader_font_size ?>> Add A New In-Group </a>
|
||||
</TR><TR BGCOLOR=<?php echo $ingroups_color ?>><TD ALIGN=LEFT>
|
||||
<a href="<?php echo $ADMIN ?>?ADD=1211"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=<?php echo $subheader_font_size ?>> Copy In-Group </a>
|
||||
</TR><TR BGCOLOR=<?php echo $ingroups_color ?>><TD ALIGN=LEFT>
|
||||
</TD></TR><TR BGCOLOR=<?php echo $ingroups_color ?>><TD ALIGN=LEFT>
|
||||
<a href="<?php echo $ADMIN ?>?ADD=1211"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=<?php echo $subheader_font_size ?>> Copy In-Group </a><HR>
|
||||
</TD></TR><TR BGCOLOR=<?php echo $ingroups_color ?>><TD ALIGN=LEFT>
|
||||
<a href="<?php echo $ADMIN ?>?ADD=1300"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=<?php echo $subheader_font_size ?>> Show DIDs </a>
|
||||
</TR><TR BGCOLOR=<?php echo $ingroups_color ?>><TD ALIGN=LEFT>
|
||||
</TD></TR><TR BGCOLOR=<?php echo $ingroups_color ?>><TD ALIGN=LEFT>
|
||||
<a href="<?php echo $ADMIN ?>?ADD=1311"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=<?php echo $subheader_font_size ?>> Add A New DID </a>
|
||||
</TR><TR BGCOLOR=<?php echo $ingroups_color ?>><TD ALIGN=LEFT>
|
||||
<a href="<?php echo $ADMIN ?>?ADD=1411"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=<?php echo $subheader_font_size ?>> Copy DID </a>
|
||||
</TR><TR BGCOLOR=<?php echo $ingroups_color ?>><TD ALIGN=LEFT>
|
||||
</TD></TR><TR BGCOLOR=<?php echo $ingroups_color ?>><TD ALIGN=LEFT>
|
||||
<a href="<?php echo $ADMIN ?>?ADD=1411"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=<?php echo $subheader_font_size ?>> Copy DID </a><HR>
|
||||
</TD></TR><TR BGCOLOR=<?php echo $ingroups_color ?>><TD ALIGN=LEFT>
|
||||
<a href="<?php echo $ADMIN ?>?ADD=1500"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=<?php echo $subheader_font_size ?>> Show Call Menus </a>
|
||||
</TR><TR BGCOLOR=<?php echo $ingroups_color ?>><TD ALIGN=LEFT>
|
||||
</TD></TR><TR BGCOLOR=<?php echo $ingroups_color ?>><TD ALIGN=LEFT>
|
||||
<a href="<?php echo $ADMIN ?>?ADD=1511"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=<?php echo $subheader_font_size ?>> Add A New Call Menu </a>
|
||||
</TR><TR BGCOLOR=<?php echo $ingroups_color ?>><TD ALIGN=LEFT>
|
||||
</TD></TR><TR BGCOLOR=<?php echo $ingroups_color ?>><TD ALIGN=LEFT>
|
||||
<a href="<?php echo $ADMIN ?>?ADD=1611"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=<?php echo $subheader_font_size ?>> Copy Call Menu </a>
|
||||
</TD></TR>
|
||||
<?php }
|
||||
|
||||
@@ -207,12 +207,12 @@ $browser = getenv("HTTP_USER_AGENT");
|
||||
<html>
|
||||
<head>
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
|
||||
<title>VICIDIAL ADMIN: Lead record modification</title>
|
||||
<title>ADMINISTRATION: Lead record modification</title>
|
||||
</head>
|
||||
<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
|
||||
<CENTER><FONT FACE="Courier" COLOR=BLACK SIZE=3>
|
||||
<?php
|
||||
echo "<a href=\"./admin.php?ADD=100\">VICIDIAL ADMIN</a>: Lead record modification<BR>\n";
|
||||
echo "<a href=\"./admin.php?ADD=100\">ADMINISTRATION</a>: Lead record modification<BR>\n";
|
||||
|
||||
if ($end_call > 0)
|
||||
{
|
||||
|
||||
@@ -107,7 +107,7 @@ $browser = getenv("HTTP_USER_AGENT");
|
||||
<html>
|
||||
<head>
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
|
||||
<title>VICIDIAL ADMIN: Lead Search
|
||||
<title>ADMINISTRATION: Lead Search
|
||||
<?php
|
||||
|
||||
##### BEGIN Set variables to make header show properly #####
|
||||
|
||||
@@ -201,7 +201,7 @@ if ($action == "AUTOUPLOAD")
|
||||
<head>
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
|
||||
<!-- VERSION: <?php echo $version ?> BUILD: <?php echo $build ?> -->
|
||||
<title>VICIDIAL ADMINISTRATION: Audio Store
|
||||
<title>ADMINISTRATION: Audio Store
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
@@ -399,7 +399,7 @@ else
|
||||
|
||||
|
||||
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
||||
echo "<TITLE>VICIDIAL: Export Calls Report";
|
||||
echo "<TITLE>ADMINISTRATION: Export Calls Report";
|
||||
|
||||
##### BEGIN Set variables to make header show properly #####
|
||||
$ADD = '100';
|
||||
|
||||
@@ -83,7 +83,7 @@ while ($i < $groups_to_print)
|
||||
|
||||
<?php
|
||||
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
||||
echo "<TITLE>VICIDIAL: In-Group Fronter-Closer Stats</TITLE></HEAD><BODY BGCOLOR=WHITE marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
echo "<TITLE>In-Group Fronter-Closer Stats Report</TITLE></HEAD><BODY BGCOLOR=WHITE marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
|
||||
$short_header=1;
|
||||
|
||||
@@ -148,7 +148,7 @@ if ($shift == 'ALL')
|
||||
$query_date_END = date("Y-m-d H:i:s", mktime(24, 59, 59, $Cqdate[1], $Cqdate[2], $Cqdate[0]));
|
||||
}
|
||||
|
||||
echo "VICIDIAL: In-Group Fronter-Closer Stats $NOW_TIME\n";
|
||||
echo "In-Group Fronter-Closer Stats Report $NOW_TIME\n";
|
||||
|
||||
echo "\n";
|
||||
echo "---------- TOTALS FOR $query_date_BEGIN to $query_date_END\n";
|
||||
|
||||
@@ -127,7 +127,7 @@ $browser = getenv("HTTP_USER_AGENT");
|
||||
<html>
|
||||
<head>
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
|
||||
<title>VICIDIAL ADMIN: Group Hourly Stats
|
||||
<title>ADMINISTRATION: Group Hourly Stats
|
||||
<?php
|
||||
|
||||
##### BEGIN Set variables to make header show properly #####
|
||||
|
||||
@@ -324,7 +324,7 @@ function ParseFileName() {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<title>VICIDIAL ADMIN: Lead Loader</title>
|
||||
<title>ADMINISTRATION: Lead Loader</title>
|
||||
</head>
|
||||
<BODY BGCOLOR=WHITE marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
|
||||
|
||||
@@ -355,7 +355,7 @@ echo "<TABLE CELLPADDING=4 CELLSPACING=0><TR><TD>";
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=right><B><font face="arial, helvetica" size=2>File layout to use:</font></B></td>
|
||||
<td align=left><font face="arial, helvetica" size=2><input type=radio name="file_layout" value="standard" checked>Standard VICIDIAL <input type=radio name="file_layout" value="custom">Custom layout</td>
|
||||
<td align=left><font face="arial, helvetica" size=2><input type=radio name="file_layout" value="standard" checked>Standard Format <input type=radio name="file_layout" value="custom">Custom layout</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=right width="25%"><font face="arial, helvetica" size=2>Lead Duplicate Check: </font></td>
|
||||
|
||||
@@ -299,6 +299,12 @@ if ($function == 'sounds_list')
|
||||
}
|
||||
else
|
||||
{
|
||||
$server_name = getenv("SERVER_NAME");
|
||||
$server_port = getenv("SERVER_PORT");
|
||||
if (eregi("443",$server_port)) {$HTTPprotocol = 'https://';}
|
||||
else {$HTTPprotocol = 'http://';}
|
||||
$admDIR = "$HTTPprotocol$server_name:$server_port";
|
||||
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||
$stmt = "SELECT use_non_latin,sounds_central_control_active,sounds_web_server,sounds_web_directory FROM system_settings;";
|
||||
@@ -417,7 +423,7 @@ if ($function == 'sounds_list')
|
||||
echo "<td><a href=\"javascript:choose_file('$file_namesPROMPT[$m]','$comments');\"><font size=1 face=\"Arial,Helvetica\">$file_names[$m]</a></td>\n";
|
||||
echo "<td><font size=1 face=\"Arial,Helvetica\">$file_dates[$m]</td>\n";
|
||||
echo "<td><font size=1 face=\"Arial,Helvetica\">$file_sizes[$m]</td>\n";
|
||||
echo "<td><a href=\"http://$sounds_web_server/$sounds_web_directory/$file_names[$m]\" target=\"_blank\"><font size=1 face=\"Arial,Helvetica\">PLAY</a></td></tr>\n";
|
||||
echo "<td><a href=\"$admDIR/$sounds_web_directory/$file_names[$m]\" target=\"_blank\"><font size=1 face=\"Arial,Helvetica\">PLAY</a></td></tr>\n";
|
||||
}
|
||||
}
|
||||
$k++;
|
||||
|
||||
@@ -218,7 +218,7 @@ $browser = getenv("HTTP_USER_AGENT");
|
||||
<html>
|
||||
<head>
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
|
||||
<title>VICIDIAL ADMIN: Timeclock Record Edit
|
||||
<title>ADMINISTRATION: Timeclock Record Edit
|
||||
<?php
|
||||
|
||||
##### BEGIN Set variables to make header show properly #####
|
||||
@@ -439,7 +439,7 @@ if ($modify_timeclock_log > 0)
|
||||
}
|
||||
|
||||
|
||||
echo "<a href=\"./AST_agent_time_sheet.php?agent=$user\">VICIDIAL Time Sheet</a>\n";
|
||||
echo "<a href=\"./AST_agent_time_sheet.php?agent=$user\">Agent Time Sheet</a>\n";
|
||||
echo " - <a href=\"./user_stats.php?user=$user\">User Stats</a>\n";
|
||||
echo " - <a href=\"./admin.php?ADD=3&user=$user\">Modify User</a>\n";
|
||||
|
||||
|
||||
@@ -136,7 +136,7 @@ while ($i < $user_groups_to_print)
|
||||
</style>
|
||||
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
|
||||
<TITLE>VICIDIAL: User Timeclock Report
|
||||
<TITLE>User Timeclock Report
|
||||
|
||||
<?php
|
||||
|
||||
@@ -242,7 +242,7 @@ echo "</FORM>\n\n";
|
||||
echo "<PRE><FONT SIZE=3>\n";
|
||||
|
||||
|
||||
echo "VICIDIAL: User Timeclock Report $NOW_TIME\n";
|
||||
echo "User Timeclock Report $NOW_TIME\n";
|
||||
|
||||
echo "Time range: $query_date to $end_date\n\n";
|
||||
echo "---------- USER TIMECLOCK DETAILS -------------\n";
|
||||
|
||||
@@ -144,7 +144,7 @@ if (strlen($user_group) > 0)
|
||||
<html>
|
||||
<head>
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
|
||||
<title>VICIDIAL ADMIN: Timeclock Status
|
||||
<title>ADMINISTRATION: Timeclock Status
|
||||
<?php
|
||||
|
||||
##### BEGIN Set variables to make header show properly #####
|
||||
|
||||
@@ -123,7 +123,7 @@ while ($i < $groups_to_print)
|
||||
<html>
|
||||
<head>
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
|
||||
<title>VICIDIAL ADMIN: User Group Bulk Change
|
||||
<title>ADMINISTRATION: User Group Bulk Change
|
||||
<?php
|
||||
|
||||
##### BEGIN Set variables to make header show properly #####
|
||||
|
||||
@@ -121,7 +121,7 @@ $browser = getenv("HTTP_USER_AGENT");
|
||||
<html>
|
||||
<head>
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
|
||||
<title>VICIDIAL ADMIN: User Stats
|
||||
<title>ADMINISTRATION: User Stats
|
||||
<?php
|
||||
|
||||
|
||||
@@ -171,7 +171,7 @@ echo "<input type=submit name=submit value=submit>\n";
|
||||
echo " $user - $full_name<BR><BR>\n";
|
||||
|
||||
echo "<center>\n";
|
||||
echo "<a href=\"./AST_agent_time_sheet.php?agent=$user\">VICIDIAL Time Sheet</a>\n";
|
||||
echo "<a href=\"./AST_agent_time_sheet.php?agent=$user\">Agent Time Sheet</a>\n";
|
||||
echo " | <a href=\"./user_status.php?user=$user\">User Status</a>\n";
|
||||
echo " | <a href=\"./admin.php?ADD=3&user=$user\">Modify User</a>\n";
|
||||
echo " | <a href=\"./AST_agent_days_detail.php?user=$user&query_date=$begin_date&end_date=$end_date&group[]=--ALL--&shift=ALL\">User multiple day status detail report</a>";
|
||||
@@ -185,7 +185,7 @@ echo "<br><center>\n";
|
||||
|
||||
##### vicidial agent talk time and status #####
|
||||
|
||||
echo "<B>VICIDIAL TALK TIME AND STATUS:</B>\n";
|
||||
echo "<B>AGENT TALK TIME AND STATUS:</B>\n";
|
||||
|
||||
echo "<center><TABLE width=300 cellspacing=0 cellpadding=1>\n";
|
||||
echo "<tr><td><font size=2>STATUS</td><td align=right><font size=2>COUNT</td><td align=right><font size=2>HOURS:MM:SS</td></tr>\n";
|
||||
@@ -267,7 +267,7 @@ echo "<br><br>\n";
|
||||
|
||||
echo "<center>\n";
|
||||
|
||||
echo "<B>VICIDIAL AGENT LOGIN/LOGOUT TIME:</B>\n";
|
||||
echo "<B>AGENT LOGIN/LOGOUT TIME:</B>\n";
|
||||
echo "<TABLE width=500 cellspacing=0 cellpadding=1>\n";
|
||||
echo "<tr><td><font size=2>EVENT </td><td align=right><font size=2> DATE</td><td align=right><font size=2> CAMPAIGN</td><td align=right><font size=2> GROUP</td><td align=right><font size=2>HOURS:MM:SS</td></tr>\n";
|
||||
|
||||
|
||||
@@ -170,7 +170,7 @@ while ($i < $groups_to_print)
|
||||
<html>
|
||||
<head>
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
|
||||
<title>VICIDIAL ADMIN: User Status
|
||||
<title>ADMINISTRATION: User Status
|
||||
<?php
|
||||
|
||||
|
||||
@@ -440,7 +440,7 @@ if ($agents_to_print > 0)
|
||||
|
||||
else
|
||||
{
|
||||
echo "Agent is not logged in to VICIDIAL\n<BR>";
|
||||
echo "Agent is not logged in\n<BR>";
|
||||
}
|
||||
|
||||
echo "\n<BR>";
|
||||
@@ -472,7 +472,7 @@ if ($modify_timeclock_log > 0)
|
||||
|
||||
$REPORTdate = date("Y-m-d");
|
||||
echo "<center>\n";
|
||||
echo "<a href=\"./AST_agent_time_sheet.php?agent=$user\">VICIDIAL Time Sheet</a>\n";
|
||||
echo "<a href=\"./AST_agent_time_sheet.php?agent=$user\">Agent Time Sheet</a>\n";
|
||||
echo " | <a href=\"./user_stats.php?user=$user\">User Stats</a>\n";
|
||||
echo " | <a href=\"./admin.php?ADD=3&user=$user\">Modify User</a>\n";
|
||||
echo " | <a href=\"./AST_agent_days_detail.php?user=$user&query_date=$REPORTdate&end_date=$REPORTdate&group[]=--ALL--&shift=ALL\">User multiple day status detail report</a>";
|
||||
|
||||
@@ -123,7 +123,7 @@ if (strlen($action) < 1)
|
||||
<head>
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
|
||||
<!-- VERSION: <?php echo $version ?> BUILD: <?php echo $build ?> -->
|
||||
<title>VICIDIAL ADMINISTRATION: User Territories
|
||||
<title>ADMINISTRATION: User Territories
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
@@ -161,7 +161,7 @@ echo "<!-- VERSION: $version BUILD: $build -->\n";
|
||||
-->
|
||||
</STYLE>
|
||||
<?php
|
||||
echo "<title>VICIDIAL REMOTE AGENTS: $LOGfullname - $PHP_AUTH_USER ";
|
||||
echo "<title>REMOTE AGENTS: $LOGfullname - $PHP_AUTH_USER ";
|
||||
|
||||
if (!$ADD) {$ADD="31111";}
|
||||
if ($ADD==31111) {echo "Modify Remote Agents";}
|
||||
@@ -245,7 +245,7 @@ if (strlen($ADD)>4)
|
||||
</head>
|
||||
<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
|
||||
<CENTER>
|
||||
<TABLE WIDTH=620 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B> VICIDIAL REMOTE AGENTS: <?php echo "$PHP_AUTH_USER " ?> <a href="<?php echo $PHP_SELF ?>?force_logout=1"><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=1>Logout</a></TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><?php echo date("l F j, Y G:i:s A") ?> </TD></TR>
|
||||
<TABLE WIDTH=620 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B> REMOTE AGENTS: <?php echo "$PHP_AUTH_USER " ?> <a href="<?php echo $PHP_SELF ?>?force_logout=1"><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=1>Logout</a></TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><?php echo date("l F j, Y G:i:s A") ?> </TD></TR>
|
||||
<TR BGCOLOR=#F0F5FE><TD ALIGN=LEFT COLSPAN=2><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=1> <a href="./vdremote.php"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=1>MODIFY</a> | <a href="./vdremote.php?ADD=61111&user=<?php echo "$PHP_AUTH_USER" ?>"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=1>STATUS</a> | <a href="./vdremote.php?ADD=71111&user=<?php echo "$PHP_AUTH_USER" ?>"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=1>INBOUND STATS</a></TD></TR>
|
||||
|
||||
|
||||
@@ -376,7 +376,7 @@ if ($ADD==61111)
|
||||
}
|
||||
$users_list = preg_replace("/.$/","",$users_list);
|
||||
|
||||
echo "VICIDIAL: Remote Agent Time On Calls $NOW_TIME\n\n";
|
||||
echo "Remote Agent Time On Calls $NOW_TIME\n\n";
|
||||
echo "+------------|--------+--------------+------------+--------+---------------------+---------+\n";
|
||||
echo "| STATION | USER | LEADID | CHANNEL | STATUS | START TIME | MINUTES |\n";
|
||||
echo "+------------|--------+--------------+------------+--------+---------------------+---------+\n";
|
||||
@@ -503,7 +503,7 @@ if ($ADD==71111)
|
||||
$in_time_MS = "$in_time_M_int:$in_time_SEC";
|
||||
$in_time_MS = sprintf("%7s", $in_time_MS);
|
||||
|
||||
echo "VICIDIAL: Remote Agent inbound stats $NOW_TIME\n\n";
|
||||
echo "Remote Agent inbound stats $NOW_TIME\n\n";
|
||||
echo "\n";
|
||||
echo "Total calls taken $query_date: $in_calls\n";
|
||||
echo "Total talk time on $query_date: $in_time_MS (minutes:seconds)\n";
|
||||
|
||||
@@ -48,7 +48,7 @@ $auth=$row[0];
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<title>VICIDIAL recent sales lookup</title>
|
||||
<title>Recent Sales Lookup</title>
|
||||
</head>
|
||||
<?php
|
||||
include("dbconnect.php");
|
||||
@@ -94,7 +94,7 @@ echo "<TABLE CELLPADDING=4 CELLSPACING=0><TR><TD>";
|
||||
<tr bgcolor='#CCCCCC'>
|
||||
<td colspan=3>
|
||||
<table width=100%>
|
||||
<td align=right width=200 nowrap><font class='standard_bold'>Select a VICIDIAL campaign:</td>
|
||||
<td align=right width=200 nowrap><font class='standard_bold'>Select a campaign:</td>
|
||||
<td align=left><select name="dcampaign" onChange="this.form.submit();">
|
||||
<?php
|
||||
if ($dcampaign) {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Copyright (C) 2008 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
|
||||
echo "<title>VICIDIAL Welcome</title>\n";
|
||||
echo "<title>ViciDial Welcome</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=WHITE MARGINHEIGHT=0 MARGINWIDTH=0>\n";
|
||||
echo "<BR><BR><BR><BR><BR><CENTER><TABLE WIDTH=300 CELLPADDING=0 CELLSPACING=0 BGCOLOR=\"#CCCCCC\"><TR BGCOLOR=WHITE>";
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
|
||||
echo "<title>VICIDIAL Welcome</title>\n";
|
||||
echo "<title>ViciDial Welcome</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=WHITE MARGINHEIGHT=0 MARGINWIDTH=0>\n";
|
||||
echo "<BR><BR><BR><BR><CENTER><TABLE WIDTH=600 CELLPADDING=0 CELLSPACING=0 BGCOLOR=\"#CCCCCC\"><TR BGCOLOR=WHITE>";
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
|
||||
echo "<title>VICIDIAL Welcome</title>\n";
|
||||
echo "<title>ViciDial Welcome</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=WHITE MARGINHEIGHT=0 MARGINWIDTH=0>\n";
|
||||
echo "<BR><BR><BR><BR><CENTER><TABLE WIDTH=600 CELLPADDING=0 CELLSPACING=0 BGCOLOR=\"#CCCCCC\"><TR BGCOLOR=WHITE>";
|
||||
|
||||
Reference in New Issue
Block a user