Added list_download.php script to allow for downloading of lists from the admin.php interface
Small redesign of the agent interface with new tabs and more grey backgrounds git-svn-id: svn://192.168.202.10@1049 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -243,6 +243,13 @@ NOTE: Upgrading from 1.1.12-3 to 2.0.1 is at the bottom
|
|||||||
55. Added patch and configuration options to allow VICIDIAL to work with Sangoma
|
55. Added patch and configuration options to allow VICIDIAL to work with Sangoma
|
||||||
ParaXip CPD(Call Progress Detection)
|
ParaXip CPD(Call Progress Detection)
|
||||||
|
|
||||||
|
56. Added list_download.php that allows you to download the entire contents of
|
||||||
|
vicidial lists from the admin.php interface. You must set the download_lists
|
||||||
|
permission in vicidial_users to 1 for this to work.
|
||||||
|
|
||||||
|
57. Small redesign of the agent interface to use grey backgrounds and new tabs
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -479,7 +479,8 @@ vdc_agent_api_access ENUM('0','1') default '0',
|
|||||||
modify_inbound_dids ENUM('1','0') default '0',
|
modify_inbound_dids ENUM('1','0') default '0',
|
||||||
delete_inbound_dids ENUM('1','0') default '0',
|
delete_inbound_dids ENUM('1','0') default '0',
|
||||||
active ENUM('Y','N') default 'Y',
|
active ENUM('Y','N') default 'Y',
|
||||||
alert_enabled ENUM('1','0') default '0'
|
alert_enabled ENUM('1','0') default '0',
|
||||||
|
download_lists ENUM('1','0') default '0'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
@@ -1455,7 +1456,7 @@ CREATE INDEX phone_number on vicidial_closer_log (phone_number);
|
|||||||
CREATE INDEX date_user on vicidial_closer_log (call_date,user);
|
CREATE INDEX date_user on vicidial_closer_log (call_date,user);
|
||||||
CREATE INDEX comment_a on live_inbound_log (comment_a);
|
CREATE INDEX comment_a on live_inbound_log (comment_a);
|
||||||
|
|
||||||
UPDATE system_settings SET db_schema_version='1128';
|
UPDATE system_settings SET db_schema_version='1129';
|
||||||
|
|
||||||
GRANT RELOAD ON *.* TO cron@'%';
|
GRANT RELOAD ON *.* TO cron@'%';
|
||||||
GRANT RELOAD ON *.* TO cron@localhost;
|
GRANT RELOAD ON *.* TO cron@localhost;
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 825 B |
Binary file not shown.
|
After Width: | Height: | Size: 866 B |
@@ -682,3 +682,7 @@ index(lead_id)
|
|||||||
ALTER TABLE vicidial_campaigns ADD cpd_amd_action ENUM('DISABLED','DISPO','MESSAGE') default 'DISABLED';
|
ALTER TABLE vicidial_campaigns ADD cpd_amd_action ENUM('DISABLED','DISPO','MESSAGE') default 'DISABLED';
|
||||||
|
|
||||||
UPDATE system_settings SET db_schema_version='1128';
|
UPDATE system_settings SET db_schema_version='1128';
|
||||||
|
|
||||||
|
ALTER TABLE vicidial_users ADD download_lists ENUM('1','0') default '0';
|
||||||
|
|
||||||
|
UPDATE system_settings SET db_schema_version='1129';
|
||||||
|
|||||||
@@ -387,6 +387,8 @@ To select more than 1 campaign, hold down the Ctrl key and click||
|
|||||||
CPD AMD Action -<\/B> If you are using the Sangoma ParaXip Call Progress Detection software then you will want to enable this setting either setting it to DISPO which will disposition the call as AA and hang it up if the call is being processed and has not been sent to an agent yet or MESSAGE which will send the call to the defined Answering Machine Message for this campaign. Default is DISABLED||
|
CPD AMD Action -<\/B> If you are using the Sangoma ParaXip Call Progress Detection software then you will want to enable this setting either setting it to DISPO which will disposition the call as AA and hang it up if the call is being processed and has not been sent to an agent yet or MESSAGE which will send the call to the defined Answering Machine Message for this campaign. Default is DISABLED||
|
||||||
CPD AMD Action:||
|
CPD AMD Action:||
|
||||||
Click here for user multiple day status detail report||
|
Click here for user multiple day status detail report||
|
||||||
|
Click here to download this list||
|
||||||
|
Download Lists:||
|
||||||
|
|
||||||
|
|
||||||
############################################################ CLIENT
|
############################################################ CLIENT
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 825 B After Width: | Height: | Size: 697 B |
Binary file not shown.
|
Before Width: | Height: | Size: 866 B After Width: | Height: | Size: 1.8 KiB |
@@ -1,7 +1,7 @@
|
|||||||
<?
|
<?
|
||||||
# vicidial.php - the web-based version of the astVICIDIAL client application
|
# vicidial.php - the web-based version of the astVICIDIAL client application
|
||||||
#
|
#
|
||||||
# Copyright (C) 2008 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
# Copyright (C) 2009 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||||
#
|
#
|
||||||
# Other scripts that this application depends on:
|
# Other scripts that this application depends on:
|
||||||
# - vdc_db_query.php: Updates information in the database
|
# - vdc_db_query.php: Updates information in the database
|
||||||
@@ -217,10 +217,11 @@
|
|||||||
# 90126-2302 - Added Vtiger login option and agent alert option
|
# 90126-2302 - Added Vtiger login option and agent alert option
|
||||||
# 90128-0230 - Added vendor_lead_code to API dial and manuald dial with lookup
|
# 90128-0230 - Added vendor_lead_code to API dial and manuald dial with lookup
|
||||||
# 90202-0148 - Added option to disable BLENDED checkbox
|
# 90202-0148 - Added option to disable BLENDED checkbox
|
||||||
|
# 90209-0132 - Changed tab images and color scheme
|
||||||
#
|
#
|
||||||
|
|
||||||
$version = '2.0.5-196';
|
$version = '2.0.5-197';
|
||||||
$build = '90202-0148';
|
$build = '90209-0132';
|
||||||
$mel=1; # Mysql Error Log enabled = 1
|
$mel=1; # Mysql Error Log enabled = 1
|
||||||
$mysql_log_count=53;
|
$mysql_log_count=53;
|
||||||
$one_mysql_log=0;
|
$one_mysql_log=0;
|
||||||
@@ -354,7 +355,8 @@ $TEST_all_statuses = '0'; # TEST variable allows all statuses in dispo screen
|
|||||||
|
|
||||||
$BROWSER_HEIGHT = 500; # set to the minimum browser height, default=500
|
$BROWSER_HEIGHT = 500; # set to the minimum browser height, default=500
|
||||||
$BROWSER_WIDTH = 770; # set to the minimum browser width, default=770
|
$BROWSER_WIDTH = 770; # set to the minimum browser width, default=770
|
||||||
|
$MAIN_COLOR = '#CCCCCC'; # old default is E0C2D6
|
||||||
|
$SCRIPT_COLOR = '#E6E6E6'; # old default is FFE7D0
|
||||||
|
|
||||||
# options now set in DB:
|
# options now set in DB:
|
||||||
#$alt_phone_dialing = '1'; # allow agents to call alt phone numbers
|
#$alt_phone_dialing = '1'; # allow agents to call alt phone numbers
|
||||||
@@ -547,7 +549,7 @@ echo "<!-- INTERNATIONALIZATION-LINKS-PLACEHOLDER-VICIDIAL -->\n";
|
|||||||
echo "</TR></TABLE>\n";
|
echo "</TR></TABLE>\n";
|
||||||
echo "<FORM NAME=vicidial_form ID=vicidial_form ACTION=\"$agcPAGE\" METHOD=POST>\n";
|
echo "<FORM NAME=vicidial_form ID=vicidial_form ACTION=\"$agcPAGE\" METHOD=POST>\n";
|
||||||
echo "<INPUT TYPE=HIDDEN NAME=DB VALUE=\"$DB\">\n";
|
echo "<INPUT TYPE=HIDDEN NAME=DB VALUE=\"$DB\">\n";
|
||||||
echo "<BR><BR><BR><CENTER><TABLE WIDTH=460 CELLPADDING=0 CELLSPACING=0 BGCOLOR=\"#E0C2D6\"><TR BGCOLOR=WHITE>";
|
echo "<BR><BR><BR><CENTER><TABLE WIDTH=460 CELLPADDING=0 CELLSPACING=0 BGCOLOR=\"$MAIN_COLOR\"><TR BGCOLOR=WHITE>";
|
||||||
echo "<TD ALIGN=LEFT VALIGN=BOTTOM><IMG SRC=\"./images/vdc_tab_vicidial.gif\" BORDER=0></TD>";
|
echo "<TD ALIGN=LEFT VALIGN=BOTTOM><IMG SRC=\"./images/vdc_tab_vicidial.gif\" BORDER=0></TD>";
|
||||||
echo "<TD ALIGN=CENTER VALIGN=MIDDLE> Re-Login </TD>";
|
echo "<TD ALIGN=CENTER VALIGN=MIDDLE> Re-Login </TD>";
|
||||||
echo "</TR>\n";
|
echo "</TR>\n";
|
||||||
@@ -588,7 +590,7 @@ if ($user_login_first == 1)
|
|||||||
#echo "<INPUT TYPE=HIDDEN NAME=phone_login VALUE=\"$phone_login\">\n";
|
#echo "<INPUT TYPE=HIDDEN NAME=phone_login VALUE=\"$phone_login\">\n";
|
||||||
#echo "<INPUT TYPE=HIDDEN NAME=phone_pass VALUE=\"$phone_pass\">\n";
|
#echo "<INPUT TYPE=HIDDEN NAME=phone_pass VALUE=\"$phone_pass\">\n";
|
||||||
echo "<CENTER><BR><B>User Login</B><BR><BR>";
|
echo "<CENTER><BR><B>User Login</B><BR><BR>";
|
||||||
echo "<TABLE WIDTH=460 CELLPADDING=0 CELLSPACING=0 BGCOLOR=\"#E0C2D6\"><TR BGCOLOR=WHITE>";
|
echo "<TABLE WIDTH=460 CELLPADDING=0 CELLSPACING=0 BGCOLOR=\"$MAIN_COLOR\"><TR BGCOLOR=WHITE>";
|
||||||
echo "<TD ALIGN=LEFT VALIGN=BOTTOM><IMG SRC=\"./images/vdc_tab_vicidial.gif\" BORDER=0></TD>";
|
echo "<TD ALIGN=LEFT VALIGN=BOTTOM><IMG SRC=\"./images/vdc_tab_vicidial.gif\" BORDER=0></TD>";
|
||||||
echo "<TD ALIGN=CENTER VALIGN=MIDDLE> Campaign Login </TD>";
|
echo "<TD ALIGN=CENTER VALIGN=MIDDLE> Campaign Login </TD>";
|
||||||
echo "</TR>\n";
|
echo "</TR>\n";
|
||||||
@@ -629,7 +631,7 @@ if ($user_login_first == 1)
|
|||||||
echo "</TR></TABLE>\n";
|
echo "</TR></TABLE>\n";
|
||||||
echo "<FORM NAME=vicidial_form ID=vicidial_form ACTION=\"$agcPAGE\" METHOD=POST>\n";
|
echo "<FORM NAME=vicidial_form ID=vicidial_form ACTION=\"$agcPAGE\" METHOD=POST>\n";
|
||||||
echo "<INPUT TYPE=HIDDEN NAME=DB VALUE=\"$DB\">\n";
|
echo "<INPUT TYPE=HIDDEN NAME=DB VALUE=\"$DB\">\n";
|
||||||
echo "<BR><BR><BR><CENTER><TABLE WIDTH=460 CELLPADDING=0 CELLSPACING=0 BGCOLOR=\"#E0C2D6\"><TR BGCOLOR=WHITE>";
|
echo "<BR><BR><BR><CENTER><TABLE WIDTH=460 CELLPADDING=0 CELLSPACING=0 BGCOLOR=\"$MAIN_COLOR\"><TR BGCOLOR=WHITE>";
|
||||||
echo "<TD ALIGN=LEFT VALIGN=BOTTOM><IMG SRC=\"./images/vdc_tab_vicidial.gif\" BORDER=0></TD>";
|
echo "<TD ALIGN=LEFT VALIGN=BOTTOM><IMG SRC=\"./images/vdc_tab_vicidial.gif\" BORDER=0></TD>";
|
||||||
echo "<TD ALIGN=CENTER VALIGN=MIDDLE> Login </TD>";
|
echo "<TD ALIGN=CENTER VALIGN=MIDDLE> Login </TD>";
|
||||||
echo "</TR>\n";
|
echo "</TR>\n";
|
||||||
@@ -668,7 +670,7 @@ echo "<!-- INTERNATIONALIZATION-LINKS-PLACEHOLDER-VICIDIAL -->\n";
|
|||||||
echo "</TR></TABLE>\n";
|
echo "</TR></TABLE>\n";
|
||||||
echo "<FORM NAME=vicidial_form ID=vicidial_form ACTION=\"$agcPAGE\" METHOD=POST>\n";
|
echo "<FORM NAME=vicidial_form ID=vicidial_form ACTION=\"$agcPAGE\" METHOD=POST>\n";
|
||||||
echo "<INPUT TYPE=HIDDEN NAME=DB VALUE=\"$DB\">\n";
|
echo "<INPUT TYPE=HIDDEN NAME=DB VALUE=\"$DB\">\n";
|
||||||
echo "<BR><BR><BR><CENTER><TABLE WIDTH=460 CELLPADDING=0 CELLSPACING=0 BGCOLOR=\"#E0C2D6\"><TR BGCOLOR=WHITE>";
|
echo "<BR><BR><BR><CENTER><TABLE WIDTH=460 CELLPADDING=0 CELLSPACING=0 BGCOLOR=\"$MAIN_COLOR\"><TR BGCOLOR=WHITE>";
|
||||||
echo "<TD ALIGN=LEFT VALIGN=BOTTOM><IMG SRC=\"./images/vdc_tab_vicidial.gif\" BORDER=0></TD>";
|
echo "<TD ALIGN=LEFT VALIGN=BOTTOM><IMG SRC=\"./images/vdc_tab_vicidial.gif\" BORDER=0></TD>";
|
||||||
echo "<TD ALIGN=CENTER VALIGN=MIDDLE> Phone Login </TD>";
|
echo "<TD ALIGN=CENTER VALIGN=MIDDLE> Phone Login </TD>";
|
||||||
echo "</TR>\n";
|
echo "</TR>\n";
|
||||||
@@ -1086,7 +1088,7 @@ $VDloginDISPLAY=0;
|
|||||||
echo "<INPUT TYPE=HIDDEN NAME=phone_login VALUE=\"$phone_login\">\n";
|
echo "<INPUT TYPE=HIDDEN NAME=phone_login VALUE=\"$phone_login\">\n";
|
||||||
echo "<INPUT TYPE=HIDDEN NAME=phone_pass VALUE=\"$phone_pass\">\n";
|
echo "<INPUT TYPE=HIDDEN NAME=phone_pass VALUE=\"$phone_pass\">\n";
|
||||||
echo "<CENTER><BR><B>$VDdisplayMESSAGE</B><BR><BR>";
|
echo "<CENTER><BR><B>$VDdisplayMESSAGE</B><BR><BR>";
|
||||||
echo "<TABLE WIDTH=460 CELLPADDING=0 CELLSPACING=0 BGCOLOR=\"#E0C2D6\"><TR BGCOLOR=WHITE>";
|
echo "<TABLE WIDTH=460 CELLPADDING=0 CELLSPACING=0 BGCOLOR=\"$MAIN_COLOR\"><TR BGCOLOR=WHITE>";
|
||||||
echo "<TD ALIGN=LEFT VALIGN=BOTTOM><IMG SRC=\"./images/vdc_tab_vicidial.gif\" BORDER=0></TD>";
|
echo "<TD ALIGN=LEFT VALIGN=BOTTOM><IMG SRC=\"./images/vdc_tab_vicidial.gif\" BORDER=0></TD>";
|
||||||
echo "<TD ALIGN=CENTER VALIGN=MIDDLE> Campaign Login </TD>";
|
echo "<TD ALIGN=CENTER VALIGN=MIDDLE> Campaign Login </TD>";
|
||||||
echo "</TR>\n";
|
echo "</TR>\n";
|
||||||
@@ -1174,7 +1176,7 @@ if (!$authphone)
|
|||||||
echo "<INPUT TYPE=HIDDEN NAME=VD_login VALUE=\"$VD_login\">\n";
|
echo "<INPUT TYPE=HIDDEN NAME=VD_login VALUE=\"$VD_login\">\n";
|
||||||
echo "<INPUT TYPE=HIDDEN NAME=VD_pass VALUE=\"$VD_pass\">\n";
|
echo "<INPUT TYPE=HIDDEN NAME=VD_pass VALUE=\"$VD_pass\">\n";
|
||||||
echo "<INPUT TYPE=HIDDEN NAME=VD_campaign VALUE=\"$VD_campaign\">\n";
|
echo "<INPUT TYPE=HIDDEN NAME=VD_campaign VALUE=\"$VD_campaign\">\n";
|
||||||
echo "<BR><BR><BR><CENTER><TABLE WIDTH=460 CELLPADDING=0 CELLSPACING=0 BGCOLOR=\"#E0C2D6\"><TR BGCOLOR=WHITE>";
|
echo "<BR><BR><BR><CENTER><TABLE WIDTH=460 CELLPADDING=0 CELLSPACING=0 BGCOLOR=\"$MAIN_COLOR\"><TR BGCOLOR=WHITE>";
|
||||||
echo "<TD ALIGN=LEFT VALIGN=BOTTOM><IMG SRC=\"./images/vdc_tab_vicidial.gif\" BORDER=0></TD>";
|
echo "<TD ALIGN=LEFT VALIGN=BOTTOM><IMG SRC=\"./images/vdc_tab_vicidial.gif\" BORDER=0></TD>";
|
||||||
echo "<TD ALIGN=CENTER VALIGN=MIDDLE> Login Error</TD>";
|
echo "<TD ALIGN=CENTER VALIGN=MIDDLE> Login Error</TD>";
|
||||||
echo "</TR>\n";
|
echo "</TR>\n";
|
||||||
@@ -2008,7 +2010,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
|||||||
var VDIC_web_form_address = '<? echo $VICIDiaL_web_form_address ?>';
|
var VDIC_web_form_address = '<? echo $VICIDiaL_web_form_address ?>';
|
||||||
var CalL_ScripT_id = '';
|
var CalL_ScripT_id = '';
|
||||||
var CalL_AutO_LauncH = '';
|
var CalL_AutO_LauncH = '';
|
||||||
var panel_bgcolor = '#E0C2D6';
|
var panel_bgcolor = '<? echo $MAIN_COLOR ?>';
|
||||||
var CusTCB_bgcolor = '#FFFF66';
|
var CusTCB_bgcolor = '#FFFF66';
|
||||||
var auto_dial_level = '<? echo $auto_dial_level ?>';
|
var auto_dial_level = '<? echo $auto_dial_level ?>';
|
||||||
var starting_dial_level = '<? echo $auto_dial_level ?>';
|
var starting_dial_level = '<? echo $auto_dial_level ?>';
|
||||||
@@ -7493,8 +7495,8 @@ else
|
|||||||
|
|
||||||
function MainPanelToFront(resumevar)
|
function MainPanelToFront(resumevar)
|
||||||
{
|
{
|
||||||
document.getElementById("MainTable").style.backgroundColor="#E0C2D6";
|
document.getElementById("MainTable").style.backgroundColor="<? echo $MAIN_COLOR ?>";
|
||||||
document.getElementById("MaiNfooter").style.backgroundColor="#E0C2D6";
|
document.getElementById("MaiNfooter").style.backgroundColor="<? echo $MAIN_COLOR ?>";
|
||||||
hideDiv('ScriptPanel');
|
hideDiv('ScriptPanel');
|
||||||
showDiv('MainPanel');
|
showDiv('MainPanel');
|
||||||
if (resumevar != 'NO')
|
if (resumevar != 'NO')
|
||||||
@@ -7532,16 +7534,16 @@ else
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
panel_bgcolor='#E0C2D6';
|
panel_bgcolor='<? echo $MAIN_COLOR ?>';
|
||||||
document.getElementById("MainStatuSSpan").style.background = panel_bgcolor;
|
document.getElementById("MainStatuSSpan").style.background = panel_bgcolor;
|
||||||
}
|
}
|
||||||
|
|
||||||
function ScriptPanelToFront()
|
function ScriptPanelToFront()
|
||||||
{
|
{
|
||||||
showDiv('ScriptPanel');
|
showDiv('ScriptPanel');
|
||||||
document.getElementById("MainTable").style.backgroundColor="#FFE7D0";
|
document.getElementById("MainTable").style.backgroundColor="<? echo $SCRIPT_COLOR ?>";
|
||||||
document.getElementById("MaiNfooter").style.backgroundColor="#FFE7D0";
|
document.getElementById("MaiNfooter").style.backgroundColor="<? echo $SCRIPT_COLOR ?>";
|
||||||
panel_bgcolor='#FFE7D0';
|
panel_bgcolor='<? echo $SCRIPT_COLOR ?>';
|
||||||
document.getElementById("MainStatuSSpan").style.background = panel_bgcolor;
|
document.getElementById("MainStatuSSpan").style.background = panel_bgcolor;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -7966,7 +7968,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">
|
<span style="position:absolute;left:154px;top:65px;z-index:17;" id="ScriptPanel">
|
||||||
<table border=0 bgcolor="#FFE7D0" width=<?=$SSwidth ?> height=<?=$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="<? echo $SCRIPT_COLOR ?>" width=<?=$SSwidth ?> height=<?=$SSheight ?>><TR><TD align=left valign=top><font class="sb_text"><div class="scroll_script" id="ScriptContents">VICIDIAL SCRIPT</div></font></TD></TR></TABLE>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
|
||||||
@@ -7976,7 +7978,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
|
|||||||
|
|
||||||
|
|
||||||
<span style="position:absolute;left:0px;top:<?=$HKheight ?>px;z-index:15;" id="MaiNfooterspan">
|
<span style="position:absolute;left:0px;top:<?=$HKheight ?>px;z-index:15;" id="MaiNfooterspan">
|
||||||
<table BGCOLOR="#E0C2D6" id="MaiNfooter" width=<?=$MNwidth ?>><tr height=32><td height=32><font face="Arial,Helvetica" size=1>VICIDIAL web-client version: <? echo $version ?> BUILD: <? echo $build ?> Server: <? echo $server_ip ?> </font><BR>
|
<table BGCOLOR="<? echo $MAIN_COLOR ?>" id="MaiNfooter" width=<?=$MNwidth ?>><tr height=32><td height=32><font face="Arial,Helvetica" size=1>VICIDIAL web-client version: <? echo $version ?> BUILD: <? echo $build ?> Server: <? 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>
|
<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>
|
</td></tr>
|
||||||
<tr><td colspan=3><span id="outboundcallsspan"></span></td></tr>
|
<tr><td colspan=3><span id="outboundcallsspan"></span></td></tr>
|
||||||
@@ -8000,7 +8002,7 @@ else
|
|||||||
|
|
||||||
<!-- BEGIN ********* Here is the main VICIDIAL display panel -->
|
<!-- BEGIN ********* Here is the main VICIDIAL display panel -->
|
||||||
<span style="position:absolute;left:0px;top:46px;z-index:10;" id="MainPanel">
|
<span style="position:absolute;left:0px;top:46px;z-index:10;" id="MainPanel">
|
||||||
<TABLE border=0 BGCOLOR="#E0C2D6" width=<?=$MNwidth ?> id="MainTable">
|
<TABLE border=0 BGCOLOR="<? echo $MAIN_COLOR ?>" width=<?=$MNwidth ?> id="MainTable">
|
||||||
<TR><TD colspan=3><font class="body_text"> STATUS: <span id="MainStatuSSpan"></span></font></TD></TR>
|
<TR><TD colspan=3><font class="body_text"> STATUS: <span id="MainStatuSSpan"></span></font></TD></TR>
|
||||||
<tr><td colspan=3><span id="busycallsdebug"></span></td></tr>
|
<tr><td colspan=3><span id="busycallsdebug"></span></td></tr>
|
||||||
<tr><td width=150 align=left valign=top>
|
<tr><td width=150 align=left valign=top>
|
||||||
@@ -8051,24 +8053,38 @@ RECORD ID: <font class="body_small"><span id="RecorDID"></span></font><BR>
|
|||||||
<div class="text_input" id="MainPanelCustInfo">
|
<div class="text_input" id="MainPanelCustInfo">
|
||||||
<table><tr>
|
<table><tr>
|
||||||
<td align=right></td>
|
<td align=right></td>
|
||||||
<td align=left><font class="body_text"> Cust Time: <input type=text size=27 name=custdatetime class="cust_form" value=""> Channel: <input type=text size=20 name=callchannel class="cust_form" value=""></td>
|
<td align=left><font class="body_text"> Customer Time: <input type=text size=27 name=custdatetime class="cust_form" value=""> Channel: <input type=text size=27 name=callchannel class="cust_form" value=""></td>
|
||||||
</tr><tr>
|
</tr><tr>
|
||||||
<td colspan=2 align=center> Customer Information: <span id="CusTInfOSpaN"></span></td>
|
<td colspan=2 align=center> Customer Information: <span id="CusTInfOSpaN"></span></td>
|
||||||
</tr><tr>
|
</tr><tr>
|
||||||
|
<td align=left colspan=2>
|
||||||
|
|
||||||
|
|
||||||
|
<table width=550><tr>
|
||||||
<td align=right><font class="body_text"> Title: </td>
|
<td align=right><font class="body_text"> Title: </td>
|
||||||
<td align=left><font class="body_text"><input type=text size=4 name=title maxlength=4 class="cust_form" value=""> First: <input type=text size=17 name=first_name maxlength=30 class="cust_form" value=""> MI: <input type=text size=1 name=middle_initial maxlength=1 class="cust_form" value=""> Last: <input type=text size=23 name=last_name maxlength=30 class="cust_form" value=""></td>
|
<td align=left colspan=5><font class="body_text"><input type=text size=4 name=title maxlength=4 class="cust_form" value=""> First: <input type=text size=17 name=first_name maxlength=30 class="cust_form" value=""> MI: <input type=text size=1 name=middle_initial maxlength=1 class="cust_form" value=""> Last: <input type=text size=23 name=last_name maxlength=30 class="cust_form" value=""></td>
|
||||||
</tr><tr>
|
</tr><tr>
|
||||||
<td align=right><font class="body_text"> Address1: </td>
|
<td align=right><font class="body_text"> Address1: </td>
|
||||||
<td align=left><font class="body_text"><input type=text size=50 name=address1 maxlength=100 class="cust_form" value=""></td>
|
<td align=left colspan=5><font class="body_text"><input type=text size=85 name=address1 maxlength=100 class="cust_form" value=""></td>
|
||||||
</tr><tr>
|
</tr><tr>
|
||||||
<td align=right><font class="body_text"> Address2: </td>
|
<td align=right><font class="body_text"> Address2: </td>
|
||||||
<td align=left><font class="body_text"><input type=text size=17 name=address2 maxlength=100 class="cust_form" value=""> Address3: <input type=text size=25 name=address3 maxlength=100 class="cust_form" value=""></td>
|
<td align=left><font class="body_text"><input type=text size=20 name=address2 maxlength=100 class="cust_form" value=""></td>
|
||||||
|
<td align=right><font class="body_text">Address3: </td>
|
||||||
|
<td align=left colspan=3><font class="body_text"><input type=text size=45 name=address3 maxlength=100 class="cust_form" value=""></td>
|
||||||
</tr><tr>
|
</tr><tr>
|
||||||
<td align=right><font class="body_text"> City: </td>
|
<td align=right><font class="body_text"> City: </td>
|
||||||
<td align=left><font class="body_text"><input type=text size=20 name=city maxlength=50 class="cust_form" value=""> State: <input type=text size=2 name=state maxlength=2 class="cust_form" value=""> PostCode: <input type=text size=9 name=postal_code maxlength=10 class="cust_form" value=""></td>
|
<td align=left><font class="body_text"><input type=text size=20 name=city maxlength=50 class="cust_form" value=""></td>
|
||||||
|
<td align=right><font class="body_text">State: </td>
|
||||||
|
<td align=left><font class="body_text"><input type=text size=4 name=state maxlength=2 class="cust_form" value=""></td>
|
||||||
|
<td align=right><font class="body_text">PostCode: </td>
|
||||||
|
<td align=left><font class="body_text"><input type=text size=14 name=postal_code maxlength=10 class="cust_form" value=""></td>
|
||||||
</tr><tr>
|
</tr><tr>
|
||||||
<td align=right><font class="body_text"> Province: </td>
|
<td align=right><font class="body_text"> Province: </td>
|
||||||
<td align=left><font class="body_text"><input type=text size=20 name=province maxlength=50 class="cust_form" value=""> Vendor ID: <input type=text size=15 name=vendor_lead_code maxlength=20 class="cust_form" value=""> Gender: <span id="GENDERhideFORie"><select size=1 name=gender_list class="cust_form" id=gender_list><option value="U">U - Undefined</option><option value="M">M - Male</option><option value="F">F - Female</option></select></span></td>
|
<td align=left><font class="body_text"><input type=text size=20 name=province maxlength=50 class="cust_form" value=""></td>
|
||||||
|
<td align=right><font class="body_text">Vendor ID: </td>
|
||||||
|
<td align=left><font class="body_text"><input type=text size=15 name=vendor_lead_code maxlength=20 class="cust_form" value=""></td>
|
||||||
|
<td align=right><font class="body_text">Gender: </td>
|
||||||
|
<td align=left><font class="body_text"><span id="GENDERhideFORie"><select size=1 name=gender_list class="cust_form" id=gender_list><option value="U">U - Undefined</option><option value="M">M - Male</option><option value="F">F - Female</option></select></span></td>
|
||||||
</tr><tr>
|
</tr><tr>
|
||||||
<td align=right><font class="body_text"> Phone: </td>
|
<td align=right><font class="body_text"> Phone: </td>
|
||||||
<td align=left><font class="body_text">
|
<td align=left><font class="body_text">
|
||||||
@@ -8080,27 +8096,35 @@ if ($disable_alter_custphone=='Y')
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
echo "<input type=text size=11 name=phone_number maxlength=12 class=\"cust_form\" value=\"\">";
|
echo "<input type=text size=20 name=phone_number maxlength=16 class=\"cust_form\" value=\"\">";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
</td>
|
||||||
DialCode: <input type=text size=4 name=phone_code maxlength=10 class="cust_form" value=""> Alt. Phone: <input type=text size=11 name=alt_phone maxlength=12 class="cust_form" value=""></td>
|
<td align=right><font class="body_text">DialCode: </td>
|
||||||
|
<td align=left><font class="body_text"><input type=text size=4 name=phone_code maxlength=10 class="cust_form" value=""></td>
|
||||||
|
<td align=right><font class="body_text">Alt. Phone: </td>
|
||||||
|
<td align=left><font class="body_text"><input type=text size=14 name=alt_phone maxlength=16 class="cust_form" value=""></td>
|
||||||
</tr><tr>
|
</tr><tr>
|
||||||
<td align=right><font class="body_text"> Show: </td>
|
<td align=right><font class="body_text"> Show: </td>
|
||||||
<td align=left><font class="body_text"><input type=text size=20 name=security_phrase maxlength=100 class="cust_form" value=""> Email: <input type=text size=25 name=email maxlength=70 class="cust_form" value=""></td>
|
<td align=left><font class="body_text"><input type=text size=20 name=security_phrase maxlength=100 class="cust_form" value=""></td>
|
||||||
|
<td align=right><font class="body_text">Email: </td>
|
||||||
|
<td align=left colspan=3><font class="body_text"><input type=text size=45 name=email maxlength=70 class="cust_form" value=""></td>
|
||||||
</tr><tr>
|
</tr><tr>
|
||||||
<td align=right valign=top><font class="body_text"> Comments: </td>
|
<td align=right valign=top><font class="body_text"> Comments: </td>
|
||||||
<td align=left>
|
<td align=left colspan=5>
|
||||||
<font class="body_text">
|
<font class="body_text">
|
||||||
<?
|
<?
|
||||||
if ( ($multi_line_comments) )
|
if ( ($multi_line_comments) )
|
||||||
{echo "<TEXTAREA NAME=comments ROWS=2 COLS=65 class=\"cust_form_text\" value=\"\"></TEXTAREA>\n";}
|
{echo "<TEXTAREA NAME=comments ROWS=2 COLS=85 class=\"cust_form_text\" value=\"\"></TEXTAREA>\n";}
|
||||||
else
|
else
|
||||||
{echo "<input type=text size=65 name=comments maxlength=255 class=\"cust_form\" value=\"\">\n";}
|
{echo "<input type=text size=65 name=comments maxlength=255 class=\"cust_form\" value=\"\">\n";}
|
||||||
?>
|
?>
|
||||||
</font>
|
</font>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
|
||||||
|
</tr></table></td>
|
||||||
</tr></table>
|
</tr></table>
|
||||||
</div>
|
</div>
|
||||||
</font>
|
</font>
|
||||||
|
|||||||
@@ -210,7 +210,7 @@ $datesARY[0]='';
|
|||||||
$date_namesARY[0]='';
|
$date_namesARY[0]='';
|
||||||
$k=0;
|
$k=0;
|
||||||
|
|
||||||
$stmt="select date_format(event_time, '%Y-%m-%d') as date,count(*) as calls,status from vicidial_users,vicidial_agent_log where event_time <= '$query_date_END' and event_time >= '$query_date_BEGIN' and vicidial_users.user=vicidial_agent_log.user and vicidial_agent_log.user=$user $group_SQL $user_group_SQL group by date,status order by date,status desc limit 500000;";
|
$stmt="select date_format(event_time, '%Y-%m-%d') as date,count(*) as calls,status from vicidial_users,vicidial_agent_log where event_time <= '$query_date_END' and event_time >= '$query_date_BEGIN' and vicidial_users.user=vicidial_agent_log.user and vicidial_agent_log.user='$user' $group_SQL $user_group_SQL group by date,status order by date,status desc limit 500000;";
|
||||||
$rslt=mysql_query($stmt, $link);
|
$rslt=mysql_query($stmt, $link);
|
||||||
if ($DB) {echo "$stmt\n";}
|
if ($DB) {echo "$stmt\n";}
|
||||||
$rows_to_print = mysql_num_rows($rslt);
|
$rows_to_print = mysql_num_rows($rslt);
|
||||||
|
|||||||
@@ -887,6 +887,8 @@ if (isset($_GET["outbound_autodial_active"])) {$outbound_autodial_active=$_GET
|
|||||||
elseif (isset($_POST["outbound_autodial_active"])) {$outbound_autodial_active=$_POST["outbound_autodial_active"];}
|
elseif (isset($_POST["outbound_autodial_active"])) {$outbound_autodial_active=$_POST["outbound_autodial_active"];}
|
||||||
if (isset($_GET["cpd_amd_action"])) {$cpd_amd_action=$_GET["cpd_amd_action"];}
|
if (isset($_GET["cpd_amd_action"])) {$cpd_amd_action=$_GET["cpd_amd_action"];}
|
||||||
elseif (isset($_POST["cpd_amd_action"])) {$cpd_amd_action=$_POST["cpd_amd_action"];}
|
elseif (isset($_POST["cpd_amd_action"])) {$cpd_amd_action=$_POST["cpd_amd_action"];}
|
||||||
|
if (isset($_GET["download_lists"])) {$download_lists=$_GET["download_lists"];}
|
||||||
|
elseif (isset($_POST["download_lists"])) {$download_lists=$_POST["download_lists"];}
|
||||||
|
|
||||||
if (isset($script_id)) {$script_id= strtoupper($script_id);}
|
if (isset($script_id)) {$script_id= strtoupper($script_id);}
|
||||||
if (isset($lead_filter_id)) {$lead_filter_id = strtoupper($lead_filter_id);}
|
if (isset($lead_filter_id)) {$lead_filter_id = strtoupper($lead_filter_id);}
|
||||||
@@ -1065,6 +1067,7 @@ $answer_sec_pct_rt_stat_two = ereg_replace("[^0-9]","",$answer_sec_pct_rt_stat_t
|
|||||||
$enable_vtiger_integration = ereg_replace("[^0-9]","",$enable_vtiger_integration);
|
$enable_vtiger_integration = ereg_replace("[^0-9]","",$enable_vtiger_integration);
|
||||||
$qc_features_active = ereg_replace("[^0-9]","",$qc_features_active);
|
$qc_features_active = ereg_replace("[^0-9]","",$qc_features_active);
|
||||||
$outbound_autodial_active = ereg_replace("[^0-9]","",$outbound_autodial_active);
|
$outbound_autodial_active = ereg_replace("[^0-9]","",$outbound_autodial_active);
|
||||||
|
$download_lists = ereg_replace("[^0-9]","",$download_lists);
|
||||||
|
|
||||||
### DIGITS and COLONS
|
### DIGITS and COLONS
|
||||||
$shift_length = ereg_replace("[^\:0-9]","",$shift_length);
|
$shift_length = ereg_replace("[^\:0-9]","",$shift_length);
|
||||||
@@ -1541,11 +1544,12 @@ $survey_camp_record_dir = ereg_replace(";","",$survey_camp_record_dir);
|
|||||||
# 90201-1503 - Added option to disable the viewing of inactive QC features
|
# 90201-1503 - Added option to disable the viewing of inactive QC features
|
||||||
# 90202-0112 - Added option to disable outbound autodialing(or list dialing)
|
# 90202-0112 - Added option to disable outbound autodialing(or list dialing)
|
||||||
# 90202-0444 - Added cpd_amd_action option for processing of AMD messages
|
# 90202-0444 - Added cpd_amd_action option for processing of AMD messages
|
||||||
|
# 90209-1339 - Added download_lists option to allow downloading of lists
|
||||||
#
|
#
|
||||||
# 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
|
# 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.0.5-162';
|
$admin_version = '2.0.5-163';
|
||||||
$build = '90202-0444';
|
$build = '90209-1339';
|
||||||
|
|
||||||
$STARTtime = date("U");
|
$STARTtime = date("U");
|
||||||
$SQLdate = date("Y-m-d H:i:s");
|
$SQLdate = date("Y-m-d H:i:s");
|
||||||
@@ -6571,7 +6575,7 @@ if ($ADD=="2A")
|
|||||||
$rslt=mysql_query($stmt, $link);
|
$rslt=mysql_query($stmt, $link);
|
||||||
}
|
}
|
||||||
|
|
||||||
$stmt="INSERT INTO vicidial_users (user,pass,full_name,user_level,user_group,phone_login,phone_pass,delete_users,delete_user_groups,delete_lists,delete_campaigns,delete_ingroups,delete_remote_agents,load_leads,campaign_detail,ast_admin_access,ast_delete_phones,delete_scripts,modify_leads,hotkeys_active,change_agent_campaign,agent_choose_ingroups,closer_campaigns,scheduled_callbacks,agentonly_callbacks,agentcall_manual,vicidial_recording,vicidial_transfers,delete_filters,alter_agent_interface_options,closer_default_blended,delete_call_times,modify_call_times,modify_users,modify_campaigns,modify_lists,modify_scripts,modify_filters,modify_ingroups,modify_usergroups,modify_remoteagents,modify_servers,view_reports,vicidial_recording_override,alter_custdata_override,qc_enabled,qc_user_level,qc_pass,qc_finish,qc_commit,add_timeclock_log,modify_timeclock_log,delete_timeclock_log,alter_custphone_override,vdc_agent_api_access,modify_inbound_dids,delete_inbound_dids,active,alert_enabled) SELECT \"$user\",\"$pass\",\"$full_name\",user_level,user_group,phone_login,phone_pass,delete_users,delete_user_groups,delete_lists,delete_campaigns,delete_ingroups,delete_remote_agents,load_leads,campaign_detail,ast_admin_access,ast_delete_phones,delete_scripts,modify_leads,hotkeys_active,change_agent_campaign,agent_choose_ingroups,closer_campaigns,scheduled_callbacks,agentonly_callbacks,agentcall_manual,vicidial_recording,vicidial_transfers,delete_filters,alter_agent_interface_options,closer_default_blended,delete_call_times,modify_call_times,modify_users,modify_campaigns,modify_lists,modify_scripts,modify_filters,modify_ingroups,modify_usergroups,modify_remoteagents,modify_servers,view_reports,vicidial_recording_override,alter_custdata_override,qc_enabled,qc_user_level,qc_pass,qc_finish,qc_commit,add_timeclock_log,modify_timeclock_log,delete_timeclock_log,alter_custphone_override,vdc_agent_api_access,modify_inbound_dids,delete_inbound_dids,active,alert_enabled from vicidial_users where user=\"$source_user_id\";";
|
$stmt="INSERT INTO vicidial_users (user,pass,full_name,user_level,user_group,phone_login,phone_pass,delete_users,delete_user_groups,delete_lists,delete_campaigns,delete_ingroups,delete_remote_agents,load_leads,campaign_detail,ast_admin_access,ast_delete_phones,delete_scripts,modify_leads,hotkeys_active,change_agent_campaign,agent_choose_ingroups,closer_campaigns,scheduled_callbacks,agentonly_callbacks,agentcall_manual,vicidial_recording,vicidial_transfers,delete_filters,alter_agent_interface_options,closer_default_blended,delete_call_times,modify_call_times,modify_users,modify_campaigns,modify_lists,modify_scripts,modify_filters,modify_ingroups,modify_usergroups,modify_remoteagents,modify_servers,view_reports,vicidial_recording_override,alter_custdata_override,qc_enabled,qc_user_level,qc_pass,qc_finish,qc_commit,add_timeclock_log,modify_timeclock_log,delete_timeclock_log,alter_custphone_override,vdc_agent_api_access,modify_inbound_dids,delete_inbound_dids,active,alert_enabled,download_lists) SELECT \"$user\",\"$pass\",\"$full_name\",user_level,user_group,phone_login,phone_pass,delete_users,delete_user_groups,delete_lists,delete_campaigns,delete_ingroups,delete_remote_agents,load_leads,campaign_detail,ast_admin_access,ast_delete_phones,delete_scripts,modify_leads,hotkeys_active,change_agent_campaign,agent_choose_ingroups,closer_campaigns,scheduled_callbacks,agentonly_callbacks,agentcall_manual,vicidial_recording,vicidial_transfers,delete_filters,alter_agent_interface_options,closer_default_blended,delete_call_times,modify_call_times,modify_users,modify_campaigns,modify_lists,modify_scripts,modify_filters,modify_ingroups,modify_usergroups,modify_remoteagents,modify_servers,view_reports,vicidial_recording_override,alter_custdata_override,qc_enabled,qc_user_level,qc_pass,qc_finish,qc_commit,add_timeclock_log,modify_timeclock_log,delete_timeclock_log,alter_custphone_override,vdc_agent_api_access,modify_inbound_dids,delete_inbound_dids,active,alert_enabled,download_lists from vicidial_users where user=\"$source_user_id\";";
|
||||||
$rslt=mysql_query($stmt, $link);
|
$rslt=mysql_query($stmt, $link);
|
||||||
|
|
||||||
$stmtA="INSERT INTO vicidial_inbound_group_agents (user,group_id,group_rank,group_weight,calls_today) SELECT \"$user\",group_id,group_rank,group_weight,\"0\" from vicidial_inbound_group_agents where user=\"$source_user_id\";";
|
$stmtA="INSERT INTO vicidial_inbound_group_agents (user,group_id,group_rank,group_weight,calls_today) SELECT \"$user\",group_id,group_rank,group_weight,\"0\" from vicidial_inbound_group_agents where user=\"$source_user_id\";";
|
||||||
@@ -8028,7 +8032,7 @@ if ($ADD=="4A")
|
|||||||
}
|
}
|
||||||
echo "<br><B>USER MODIFIED - ADMIN: $user</B>\n";
|
echo "<br><B>USER MODIFIED - ADMIN: $user</B>\n";
|
||||||
|
|
||||||
$stmt="UPDATE vicidial_users set pass='$pass',full_name='$full_name',user_level='$user_level',user_group='$user_group',phone_login='$phone_login',phone_pass='$phone_pass',delete_users='$delete_users',delete_user_groups='$delete_user_groups',delete_lists='$delete_lists',delete_campaigns='$delete_campaigns',delete_ingroups='$delete_ingroups',delete_remote_agents='$delete_remote_agents',load_leads='$load_leads',campaign_detail='$campaign_detail',ast_admin_access='$ast_admin_access',ast_delete_phones='$ast_delete_phones',delete_scripts='$delete_scripts',modify_leads='$modify_leads',hotkeys_active='$hotkeys_active',change_agent_campaign='$change_agent_campaign',agent_choose_ingroups='$agent_choose_ingroups',closer_campaigns='$groups_value',scheduled_callbacks='$scheduled_callbacks',agentonly_callbacks='$agentonly_callbacks',agentcall_manual='$agentcall_manual',vicidial_recording='$vicidial_recording',vicidial_transfers='$vicidial_transfers',delete_filters='$delete_filters',alter_agent_interface_options='$alter_agent_interface_options',closer_default_blended='$closer_default_blended',delete_call_times='$delete_call_times',modify_call_times='$modify_call_times',modify_users='$modify_users',modify_campaigns='$modify_campaigns',modify_lists='$modify_lists',modify_scripts='$modify_scripts',modify_filters='$modify_filters',modify_ingroups='$modify_ingroups',modify_usergroups='$modify_usergroups',modify_remoteagents='$modify_remoteagents',modify_servers='$modify_servers',view_reports='$view_reports',vicidial_recording_override='$vicidial_recording_override',alter_custdata_override='$alter_custdata_override',qc_enabled='$qc_enabled',qc_user_level='$qc_user_level',qc_pass='$qc_pass',qc_finish='$qc_finish',qc_commit='$qc_commit',add_timeclock_log='$add_timeclock_log',modify_timeclock_log='$modify_timeclock_log',delete_timeclock_log='$delete_timeclock_log',alter_custphone_override='$alter_custphone_override',vdc_agent_api_access='$vdc_agent_api_access',modify_inbound_dids='$modify_inbound_dids',delete_inbound_dids='$delete_inbound_dids',active='$active' where user='$user';";
|
$stmt="UPDATE vicidial_users set pass='$pass',full_name='$full_name',user_level='$user_level',user_group='$user_group',phone_login='$phone_login',phone_pass='$phone_pass',delete_users='$delete_users',delete_user_groups='$delete_user_groups',delete_lists='$delete_lists',delete_campaigns='$delete_campaigns',delete_ingroups='$delete_ingroups',delete_remote_agents='$delete_remote_agents',load_leads='$load_leads',campaign_detail='$campaign_detail',ast_admin_access='$ast_admin_access',ast_delete_phones='$ast_delete_phones',delete_scripts='$delete_scripts',modify_leads='$modify_leads',hotkeys_active='$hotkeys_active',change_agent_campaign='$change_agent_campaign',agent_choose_ingroups='$agent_choose_ingroups',closer_campaigns='$groups_value',scheduled_callbacks='$scheduled_callbacks',agentonly_callbacks='$agentonly_callbacks',agentcall_manual='$agentcall_manual',vicidial_recording='$vicidial_recording',vicidial_transfers='$vicidial_transfers',delete_filters='$delete_filters',alter_agent_interface_options='$alter_agent_interface_options',closer_default_blended='$closer_default_blended',delete_call_times='$delete_call_times',modify_call_times='$modify_call_times',modify_users='$modify_users',modify_campaigns='$modify_campaigns',modify_lists='$modify_lists',modify_scripts='$modify_scripts',modify_filters='$modify_filters',modify_ingroups='$modify_ingroups',modify_usergroups='$modify_usergroups',modify_remoteagents='$modify_remoteagents',modify_servers='$modify_servers',view_reports='$view_reports',vicidial_recording_override='$vicidial_recording_override',alter_custdata_override='$alter_custdata_override',qc_enabled='$qc_enabled',qc_user_level='$qc_user_level',qc_pass='$qc_pass',qc_finish='$qc_finish',qc_commit='$qc_commit',add_timeclock_log='$add_timeclock_log',modify_timeclock_log='$modify_timeclock_log',delete_timeclock_log='$delete_timeclock_log',alter_custphone_override='$alter_custphone_override',vdc_agent_api_access='$vdc_agent_api_access',modify_inbound_dids='$modify_inbound_dids',delete_inbound_dids='$delete_inbound_dids',active='$active',download_lists='$download_lists' where user='$user';";
|
||||||
$rslt=mysql_query($stmt, $link);
|
$rslt=mysql_query($stmt, $link);
|
||||||
|
|
||||||
###############################################################
|
###############################################################
|
||||||
@@ -11777,6 +11781,7 @@ if ($ADD==3)
|
|||||||
$delete_inbound_dids = $row[57];
|
$delete_inbound_dids = $row[57];
|
||||||
$active = $row[58];
|
$active = $row[58];
|
||||||
$alert_enabled = $row[59];
|
$alert_enabled = $row[59];
|
||||||
|
$download_lists = $row[60];
|
||||||
|
|
||||||
if ( ($user_level >= $LOGuser_level) and ($LOGuser_level < 9) )
|
if ( ($user_level >= $LOGuser_level) and ($LOGuser_level < 9) )
|
||||||
{
|
{
|
||||||
@@ -11885,6 +11890,7 @@ if ($ADD==3)
|
|||||||
echo "<tr bgcolor=#B9CBFD><td align=right>Delete Lists: </td><td align=left><select size=1 name=delete_lists><option>0</option><option>1</option><option SELECTED>$delete_lists</option></select>$NWB#vicidial_users-delete_lists$NWE</td></tr>\n";
|
echo "<tr bgcolor=#B9CBFD><td align=right>Delete Lists: </td><td align=left><select size=1 name=delete_lists><option>0</option><option>1</option><option SELECTED>$delete_lists</option></select>$NWB#vicidial_users-delete_lists$NWE</td></tr>\n";
|
||||||
echo "<tr bgcolor=#B9CBFD><td align=right>Load Leads: </td><td align=left><select size=1 name=load_leads><option>0</option><option>1</option><option SELECTED>$load_leads</option></select>$NWB#vicidial_users-load_leads$NWE</td></tr>\n";
|
echo "<tr bgcolor=#B9CBFD><td align=right>Load Leads: </td><td align=left><select size=1 name=load_leads><option>0</option><option>1</option><option SELECTED>$load_leads</option></select>$NWB#vicidial_users-load_leads$NWE</td></tr>\n";
|
||||||
echo "<tr bgcolor=#B9CBFD><td align=right>Modify Leads: </td><td align=left><select size=1 name=modify_leads><option>0</option><option>1</option><option SELECTED>$modify_leads</option></select>$NWB#vicidial_users-modify_leads$NWE</td></tr>\n";
|
echo "<tr bgcolor=#B9CBFD><td align=right>Modify Leads: </td><td align=left><select size=1 name=modify_leads><option>0</option><option>1</option><option SELECTED>$modify_leads</option></select>$NWB#vicidial_users-modify_leads$NWE</td></tr>\n";
|
||||||
|
echo "<tr bgcolor=#B9CBFD><td align=right>Download Lists: </td><td align=left><select size=1 name=download_lists><option>0</option><option>1</option><option SELECTED>$download_lists</option></select>$NWB#vicidial_users-modify_leads$NWE</td></tr>\n";
|
||||||
|
|
||||||
echo "<tr bgcolor=#9BB9FB><td align=right>Modify Campaigns: </td><td align=left><select size=1 name=modify_campaigns><option>0</option><option>1</option><option SELECTED>$modify_campaigns</option></select>$NWB#vicidial_users-modify_sections$NWE</td></tr>\n";
|
echo "<tr bgcolor=#9BB9FB><td align=right>Modify Campaigns: </td><td align=left><select size=1 name=modify_campaigns><option>0</option><option>1</option><option SELECTED>$modify_campaigns</option></select>$NWB#vicidial_users-modify_sections$NWE</td></tr>\n";
|
||||||
echo "<tr bgcolor=#9BB9FB><td align=right>Campaign Detail: </td><td align=left><select size=1 name=campaign_detail><option>0</option><option>1</option><option SELECTED>$campaign_detail</option></select>$NWB#vicidial_users-campaign_detail$NWE</td></tr>\n";
|
echo "<tr bgcolor=#9BB9FB><td align=right>Campaign Detail: </td><td align=left><select size=1 name=campaign_detail><option>0</option><option>1</option><option SELECTED>$campaign_detail</option></select>$NWB#vicidial_users-campaign_detail$NWE</td></tr>\n";
|
||||||
@@ -14492,6 +14498,7 @@ if ($ADD==311)
|
|||||||
echo "<center><b>\n";
|
echo "<center><b>\n";
|
||||||
|
|
||||||
echo "<br><br><a href=\"$PHP_SELF?ADD=811&list_id=$list_id\">Click here to see all CallBack Holds in this list</a><BR><BR>\n";
|
echo "<br><br><a href=\"$PHP_SELF?ADD=811&list_id=$list_id\">Click here to see all CallBack Holds in this list</a><BR><BR>\n";
|
||||||
|
echo "<br><br><a href=\"./list_download.php?list_id=$list_id\">Click here to download this list</a><BR><BR>\n";
|
||||||
|
|
||||||
if ($LOGdelete_lists > 0)
|
if ($LOGdelete_lists > 0)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -0,0 +1,121 @@
|
|||||||
|
<?
|
||||||
|
# list_download.php
|
||||||
|
#
|
||||||
|
# downloads the entire contents of a vicidial list ID to a flat text file
|
||||||
|
# that is tab delimited
|
||||||
|
#
|
||||||
|
# Copyright (C) 2009 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||||
|
#
|
||||||
|
# CHANGES
|
||||||
|
#
|
||||||
|
# 90209-1310 - First build
|
||||||
|
#
|
||||||
|
|
||||||
|
require("dbconnect.php");
|
||||||
|
|
||||||
|
$PHP_AUTH_USER=$_SERVER['PHP_AUTH_USER'];
|
||||||
|
$PHP_AUTH_PW=$_SERVER['PHP_AUTH_PW'];
|
||||||
|
$PHP_SELF=$_SERVER['PHP_SELF'];
|
||||||
|
if (isset($_GET["list_id"])) {$list_id=$_GET["list_id"];}
|
||||||
|
elseif (isset($_POST["list_id"])) {$list_id=$_POST["list_id"];}
|
||||||
|
if (isset($_GET["DB"])) {$DB=$_GET["DB"];}
|
||||||
|
elseif (isset($_POST["DB"])) {$DB=$_POST["DB"];}
|
||||||
|
if (isset($_GET["submit"])) {$submit=$_GET["submit"];}
|
||||||
|
elseif (isset($_POST["submit"])) {$submit=$_POST["submit"];}
|
||||||
|
if (isset($_GET["SUBMIT"])) {$SUBMIT=$_GET["SUBMIT"];}
|
||||||
|
elseif (isset($_POST["SUBMIT"])) {$SUBMIT=$_POST["SUBMIT"];}
|
||||||
|
|
||||||
|
if (strlen($shift)<2) {$shift='ALL';}
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||||
|
$stmt = "SELECT use_non_latin FROM system_settings;";
|
||||||
|
$rslt=mysql_query($stmt, $link);
|
||||||
|
if ($DB) {echo "$stmt\n";}
|
||||||
|
$qm_conf_ct = mysql_num_rows($rslt);
|
||||||
|
$i=0;
|
||||||
|
while ($i < $qm_conf_ct)
|
||||||
|
{
|
||||||
|
$row=mysql_fetch_row($rslt);
|
||||||
|
$non_latin = $row[0];
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
##### END SETTINGS LOOKUP #####
|
||||||
|
###########################################
|
||||||
|
|
||||||
|
$PHP_AUTH_USER = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_USER);
|
||||||
|
$PHP_AUTH_PW = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_PW);
|
||||||
|
|
||||||
|
$stmt="SELECT count(*) from vicidial_users where user='$PHP_AUTH_USER' and pass='$PHP_AUTH_PW' and user_level > 7 and download_lists='1';";
|
||||||
|
if ($DB) {echo "|$stmt|\n";}
|
||||||
|
if ($non_latin > 0) { $rslt=mysql_query("SET NAMES 'UTF8'");}
|
||||||
|
$rslt=mysql_query($stmt, $link);
|
||||||
|
$row=mysql_fetch_row($rslt);
|
||||||
|
$auth=$row[0];
|
||||||
|
|
||||||
|
if( (strlen($PHP_AUTH_USER)<2) or (strlen($PHP_AUTH_PW)<2) or (!$auth))
|
||||||
|
{
|
||||||
|
# Header("WWW-Authenticate: Basic realm=\"VICI-PROJECTS\"");
|
||||||
|
# Header("HTTP/1.0 401 Unauthorized");
|
||||||
|
echo "Invalid Username/Password or no list download permission: |$PHP_AUTH_USER|\n";
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
$stmt="select count(*) from vicidial_list where list_id='$list_id';";
|
||||||
|
$rslt=mysql_query($stmt, $link);
|
||||||
|
if ($DB) {echo "$stmt\n";}
|
||||||
|
$count_to_print = mysql_num_rows($rslt);
|
||||||
|
if ($count_to_print > 0)
|
||||||
|
{
|
||||||
|
$row=mysql_fetch_row($rslt);
|
||||||
|
$leads_count =$row[0];
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($leads_count < 1)
|
||||||
|
{
|
||||||
|
echo "There are no leads in list_id: $list_id\n";
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
$US='_';
|
||||||
|
$MT[0]='';
|
||||||
|
$NOW_DATE = date("Y-m-d");
|
||||||
|
$NOW_TIME = date("Y-m-d H:i:s");
|
||||||
|
$FILE_TIME = date("Ymd-His");
|
||||||
|
$STARTtime = date("U");
|
||||||
|
if (!isset($group)) {$group = '';}
|
||||||
|
if (!isset($query_date)) {$query_date = $NOW_DATE;}
|
||||||
|
if (!isset($end_date)) {$end_date = $NOW_DATE;}
|
||||||
|
|
||||||
|
|
||||||
|
$TXTfilename = "LIST_$list_id$US$FILE_TIME.txt";
|
||||||
|
|
||||||
|
// We'll be outputting a TXT file
|
||||||
|
header('Content-type: application/octet-stream');
|
||||||
|
|
||||||
|
// It will be called LIST_101_20090209-121212.txt
|
||||||
|
header("Content-Disposition: attachment; filename=\"$TXTfilename\"");
|
||||||
|
header('Expires: 0');
|
||||||
|
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
|
||||||
|
header('Pragma: public');
|
||||||
|
ob_clean();
|
||||||
|
flush();
|
||||||
|
|
||||||
|
$stmt="select * from vicidial_list where list_id='$list_id';";
|
||||||
|
$rslt=mysql_query($stmt, $link);
|
||||||
|
if ($DB) {echo "$stmt\n";}
|
||||||
|
$leads_to_print = mysql_num_rows($rslt);
|
||||||
|
$i=0;
|
||||||
|
while ($i < $leads_to_print)
|
||||||
|
{
|
||||||
|
$row=mysql_fetch_row($rslt);
|
||||||
|
|
||||||
|
echo "$row[0]\t$row[1]\t$row[2]\t$row[3]\t$row[4]\t$row[5]\t$row[6]\t$row[7]\t$row[8]\t$row[9]\t$row[10]\t$row[11]\t$row[12]\t$row[13]\t$row[14]\t$row[15]\t$row[16]\t$row[17]\t$row[18]\t$row[19]\t$row[20]\t$row[21]\t$row[22]\t$row[23]\t$row[24]\t$row[25]\t$row[26]\t$row[27]\t$row[28]\t$row[29]\t$row[30]\t$row[31]\r\n";
|
||||||
|
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
|
||||||
|
exit;
|
||||||
|
|
||||||
|
?>
|
||||||
Reference in New Issue
Block a user