diff --git a/agc_2-X/trunk/UPGRADE b/agc_2-X/trunk/UPGRADE index c660ad44..d4bbaa2b 100644 --- a/agc_2-X/trunk/UPGRADE +++ b/agc_2-X/trunk/UPGRADE @@ -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 + diff --git a/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl b/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl index 2ad8d7bf..bcb70610 100644 --- a/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl +++ b/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl @@ -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"; diff --git a/agc_2-X/trunk/www/agc/timeclock.php b/agc_2-X/trunk/www/agc/timeclock.php index 69abd93e..fc0e9afc 100644 --- a/agc_2-X/trunk/www/agc/timeclock.php +++ b/agc_2-X/trunk/www/agc/timeclock.php @@ -123,7 +123,7 @@ if ( ($stage == 'login') or ($stage == 'logout') ) $VDdisplayMESSAGE = "The user and password you entered are not active in the system
Please try again:"; echo"\n"; - echo"VICIDIAL: Timeclock\n"; + echo"Agent Timeclock\n"; echo"\n"; echo"\n"; echo "\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"\n"; - echo"VICIDIAL: Timeclock\n"; + echo"Agent Timeclock\n"; echo"\n"; echo"\n"; echo "\n"; @@ -343,7 +343,7 @@ if ( ($stage == 'login') or ($stage == 'logout') ) {$BACKlink = "BACK to Welcome Screen";} echo"\n"; - echo"VICIDIAL: Timeclock\n"; + echo"Agent Timeclock\n"; echo"\n"; echo"\n"; echo "\n"; @@ -382,7 +382,7 @@ if ( ($stage == 'login') or ($stage == 'logout') ) } echo"\n"; - echo"VICIDIAL: Timeclock\n"; + echo"Agent Timeclock\n"; echo"\n"; echo"\n"; echo "\n"; @@ -421,7 +421,7 @@ if ( ($stage == 'login') or ($stage == 'logout') ) else { echo"\n"; - echo"VICIDIAL: Timeclock\n"; + echo"Agent Timeclock\n"; echo"\n"; echo"\n"; echo "\n"; diff --git a/agc_2-X/trunk/www/agc/vicidial.php b/agc_2-X/trunk/www/agc/vicidial.php index 7c035ddd..f5c42e39 100644 --- a/agc_2-X/trunk/www/agc/vicidial.php +++ b/agc_2-X/trunk/www/agc/vicidial.php @@ -592,7 +592,7 @@ if ($LogiNAJAX > 0) if ($relogin == 'YES') { -echo "VICIDIAL web client: Re-Login\n"; +echo "Agent web client: Re-Login\n"; echo "\n"; echo "\n"; echo " Timeclock
\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 "VICIDIAL web client: Campaign Login\n"; + echo "Agent web client: Campaign Login\n"; echo "\n"; echo "\n"; echo " Timeclock
\n"; @@ -674,7 +674,7 @@ if ($user_login_first == 1) $phone_login=$row[0]; $phone_pass=$row[1]; - echo "VICIDIAL web client: Login\n"; + echo "Agent web client: Login\n"; echo "\n"; echo "\n"; echo " Timeclock
\n"; @@ -713,7 +713,7 @@ if ($user_login_first == 1) if ( (strlen($phone_login)<2) or (strlen($phone_pass)<2) ) { -echo "VICIDIAL web client: Phone Login\n"; +echo "Agent web client: Phone Login\n"; echo "\n"; echo "\n"; echo " Timeclock
\n"; @@ -937,7 +937,7 @@ $VDloginDISPLAY=0; if ( (!eregi(" $VD_campaign ",$LOGallowed_campaigns)) and (!eregi("ALL-CAMPAIGNS",$LOGallowed_campaigns)) ) { - echo "VICIDIAL web client: VICIDIAL Campaign Login\n"; + echo "Agent web client: Campaign Login\n"; echo "\n"; echo "\n"; echo " Timeclock
\n"; @@ -1276,7 +1276,7 @@ $VDloginDISPLAY=0; } if ($VDloginDISPLAY) { - echo "VICIDIAL web client: Campaign Login\n"; + echo "Agent web client: Campaign Login\n"; echo "\n"; echo "\n"; echo " Timeclock
\n"; @@ -1364,7 +1364,7 @@ $row=mysql_fetch_row($rslt); $authphone=$row[0]; if (!$authphone) { - echo "VICIDIAL web client: Phone Login Error\n"; + echo "Agent web client: Phone Login Error\n"; echo "\n"; echo "\n"; echo " Timeclock
\n"; @@ -1450,7 +1450,7 @@ else } echo "\n"; } - echo "VICIDIAL web client\n"; + echo "Agent web client\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 "VICIDIAL web client: VICIDIAL Campaign Login\n"; + echo "Agent web client: Campaign Login\n"; echo "\n"; echo "\n"; echo " Timeclock
\n"; @@ -1868,7 +1868,7 @@ else } if (strlen($session_id) < 1) { - echo "VICIDIAL web client: VICIDIAL Campaign Login\n"; + echo "Agent web client: Campaign Login\n"; echo "\n"; echo "\n"; echo " Timeclock
\n"; @@ -8059,7 +8059,7 @@ echo "\n"; height=30> - + @@ -8069,7 +8069,7 @@ echo "\n"; -
VICIDIALMAIN SCRIPT VALIGN=MIDDLE ALIGN=CENTER>   LIVE     session ID:     Live Call
height=>

VICIDIAL
+ height=>

Agent Screen
@@ -8438,7 +8438,7 @@ Your Status:
Calls Dialing: - height=>
VICIDIAL SCRIPT
+ height=>
AGENT SCRIPT
@@ -8448,7 +8448,7 @@ Your Status:
Calls Dialing: px;z-index:15;" id="MaiNfooterspan"> ->
VICIDIAL web-client version:     BUILD:               Server:              
+> diff --git a/agc_2-X/trunk/www/agc/vicidial_redirect.php b/agc_2-X/trunk/www/agc/vicidial_redirect.php index 43cdb449..6eded8cd 100644 --- a/agc_2-X/trunk/www/agc/vicidial_redirect.php +++ b/agc_2-X/trunk/www/agc/vicidial_redirect.php @@ -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"VICIDIAL\n"; +echo"Agent Redirect\n"; echo"\n"; echo"\n"; echo"\n"; diff --git a/agc_2-X/trunk/www/vicidial/AST_CLOSER_service_level.php b/agc_2-X/trunk/www/vicidial/AST_CLOSER_service_level.php index 195ddfd0..145901e1 100644 --- a/agc_2-X/trunk/www/vicidial/AST_CLOSER_service_level.php +++ b/agc_2-X/trunk/www/vicidial/AST_CLOSER_service_level.php @@ -100,7 +100,7 @@ while ($i < $groups_to_print) \n"; -echo "VICIDIAL: VDAD Closer Service Level Stats\n"; +echo "Inbound Service Level Report\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"; diff --git a/agc_2-X/trunk/www/vicidial/AST_CLOSERstats.php b/agc_2-X/trunk/www/vicidial/AST_CLOSERstats.php index cc33d79c..6edd63a2 100644 --- a/agc_2-X/trunk/www/vicidial/AST_CLOSERstats.php +++ b/agc_2-X/trunk/www/vicidial/AST_CLOSERstats.php @@ -166,7 +166,7 @@ while ($i < $statcats_to_print) \n"; -echo "VICIDIAL: VDAD Closer Stats\n"; +echo "Inbound Stats\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"; diff --git a/agc_2-X/trunk/www/vicidial/AST_IVRstats.php b/agc_2-X/trunk/www/vicidial/AST_IVRstats.php index 1facf75f..76c62d31 100644 --- a/agc_2-X/trunk/www/vicidial/AST_IVRstats.php +++ b/agc_2-X/trunk/www/vicidial/AST_IVRstats.php @@ -177,7 +177,7 @@ else } echo "\n"; -echo "VICIDIAL: IVR Stats\n"; +echo "IVR Stats Report\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"; diff --git a/agc_2-X/trunk/www/vicidial/AST_VDADstats.php b/agc_2-X/trunk/www/vicidial/AST_VDADstats.php index b1ea273d..0d2fab4b 100644 --- a/agc_2-X/trunk/www/vicidial/AST_VDADstats.php +++ b/agc_2-X/trunk/www/vicidial/AST_VDADstats.php @@ -149,7 +149,7 @@ while ($i < $statcats_to_print) \n"; -echo "VICIDIAL: VDAD Stats\n"; +echo "Outbound Stats\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"; diff --git a/agc_2-X/trunk/www/vicidial/AST_VICIDIAL_hopperlist.php b/agc_2-X/trunk/www/vicidial/AST_VICIDIAL_hopperlist.php index 7965b617..67124511 100644 --- a/agc_2-X/trunk/www/vicidial/AST_VICIDIAL_hopperlist.php +++ b/agc_2-X/trunk/www/vicidial/AST_VICIDIAL_hopperlist.php @@ -76,7 +76,7 @@ while ($i < $campaigns_to_print) \n"; -echo "VICIDIAL: Hopper List\n"; +echo "Hopper List Report\n"; echo "\n"; #echo "\n"; #echo "\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"; diff --git a/agc_2-X/trunk/www/vicidial/AST_agent_days_detail.php b/agc_2-X/trunk/www/vicidial/AST_agent_days_detail.php index 1b73d497..06c7113a 100644 --- a/agc_2-X/trunk/www/vicidial/AST_agent_days_detail.php +++ b/agc_2-X/trunk/www/vicidial/AST_agent_days_detail.php @@ -161,7 +161,7 @@ if ($file_download < 1) \n"; - echo "VICIDIAL: Agent Days Status\n"; + echo "Agent Days Status Report\n"; echo ""; $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"; } diff --git a/agc_2-X/trunk/www/vicidial/AST_agent_performance_detail.php b/agc_2-X/trunk/www/vicidial/AST_agent_performance_detail.php index 7123dcf6..9b23288a 100644 --- a/agc_2-X/trunk/www/vicidial/AST_agent_performance_detail.php +++ b/agc_2-X/trunk/www/vicidial/AST_agent_performance_detail.php @@ -129,7 +129,7 @@ while ($i < $user_groups_to_print) \n"; -echo "VICIDIAL: Agent Performance\n"; +echo "Agent Performance Detail\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"; diff --git a/agc_2-X/trunk/www/vicidial/AST_agent_status_detail.php b/agc_2-X/trunk/www/vicidial/AST_agent_status_detail.php index 80b78f77..0e1459ad 100644 --- a/agc_2-X/trunk/www/vicidial/AST_agent_status_detail.php +++ b/agc_2-X/trunk/www/vicidial/AST_agent_status_detail.php @@ -205,7 +205,7 @@ if ($file_download < 1) \n"; - echo "VICIDIAL: Agent Days Status\n"; + echo "Agent Status Detail Report\n"; echo ""; $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"; } diff --git a/agc_2-X/trunk/www/vicidial/AST_agent_time_detail.php b/agc_2-X/trunk/www/vicidial/AST_agent_time_detail.php index 3731c1ff..a12f0c2a 100644 --- a/agc_2-X/trunk/www/vicidial/AST_agent_time_detail.php +++ b/agc_2-X/trunk/www/vicidial/AST_agent_time_detail.php @@ -178,7 +178,7 @@ if ($file_download < 1) \n"; - echo "VICIDIAL: Agent Time Detail\n"; + echo "Agent Time Detail\n"; echo ""; $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"; } diff --git a/agc_2-X/trunk/www/vicidial/AST_agent_time_sheet.php b/agc_2-X/trunk/www/vicidial/AST_agent_time_sheet.php index 715fabe8..1321df46 100644 --- a/agc_2-X/trunk/www/vicidial/AST_agent_time_sheet.php +++ b/agc_2-X/trunk/www/vicidial/AST_agent_time_sheet.php @@ -86,7 +86,7 @@ if (!isset($query_date)) {$query_date = $NOW_DATE;} \n"; -echo "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"; diff --git a/agc_2-X/trunk/www/vicidial/AST_server_performance.php b/agc_2-X/trunk/www/vicidial/AST_server_performance.php index 50077c21..5003c37c 100644 --- a/agc_2-X/trunk/www/vicidial/AST_server_performance.php +++ b/agc_2-X/trunk/www/vicidial/AST_server_performance.php @@ -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\n"; +echo "Server Performance Report\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"; diff --git a/agc_2-X/trunk/www/vicidial/AST_timeonVDAD.php b/agc_2-X/trunk/www/vicidial/AST_timeonVDAD.php index 33546f44..90a5f63a 100644 --- a/agc_2-X/trunk/www/vicidial/AST_timeonVDAD.php +++ b/agc_2-X/trunk/www/vicidial/AST_timeonVDAD.php @@ -114,7 +114,7 @@ if ($closer_display>0) \n"; echo"\n"; -echo "VICIDIAL: Time On VDAD\n"; +echo "Server-Specific Real-Time Report\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 $closer_reverse_link | REPORTS\n\n"; +echo "Agents Time On Calls $NOW_TIME $closer_reverse_link | REPORTS\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"; diff --git a/agc_2-X/trunk/www/vicidial/AST_timeonVDADall.php b/agc_2-X/trunk/www/vicidial/AST_timeonVDADall.php index b979ec2b..f0066dc4 100644 --- a/agc_2-X/trunk/www/vicidial/AST_timeonVDADall.php +++ b/agc_2-X/trunk/www/vicidial/AST_timeonVDADall.php @@ -479,7 +479,7 @@ $rslt=mysql_query($stmt, $link); echo "\n"; echo"\n"; -echo "VICIDIAL: Time On VDAD Campaign: $group\n"; +echo "Real-Time Report: $group\n"; $short_header=1; @@ -501,7 +501,7 @@ echo "\n"; echo "\n"; echo "\n"; echo "\n"; -echo "VICIDIAL Real-Time                                                                          \n"; +echo "Real-Time Report                                                                               \n"; echo "\n"; echo "
Agent web-client version:     BUILD:               Server:              
Show conference call channel information

 
\n"; echo "Choose Report Display Options"; diff --git a/agc_2-X/trunk/www/vicidial/AST_timeonVDADallSUMMARY.php b/agc_2-X/trunk/www/vicidial/AST_timeonVDADallSUMMARY.php index d853ed99..81d1ea1e 100644 --- a/agc_2-X/trunk/www/vicidial/AST_timeonVDADallSUMMARY.php +++ b/agc_2-X/trunk/www/vicidial/AST_timeonVDADallSUMMARY.php @@ -107,7 +107,7 @@ if (!isset($RR)) {$RR=4;} \n"; -echo "VICIDIAL: Realtime All Campaigns Summary\n"; +echo "Real-Time All Campaigns Summary\n"; $short_header=1; @@ -115,7 +115,7 @@ echo "VICIDIAL: Realtime All Campaigns Summary
"; -echo "VICIDIAL: Realtime All Campaigns Summary           \n"; +echo "Real-Time All Campaigns Summary           \n"; echo "STOP | "; echo "SLOW | "; echo "GO "; diff --git a/agc_2-X/trunk/www/vicidial/admin.php b/agc_2-X/trunk/www/vicidial/admin.php index 85240597..07bfabec 100644 --- a/agc_2-X/trunk/www/vicidial/admin.php +++ b/agc_2-X/trunk/www/vicidial/admin.php @@ -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 "\n"; echo "\n"; echo "\n"; -echo "VICIDIAL ADMIN: "; +echo "<title>ADMINISTRATION: "; if (!isset($ADD)) {$ADD=0;} @@ -2715,7 +2718,7 @@ echo "\n"; echo "\n"; echo "\n"; echo "
\n"; -echo "
VICIDIAL ADMIN: HELP


\n"; +echo "
ADMINISTRATION: HELP


\n"; ?> VICIDIAL_USERS TABLE

@@ -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 "\n"; $j++; } - while ($j <= 16) + while ($j <= 18) { + $choose_height = (($j * 40) + 400); $dtmf_list = ""; - echo "\n"; $j++; } @@ -21686,9 +21777,11 @@ if ($ADD==999999) - VICIDIAL: Server Stats and Reports - VICIDIAL: Server Stats and Reports

