From 0f13260ff87bdf41c5a88acf7ce6cedbb889f871 Mon Sep 17 00:00:00 2001 From: mattf Date: Mon, 9 Feb 2009 20:16:03 +0000 Subject: [PATCH] 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 --- agc_2-X/trunk/UPGRADE | 7 + .../trunk/extras/MySQL_AST_CREATE_tables.sql | 5 +- agc_2-X/trunk/extras/OLD_vdc_tab_script.gif | Bin 0 -> 825 bytes agc_2-X/trunk/extras/OLD_vdc_tab_vicidial.gif | Bin 0 -> 866 bytes agc_2-X/trunk/extras/upgrade_2.0.5.sql | 4 + .../TO_BE_TRANSLATED_2.0.5.txt | 2 + .../trunk/www/agc/images/vdc_tab_script.gif | Bin 825 -> 697 bytes .../trunk/www/agc/images/vdc_tab_vicidial.gif | Bin 866 -> 1859 bytes agc_2-X/trunk/www/agc/vicidial.php | 88 ++++++++----- .../www/vicidial/AST_agent_days_detail.php | 2 +- agc_2-X/trunk/www/vicidial/admin.php | 15 ++- agc_2-X/trunk/www/vicidial/list_download.php | 121 ++++++++++++++++++ 12 files changed, 205 insertions(+), 39 deletions(-) create mode 100644 agc_2-X/trunk/extras/OLD_vdc_tab_script.gif create mode 100644 agc_2-X/trunk/extras/OLD_vdc_tab_vicidial.gif create mode 100644 agc_2-X/trunk/www/vicidial/list_download.php diff --git a/agc_2-X/trunk/UPGRADE b/agc_2-X/trunk/UPGRADE index 0f5045a8..8b9529e9 100644 --- a/agc_2-X/trunk/UPGRADE +++ b/agc_2-X/trunk/UPGRADE @@ -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 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 + + diff --git a/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql b/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql index c8cc8865..ebb0b13e 100644 --- a/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql +++ b/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql @@ -479,7 +479,8 @@ vdc_agent_api_access ENUM('0','1') default '0', modify_inbound_dids ENUM('1','0') default '0', delete_inbound_dids ENUM('1','0') default '0', 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 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@localhost; diff --git a/agc_2-X/trunk/extras/OLD_vdc_tab_script.gif b/agc_2-X/trunk/extras/OLD_vdc_tab_script.gif new file mode 100644 index 0000000000000000000000000000000000000000..69e43b796cf4e54e22bffc09ba16377d76657104 GIT binary patch literal 825 zcmZ?wbhEHb%w&*bxXQrr|M`Xg|Nk=p8GnBMe|2s5%9$>9<{j1f?`|A2*3%N?=bPDG zt0XUz7887C=dw^=*SjaS{Qv*&|H~_@W_AC6edGU&%m06V{{Qju|9^k}Kfn0@@1OFV z#Q)#l|9}7B|Hmi)e|-4={lotckN&^E|Nqi-v){{Q^) z|J{9{?PLSRpDbX#Iv^6{CkD3v2O0`Ibfo%EEGasfV>SQ6iW0B2QR{EKPB{IxYX5@` z6+U|Xrv7I;olXec`>>Duo=f<9tPSFh<2^AYc0-Q2^+DzJ8EtGM^VR$(@#Lx(uo+qgLo zAL8e0W<7O^hmE`WAQNlj`3p>3Y{wd}-9F6Lw%lt~3;Ux(yv-aZUthWT`taKahi)+3 zdd>O$3)2&xyWz7{h7JMPlO?5(x#Wr0>=9LU{4%sf@ebu;|eTUkHpQhOg zEIh5X(j{eq9m;}Q7nX9pZH%nx{+1hj;ecAhzW?9EwAQR(TBRf}qNq{upfQ;7{u4K` zwCUQ+Qw0>8=f>O=NOzU*DKSWSeZbZ6)jYOERuUB*ui-; zxHZyLqvu)hX@+fFe5XF&b-Xd-u->e`6-}H<3NI$@d2wLYV}}nyHdomF8_zy@XnB+& z{@g@W&gzZ^hZc?w0o6XH4Ku$h@CY)gTz~g)~|G?A} zzRVh790!EFqEekJvnvz_xE2*`sO}3e7&ut;o{a4a#FH3 zCYJoXe7fq|QGQ{ER_ye4bl*IC^}m1rrZ)Ef{qy(l?>~=@-uV9hYi4xHn_JJGoxS_$ z_|1ohufMwX_|?_NpI^Lxc;x!)>rWn^y#4sZtsfu1zPzb$=i>P-2l3TB%t_{1*~2NM1uUp!1n(@LxG2mRR4)3MJIEt=3iJ* z;e{VImjv#8*iqxRUYPI4p1Skri{tdlnwnXp)H3~) z7`l6U`}!wLoHTjL)M@=n{wmYw%$+xXfr_8%f~Cur&r|gkQeLrc{RReQAs_LL+jq

>?4tw&tk9Gv&APT)Fo zZo;i8(px;Y^>W_g=;P!$bN9-F?h8jciw~TTS8imIw$b?UR*00C9>)WylN(-M+a|S~ ziKDw=vAcV|>Rg9INTzb*Lo*JK-R@~}&x&P>ycl*vrz0*_`b61I&U?SOI zm&Prt&-L3PDCu;M1h>H169yK$D+0YYDfD}EduB2gv^1 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:|| Click here for user multiple day status detail report|| +Click here to download this list|| +Download Lists:|| ############################################################ CLIENT diff --git a/agc_2-X/trunk/www/agc/images/vdc_tab_script.gif b/agc_2-X/trunk/www/agc/images/vdc_tab_script.gif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TP|S;1nGxi8?a>UrO836)oJ?p9}HI>4&utd$fokqPZkq5xt5X7C691~FA< zz{4L@q5y1!`LV$t`uR~2znLgt8xwK>=m$!dEU9W^FWeb{7YkQtFB8IA(gL=Agwe58 ze&DuYUp-gy^F2{O@yF2(Xd*2%JcgwPYWu}JCnXxRIN1*CVX~){l!Op!l9+hs#{e4@ z=m!Kdx{-+yF&+2^Y*9(wA14s_6GfU~jI6bSWaR`#7w3r0@E=Op6UASb6v3AXo}O?I z00|Hlg^rh0&`%RBv`{RZdV9iwT*lfxIFo-MaRm`+eX+w0io*v0YD{>F2^Kdd@g=rl zRG>vdY0Usr5(2pYs?h+7S zNs`RxhbFKf0Bz~tB}&#IUiraSrSk+7u!fH+z%N0p`$G;0aHq5o;R|25%zJ1=iKAJ; z8EFqEekJvnvz_xE2*`sO}3e7&ut;o{a4a#FH3 zCYJoXe7fq|QGQ{ER_ye4bl*IC^}m1rrZ)Ef{qy(l?>~=@-uV9hYi4xHn_JJGoxS_$ z_|1ohufMwX_|?_NpI^Lxc;x!)>rWn^y#4sZtsfu1zPzb$=i>P-2l3TB%t_{1*~2NM1uUp!1n(@LxG2mRR4)3MJIEt=3iJ* z;e{VImjv#8*iqxRUYPI4p1Skri{tdlnwnXp)H3~) z7`l6U`}!wLoHTjL)M@=n{wmYw%$+xXfr_8%f~Cur&r|gkQeLrc{RReQAs_LL+jq

>?4tw&tk9Gv&APT)Fo zZo;i8(px;Y^>W_g=;P!$bN9-F?h8jciw~TTS8imIw$b?UR*00C9>)WylN(-M+a|S~ ziKDw=vAcV|>Rg9INTzb*Lo*JK-R@~}&x&P>ycl*vrz0*_`b61I&U?SOI zm&Prt&-L3PDCu;M1h>H169yK$D+0YYDfD}EduB2gv^1 LICENSE: AGPLv2 +# Copyright (C) 2009 Matt Florell LICENSE: AGPLv2 # # Other scripts that this application depends on: # - vdc_db_query.php: Updates information in the database @@ -217,10 +217,11 @@ # 90126-2302 - Added Vtiger login option and agent alert option # 90128-0230 - Added vendor_lead_code to API dial and manuald dial with lookup # 90202-0148 - Added option to disable BLENDED checkbox +# 90209-0132 - Changed tab images and color scheme # -$version = '2.0.5-196'; -$build = '90202-0148'; +$version = '2.0.5-197'; +$build = '90209-0132'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=53; $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_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: #$alt_phone_dialing = '1'; # allow agents to call alt phone numbers @@ -547,7 +549,7 @@ echo "\n"; echo "\n"; echo "

\n"; echo "\n"; -echo "


"; +echo "


"; echo ""; echo ""; echo "\n"; @@ -588,7 +590,7 @@ if ($user_login_first == 1) #echo "\n"; #echo "\n"; echo "

User Login

"; - echo "
Re-Login
"; + echo "
"; echo ""; echo ""; echo "\n"; @@ -629,7 +631,7 @@ if ($user_login_first == 1) echo "
Campaign Login
\n"; echo "\n"; echo "\n"; - echo "


"; + echo "


"; echo ""; echo ""; echo "\n"; @@ -668,7 +670,7 @@ echo "\n"; echo "
Login
\n"; echo "\n"; echo "\n"; -echo "


"; +echo "


"; echo ""; echo ""; echo "\n"; @@ -1086,7 +1088,7 @@ $VDloginDISPLAY=0; echo "\n"; echo "\n"; echo "

$VDdisplayMESSAGE

"; - echo "
Phone Login
"; + echo "
"; echo ""; echo ""; echo "\n"; @@ -1174,7 +1176,7 @@ if (!$authphone) echo "\n"; echo "\n"; echo "\n"; - echo "


Campaign Login
"; + echo "


"; echo ""; echo ""; echo "\n"; @@ -2008,7 +2010,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var VDIC_web_form_address = ''; var CalL_ScripT_id = ''; var CalL_AutO_LauncH = ''; - var panel_bgcolor = '#E0C2D6'; + var panel_bgcolor = ''; var CusTCB_bgcolor = '#FFFF66'; var auto_dial_level = ''; var starting_dial_level = ''; @@ -7493,8 +7495,8 @@ else function MainPanelToFront(resumevar) { - document.getElementById("MainTable").style.backgroundColor="#E0C2D6"; - document.getElementById("MaiNfooter").style.backgroundColor="#E0C2D6"; + document.getElementById("MainTable").style.backgroundColor=""; + document.getElementById("MaiNfooter").style.backgroundColor=""; hideDiv('ScriptPanel'); showDiv('MainPanel'); if (resumevar != 'NO') @@ -7532,16 +7534,16 @@ else } } } - panel_bgcolor='#E0C2D6'; + panel_bgcolor=''; document.getElementById("MainStatuSSpan").style.background = panel_bgcolor; } function ScriptPanelToFront() { showDiv('ScriptPanel'); - document.getElementById("MainTable").style.backgroundColor="#FFE7D0"; - document.getElementById("MaiNfooter").style.backgroundColor="#FFE7D0"; - panel_bgcolor='#FFE7D0'; + document.getElementById("MainTable").style.backgroundColor=""; + document.getElementById("MaiNfooter").style.backgroundColor=""; + panel_bgcolor=''; document.getElementById("MainStatuSSpan").style.background = panel_bgcolor; } @@ -7966,7 +7968,7 @@ Your Status:
Calls Dialing: -
Login Error
height=>
VICIDIAL SCRIPT
+ height=>
VICIDIAL SCRIPT
@@ -7976,7 +7978,7 @@ Your Status:
Calls Dialing: px;z-index:15;" id="MaiNfooterspan"> ->
VICIDIAL web-client version:     BUILD:               Server:              
+> @@ -8000,7 +8002,7 @@ else -
VICIDIAL web-client version:     BUILD:               Server:              
Show conference call channel information

 
id="MainTable"> +
id="MainTable"> \n"; echo "\n"; echo "\n"; + echo "\n"; echo "\n"; echo "\n"; @@ -14492,6 +14498,7 @@ if ($ADD==311) echo "
\n"; echo "

Click here to see all CallBack Holds in this list

\n"; + echo "

Click here to download this list

\n"; if ($LOGdelete_lists > 0) { diff --git a/agc_2-X/trunk/www/vicidial/list_download.php b/agc_2-X/trunk/www/vicidial/list_download.php new file mode 100644 index 00000000..78ecd940 --- /dev/null +++ b/agc_2-X/trunk/www/vicidial/list_download.php @@ -0,0 +1,121 @@ + 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; + +?> \ No newline at end of file
STATUS:
@@ -8051,24 +8053,38 @@ RECORD ID:
- + +
  Cust Time:   Channel:   Customer Time:   Channel:
Customer Information:
+ + + - + - + - + + + - + + + + + - + + + + + + + + + + - + + + - + + +
Title:   First:   MI:   Last:   First:   MI:   Last:
Address1:
Address2:   Address3: Address3:
City:   State:   PostCode: State: PostCode:
Province:   Vendor ID:   Gender: Vendor ID: Gender:
Phone: @@ -8080,27 +8096,35 @@ if ($disable_alter_custphone=='Y') } else { - echo ""; + echo ""; } ?> - -  DialCode:   Alt. Phone: DialCode: Alt. Phone:
Show:   Email: Email:
Comments: + \n";} + {echo "\n";} else {echo "\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 34d040f4..29625852 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 @@ -210,7 +210,7 @@ $datesARY[0]=''; $date_namesARY[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); if ($DB) {echo "$stmt\n";} $rows_to_print = mysql_num_rows($rslt); diff --git a/agc_2-X/trunk/www/vicidial/admin.php b/agc_2-X/trunk/www/vicidial/admin.php index 5381a5f1..df71381e 100644 --- a/agc_2-X/trunk/www/vicidial/admin.php +++ b/agc_2-X/trunk/www/vicidial/admin.php @@ -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"];} 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"];} +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($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); $qc_features_active = ereg_replace("[^0-9]","",$qc_features_active); $outbound_autodial_active = ereg_replace("[^0-9]","",$outbound_autodial_active); +$download_lists = ereg_replace("[^0-9]","",$download_lists); ### DIGITS and COLONS $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 # 90202-0112 - Added option to disable outbound autodialing(or list dialing) # 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 -$admin_version = '2.0.5-162'; -$build = '90202-0444'; +$admin_version = '2.0.5-163'; +$build = '90209-1339'; $STARTtime = date("U"); $SQLdate = date("Y-m-d H:i:s"); @@ -6571,7 +6575,7 @@ if ($ADD=="2A") $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); $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 "
USER MODIFIED - ADMIN: $user\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); ############################################################### @@ -11777,6 +11781,7 @@ if ($ADD==3) $delete_inbound_dids = $row[57]; $active = $row[58]; $alert_enabled = $row[59]; + $download_lists = $row[60]; if ( ($user_level >= $LOGuser_level) and ($LOGuser_level < 9) ) { @@ -11885,6 +11890,7 @@ if ($ADD==3) echo "
Delete Lists: $NWB#vicidial_users-delete_lists$NWE
Load Leads: $NWB#vicidial_users-load_leads$NWE
Modify Leads: $NWB#vicidial_users-modify_leads$NWE
Download Lists: $NWB#vicidial_users-modify_leads$NWE
Modify Campaigns: $NWB#vicidial_users-modify_sections$NWE
Campaign Detail: $NWB#vicidial_users-campaign_detail$NWE