+ Server Stats and Reports + Server Stats and Reports

\n"; echo ""; - $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 = " + if (eregi("1$|3$|5$|7$|9$", $j)) + {$bgcolor='bgcolor="#CCFFFF"';} + else + {$bgcolor='bgcolor="#99FFCC"';} + + echo "
Option: $dtmf_list   Description: - Route: $NWB#vicidial_call_menu-option_value$NWE
- Value:   - Context: + Route: $NWB#vicidial_call_menu-option_value$NWE
+ + \n"; + + if ($option_route=='CALLMENU') + { + echo ""; + echo "Call Menu:"; + echo ""; + echo " \n"; + } + if ($option_route=='HANGUP') + { + echo "Audio File: audio chooser\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 ""; + echo "DID:"; + echo ""; + echo " \n"; + } + if ($option_route=='EXTENSION') + { + echo "Extension:   Context: \n"; + } + if ($option_route=='PHONE') + { + echo "Phone: \n"; + } + if ($option_route=='VOICEMAIL') + { + echo "Voicemail Box: \n"; + } + if ($option_route=='AGI') + { + echo "AGI: \n"; + } + + echo "
 
+ if (eregi("1$|3$|5$|7$|9$", $j)) + {$bgcolor='bgcolor="#B9CBFD"';} + else + {$bgcolor='bgcolor="#9BB9FB"';} + + echo "
Option: $dtmf_list   Description: - Route: + Route: $NWB#vicidial_call_menu-option_value$NWE
- Value:   - Context: + + \n"; + echo "
 
>>>>>>>>>>>>>>>>> -VICIDIAL ADMIN: Lead record modification +ADMINISTRATION: Lead record modification
VICIDIAL ADMIN: Lead record modification
\n"; +echo "ADMINISTRATION: Lead record modification
\n"; if ($end_call > 0) { diff --git a/agc_2-X/trunk/www/vicidial/admin_search_lead.php b/agc_2-X/trunk/www/vicidial/admin_search_lead.php index 55a6d527..238ebfc4 100644 --- a/agc_2-X/trunk/www/vicidial/admin_search_lead.php +++ b/agc_2-X/trunk/www/vicidial/admin_search_lead.php @@ -107,7 +107,7 @@ $browser = getenv("HTTP_USER_AGENT"); -VICIDIAL ADMIN: Lead Search +<title>ADMINISTRATION: Lead Search <?php ##### BEGIN Set variables to make header show properly ##### diff --git a/agc_2-X/trunk/www/vicidial/audio_store.php b/agc_2-X/trunk/www/vicidial/audio_store.php index b2798c3b..ab65ddb0 100644 --- a/agc_2-X/trunk/www/vicidial/audio_store.php +++ b/agc_2-X/trunk/www/vicidial/audio_store.php @@ -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 diff --git a/agc_2-X/trunk/www/vicidial/call_report_export.php b/agc_2-X/trunk/www/vicidial/call_report_export.php index 10ce7912..3230f9be 100644 --- a/agc_2-X/trunk/www/vicidial/call_report_export.php +++ b/agc_2-X/trunk/www/vicidial/call_report_export.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'; diff --git a/agc_2-X/trunk/www/vicidial/fcstats.php b/agc_2-X/trunk/www/vicidial/fcstats.php index 0998892e..cd2e4f4b 100644 --- a/agc_2-X/trunk/www/vicidial/fcstats.php +++ b/agc_2-X/trunk/www/vicidial/fcstats.php @@ -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\n"; +echo "In-Group Fronter-Closer Stats Report\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"; diff --git a/agc_2-X/trunk/www/vicidial/group_hourly_stats.php b/agc_2-X/trunk/www/vicidial/group_hourly_stats.php index 4d66e813..175b3c83 100644 --- a/agc_2-X/trunk/www/vicidial/group_hourly_stats.php +++ b/agc_2-X/trunk/www/vicidial/group_hourly_stats.php @@ -127,7 +127,7 @@ $browser = getenv("HTTP_USER_AGENT"); -VICIDIAL ADMIN: Group Hourly Stats +<title>ADMINISTRATION: Group Hourly Stats <?php ##### BEGIN Set variables to make header show properly ##### diff --git a/agc_2-X/trunk/www/vicidial/new_listloader_superL.php b/agc_2-X/trunk/www/vicidial/new_listloader_superL.php index 41660bf6..be3e9a51 100644 --- a/agc_2-X/trunk/www/vicidial/new_listloader_superL.php +++ b/agc_2-X/trunk/www/vicidial/new_listloader_superL.php @@ -324,7 +324,7 @@ function ParseFileName() { } } </script> -<title>VICIDIAL ADMIN: Lead Loader +ADMINISTRATION: Lead Loader @@ -355,7 +355,7 @@ echo "
+       + Real-Time Reports
  • Real-Time Main Report diff --git a/agc_2-X/trunk/www/vicidial/admin_header.php b/agc_2-X/trunk/www/vicidial/admin_header.php index d622fa90..a278b3b0 100644 --- a/agc_2-X/trunk/www/vicidial/admin_header.php +++ b/agc_2-X/trunk/www/vicidial/admin_header.php @@ -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 = ''; - 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 = ''; + 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); + } } - } - -// 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 = "The Difference % must be 0"; - } - 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 = "The Difference % must be 0"; + } + 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(); + } + + ?> -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; + } + } - -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(); - } - - -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 = ''; - - 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(); - } - - -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(); + } + + + 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 = ''; + + 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(); + } + + + 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; + } + + $row[0] - $row[1]"; + $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 .= ""; + $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 .= ""; + $i++; + } + + ?> + function call_menu_option(option,route,value,value_context,chooser_height) + { + var call_menu_list = ''; + var did_list = ''; + var 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 = '\n"; + } + new_content = 'Call Menu: '; + } + if (selected_route=='HANGUP') + { + if (route == selected_route) + { + selected_value = value; + } + new_content = "Audio File: audio chooser"; + } + if (selected_route=='DID') + { + if (route == selected_route) + { + selected_value = '\n"; + } + new_content = 'DID: '; + } + if (selected_route=='EXTENSION') + { + if (route == selected_route) + { + selected_value = value; + selected_context = value_context; + } + new_content = "Extension:   Context: "; + } + if (selected_route=='PHONE') + { + if (route == selected_route) + { + selected_value = '\n"; + } + new_content = 'Phone: '; + } + if (selected_route=='VOICEMAIL') + { + if (route == selected_route) + { + selected_value = value; + } + new_content = "Voicemail Box: "; + } + if (selected_route=='AGI') + { + if (route == selected_route) + { + selected_value = value; + } + new_content = "AGI: "; + } + + if (new_content.length < 1) + {new_content = selected_route} + + span_to_update.innerHTML = new_content; + } + + + 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 = "Call Menu:"; + } + if (route=='DID') + { + new_content = "DID:"; + } + + if (new_content.length < 1) + {new_content = selected_route} + + span_to_update.innerHTML = new_content; + } + + \n"; echo "\n"; echo "\n"; @@ -649,21 +803,21 @@ $admin_home_url_LU = $row[0]; ?>
  > Show In-Groups -
  +
  > Add A New In-Group -
  - > Copy In-Group -
  +
  + > Copy In-Group
+
  > Show DIDs -
  +
  > Add A New DID -
  - > Copy DID -
  +
  + > Copy DID
+
  > Show Call Menus -
  +
  > Add A New Call Menu -
  +
  > Copy Call Menu
- + diff --git a/agc_2-X/trunk/www/vicidial/non_agent_api.php b/agc_2-X/trunk/www/vicidial/non_agent_api.php index 659a2b35..edab6265 100644 --- a/agc_2-X/trunk/www/vicidial/non_agent_api.php +++ b/agc_2-X/trunk/www/vicidial/non_agent_api.php @@ -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 "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; } } $k++; diff --git a/agc_2-X/trunk/www/vicidial/timeclock_edit.php b/agc_2-X/trunk/www/vicidial/timeclock_edit.php index 7fda24a8..4e60fdf6 100644 --- a/agc_2-X/trunk/www/vicidial/timeclock_edit.php +++ b/agc_2-X/trunk/www/vicidial/timeclock_edit.php @@ -218,7 +218,7 @@ $browser = getenv("HTTP_USER_AGENT"); -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"; diff --git a/agc_2-X/trunk/www/vicidial/timeclock_report.php b/agc_2-X/trunk/www/vicidial/timeclock_report.php index 41f14540..1d1bb654 100644 --- a/agc_2-X/trunk/www/vicidial/timeclock_report.php +++ b/agc_2-X/trunk/www/vicidial/timeclock_report.php @@ -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"; diff --git a/agc_2-X/trunk/www/vicidial/timeclock_status.php b/agc_2-X/trunk/www/vicidial/timeclock_status.php index ae97edf2..03727924 100644 --- a/agc_2-X/trunk/www/vicidial/timeclock_status.php +++ b/agc_2-X/trunk/www/vicidial/timeclock_status.php @@ -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 ##### diff --git a/agc_2-X/trunk/www/vicidial/user_group_bulk_change.php b/agc_2-X/trunk/www/vicidial/user_group_bulk_change.php index 2cdc5cbe..78b5a415 100644 --- a/agc_2-X/trunk/www/vicidial/user_group_bulk_change.php +++ b/agc_2-X/trunk/www/vicidial/user_group_bulk_change.php @@ -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 ##### diff --git a/agc_2-X/trunk/www/vicidial/user_stats.php b/agc_2-X/trunk/www/vicidial/user_stats.php index 3846c1de..dca1aeb9 100644 --- a/agc_2-X/trunk/www/vicidial/user_stats.php +++ b/agc_2-X/trunk/www/vicidial/user_stats.php @@ -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"; diff --git a/agc_2-X/trunk/www/vicidial/user_status.php b/agc_2-X/trunk/www/vicidial/user_status.php index 3533170f..42c29907 100644 --- a/agc_2-X/trunk/www/vicidial/user_status.php +++ b/agc_2-X/trunk/www/vicidial/user_status.php @@ -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>"; diff --git a/agc_2-X/trunk/www/vicidial/user_territories.php b/agc_2-X/trunk/www/vicidial/user_territories.php index 2416f0d0..56b0c302 100644 --- a/agc_2-X/trunk/www/vicidial/user_territories.php +++ b/agc_2-X/trunk/www/vicidial/user_territories.php @@ -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 diff --git a/agc_2-X/trunk/www/vicidial/vdremote.php b/agc_2-X/trunk/www/vicidial/vdremote.php index e74c16c2..a4c67ba2 100644 --- a/agc_2-X/trunk/www/vicidial/vdremote.php +++ b/agc_2-X/trunk/www/vicidial/vdremote.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"; diff --git a/agc_2-X/trunk/www/vicidial/vicidial_sales_viewer.php b/agc_2-X/trunk/www/vicidial/vicidial_sales_viewer.php index c7b58e9c..3ad853a9 100644 --- a/agc_2-X/trunk/www/vicidial/vicidial_sales_viewer.php +++ b/agc_2-X/trunk/www/vicidial/vicidial_sales_viewer.php @@ -48,7 +48,7 @@ $auth=$row[0]; ?> <html> <head> -<title>VICIDIAL recent sales lookup +Recent Sales Lookup
";
File layout to use:Standard VICIDIAL    Custom layoutStandard Format    Custom layout
Lead Duplicate Check: $file_names[$m]$file_dates[$m]$file_sizes[$m]PLAY
PLAY
";
- +
Select a VICIDIAL campaign:Select a campaign: "; diff --git a/agc_2-X/trunk/www/vicidial/welcome_demo.php b/agc_2-X/trunk/www/vicidial/welcome_demo.php index f70fd803..f947eecf 100644 --- a/agc_2-X/trunk/www/vicidial/welcome_demo.php +++ b/agc_2-X/trunk/www/vicidial/welcome_demo.php @@ -6,7 +6,7 @@ # header ("Content-type: text/html; charset=utf-8"); -echo "VICIDIAL Welcome\n"; +echo "ViciDial Welcome\n"; echo "\n"; echo "\n"; echo "



"; diff --git a/agc_2-X/trunk/www/vicidial/welcome_languages.php b/agc_2-X/trunk/www/vicidial/welcome_languages.php index ad707150..c799149a 100644 --- a/agc_2-X/trunk/www/vicidial/welcome_languages.php +++ b/agc_2-X/trunk/www/vicidial/welcome_languages.php @@ -6,7 +6,7 @@ # header ("Content-type: text/html; charset=utf-8"); -echo "VICIDIAL Welcome\n"; +echo "ViciDial Welcome\n"; echo "\n"; echo "\n"; echo "



";